Home Statistics Bayes Theorem Calculator

Bayes Theorem Calculator

Turn a test result into a real probability, using how common the thing is and the test's true and false positive rates.

Advertisement

How it works

Enter how common A is as a percentage, the chance of a positive result when A is true, and the chance of a positive result when A is false. The page shows the overall chance of a positive, how many true and false positives you would get in 10,000 cases, and the chance that A is true after a positive result.

Advertisement

Formula

P(B) = P(B|A) x P(A) + P(B|not A) x (1 - P(A))
P(A|B) = P(B|A) x P(A) / P(B)

Sources

Example

How common A is (%): 1; Positive rate when A is true (%): 90; Positive rate when A is false (%): 5. Chance A is true after a positive: 15.38%

Frequently asked questions

If a test is 90% accurate and I test positive, what is the chance I have it?

It depends how common it is. If 1 in 100 people have it, a positive result means only a 15.38% chance, because false positives outnumber true ones. In 10,000 people, 90 true positives come with 495 false ones.

Why do rare conditions give so many false alarms?

The false positive rate applies to the large group that does not have the condition. Even a small rate there can beat the true positives from a small group.

Advertisement

Related calculators

Percent Error Calculator

How far a measured value is from the true value, as a percent.

Mean, Median, Mode and Range Calculator

Type a list of numbers and get the mean, median, mode, range, sum, smallest and largest.

Standard Deviation Calculator

Sample and population standard deviation and variance for a list of numbers.

Z-Score Calculator

How many standard deviations a value is from the mean, with the share of values below and above it.