# Bayesian Posterior Probability Calculator

> Update a prior probability with new evidence using Bayes’ theorem: enter P(H), P(E | H) and P(E | not H) to get P(H | E), P(E) and the likelihood ratio.

Category: Statistics & probability · Applies to: Worldwide · Last updated: 2026-10-29
Interactive calculator: https://calculators.geekmidst.com/calculators/bayesian-posterior-probability-calculator

Bayes’ theorem turns a starting belief and the reliability of a piece of evidence into an updated probability. It explains why a positive result from a good test can still mean a low chance when the condition is rare.

Also called: Bayes’ theorem calculator, Bayes rule calculator.

## Inputs
- Prior probability P(H) (unit %; default 1)
- P(evidence | H true) (unit %; default 80)
- P(evidence | H false) (unit %; default 9.6)

## Results
- Posterior P(H | evidence)
- Overall chance of the evidence P(E)
- P(H | evidence not seen)
- Likelihood ratio P(E | H) ÷ P(E | not H)
- Prior odds
- Posterior odds

## Formula

```
P(H | E) = P(E | H)·P(H) ÷ P(E), where P(E) = P(E | H)·P(H) + P(E | ¬H)·(1 − P(H));  posterior odds = prior odds × likelihood ratio
```

Where:
- P(H): prior probability of the hypothesis
- P(E | H): chance of the evidence if H is true
- P(E | ¬H): chance of the evidence if H is false
- P(H | E): posterior probability

## Worked example
1. P(E) = 0.80 × 0.01 + 0.096 × 0.99 = 0.008 + 0.09504 = 0.10304.
2. P(H | E) = 0.008 ÷ 0.10304 = 0.07764, about 7.8%.
3. If the test is negative: P(H | not E) = 0.20 × 0.01 ÷ 0.89696 = 0.22%.

**Result:** With a 1% base rate, a test with 80% sensitivity and a 9.6% false positive rate gives only a 7.8% chance of the condition after a positive result.

## What the result means

The posterior depends heavily on the prior. When the hypothesis starts out rare, most positive evidence comes from false positives, so the posterior stays low even for a fairly accurate test. A likelihood ratio above 1 means the evidence supports H; how far it moves you depends on where you started.

## Assumptions and limits
- There are two mutually exclusive possibilities: H is true or it is false.
- The probabilities you enter apply to the situation at hand (for a test, to people like the one tested).
- For more than two competing hypotheses, or repeated pieces of evidence that are not independent, the calculation needs to be extended.
- This is a probability calculation, not a diagnosis.

## Questions

### Why is the posterior so low when the test is 80% accurate?

Because 99% of people tested do not have the condition, and 9.6% of them test positive. That is about 95 false positives per 1,000 people versus 8 true positives.

### Can I chain results?

Yes. Use the posterior from one independent piece of evidence as the prior for the next.

## Related calculators
- [Bayes Factor Calculator](https://calculators.geekmidst.com/calculators/bayes-factor-calculator)
- [Probability Calculator](https://calculators.geekmidst.com/calculators/probability-calculator)
- [Binomial Probability Calculator](https://calculators.geekmidst.com/calculators/binomial-probability-calculator)
- [Conditional Probability Calculator](https://calculators.geekmidst.com/calculators/conditional-probability-calculator)

Source: GM¹X CalcVerse — https://calculators.geekmidst.com/calculators/bayesian-posterior-probability-calculator
