Include evidence from the event and its complement
Enter the prior P(A), the likelihood P(E | A), and the alternative likelihood P(E | ¬A), each between 0 and 1. The symbol ¬A means A does not occur. A likelihood conditions on the hypothesis; the posterior P(A | E) conditions on the evidence.
Multiply each hypothesis probability by its likelihood. Add those two joint contributions to obtain the evidence probability P(E). Divide each contribution by P(E) to obtain its posterior. Evidence must be positive. The supplied likelihoods do not imply independence or causality.
Worked example: prior 1/5, likelihoods 3/4 and 1/4
The event contribution is (1/5)×(3/4) = 3/20. Its complement has prior 4/5 and contributes (4/5)×(1/4) = 1/5. Thus P(E) = 3/20 + 1/5 = 7/20.
The posterior is (3/20)/(7/20) = 3/7. The complement posterior is (1/5)/(7/20) = 4/7. They sum to 1; neither equals the likelihood 3/4.
Load example fills the form without calculating. Choose its primary action to work it out.
Sources and related calculators
- ProbabilityCourse: Bayes’ rule — checked 1 November 2026.
- ProbabilityCourse: law of total probability — checked 1 November 2026.
The method and worked example here are original. Sources describe the underlying mathematics or notation; calculation choices and limits are in the precision and syntax guide.