What Distribution Maximizes Variance for a Fixed Mean and Support?
At a glance
- 1. Set the bounds
Write the allowed range as [a, b] and check that the fixed mean μ lies in that interval.
- 2. Use the endpoint inequality
For every value in [a, b], (X − a)(b − X) is nonnegative.
- 3. Find the variance bound
Take expectations, then subtract μ² to obtain Var(X) ≤ (μ − a)(b − μ).
- 4. Put mass at endpoints
The bound is attained by placing probabilities (b − μ)/(b − a) at a and (μ − a)/(b − a) at b.
If you know a random variable’s mean and that its values stay within a fixed interval, you can bound how spread out it can be. The greatest possible variance comes from concentrating the distribution at the interval’s endpoints, with probabilities chosen to preserve the mean.
Let take values in , where , and let its mean be . The maximum variance is
Equality is possible: assign probability to and probability to . This result is known as the Bhatia–Davis inequality.
Deriving the bound
Because lies between and , both and are nonnegative. Their product must therefore be nonnegative:
Expand and take expectations. Since ,
Use to get
This also shows why the mean must satisfy : an average of values in the interval cannot lie outside it.
The distribution that reaches the maximum
Consider a two-point random variable that takes only the values and . If , then the mean condition requires
Solving gives
For this distribution, is always at an endpoint, so with probability 1. That makes the inequality used in the derivation an equality, and its variance reaches the bound.
For an interior mean, this is the only way to attain equality: must be at one of the two endpoints with probability 1. If or , the mean constraint forces to equal that endpoint almost surely, so the maximum variance is zero.
Worked example
Suppose is restricted to and has mean . The largest possible variance is
The maximizing distribution is
Check the calculation directly: , and . Therefore
A distribution that puts some probability in the interior of the interval has strictly smaller variance, provided it still has the same mean and is not concentrated entirely at the endpoints.
Special case: support on [0, 1]
If and , then
The bound is attained by a Bernoulli random variable: and . For example, a mean of allows a maximum variance of .
Common mistakes and support caveats
- Using the wrong range: The bound applies to a known interval containing every possible value, not just to an interval that contains most observations. If the variable is unbounded, this argument does not give a finite maximum.
- Confusing standard deviation with variance: The result bounds variance. The corresponding maximum standard deviation is .
- Ignoring the meaning of “support”: In probability, the support can mean the set of values with positive probability, or the topological support of a distribution. The maximizing two-point distribution has support , not the whole interval . If you require positive probability throughout the interval, the bound generally cannot be attained, though it can often be approached by putting nearly all probability near the endpoints.
- Using an open interval: If values must lie strictly between and , endpoint probabilities are not allowed. For an interior mean, the same expression is then a supremum rather than an attained maximum: distributions can approach the endpoint construction, but cannot equal it.
The formula assumes the stated range is (or that all values are contained in it). If a problem specifies a different allowed set, the endpoint construction may not be available; the maximum can depend on that set’s actual permitted values.
References
- A Better Bound on the Variance, Rajendra Bhatia and Chandler Davis, The American Mathematical Monthly, 107(4), 353–357 (2000)
- Probability and Measure, Patrick Billingsley
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.