Bayes’ Theorem Calculator
Calculate the posterior probability $P(H|E)$ given the prior, sensitivity, and false positive rate.
Probabilities
The baseline probability of the hypothesis (e.g., disease prevalence).
Sensitivity: Probability of Evidence given Hypothesis is true.
Probability of Evidence given Hypothesis is false.
Formula
Where $P(E) = P(E|H)P(H) + P(E|\neg H)P(\neg H)$
Results
Probability Space
Natural Frequency Interpretation
Understanding Bayes’ Theorem
Bayes’ Theorem describes the probability of an event, based on prior knowledge of conditions that might be related to the event. It is the mathematical formula for updating our beliefs in light of new evidence.
The Base Rate Fallacy
A common mistake for students is ignoring the Prior Probability (Base Rate). For example, if a medical test is 99% accurate, it feels intuitive that a positive result means you are 99% likely to be sick. However, if the disease is extremely rare (e.g., 1 in 10,000), the vast number of “False Positives” from healthy people will drown out the “True Positives” from sick people.
Components
- Prior $P(H)$: How likely the hypothesis was before seeing evidence.
- Likelihood $P(E|H)$: How likely the evidence is if the hypothesis is true.
- Marginal $P(E)$: The total probability of seeing the evidence (from both true and false cases).
- Posterior $P(H|E)$: The updated probability after seeing the evidence.