Home / Methods / Probability / Bayes theorem
Bayes theorem
When there's a signal and you need to know what it actually means — a test result, a scoring model firing, a reaction to a hypothesis.
Or ask in your own words (needs an AI key)
What you need
- probability before testing, %
- test sensitivity, %
- test specificity, %
What it calculates
- the real probability it's true after a positive result (%), %
- the probability it's still true even after a negative result (%), %
- share of all positive results that are actually false alarms (%), %
- how many times a positive result multiplies the odds that it's true, ×
Examples
A disease in 1% of people, test: sensitivity 95%, specificity 90%
| the real probability it's true after a positive result (%) | 8.7558 % |
| the probability it's still true even after a negative result (%) | 0.0561 % |
| share of all positive results that are actually false alarms (%) | 91.2442 % |
| how many times a positive result multiplies the odds that it's true | 9.5 × |
Credit scoring: 5% of clients default, the model catches 60% of them and wrongly flags 5% of good payers
| the real probability it's true after a positive result (%) | 38.7097 % |
| the probability it's still true even after a negative result (%) | 2.168 % |
| share of all positive results that are actually false alarms (%) | 61.2903 % |
| how many times a positive result multiplies the odds that it's true | 12 × |
Example numbers are checked against an independent calculation. The AI in Numo does not compute: it only parses your question; a deterministic engine does the maths.
Careful
The most common mistake is confusing '99% accurate test' with 'if the test is positive, it's 99% true.' For a rare event, those are completely different numbers.
Typical mistakes
- Ignoring base rates: with a rare disease most positive tests are false.
- Confusing sensitivity with specificity.