Marginal distribution
To find the distribution of X alone, integrate over all possible values of Y. For discrete variables, replace the integral with a sum.
Sum over what you do not want to keep.
Breaking the joint distribution into simpler pieces
When two random variables are described together, we can either focus on one variable alone or ask what happens when information about the other variable is known.
Marginalization removes information about another variable. Conditioning uses information about it.
▶Presented by Charlotte Moser
Watch on YouTube ↗To find the distribution of X alone, integrate over all possible values of Y. For discrete variables, replace the integral with a sum.
Sum over what you do not want to keep.
If we know X = x, keep the compatible slice of the joint distribution and normalize it.
Keep the slice consistent with what you know, then renormalize it.
A joint distribution tells us how X and Y vary together. What if we only care about one of them?
Joint density p(x,y). Collapse vertically across all Y values.
Press Marginalize to collapse the joint distribution.
Marginalization asks: what does one variable look like when we do not specify the other?
A marginal distribution averages over the other variable. A conditional distribution asks a different question: what changes once something is known?
Imagine observations collected over 100 days. Let X be Weather, Sunny (S) or Rainy (R), and Y be Mood, Happy (H) or Sad (D).
Each central cell describes the probability of a pair of outcomes.
| Happy | Sad | Total | |
|---|---|---|---|
| Sunny | 0.40 | 0.10 | — |
| Rainy | 0.20 | 0.30 | — |
| Total | — | — | — |
A conditional distribution is a slice of the joint distribution, renormalized to sum to one.
What is the distribution of mood overall?
Happy 60% · Sad 40%What is the distribution of mood among sunny days?
Happy 80% · Sad 20%The marginal distribution averages over weather. The conditional distribution uses information about weather.
A joint distribution contains multiple views of the same probabilistic system. Marginalization isolates one variable by summing or integrating over the others. Conditioning updates the distribution using information that is known.