Skip to content

Joint Distributions and Independence

3.1 Joint Distribution Functions

Definition. The joint CDF of (X,Y)(X, Y) is FX,Y(x,y)=P(Xx,Yy)F_{X,Y}(x, y) = P(X \leq x, Y \leq y).

Definition. The joint PDF (for continuous random variables) is fX,Y(x,y)0f_{X,Y}(x, y) \geq 0 such that

FX,Y(x,y)=xyfX,Y(u,v)dudvF_{X,Y}(x, y) = \int_{-\infty}^{x}\int_{-\infty}^{y} f_{X,Y}(u, v)\, du\, dv

Definition. The marginal PDF of XX is fX(x)=fX,Y(x,y)dyf_X(x) = \int_{-\infty}^{\infty} f_{X,Y}(x, y)\, dy.

3.2 Covariance and Correlation

Definition. The covariance of XX and YY is

Cov(X,Y)=E[(XE[X])(YE[Y])]=E[XY]E[X]E[Y]\mathrm{Cov}(X, Y) = E[(X - E[X])(Y - E[Y])] = E[XY] - E[X]E[Y]

Proposition 2.6. Cov(X,Y)=Cov(Y,X)\mathrm{Cov}(X, Y) = \mathrm{Cov}(Y, X) and Cov(aX+b,cY+d)=acCov(X,Y)\mathrm{Cov}(aX + b, cY + d) = ac\,\mathrm{Cov}(X, Y).

Definition. The correlation coefficient is

ρ(X,Y)=Cov(X,Y)Var(X)Var(Y)\rho(X, Y) = \frac{\mathrm{Cov}(X, Y)}{\sqrt{\mathrm{Var}(X)\,\mathrm{Var}(Y)}}

Theorem 2.7 (Cauchy—Schwarz for Random Variables). ρ(X,Y)1|\rho(X, Y)| \leq 1With equality if and only if Y=aX+bY = aX + b almost surely for some a,ba, b.

3.3 Independence of Random Variables

Definition. XX and YY are independent if FX,Y(x,y)=FX(x)FY(y)F_{X,Y}(x, y) = F_X(x)\, F_Y(y) for all x,yx, y.

For continuous random variables, this is equivalent to fX,Y(x,y)=fX(x)fY(y)f_{X,Y}(x, y) = f_X(x)\, f_Y(y).

Proposition 2.8. If XX and YY are independent, then Cov(X,Y)=0\mathrm{Cov}(X, Y) = 0. The converse is false.

Worked Example: Uncorrelated but Dependent

Solution. Let XN(0,1)X \sim N(0, 1) and Y=X2Y = X^2. Then Cov(X,Y)=E[X3]E[X]E[X2]=001=0\mathrm{Cov}(X, Y) = E[X^3] - E[X]E[X^2] = 0 - 0 \cdot 1 = 0 (since the third moment of a standard normal is 0).

But YY is completely determined by XXSo they are not independent. \blacksquare