Free preview

Joint, Marginal, and Conditional Distributions

A joint distribution describes several random variables together: P(X=x,Y=y)P(X=x, Y=y) for discrete variables, or a density fX,Y(x,y)f_{X,Y}(x,y) for continuous ones.

It contains everything there is to know about the variables and their relationship. The two operations below are how you extract what you need from it.

Marginalising: ignoring a variable

Sum or integrate out what you do not care about:

Marginalising
fX(x)=fX,Y(x,y)dyf_X(x) = \int f_{X,Y}(x,y)\,dy

Integrate out what you do not care about and the joint collapses to the distribution of what you do.

This gives the distribution of XX alone, averaging over all possible values of YY.

Conditioning: fixing a variable

fXY(xy)=fX,Y(x,y)fY(y)f_{X\mid Y}(x \mid y) = \frac{f_{X,Y}(x,y)}{f_Y(y)}

The distribution of XX given that YY took a particular value. Note this is a genuine distribution in xx, which is what the denominator normalises it to be.

Key takeaway

Marginalising averages over a variable; conditioning fixes it. These give different answers, and confusing them is the multivariate version of confusing P(AB)P(A \mid B) with P(A)P(A).

Why the distinction matters in trading

The unconditional distribution of a stock's return is one thing. Its distribution given that the index fell 3% is another, and it is the one that matters for risk.

Portfolio risk is a conditional question throughout: what does my book do given a market crash, given volatility doubling, given a specific correlation regime. Marginal distributions of individual positions cannot answer any of those.

Independence

XX and YY are independent exactly when the joint factorises:

fX,Y(x,y)=fX(x)fY(y)f_{X,Y}(x,y) = f_X(x)f_Y(y)

equivalently when conditioning changes nothing: fXY=fXf_{X\mid Y} = f_X.

This is a much stronger condition than zero correlation, which only rules out linear dependence. Independence requires the entire joint structure to factor, and it is why "uncorrelated" and "independent" are not synonyms.

Copulas, in one paragraph

A joint distribution can be split into its marginals and a copula describing the dependence structure alone. This separation is useful because the two parts can be modelled independently: fat-tailed marginals with a dependence structure chosen to capture tail behaviour.

Copulas became notorious after 2008, when the Gaussian copula was widely used to price mortgage portfolios. The failure was not the technique but the choice: the Gaussian copula assigns almost no probability to many defaults occurring together, which is precisely the scenario that occurred.

Tip

When someone models dependence, ask what happens in the joint tail. Many models are calibrated on typical co-movement and are silent about the simultaneous extreme, which is the only case a risk manager cares about.

Test your knowledge

Two continuous random variables have joint density \( f_{X,Y}(x,y) = 4xy \) on the unit square \( 0 \leq x \leq 1 \), \( 0 \leq y \leq 1 \), and zero elsewhere. What is the marginal density \( f_X(0.5) \)?
Why is independence a substantially stronger condition than zero correlation?

Keep reading Advanced Topics in Probability and Statistics

35 lessons in this course, and every other premium course, on one subscription.

  • Every lesson in every course, with the worked examples and interactive simulators
  • Graded questions on every lesson, with explanations for the wrong answers as well as the right one
  • The trainers, timed assessments and brainteaser library that go with them