Continuous Bayes Rule¶
Theorem¶
For continuous random variables and and an observed value with ,
Equalities between conditional densities may fail on a set of zero length, for example at finitely many points.
The Continuous Law of Total Probability computes the normalizing marginal density by averaging the likelihood against the conditioning variable’s density. That normalizer makes the reversed conditional density integrate to one.
Interpretation¶
Bayes’ rule for densities turns a model of how the observation depends on the unknown into a statement about the unknown. The likelihood times the prior density , normalized by the marginal density of the observation, gives the posterior density .
The illustrated joint density equals on . For the observation , the prior density and the likelihood for have the constant product ; dividing by gives the flat red posterior of height . The posterior is uniform on , in line with the first Example.
Read the formula with fixed. The denominator does not depend on : it is only the constant that makes the posterior integrate to one, computed by the continuous law of total probability, so one may find the shape first and normalize at the end. The condition replaces the discrete requirement that the observed event has positive probability: itself has probability zero, so a ratio of densities replaces a ratio of probabilities.
It is the discrete rule from Probability Theory with probabilities replaced by densities; the mixed discrete and continuous versions are on Bayes and Total Probability: Four Forms.
The posterior is a density in , but the likelihood , read as a function of , need not be one: in the figure, , not .
Key Results¶
- The normalizing density is .
- For fixed , is proportional in to likelihood times prior.
Examples¶
- For density on , on .
- For independent , likelihood and marginal cancel, so the posterior density of remains on .
Prerequisites¶
Related Concepts¶
Sources¶
- Nicky van Foreest · Probability Distributions · Week 2
Aliases: Bayes' rule for densities, Bayes' theorem for densities Symbols: infinity, integral
Last updated: 20 October 2026 03:02
Continuous Bayes RuleConditional Probability Density FunctionContinuous Law of Total ProbabilityBayes and Total Probability: Four FormsBayes Rule