Definition
Given a joint distribution of X and Y, the marginal distribution of X gives the distribution of X alone, ignoring Y.
The term “marginal” comes from writing joint distributions in tables with totals in the margins.
Discrete Case
pX(x)=∑yp(x,y)
pY(y)=∑xp(x,y)
Example: Joint Distribution Table
| X\Y | Y=0 | Y=1 | Y=2 | pX(x) |
|---|
| X=0 | 0.10 | 0.05 | 0.05 | 0.20 |
| X=1 | 0.15 | 0.20 | 0.10 | 0.45 |
| X=2 | 0.05 | 0.15 | 0.15 | 0.35 |
| pY(y) | 0.30 | 0.40 | 0.30 | 1.00 |
To find pX(0): sum row X=0: 0.10+0.05+0.05=0.20.
To find pY(1): sum column Y=1: 0.05+0.20+0.15=0.40.
Continuous Case
fX(x)=∫−∞∞f(x,y)dy
fY(y)=∫−∞∞f(x,y)dx
Example
f(x,y)=6xy on 0≤x≤1,0≤y≤x
Find fX(x):
fX(x)=∫0x6xydy=6x⋅2x=3x2,0≤x≤1
Find fY(y):
First, determine the region. For fixed y, x ranges from y2 to 1.
fY(y)=∫y216xydx=6y⋅21−y4=3y(1−y4),0≤y≤1
Why Marginals Matter
Marginals let us analyse one variable while ignoring others:
- Computing P(X∈A): Use the marginal of X
- Finding E[X]: Compute from the marginal
- Testing independence: Compare joint to product of marginals
Marginals lose information about dependence:
- Many different joints can give the same marginals
- Knowing marginals does not determine the joint
Example: Same Marginals, Different Joints
Two joint distributions with identical marginals:
Joint 1 (independent):
| X\Y | Y=0 | Y=1 |
|---|
| X=0 | 0.25 | 0.25 |
| X=1 | 0.25 | 0.25 |
Joint 2 (perfect positive correlation):
| X\Y | Y=0 | Y=1 |
|---|
| X=0 | 0.5 | 0 |
| X=1 | 0 | 0.5 |
Both have X∼Bern(0.5) and Y∼Bern(0.5) as marginals, but completely different dependence structures.
Marginal Expectation
To compute expectations from marginals:
E[X]=∑xx⋅pX(x)or∫xfX(x)dx
Using the joint directly (unnecessary but valid):
E[X]=∑x∑yx⋅p(x,y)
Summary
| Concept | Discrete | Continuous |
|---|
| Marginal of X | ∑yp(x,y) | ∫f(x,y)dy |
| Marginal of Y | ∑xp(x,y) | ∫f(x,y)dx |
| Loss | Joint → marginal loses dependence info | |