Posterior Probability Calculator

Estimate updated class probabilities from priors and evidence, compare hypotheses, inspect every calculation step, visualise changes, and export reliable Bayesian analysis results instantly online.

Calculation Result

Primary posterior probability
0%

Formula used

Interpretation

Calculation steps

    Hypothesis or class Prior Likelihood Unnormalised score Posterior

    Merged calculation summary

    
                

    Calculator Inputs

    Choose a Bayesian calculation mode. Enter probabilities as decimals, percentages, fractions, odds, or scientific notation where supported.

    Direct Bayes Theorem

    Each value is multiplied into the base likelihood.

    Binary Class Posterior

    Multi-Class Posterior

    Diagnostic Test Posterior

    Bayesian Odds

    Odds may be entered as 3:2, 1.5, or 150%.

    Log-Probability Mode

    Use natural logarithms. Multiple log-likelihood values are added before log-sum-exp normalisation.

    How to Use

    Select the calculation mode matching your problem. Enter each prior and evidence likelihood carefully. Press calculate to view normalised posterior probabilities.

    Use percentages, fractions, decimals, or scientific notation. Multi-class and log modes accept any number of classes. Export the completed analysis when needed.

    Review warnings before trusting unusual results. Compare priors against posteriors in the chart. Strong evidence should move probability in sensible directions.

    Example Data

    Example Prior Likelihood Evidence or competing likelihood Expected use
    Spam filtering0.300.850.15Binary classification
    Medical screening0.100.90 sensitivity0.95 specificityDiagnostic test
    Three image classes0.50, 0.30, 0.200.70, 0.40, 0.10Normalised automaticallyMulti-class model
    Odds update0.20LR = 4Posterior odds = prior odds × LREvidence strength

    Calculation History

    Recent calculations are stored locally in this browser.

    Frequently Asked Questions

    What is posterior probability?

    Posterior probability is an updated belief after observing evidence. It combines a prior belief with an evidence likelihood. Bayes theorem performs the update mathematically.

    What is a prior probability?

    A prior describes belief before new evidence appears. It may come from historical data or domain knowledge. Priors should be justified and documented clearly.

    What is likelihood?

    Likelihood measures how probable evidence is under a hypothesis. It is not automatically the hypothesis probability. Confusing both values creates incorrect conclusions.

    Why are multi-class results normalised?

    Raw Bayesian scores rarely sum to one. Normalisation converts scores into comparable class probabilities. The resulting posterior values sum to one.

    Can I enter percentages?

    Yes, values such as 25% are accepted. Fractions like 1/4 also work. Scientific notation remains available for tiny probabilities.

    What is a Bayes factor?

    A Bayes factor compares evidence support between hypotheses. Values above one favour the first hypothesis. Values below one favour its alternative.

    Why use log probabilities?

    Very small probabilities may underflow during multiplication. Log probabilities replace multiplication with addition. Log-sum-exp then produces stable normalised results.

    What causes impossible evidence warnings?

    Impossible evidence has zero total probability under every class. Bayes theorem cannot divide by zero. Review likelihoods and class definitions carefully.

    Does a high posterior prove a class?

    No probability alone proves a hypothesis absolutely. Results depend on priors, likelihoods, and model assumptions. Validate the model using reliable held-out data.

    Related Calculators

    Prior Probability CalculatorGaussian Probability Density CalculatorMaximum Likelihood Estimation CalculatorBayesian Information Criterion CalculatorAkaike Information Criterion Calculator

    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.