multivariate distributions
Conditional Distributions
You should know: joint probability distributions, conditional probability
Overview
A conditional distribution describes the probability distribution of one random variable given that another random variable takes a specific value. It is the multivariate generalisation of conditional probability: just as P(A|B) describes the likelihood of event A given event B, the conditional distribution of Y given X = x describes how Y is distributed when we know X has taken the value x. Conditional distributions are the building blocks of Bayesian inference, hierarchical models, and the theory of regression.
Intuition
Suppose X and Y are the height and weight of a randomly chosen adult. The marginal distribution of weight tells you how weight varies across everyone. The conditional distribution of weight given height = 180 cm tells you how weight varies specifically among people who are 180 cm tall — a different, typically narrower, distribution. Conditioning is like zooming in: you slice through the joint distribution along one dimension and renormalise to obtain a valid probability distribution in the remaining dimension.
Formal Definition
For jointly distributed random variables X and Y with joint density (or PMF) f_{X,Y}(x,y) and marginal f_X(x) > 0:
Worked Examples
- 1
Find the marginal density of X by integrating out y.
- 2
Compute the conditional density.
✓ Answer
f_{Y|X}(y|x) = 2y/(1−x)² for 0 < y < 1−x (a scaled Beta-type density).
Practice Problems
X and Y have joint density f(x,y) = 2 for 0 < x < y < 1. Find the marginal density of X and the conditional density of Y given X = x.
Using the law of total expectation: if E[Y|X=0] = 3 and E[Y|X=1] = 7, and P(X=0) = 0.4, P(X=1) = 0.6, find E[Y].
Quiz
Summary
- The conditional density f_{Y|X}(y|x) = f_{X,Y}(x,y)/f_X(x) gives the distribution of Y for a fixed value of X.
- For independent variables, conditioning has no effect: f_{Y|X}(y|x) = f_Y(y).
- The conditional expectation E[Y|X=x] is a function of x; E[Y] = E_X[E[Y|X]] by the law of total expectation.
Mathematics