Problem 14.19 Easy Free

Largest Variance on an Interval

A random variable XX takes values only in [−1,1][-1,1]. Find the largest possible value of Var⁡(X)\operatorname{Var}(X).

Work it out, then compare with the answer.

SolutionShow the worked solution

Since ∣X∣≤1|X|\le 1, we have X2≤1X^2\le 1 and therefore

Var⁡(X)=E[X2]−(E[X])2≤E[X2]≤1.\operatorname{Var}(X)=\mathbb{E}[X^2]-(\mathbb{E}[X])^2\le \mathbb{E}[X^2]\le 1 .

The bound is attained. Take P(X=1)=P(X=−1)=12\mathbb{P}(X=1)=\mathbb{P}(X=-1)=\tfrac12. Then E[X]=0\mathbb{E}[X]=0 and X2=1X^2=1, so Var⁡(X)=1\operatorname{Var}(X)=1.

The bound is attained only by this distribution. Equality needs E[X]=0\mathbb{E}[X]=0 and E[X2]=1\mathbb{E}[X^2]=1. Since 1−X2≥01-X^2\ge 0 and has mean 00, ∣X∣=1|X|=1 almost surely. Then E[X]=0\mathbb{E}[X]=0 forces equal mass at ±1\pm1.

max⁡Var⁡(X)=1\boxed{\max \operatorname{Var}(X)=1}

Generalisation. If X∈[a,b]X\in[a,b], then

Var⁡(X)≤E[(X−c)2]≤(b−a2)2,c=a+b2.\operatorname{Var}(X)\le \mathbb{E}\big[(X-c)^2\big]\le \Big(\tfrac{b-a}{2}\Big)^2, \qquad c=\tfrac{a+b}{2}.

This is Popoviciu’s inequality. Equality holds for mass 12\tfrac12 at each endpoint.