What this Posterior Probability Calculator does
The Posterior Probability Calculator estimates how a prior probability changes after considering evidence summarized by a likelihood ratio. It applies Bayes' rule to two numeric inputs: a prior probability and a likelihood ratio. The output, labeled Posterior probability, is a probability on a zero-to-one scale. For example, 0.60 corresponds to 60% when expressed as a percentage.
This tool is for transparent decision analysis. It helps show how a stated belief or base rate responds to evidence, and makes the assumptions visible. It does not discover the prior or measure the evidence for you. Those values must come from an appropriate analysis, reliable data, or a clearly stated judgment. Results are only as informative as the inputs and the model behind them.
The calculator accepts prior probabilities from 0.001 to 0.999 and likelihood ratios from 0.001 to 1000. Enter probability as a fraction, not a percentage. A prior of 20% should be entered as 0.20. A likelihood ratio is unitless and compares how likely the observed evidence is under one hypothesis than under its alternative.
How to use the Posterior Probability Calculator
Start by defining the hypothesis whose probability you want to update, then identify the evidence you are evaluating. Choose a prior probability for that hypothesis before considering this evidence. Next, enter a likelihood ratio that represents how strongly the evidence favors the hypothesis over the alternative. The calculator applies the formula and returns the updated probability.
- Prior probability: enter a value from 0.001 to 0.999. Keep it on the probability scale from zero to one.
- Likelihood ratio: enter a positive ratio from 0.001 to 1000. A value above 1 favors the hypothesis, while a value below 1 favors the alternative.
- Read the result: interpret the output as a probability from zero to one. Multiply by 100 if you want to express it as a percentage.
For a worked example, suppose a decision analyst assigns a prior probability of 0.20 to a hypothesis and evidence has a likelihood ratio of 2. The calculation is 0.20 × 2 ÷ (0.20 × 2 + 1 − 0.20) = 0.40 ÷ 1.20 = 0.3333. The posterior probability is about 0.3333, or 33.33%. Both inputs use the units specified by the calculator: probability as a 0–1 fraction and likelihood ratio as a unitless ratio.
Before relying on the result, write down what the hypothesis and alternative mean, what evidence is included, and where each input came from. If you have several pieces of evidence, do not multiply likelihood ratios automatically unless the relevant conditional independence assumptions hold or the joint evidence has been modeled correctly.
How the Posterior Probability Calculator formula works
The formula is prior_probability × likelihood_ratio ÷ (prior_probability × likelihood_ratio + 1 − prior_probability). In symbols, if the prior probability is p and the likelihood ratio is LR, then the posterior is p × LR divided by p × LR + 1 − p. The term 1 − p is the prior probability of the alternative when the hypothesis and alternative are exhaustive and mutually exclusive.
A likelihood ratio compares the probability of the observed evidence under the hypothesis with its probability under the alternative. A ratio of 1 means the evidence is equally likely under both, so it does not change the prior. A ratio greater than 1 shifts the result toward the hypothesis. A ratio below 1 shifts it away from the hypothesis. The strength of that shift also depends on the prior. The same evidence can produce different posterior probabilities when the starting probabilities differ.
The formula assumes the prior and likelihood ratio refer to the same hypothesis, alternative, and evidence. It also assumes the likelihood ratio is appropriate for the observation and population being assessed. The range limits keep inputs positive and the prior away from exact zero and one, which avoids boundary cases and supports a finite calculation. They do not guarantee that an input is empirically justified.
Use cases for the Posterior Probability Calculator
In decision analysis, posterior probabilities can clarify how evidence changes an uncertain belief before comparing possible actions. For example, a team evaluating a project risk might record an initial probability, assess a new signal, and calculate the revised probability. The result can then be used as one component of a broader decision model alongside possible outcomes, costs, benefits, and decision criteria.
The calculator can also help explain base rates. Evidence may appear compelling, yet a rare hypothesis can remain less likely than expected if the prior probability is low. Conversely, evidence that only modestly favors a hypothesis can lead to a substantial posterior when the prior was already high. Working through the numbers can make those effects easier to discuss in a meeting or sensitivity review.
It is useful for checking scenarios as well. Hold the likelihood ratio fixed and try several defensible priors, or hold the prior fixed and vary the strength of evidence. This reveals how sensitive the conclusion is to assumptions. Record the scenarios rather than presenting only a preferred result, especially when the inputs are uncertain or contested.
Other factors to consider when calculating posterior probability
A posterior probability is not a measure of certainty about whether the model itself is correct. The calculation updates within the chosen framework. If the hypothesis is poorly defined, the alternative omits plausible possibilities, or the evidence was selected in a biased way, the numerical result can give a false sense of precision.
Consider these points when interpreting the output:
- Define the hypothesis and its alternative clearly enough that the likelihood ratio has a meaningful reference.
- Use a prior that is appropriate to the decision context and explain its source.
- Check that the likelihood ratio is calibrated for the evidence, relevant population, and measurement process.
- Avoid treating repeated or related observations as independent evidence without justification.
- Explore a range of plausible inputs when estimates are uncertain, and report that uncertainty with the result.
This simple calculator handles one prior and one likelihood ratio. It does not model multiple hypotheses, dependent observations, parameter uncertainty, or the consequences of taking an action. In high-impact contexts, use a validated model and qualified review. For ordinary planning discussions, treat the output as a conditional estimate that helps structure reasoning, not as a standalone decision rule.
Frequently asked questions
What is a posterior probability?
It is the probability assigned to a hypothesis after updating a prior probability with evidence. Here, the update is represented by a likelihood ratio.
Should I enter a percentage or a decimal?
Enter prior probability as a decimal fraction between 0.001 and 0.999. For example, enter 0.25 for 25%. The likelihood ratio is entered as a unitless ratio.
What does a likelihood ratio of 1 mean?
It means the evidence is equally likely under the hypothesis and alternative. The posterior therefore equals the prior.
Can I combine several likelihood ratios?
Only when the ratios and evidence structure support that calculation. Multiplying ratios requires appropriate conditional independence or a correctly specified joint likelihood. Otherwise, the combined update may be misleading.
Does a higher posterior prove the hypothesis?
No. It is the result implied by the supplied prior and likelihood ratio. It does not verify those inputs or account for model uncertainty, so interpret it in context.