PrimeCalcPro
Explore 1070+ free calculators — math, finance, health & more.

Bayes Theorem Calculator

Conditional probability using Bayes theorem

P(A|B)Bayes Theorem Calculator

Classic medical screening example: what is the probability of disease given a positive test?

Population prevalence

P(+|Disease)

P(−|No disease)

Bayes' Theorem describes how to update the probability of a hypothesis given new evidence. Named after Rev. Thomas Bayes (1702–1761), it is the mathematical foundation of Bayesian statistics and is central to medical diagnosis, spam filtering, machine learning, and forensic science. The theorem shows why even a highly accurate test can produce mostly false positives when the disease is rare — this is the base rate fallacy.

  1. 1P(A|B) = P(B|A) × P(A) / P(B)
  2. 2P(A) = prior probability (before evidence)
  3. 3P(B|A) = likelihood (probability of evidence given hypothesis)
  4. 4P(A|B) = posterior probability (after evidence)
  5. 5P(B) = P(B|A)×P(A) + P(B|¬A)×P(¬A) — the total probability
Disease prevalence 1%, test sensitivity 99%, specificity 95%=P(disease | positive test) ≈ 16.7%Despite 99% accuracy, only 1 in 6 positives are true positives
Prevalence 10%, same test=P(disease | positive) ≈ 68.8%Higher base rate dramatically changes posterior
TermSymbolMeaning
PriorP(D)Probability of disease before testing
SensitivityP(+|D)True positive rate
SpecificityP(−|¬D)True negative rate
False positive rateP(+|¬D)1 − specificity
PosteriorP(D|+)Probability of disease given positive test
Positive predictive valuePPV = P(D|+)Clinical relevance of a positive result
🔒
100% Grátis
Sem registo
Preciso
Fórmulas verificadas
Instantâneo
Resultados imediatos
📱
Compatível com móvel
Todos os dispositivos

Settings

Theme

Light

Dark

Layout

Language

PrivacyTermsAbout© 2025 PrimeCalcPro