Primary formula
P(A|B)=P(B|A)P(A)/P(B), where P(B) can be entered or expanded across A and not A.
Statistics calculator
Update a prior probability after evidence and inspect the numerator, evidence denominator and posterior.
Update a prior probability after evidence and inspect the numerator, evidence denominator and posterior.
P(A|B)=P(B|A)P(A)/P(B), where P(B) can be entered or expanded across A and not A.
All probabilities refer to compatible events. The evidence denominator includes relevant branches. Diagnostic mode is educational and not a medical diagnosis.
Statistics calculations use Decimal.js for deterministic arithmetic; displayed values are rounded only after the selected method is evaluated.
Finite numeric observations and method-specific inputs are validated locally.
The selected Statistics method runs in a pure TypeScript engine.
The result includes substitutions, ordered data, supporting measures and method warnings.
A tool-specific dataset visual appears only after a valid calculation.
Use this Statistics page to apply Bayes theorem without hiding base rates or likelihood assumptions.
Bayes Theorem Calculator processes the entered values locally and exposes the selected convention, calculation steps and related values.
Use this Statistics page to apply Bayes theorem without hiding base rates or likelihood assumptions.
Choose the mode that matches the data available and the question being answered before entering values.
P(A|B)=P(B|A)P(A)/P(B), where P(B) can be entered or expanded across A and not A.
The calculation is deterministic, but interpretation depends on whether the selected model and entered data fit the real situation.
Use the default example inputs to reproduce the primary worked example. The result breakdown is produced by the same pure TypeScript engine used by the page.
The following examples show how data, event structure, count or method changes the result.
Bayes theorem reverses a conditional direction by combining a prior with evidence likelihoods.
The denominator normalizes all routes that can produce the observed evidence, which is why base rates can materially affect the posterior.
The dynamic visual is a prior and complement probability tree normalized into a posterior. It appears only after a valid calculation and uses the current result.
Visual proportions are normalized for readability and are explanatory rather than a substitute for a full statistical plot.
Check dataset parsing, method choice and denominator before using a result.
Statistical conventions and model assumptions can change a result or its interpretation.
This calculator provides educational statistics calculations and does not replace statistical consulting, instructor guidance or professional analysis.
Input values are processed in the browser calculator session and are not sent to an external statistics service.
It returns the posterior probability after normalizing evidence across the entered branches.
a prior, likelihood and either evidence, a complementary likelihood, or sensitivity and specificity
P(A|B)=P(B|A)P(A)/P(B)
It returns the posterior probability after normalizing evidence across the entered branches. Interpret it only under the assumptions stated on the page.
A posterior is only as credible as its prior, likelihood model and evidence definition; diagnostic mode is educational only.
Select the mode that matches the question, keep units or probabilities consistent and do not treat a model output as stronger evidence than the inputs support.
The tools answer related but different questions. The Bayes Theorem Calculator follows P(A|B)=P(B|A)P(A)/P(B), while the Probability Calculator reports its own named quantity or model.
Yes where the selected model permits them. Whole-number count fields reject decimals, while measurements, probabilities and dataset values accept finite decimals.
No. It performs a deterministic calculation; study design, data quality and subject-matter interpretation remain separate.
The visual uses the current inputs and result to show the model structure, selected region or interval. It appears only after a valid calculation.
Different conventions, critical values, rounding rules or event assumptions can change results. NexaCalc labels the selected method and rounds only for display.
A posterior is only as credible as its prior, likelihood model and evidence definition; diagnostic mode is educational only.
Statistics methods and references reviewed on August 6, 2026.
This calculator provides mathematical results from the values, conventions and methods you enter. Verify important academic, engineering or professional work independently.