Skip to content
Part IA Easter Term

Marginal Distributions

Definition

Given a joint distribution of XX and YY, the marginal distribution of XX gives the distribution of XX alone, ignoring YY.

The term “marginal” comes from writing joint distributions in tables with totals in the margins.

Discrete Case

pX(x)=yp(x,y)p_X(x) = \sum_y p(x, y)

pY(y)=xp(x,y)p_Y(y) = \sum_x p(x, y)

Example: Joint Distribution Table

X\YX \backslash YY=0Y = 0Y=1Y = 1Y=2Y = 2pX(x)p_X(x)
X=0X = 00.100.050.050.20
X=1X = 10.150.200.100.45
X=2X = 20.050.150.150.35
pY(y)p_Y(y)0.300.400.301.00

To find pX(0)p_X(0): sum row X=0X = 0: 0.10+0.05+0.05=0.200.10 + 0.05 + 0.05 = 0.20.

To find pY(1)p_Y(1): sum column Y=1Y = 1: 0.05+0.20+0.15=0.400.05 + 0.20 + 0.15 = 0.40.

Continuous Case

fX(x)=f(x,y)dyf_X(x) = \int_{-\infty}^{\infty} f(x, y) \, dy

fY(y)=f(x,y)dxf_Y(y) = \int_{-\infty}^{\infty} f(x, y) \, dx

Example

f(x,y)=6xy on 0x1,0yxf(x, y) = 6xy \text{ on } 0 \leq x \leq 1, 0 \leq y \leq \sqrt{x}

Find fX(x)f_X(x):

fX(x)=0x6xydy=6xx2=3x2,0x1f_X(x) = \int_0^{\sqrt{x}} 6xy \, dy = 6x \cdot \frac{x}{2} = 3x^2, \quad 0 \leq x \leq 1

Find fY(y)f_Y(y):

First, determine the region. For fixed yy, xx ranges from y2y^2 to 1.

fY(y)=y216xydx=6y1y42=3y(1y4),0y1f_Y(y) = \int_{y^2}^1 6xy \, dx = 6y \cdot \frac{1 - y^4}{2} = 3y(1 - y^4), \quad 0 \leq y \leq 1

Why Marginals Matter

Marginals let us analyse one variable while ignoring others:

  1. Computing P(XA)P(X \in A): Use the marginal of XX
  2. Finding E[X]E[X]: Compute from the marginal
  3. Testing independence: Compare joint to product of marginals

Information Loss

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\YX \backslash YY=0Y = 0Y=1Y = 1
X=0X = 00.250.25
X=1X = 10.250.25

Joint 2 (perfect positive correlation):

X\YX \backslash YY=0Y = 0Y=1Y = 1
X=0X = 00.50
X=1X = 100.5

Both have XBern(0.5)X \sim \text{Bern}(0.5) and YBern(0.5)Y \sim \text{Bern}(0.5) as marginals, but completely different dependence structures.

Marginal Expectation

To compute expectations from marginals:

E[X]=xxpX(x)orxfX(x)dxE[X] = \sum_x x \cdot p_X(x) \quad \text{or} \quad \int x f_X(x) dx

Using the joint directly (unnecessary but valid):

E[X]=xyxp(x,y)E[X] = \sum_x \sum_y x \cdot p(x, y)

Summary

ConceptDiscreteContinuous
Marginal of XXyp(x,y)\sum_y p(x,y)f(x,y)dy\int f(x,y) dy
Marginal of YYxp(x,y)\sum_x p(x,y)f(x,y)dx\int f(x,y) dx
LossJoint \to marginal loses dependence info