{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "BayesUpdate",
 "ref": "BayesUpdate#8656",
 "hash": "sema:BayesUpdate#mh:SHA-256:865637baf030de8ee9babd2a2fdddbf68d99353516aa86eef07cf6bc1e8a5d38",
 "stub": "8656",
 "layer": "Mind",
 "type": "Inference",
 "summary": "Mathematically rigorous belief revision",
 "mechanism": "Likelihood Weighting: Hold prior probability P(H). Observe#4a04 evidence E. Compute likelihood ratio P(E|H)/P(E|¬H). Convert the prior to odds, multiply by the ratio, convert back to a probability. Large ratio = strong update. Ratio near 1 = weak evidence. Never update to 0 or 1. It explicitly incorporates BaseRateInclude#1e63 into the prior probability calculation to prevent base-rate neglect.",
 "invariants": [
  "The posterior odds are the prior odds scaled by the likelihood ratio P(E|H)/P(E|not H).",
  "Prior and posterior both stay at least `clamp` away from 0 and 1."
 ],
 "parameters": [
  {
   "name": "clamp",
   "type": "Probability",
   "range": "(0.0, 0.5)",
   "description": "Distance from 0 and 1 that no probability may cross, so evidence can always move it."
  }
 ],
 "signature": [],
 "preconditions": [
  "Prior probability defined in (0,1)",
  "New evidence observed.",
  "Likelihood computable."
 ],
 "postconditions": [
  "Posterior probability in (0,1)",
  "Belief#09e1 updated proportional to evidence strength.",
  "Prior recoverable from the posterior and the ratio, unless the posterior was clamped."
 ],
 "failure_modes": [
  "Prior Dogmatism: Setting a prior of 1.0 or 0.0 prevents any future updating, regardless of evidence."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "BayesUpdate",
 "builds_on": [
  {
   "alias": "observe",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Observe",
   "ref": "Observe#4a04",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Observe"
  },
  {
   "alias": "base_rate_include",
   "relation": "references",
   "library": "bootstrap",
   "slug": "BaseRateInclude",
   "ref": "BaseRateInclude#1e63",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/BaseRateInclude"
  },
  {
   "alias": "belief",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Belief",
   "ref": "Belief#09e1",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Belief"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "ConfidenceCalibrate",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ConfidenceCalibrate"
  },
  {
   "slug": "HypothesisLadder",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/HypothesisLadder"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/BayesUpdate",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/BayesUpdate.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
