A characterization of the mean, Consider a probability law with finite mean m. Define, for every real number a, h(a) = E[(x - a)2]. Show that h(a) = E[(x - m)2] + (m - a)2. Consequently h(a) is minimized at a = m, and its minimum value is the variance of the probability law.