Bayes Theorem Calculator - Calculate Posterior Probability & Bayesian Inference
Free Bayes theorem calculator. Calculate posterior probability using prior probability, likelihood, and evidence with step-by-step solutions. Our calculator uses Bayesian inference principles to determine updated probabilities based on new evidence and prior knowledge.
Last updated: October 19, 2025
Need a custom statistics calculator for your educational platform? Get a Quote
53.33%
P(A|B) = 0.5333
5.33
Evidence strength
Moderate
Somewhat Confident
10.00%
P(A) = 0.1000
80.00%
P(B|A) = 0.8000
15.00%
P(B) = 0.1500
1. Prior Probability P(A) = 0.1000
2. Likelihood P(B|A) = 0.8000
3. Evidence P(B) = 0.1500
4. Posterior = (0.8000 × 0.1000) / 0.1500
5. Result = 0.5333
Bayes Formula
P(A|B) = P(B|A) × P(A) / P(B)
Bayes Factor
BF = P(B|A) / P(B|¬A)
Evidence Formula
P(B) = P(B|A) × P(A) + P(B|¬A) × P(¬A)
Key Concepts:
- • Prior Probability: Initial belief before seeing evidence
- • Likelihood: Probability of evidence given the hypothesis
- • Evidence: Total probability of observing the evidence
- • Posterior: Updated probability after seeing evidence
Bayes Theorem Calculator Types & Features
Formula used
P(A|B) = P(B|A) × P(A) / P(B)
Calculates posterior probability from prior, likelihood, and evidence
Uses
Prevalence, Sensitivity, Specificity
Calculates probability of disease given positive test result
Calculates
Positive & Negative Predictive Values
Determines test reliability and clinical significance
Formula used
BF = P(B|A) / P(B|¬A)
Measures relative evidence strength between hypotheses
Features
Prior Updates, Credible Intervals
Updates beliefs based on new evidence
Calculates
Conditional & Joint Probabilities
Handles complex probability relationships
Quick Example Result
For prior = 0.1, likelihood = 0.8, evidence = 0.15:
Posterior Probability
53.33%
Bayes Factor
5.33
Confidence
Moderate
How Our Bayes Theorem Calculator Works
Our Bayes theorem calculator uses the fundamental principles of Bayesian inference to calculate posterior probabilities from prior knowledge and new evidence. The calculation applies probability theory and statistical reasoning to update beliefs based on observed data.
The Bayes Theorem Formula
P(A|B) = P(B|A) × P(A) / P(B)P(A|B) = Posterior ProbabilityP(B|A) = LikelihoodP(A) = Prior ProbabilityP(B) = EvidenceThis formula allows us to update our beliefs about hypothesis A after observing evidence B. It combines our prior knowledge with the likelihood of observing the evidence to produce a posterior probability.
Shows how prior knowledge and evidence combine to form posterior beliefs
Mathematical Foundation
Bayes theorem is derived from the definition of conditional probability and the law of total probability. It provides a systematic way to update probabilities when new information becomes available, making it fundamental to statistical inference and decision-making under uncertainty.
- Prior probability represents initial beliefs before seeing evidence
- Likelihood measures how probable the evidence is given the hypothesis
- Evidence probability normalizes the calculation
- Posterior probability represents updated beliefs after seeing evidence
- Bayes factor quantifies the strength of evidence
- Bayesian inference provides a framework for learning from data
Sources & References
- Bayesian Data Analysis - Gelman, Carlin, Stern, RubinComprehensive reference for Bayesian methods and applications
- Introduction to Probability Theory - Hoel, Port, StoneFundamental probability theory including Bayes theorem
- Khan Academy - Bayes Theorem and Conditional ProbabilityEducational resources for understanding Bayes theorem
Need help with other probability calculations? Check out our probability calculator and statistics calculator.
Get Custom Calculator for Your PlatformBayes Theorem Calculator Examples
Given Information:
- Disease prevalence: 1% (0.01)
- Test sensitivity: 95% (0.95)
- Test specificity: 99% (0.99)
- Patient tests positive: Yes
Calculation Steps:
- Prior P(Disease) = 0.01
- Likelihood P(+|Disease) = 0.95
- Evidence P(+) = 0.95×0.01 + 0.01×0.99 = 0.0194
- Posterior = (0.95×0.01) / 0.0194 = 0.4897
Result: Probability of disease given positive test = 48.97%
Despite a positive test, the probability is less than 50% due to low disease prevalence.
Spam Filter Example
Email classification using word frequencies
Updates spam probability based on email content
Weather Forecast Example
Rain probability given cloud observations
Updates forecast based on current conditions
Frequently Asked Questions
Found This Calculator Helpful?
Share it with others who need help with probability calculations
Suggested hashtags: #Statistics #Probability #Bayes #Education #Calculator