2.5 Variance and Standard Deviation
Key Terms
- Variability(變異性)
The amount of spread in a probability distribution.
- Deviation(離差)
The difference between a value and the mean.
- Variance(變異數)
The probability-weighted average squared deviation from the mean.
- Standard deviation(標準差)
The positive square root of the variance.
- Spread(離散程度)
How far values tend to vary around the mean.
2.5.2 Learning Outcomes
After completing this section, students should be able to:
explain why the mean alone does not fully describe a probability distribution;
interpret variance as spread around the mean;
calculate variance and standard deviation for a discrete random variable;
calculate variance and standard deviation for a simple continuous random variable;
explain why deviations are squared;
explain why two distributions can have the same mean but different spread;
use the computational formula \(E(X^2)-[E(X)]^2\).
2.5.3 Center Does Not Describe Spread
The mean describes where a probability distribution balances, but it does not describe how widely probability is spread around that balance point.
Consider two discrete random variables with the same mean \(\mu=5\). For \(X\),
For \(Y\),
Both distributions balance at 5, but \(X\) places probability much farther from the mean.
The loading analogy from the previous section can therefore be extended:
mean -> balance point
variance -> how far the probability loading is spread around the balance point.
For these two distributions,
The mean is the same, but the variance is not.
2.5.4 Deviations from the Mean
For a value \(x\), its deviation from the mean is
A positive deviation lies above the mean and a negative deviation lies below the mean.
If deviations were simply averaged, positive and negative values could cancel. Variance avoids this cancellation by squaring each deviation.
The squared quantity
is always nonnegative. It also gives greater influence to values that are far from the mean.
2.5.5 Variance of a Discrete Random Variable
For a discrete random variable with PMF \(p(x)\), variance is
Note
Discrete Variance
The calculation is a probability-weighted average of squared deviations. Values with larger probability contribute more, and values farther from the mean contribute more because their deviations are squared.
2.5.6 Example 1: Uncertain Revenue
Suppose a product design has revenue \(X\), measured in millions of dollars, with
Its expected revenue is
The variance is
Because revenue is measured in millions of dollars, variance is measured in squared millions of dollars.
2.5.7 Standard Deviation
The standard deviation is the positive square root of variance:
For the revenue example,
Unlike variance, standard deviation is expressed in the same units as the random variable. It is therefore often easier to interpret as a measure of spread.
2.5.8 Variance of a Continuous Random Variable
The same idea applies to a continuous distribution. The summation is replaced by integration.
Note
Continuous Variance
For a continuous random variable with PDF \(f(x)\),
A narrow density places most probability near the mean and therefore tends to have a smaller standard deviation. A wider density places more probability farther from the mean.
The two curves in the figure have the same mean. Their different widths show that equal means do not imply equal standard deviations.
2.5.9 Example 2: Uniform Waiting Time
Continue the waiting-time example from the previous section. Suppose
and \(f(x)=0\) otherwise.
The mean is
The variance is
Therefore,
The variance has units of minutes squared, while the standard deviation is again measured in minutes.
2.5.10 Computational Formula
An equivalent and often more convenient formula is
Note
Variance Shortcut
For a discrete random variable,
For a continuous random variable,
The direct formula emphasizes the meaning of variance as squared distance from the mean. The shortcut is often easier for calculation.
2.5.11 Interpreting Variance and Standard Deviation
For variables measured in the same units:
smaller variance or standard deviation means greater concentration around the mean;
larger variance or standard deviation means greater spread around the mean;
variance 0 means the random variable takes one constant value with probability 1.
Variance cannot be negative because it is formed from nonnegative squared deviations and nonnegative probability weights:
Standard deviation is often easier to interpret numerically because it uses the same units as \(X\).
2.5.12 A Simple Method
To calculate variance directly:
Find \(\mu=E(X)\).
Find the deviation \(x-\mu\).
Square the deviation.
Weight by the PMF or PDF.
Sum or integrate over all possible values.
Take the square root if standard deviation is required.
Alternatively, calculate
2.5.13 Common Mistakes
Do not calculate \(E(X^2)-E(X)\); the mean must also be squared.
Do not forget the probability weights \(p(x)\) or density \(f(x)\).
Do not confuse variance with standard deviation. Variance is \(\sigma^2\); standard deviation is \(\sigma\).
Do not assume that equal means imply equal spread.
Do not interpret variance in the original units of \(X\); variance uses squared units.
2.5.14 Summary
The mean describes the balance point of a probability distribution. Variance and standard deviation describe its spread around that point.
For a discrete random variable,
For a continuous random variable,
In both cases,
and
The main relationship is
Mean -> center / balance point
Variance and standard deviation -> spread around the mean