Test priors, sensitivity, specificity, and evidence with confidence. Compare priors and posteriors using clean visuals. Understand uncertainty faster with practical Bayesian calculations and exports.
Enter percentages from 0 to 100. The calculator updates the posterior probability using Bayes rule.
These examples show how priors and evidence can change the final probability.
| Scenario | P(A) | P(B|A) | P(B|¬A) | P(A|B) |
|---|---|---|---|---|
| Medical screening | 1% | 95% | 5% | 16.10% |
| Fraud review | 20% | 80% | 10% | 66.67% |
| Spam filtering | 40% | 70% | 20% | 70.00% |
Bayes rule updates a prior belief after new evidence appears.
P(A|B) = [P(B|A) × P(A)] / P(B)P(B) = [P(B|A) × P(A)] + [P(B|¬A) × P(¬A)]
P(A) is the prior probability of the hypothesis.
P(B|A) is the probability of the evidence when the hypothesis is true.
P(B|¬A) is the probability of the evidence when the hypothesis is false.
P(A|B) is the updated posterior probability after observing the evidence.
It calculates an updated probability after you observe new evidence. The method starts with a prior belief and adjusts it using how likely the evidence is under different conditions.
The prior is your starting probability before evidence appears. The posterior is the revised probability after the evidence is observed and weighed using Bayes rule.
It measures how often the same evidence appears even when the hypothesis is false. A large value can greatly reduce the final posterior probability.
Yes. Bayes rule is commonly used for screening interpretation, especially when disease prevalence is low and false positives can meaningfully change the final probability.
Yes. It is useful wherever alerts, scores, or evidence update your belief about an event, such as fraud review, anomaly detection, filtering, or risk scoring.
The posterior becomes undefined because the denominator is zero. The calculator checks for that case and asks you to adjust the probabilities.
A very low prior probability can keep the posterior limited, even with strong evidence. This is why rare events often require multiple confirmations.
Expected counts translate the probabilities into approximate case counts for your chosen sample size. They make the results easier to interpret in practical scenarios.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.