UniMaths
Free chapterTry everything here: cards, proofs and practice. Sign up free to save your progress and unlock all 6 chapters.Sign up free
PROB2 · 1

Joint distributions

11 concepts · 24 questions

Joint densities, transformations of several random variables, conditional distributions and conditional expectation.

Overview 1The plan of this section

Several random variables at once: their joint law, how it transforms, and how one variable informs another.

  1. Joint densities and marginals (Def. 1.1); independence via factorisation (Prop. 1.2).
  2. Transformations of random vectors by the Jacobian (Thm 1.3), e.g. sums by convolution (Cor. 1.4) and polar coordinates (Example 1.5).
  3. Conditional densities (Def. 1.6) and conditional expectation E[X∣Y]\mathbb{E}[X\mid Y] (Def. 1.7) with the tower property (Thm 1.8) and the law of total variance (Prop. 1.9).

Joint densities → Jacobian transformations → conditional densities → E[X∣Y]\mathbb E[X\mid Y], tower property, total variance.

Definition 1.1Joint densities and marginals

Random variables X,YX, Y are jointly continuous with joint density fX,Y≥0f_{X,Y}\ge0 if P((X,Y)∈A)=∬AfX,Y(x,y) dx dy\mathbb{P}((X, Y)\in A) = \iint_Af_{X,Y}(x, y)\,\mathrm{d}x\,\mathrm{d}y for all (reasonable) A⊆R2A\subseteq\mathbb{R}^2. The marginal densities are fX(x)=∫fX,Y(x,y) dyf_X(x) = \int f_{X,Y}(x, y)\,\mathrm{d}y and fY(y)=∫fX,Y(x,y) dxf_Y(y) = \int f_{X,Y}(x, y)\,\mathrm{d}x, and E[g(X,Y)]=∬g fX,Y\mathbb{E}[g(X, Y)] = \iint g\,f_{X,Y}.

Probabilities = double integrals of fX,Yf_{X,Y}; marginals integrate out the other variable.

Proposition 1.2Independence and factorisation

Jointly continuous X,YX, Y are independent iff fX,Y(x,y)=fX(x)fY(y)f_{X,Y}(x, y) = f_X(x)f_Y(y) (almost everywhere), iff fX,Y(x,y)=g(x)h(y)f_{X,Y}(x, y) = g(x)h(y) for some functions g,hg, h on a product region. A density supported on a non-rectangular region cannot factorise.

Independent ⇔ joint density factorises (on a product region). Triangle support ⇒ dependent.

Proof

Theorem 1.3Transformation of random vectors

Let (X,Y)(X, Y) have density fX,Yf_{X,Y} on an open set DD, and T:D→ET: D\to E a C1C^1 bijection with C1C^1 inverse (x,y)=(x(u,v),y(u,v))(x, y) = (x(u, v), y(u, v)). Then (U,V)=T(X,Y)(U, V) = T(X, Y) has density

fU,V(u,v)=fX,Y(x(u,v),y(u,v)) ∣∂(x,y)∂(u,v)∣on E.f_{U,V}(u, v) = f_{X,Y}(x(u, v), y(u, v))\,\Big|\frac{\partial(x, y)}{\partial(u, v)}\Big|\quad\text{on }E.

fU,V=fX,Y(inverse)×∣Jacobian of the inverse∣f_{U,V} = f_{X,Y}(\text{inverse})\times|\text{Jacobian of the inverse}|; don't forget the new support.

Proof

Corollary 1.4Density of a sum (convolution)

If X,YX, Y are independent with densities fX,fYf_X, f_Y, then Z=X+YZ = X + Y has density fZ(z)=∫−∞∞fX(x)fY(z−x) dxf_Z(z) = \int_{-\infty}^\infty f_X(x)f_Y(z - x)\,\mathrm{d}x.

fX+Y=fX∗fYf_{X+Y} = f_X * f_Y for independent X,YX, Y.

Proof

Example 1.5Polar coordinates for two normals

Let X,YX, Y be i.i.d. N(0,1)N(0, 1) and X=Rcos⁡ΘX = R\cos\Theta, Y=Rsin⁡ΘY = R\sin\Theta. Then fR,Θ(r,θ)=12πe−r2/2⋅rf_{R,\Theta}(r, \theta) = \frac1{2\pi}e^{-r^2/2}\cdot r on r>0r > 0, 0≤θ<2π0\le\theta < 2\pi: RR and Θ\Theta are independent, Θ∼U(0,2π)\Theta\sim U(0, 2\pi) and R2∼Exp⁡(12)R^2\sim\operatorname{Exp}(\frac12). Reversing this gives the Box–Muller method: from independent uniforms U1,U2U_1, U_2, −2ln⁡U1(cos⁡2πU2,sin⁡2πU2)\sqrt{-2\ln U_1}(\cos2\pi U_2, \sin2\pi U_2) are i.i.d. standard normals.

Two independent normals: uniform angle, R2∼Exp⁡(1/2)R^2\sim\operatorname{Exp}(1/2) — Box–Muller simulation.

Definition 1.6Conditional densities

For jointly continuous X,YX, Y and yy with fY(y)>0f_Y(y) > 0, the conditional density of XX given Y=yY = y is fX∣Y(x∣y)=fX,Y(x,y)fY(y)f_{X\mid Y}(x\mid y) = \frac{f_{X,Y}(x, y)}{f_Y(y)}, a density in xx, and E[g(X)∣Y=y]=∫g(x)fX∣Y(x∣y) dx\mathbb{E}[g(X)\mid Y = y] = \int g(x)f_{X\mid Y}(x\mid y)\,\mathrm{d}x.

fX∣Y=fX,Y/fYf_{X\mid Y} = f_{X,Y}/f_Y: slice the joint density at Y=yY = y and renormalise.

Definition 1.7Conditional expectation as a random variable

Let ψ(y)=E[X∣Y=y]\psi(y) = \mathbb{E}[X\mid Y = y]. The conditional expectation E[X∣Y]\mathbb{E}[X\mid Y] is the random variable ψ(Y)\psi(Y). It satisfies E[h(Y)X∣Y]=h(Y)E[X∣Y]\mathbb{E}[h(Y)X\mid Y] = h(Y)\mathbb{E}[X\mid Y] ("taking out what is known"), and E[X∣Y]=E[X]\mathbb{E}[X\mid Y] = \mathbb{E}[X] if X,YX, Y are independent.

E[X∣Y]=ψ(Y)\mathbb E[X\mid Y] = \psi(Y) with ψ(y)=E[X∣Y=y]\psi(y) = \mathbb E[X\mid Y = y] — a function of YY, hence random.

Theorem 1.8The tower property

E[E[X∣Y]]=E[X]\mathbb{E}\big[\mathbb{E}[X\mid Y]\big] = \mathbb{E}[X] (when E∣X∣<∞\mathbb{E}|X| < \infty). More generally E[h(Y)E[X∣Y]]=E[h(Y)X]\mathbb{E}\big[h(Y)\mathbb{E}[X\mid Y]\big] = \mathbb{E}[h(Y)X] for bounded hh.

E[E[X∣Y]]=E[X]\mathbb E[\mathbb E[X\mid Y]] = \mathbb E[X]: average the conditional averages.

Proof

Proposition 1.9Law of total variance

Var⁡(X)=E[Var⁡(X∣Y)]+Var⁡(E[X∣Y])\operatorname{Var}(X) = \mathbb{E}\big[\operatorname{Var}(X\mid Y)\big] + \operatorname{Var}\big(\mathbb{E}[X\mid Y]\big), where Var⁡(X∣Y)=E[X2∣Y]−E[X∣Y]2\operatorname{Var}(X\mid Y) = \mathbb{E}[X^2\mid Y] - \mathbb{E}[X\mid Y]^2.

Var = mean of conditional variance + variance of conditional mean.

Proof

Check 1.10Check: transformation and conditioning problems

  • Draw the support; it decides limits of integration and independence.
  • Transformations: invert, compute the Jacobian of the inverse, find the new support, check the density integrates to 11.
  • Conditioning: E[X∣Y]\mathbb{E}[X\mid Y] is a function of YY; average it with the tower property.

Support picture; inverse Jacobian; new support; integrate to 1; tower property.