Bayesian Inference Calculator
Calculate posterior probability, Bayes factor, likelihood ratio, and evidence strength using Bayes' theorem.
Inputs
Results
Posterior Probability P(H|E)
66.67%
Bayes Factor
2
How to Use This Calculator
- Enter the prior probability P(H) for your hypothesis.
- Input the likelihood P(E|H): probability of the evidence given the hypothesis is true.
- Enter the evidence probability P(E), the overall probability of observing the evidence.
- Review the posterior probability P(H|E), calculated automatically using Bayes' theorem.
- Check the Bayes factor, likelihood ratio, prior odds, and posterior odds for additional measures of how strongly the evidence supports the hypothesis.
How the result changes with Evidence Probability P(E)
| Evidence Probability P(E) | Posterior Probability P(H|E) | Bayes Factor |
|---|---|---|
| 0.1 | 400% | -1.333 |
| 0.35 | 114.29% | -8 |
| 0.65 | 61.54% | 1.6 |
| 0.9 | 44.44% | 0.8 |
What each input means
- Prior Probability P(H)
- Prior probability of hypothesis
- Likelihood P(E|H)
- Probability of evidence given hypothesis
- Evidence Probability P(E)
- Marginal probability of evidence
How this is calculated
Formula
P(H|E) = P(E|H) × P(H) / P(E)Worked example, using the default values
- Identify Input ParametersPrior Probability P(H) = 0.5, Likelihood P(E|H) = 0.8, Evidence Probability P(E) = 0.6 = 3 input(s) provided
- Calculate Posterior Probability PPosterior Probability P66.67 = 66.67%
- Calculate Bayes FactorBayes Factor2 = 2
- Calculate Likelihood RatioLikelihood Ratio4 = 4
- Calculate Prior OddsPrior Odds1 = 1
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Probability Calculator
Calculate probability of single events, combined events (AND/OR), permutations, and combinations.
Machine Learning & AIModel Performance Metrics Calculator
Calculate accuracy, precision, recall, F1 score, MCC, AUC, and other classification performance metrics.
StatisticsBayesian Prior Calculator
Apply Bayes' theorem to update a prior probability given test sensitivity and false positive rate. Calculate the posterior probability after a positive or negative result.
MLOps & AI CostingInference Latency Calculator
Estimate model inference latency, throughput, and memory requirements across CPU, GPU, and edge hardware.
Machine Learning & AINeural Network Parameters Calculator
Calculate total parameters, weights, biases, and memory requirements for neural network architectures.
More in Technology & Computing.