Mathematics· Exact, step by step
Update a probability with new evidence: find the posterior P(A | B) from the prior, the true-positive rate and the false-positive rate.
Formula
P(A | B) = P(B | A)·P(A) ÷ [P(B | A)·P(A) + P(B | not A)·P(not A)]
Worked example
1% prevalence, 99% sensitivity, 5% false positives: a positive result means only a 16.67% chance of having the condition.
Free to use with a link back. Nothing you type is shared.
Preparing citation…
Keep exploring
Calculate P(A | B) and P(B | A) from P(A), P(B) and P(A and B), and check whether the events are independent.
Open calculatorCombine the probabilities of two independent events, and the chance of something happening at least once.
Open calculatorConvert between probability, odds for and against, and decimal, fractional and American betting odds.
Open calculator