Bayes' Theorem & Conditional Probability Calculator
Calculate posterior probability P(A|B), prior odds, likelihood ratio, and diagnostic true/false positive rates using Bayes' rule.
Parameters & Inversions
Deterministic EngineCalculated Output Metrics
Analytical Proof & Invariants
Machine PrecisionP(A|B) = [P(B|A) · P(A)] / P(B)
Step-by-Step Mathematical Derivation
Joint probability P(A ∩ B) = P(A|B) · P(B) = P(B|A) · P(A). Equating both sides yields Bayes' Theorem: P(A|B) = [P(B|A) · P(A)] / P(B).
The marginal evidence probability partitions across mutually exclusive hypotheses: P(B) = P(B|A) · P(A) + P(B|¬A) · P(¬A), where P(¬A) = 1 - P(A).
When prior probability P(A) is very low (e.g. rare disease or rare defect), even a test with 95% sensitivity produces predominantly false positive signals.
Artificial Intelligence & Prompt Integration
Paste this verified mathematical prompt directly into ChatGPT, Claude, or Gemini to eliminate arithmetic hallucination, or invoke the programmatic API endpoint for automated workflows.
Generating verified mathematical prompt...
llms.txt
✓ Exact Radical Form & Closed Formulas
✓ Machine-Readable Edge API