Skip to content

Bayes' Theorem Calculator

Math
0.0(0)

Calculates conditional probability using Bayes' Theorem, updating probabilities based on new evidence.

How To Use

How to use this calculator

Start with your values, or try a preset.

Step 1

Enter Prior Probability of Event A (P(A)), Prior Probability of Not Event A (P(¬A)), Likelihood of Event B Given A (P(B|A)), and Likelihood of Event B Given Not A (P(B|¬A)) in the units shown.

Step 2

Read Probability of Event B (P(B)) and Posterior Probability of A given B (P(A|B)) in the results panel. Results update as you change the inputs.

Step 3

Choose a preset to load an example, then adjust the values for your situation.

Worked Examples

Example calculations

See the inputs and their calculated results.

Example 1

Prior Probability of Event A (P(A)): 0.1; Prior Probability of Not Event A (P(¬A)): 0.9; Likelihood of Event B Given A (P(B|A)): 0.8; Likelihood of Event B Given Not A (P(B|¬A)): 0.1

Probability of Event B (P(B)): 0.17; Posterior Probability of A given B (P(A|B)): 0.4705882353

Example 2

Prior Probability of Event A (P(A)): 0.2; Prior Probability of Not Event A (P(¬A)): 0.8; Likelihood of Event B Given A (P(B|A)): 0.6; Likelihood of Event B Given Not A (P(B|¬A)): 0.3

Probability of Event B (P(B)): 0.36; Posterior Probability of A given B (P(A|B)): 0.3333333333

Example 3

Prior Probability of Event A (P(A)): 0.5; Prior Probability of Not Event A (P(¬A)): 0.5; Likelihood of Event B Given A (P(B|A)): 0.9; Likelihood of Event B Given Not A (P(B|¬A)): 0.1

Probability of Event B (P(B)): 0.5; Posterior Probability of A given B (P(A|B)): 0.9

Explore the topic

Explore More Math & Statistics Calculators

Use calculators for algebra, geometry, trigonometry, probability, statistics, averages, z-scores, tests, and graphing tasks.

Explore tools
People Also Calculate

Related Calculators

Continue with another tool on a related topic.