Largest Possible Variance on a Bounded Interval

Reported in interviews at Squarepoint Capital

Problem statement

A random variable $X$ is known only to take values in the interval $[a, b]$; nothing else about its distribution is given.

  1. Prove that $\operatorname{Var}(X) \le \dfrac{(b-a)^2}{4}$.
  1. Describe the distribution(s) that attain the bound.
  1. For $[a, b] = [0, 10]$, what is the largest variance $X$ can have?
Show hint

What nonnegative expression can you build from the facts that $X$ is at least $a$ and at most $b$?

Relevant roles: Data Scientist, Applied Scientist and ML Engineer.

Related free problems