Probability & Bayes Calculator

Statistics & Probability

This analytical probability tool computes conditional Bayesian posterior likelihoods alongside compound event unions, joint intersections, and multi-coin binomial outcomes. It helps data analysts, researchers, and students systematically evaluate how newly observed empirical evidence updates initial base rate assumptions under conditions of uncertainty.

e.g. 0.01 = 1% base rate
Sensitivity (e.g. 0.95 = 95%)
e.g. 0.05 = 5% false alarm
Posterior P(A | B)
16.10%
Updated probability given evidence B
Total Evidence P(B)
5.90%
Marginal probability of evidence
Posterior Odds
1 : 5.2

About this calculator

Intuition frequently fails when evaluating probabilistic events, especially in medical screening or quality assurance where rare conditions produce counterintuitive rates of false alarms. A medical screening test with ninety-five percent accuracy can still yield far more false positives than true positives if the underlying condition prevalence across the population is extremely low. Users input prior hypothesis probabilities, true positive sensitivity rates, and false positive alarm rates to calculate updated posterior beliefs, or enter event probabilities to solve union and intersection sets.

The results display the true posterior probability given positive evidence, total marginal evidence probability, and corresponding posterior odds ratios. In multi-event modes, the tool demonstrates how compound event likelihoods behave under independence assumptions versus mutually exclusive constraints. Be careful not to confuse laboratory test sensitivity with posterior probability, as failing to account for the baseline population prior leads directly to the classic base-rate fallacy.

How It Works & Formula

FormulaP(A | B) = [ P(B | A) Β· P(A) ] / P(B) | P(A βˆͺ B) = P(A) + P(B) - P(A ∩ B)

Bayes theorem computes posterior probability by multiplying the prior belief by the likelihood of observing the evidence, dividing by total marginal evidence across all states. For combined events, the union is calculated by summing individual probabilities and subtracting their joint intersection under probability addition rules.

Frequently Asked Questions

How does Bayes' theorem update prior probabilities?

Bayes' Theorem updates the probability of hypothesis A given new evidence B: P(A|B) = [P(B|A) Γ— P(A)] / P(B). It balances baseline prior probability with the test's true positive and false positive rates.