Bayes' Theorem Calculator

Update a probability with Bayes' theorem — e.g. the chance of a disease given a positive test — from the prior, the true-positive and false-positive…

Results

Enter your details and click Calculate to see your results.
About This Calculator

P(A | B) = P(B | A)·P(A) ÷ [P(B | A)·P(A) + P(B | not A)·P(not A)].

Example

Example: a 1%-prevalence condition and a 95%/5% test → P(condition | positive) = 0.1610169492.

Assumptions

Two hypotheses (A, not A).

Frequently Asked Questions

Why is the posterior so low?

When A is rare, false positives from the large 'not A' group outnumber true positives.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile