stats

Bayes' Theorem

Posterior from prior and likelihoods — expanded formula, natural frequency tree, and real-world presets.

Inputs
Results
P(B) marginal
P(A | B) posterior
P(¬A | B) posterior complement
Likelihood ratio P(B|A)/P(B|¬A)
Expanded formula
P(B) = P(B|A)·P(A) + P(B|¬A)·P(¬A)     = ?P(A|B) = P(B|A)·P(A) / P(B)       = ?
P(A|B) = P(B|A)·P(A) / [P(B|A)·P(A) + P(B|¬A)·P(¬A)]