Login
📚 Statistical Inference for Everyone
Chapters ▾

6.9 Marginalization

In Section 1.5 we introduced the concept of marginalization, and in Section 2.2 we performed a discrete example of this. In that section it was seen as simply a consequence of the sum and product rules. It was a way of taking a probability that depended on several factors, and eliminating all but the single factor we're interested in. If we have a continuous distribution, this process involves calculus and we will not cover it in detail, but it is the same process. In the case of the distribution above, we have a distribution over a single variable, like Beta(θ|h,t). Imagine that we have a distribution that depends on two parameters,

M y D i s t ( θ , ξ )

which specifies the probability of an event given each combination of the parameters, θ and ξ. We'd have to do a three-dimensional plot to visualize this. Many times, however, we want just the probability of one of the single parameters. In those cases we will write

P ( θ ) [ M y D i s t ( θ , ξ ) ] marginalize over  ξ

where we are “summing” over all the values of the other parameters, leaving the details to the mathematicians, and simply using the result.

Likewise we can marginalize the parameter θ to get the distribution of the other variable.

P ( ξ ) [ M y D i s t ( θ , ξ ) ] marginalize over  θ

This becomes important in Chapter 7 and Chapter 9.

Adapted from Statistical Inference for Everyone, by Brian Blais (Bryant University), licensed under CC BY-SA 4.0 (dual-licensed under the GNU FDL 1.2 or later; this adaptation uses the CC BY-SA grant). Changes were made; this adaptation is distributed under the same license. License: CC-BY-SA-4.0.