Conditional Variance for Discrete Random Variables

Compute the conditional variance Var(XY=y)\text{Var}(X \mid Y=y) of a discrete random variable XX given the event Y=yY=y, using both the definitional formula and the computational identity Var(XY=y)=E[X2Y=y](E[XY=y])2\text{Var}(X \mid Y=y) = E[X^2 \mid Y=y] - (E[X \mid Y=y])^2. Apply these to conditional pmfs and to joint pmf tables.

Step 1 of 119%

Tutorial

Introduction

Let XX and YY be discrete random variables. The conditional variance of XX given the event Y=yY=y is the variance of XX computed using the conditional distribution P(X=xY=y):P(X=x \mid Y=y){:}

Var(XY=y)=x(xE[XY=y])2P(X=xY=y).\text{Var}(X \mid Y=y) = \sum_x \big(x - E[X \mid Y=y]\big)^2 \cdot P(X=x \mid Y=y).

It measures the spread of XX around its conditional mean E[XY=y]E[X \mid Y=y], once we know that Y=yY=y.

To illustrate, let XX be the value shown on a fair six-sided die, and condition on the event that the value is even. The conditional pmf is

P(X=2even)=P(X=4even)=P(X=6even)=13,P(X=2 \mid \text{even}) = P(X=4 \mid \text{even}) = P(X=6 \mid \text{even}) = \dfrac{1}{3},

so the conditional mean is

E[Xeven]=2+4+63=4.E[X \mid \text{even}] = \dfrac{2+4+6}{3} = 4.

Applying the definition,

Var(Xeven)=(24)2+(44)2+(64)23=4+0+43=83.\text{Var}(X \mid \text{even}) = \dfrac{(2-4)^2 + (4-4)^2 + (6-4)^2}{3} = \dfrac{4+0+4}{3} = \dfrac{8}{3}.
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle