Learning Objectives
By the end of this chapter, you will explain why spread matters beyond the center, compute range, variance, and standard deviation for ungrouped and grouped data, and use coefficient of variation to compare variability across different scales.
Why Spread Matters
Two offices can report the same mean and deliver very different service. One has steady waits near the median. The other swings from instant to prolonged. Central tendency hides that difference. Dispersion exposes it.
Consider two datasets with mean 50.
Dataset A: 48, 49, 50, 51, 52. Tightly clustered. Dataset B: 20, 30, 50, 70, 80. Widely scattered.
An administrator who reports only the mean treats them as equal. A citizen who waits 80 minutes knows they are not. Policy needs both center and spread.
The Toolkit: Absolute and Relative Measures
Absolute measures stay in original units. Range, variance, and standard deviation belong here. Relative measures strip units and permit comparison across different scales. Coefficient of variation is the principal relative measure.
Range
The simplest measure.
\[\text{Range}=\text{Maximum}-\text{Minimum}\]Useful as a quick check. Limited because it uses only the extremes and ignores every other observation.
Variance: The Average Squared Distance From the Mean
Variance averages squared deviations from the mean. Squaring solves the fact that raw deviations sum to zero.
Population variance uses $N$ in the denominator.
\[\sigma^2 = \frac{\sum (x_i-\mu)^2}{N}\]Sample variance uses $n-1$ to give an unbiased estimate of $\sigma^2$.
\[s^2 = \frac{\sum (x_i-\bar{x})^2}{n-1}\]Computational form for hand calculation avoids computing $\bar{x}$ first.
\[s^2 = \frac{\sum x^2 - \frac{(\sum x)^2}{n}}{n-1}\]For grouped data with midpoint $m$ and frequency $f$,
\[s^2 = \frac{\sum fm^2 - \frac{(\sum fm)^2}{n}}{n-1}\]where $n=\sum f$.
Standard Deviation: Spread in Original Units
Standard deviation is the square root of variance. It returns to the unit of the data.
\[\sigma = \sqrt{\sigma^2},\quad s = \sqrt{s^2}\]Low $s$ means observations hug the mean. High $s$ means they scatter.
Coefficient of Variation: A Relative Comparison
When means or units differ, direct comparison of $s$ misleads. The coefficient of variation expresses $s$ as a percent of the mean.
\[CV = \frac{s}{\bar{x}}\times 100\%\]Population form uses $\sigma/\mu$. Lower CV means more consistency in relative terms. Use it to compare salary variability in NPR thousand against age variability in years, or to compare departments with very different means.
Calculations With Interpretation
Example 1: Variance From Definition
Satisfaction scores of 5 employees: 7, 8, 6, 9, 5. For sample variance,
\[\bar{x}= \frac{7+8+6+9+5}{5}=7\]| $x$ | $x-\bar{x}$ | $(x-\bar{x})^2$ |
|---|---|---|
| 7 | 0 | 0 |
| 8 | 1 | 1 |
| 6 | -1 | 1 |
| 9 | 2 | 4 |
| 5 | -2 | 4 |
| Total | 0 | 10 |
Scores deviate from the mean by about 1.58 points on average.
Example 2: Same Data Via Computational Formula
\[\sum x =35,\quad \sum x^2=49+64+36+81+25=255\] \[s^2=\frac{255-\frac{35^2}{5}}{4}=\frac{255-245}{4}=2.5\]Result matches. The computational form is faster for exams.
Example 3: Grouped Variance
Age distribution of 50 municipal employees.
| Class | $f$ | $m$ | $fm$ | $m^2$ | $fm^2$ |
|---|---|---|---|---|---|
| 25 to 30 | 5 | 27.5 | 137.5 | 756.25 | 3781.25 |
| 30 to 35 | 12 | 32.5 | 390 | 1056.25 | 12675 |
| 35 to 40 | 18 | 37.5 | 675 | 1406.25 | 25312.5 |
| 40 to 45 | 10 | 42.5 | 425 | 1806.25 | 18062.5 |
| 45 to 50 | 5 | 47.5 | 237.5 | 2256.25 | 11281.25 |
| Total | 50 | 1865 | 71112.5 |
Age spread is about 5.6 years around the mean of 37.3 years.
Example 4: Standard Deviation for Training Hours
Hours for 6 departments: 40, 55, 38, 62, 45, 50. $\bar{x}=48.33$.
\[s^2=\frac{\sum (x-\bar{x})^2}{5}=\frac{421.34}{5}=84.27,\quad s\approx 9.18\text{ hours}\]Departments vary by about 9.2 hours from the average of 48.33 hours.
Example 5: When CV Changes the Ranking
Department A: mean 75, $s=12$. Department B: mean 85, $s=15$.
\[CV_A=\frac{12}{75}\times 100=16.0\%,\quad CV_B=\frac{15}{85}\times 100\approx 17.65\%\]Department A is more consistent in relative terms, though its absolute $s$ is smaller and its mean is lower. Do not confuse higher mean with better consistency.
Properties and Pitfalls
Adding a constant $c$ to every value shifts the mean by $c$ but leaves variance and standard deviation unchanged. Variance describes spread, not location.
| Multiplying by $k$ scales the mean by $k$, variance by $k^2$, and standard deviation by $ | k | $. Converting salaries from NPR to USD at 133 NPR per USD divides the mean and $s$ by 133 and divides variance by $133^2$. |
Common error: divide by $n$ when you should divide by $n-1$ for a sample. Population variance uses $N$. Sample variance uses $n-1$ to correct bias. Another frequent error: report variance when the audience needs standard deviation. Variance uses squared units such as minutes squared. Most memos should quote $s$ in the original unit, with $s^2$ retained for further statistical work.
Worked Example: Consistency of Palika Spending in BS 2081
Context: The Ministry of Federal Affairs and General Administration reviews recurrent versus capital spend across Palikas in Lumbini Province for BS 2081. Two line items have very different scales. Reviewers must judge which vote shows more reliable execution.
Data from a sample of $n=40$ Palikas (NPR million):
Capital grant execution: $\bar{x}=48.5$ million, $s=11.2$ million. Recurrent salary disbursement: $\bar{x}=92.3$ million, $s=14.8$ million.
Direct comparison of $s$ favors capital as less variable at 11.2 versus 14.8. That ignores the means. Compute $CV$:
\[CV_{\text{capital}}=\frac{11.2}{48.5}\times 100\approx 23.10\%\] \[CV_{\text{recurrent}}=\frac{14.8}{92.3}\times 100\approx 16.03\%\]In relative terms, recurrent disbursement is steadier. Capital execution swings more from Palika to Palika, which aligns with field reports that procurement timing and site constraints create uneven capital drawdown within the BS 2081 fiscal year.
Ward level drill down confirms the story. Ward 4 of a sampled Palika executed 9.2, 11.5, 10.8, 14.2, and 9.8 million over five months for a small roads program. $\bar{x}=11.10$, $s\approx 2.00$, $CV\approx 18\%$. One month spikes. Without $CV$, that spike looks like a minor NPR difference. With $CV$, it flags as notable relative swing for that activity.
Policy use: The ministry sets monitoring intensity by $CV$, not by raw $s$. Higher relative variability draws tighter reporting and site support. Lower relative variability draws routine review. Unit free comparison prevents the larger budget from automatically appearing more variable.
Self-check
Try this (calculable): A ward office recorded daily citizen visits for one week: 42, 38, 45, 40, 47, 39, 41. Compute range, sample variance $s^2$, sample standard deviation $s$, and $CV$. Which day drives the range?
Answer: Sorted 38, 39, 40, 41, 42, 45, 47. Range $=47-38=9$. $\sum x=292$, $\bar{x}=292/7\approx 41.71$, $\sum x^2=12236$. Using $s^2=(\sum x^2-(\sum x)^2/n)/(n-1)=(12236-85264/7)/6=(12236-12180.57)/6=55.43/6\approx 9.24$. $s\approx 3.04$. $CV=3.04/41.71\times 100\approx 7.29\%$. Range is set by 38 and 47. Those two points alone produce the range of 9, while $s$ and $CV$ capture spread of all seven days.
Check: if the peak day were 62 instead of 47, recompute range and $s$. Which measure moves more and why?
Summary
Dispersion measures spread. Range gives a quick extreme based interval. Variance averages squared deviations, with $\sigma^2=\sum(x-\mu)^2/N$ for a population and $s^2=\sum(x-\bar{x})^2/(n-1)$ for a sample. Standard deviation restores original units as $s=\sqrt{s^2}$. Coefficient of variation, $CV=s/\bar{x}\times 100\%$, enables comparison across different units or very different means. Constants shift the mean without moving variance. Multiplicative scaling moves variance quadratically.
Key Takeaways
- Identical means can hide different variability. Always report a center with a spread.
- Range is fast but fragile because it uses only the minimum and maximum.
- Use $n-1$ for sample variance. Use $N$ only when you hold the full population. $s$ belongs in memos. $s^2$ belongs in further inference.
-
Adding a constant preserves $s^2$ and $s$. Multiplying by $k$ multiplies $s$ by $ k $ and $s^2$ by $k^2$. - $CV=s/\bar{x}\times 100\%$ is the tool when units differ or means are far apart. Lower $CV$ means more relative consistency.
Discussion
- A Palika reports average expenditure NPR 48.5 million with $s=11.2$ million and calls its execution stable. Apply $CV$. Does the claim hold in relative terms?
- Your grouped variance uses midpoints. What assumption does that impose on within class distribution, and when would unequal class widths bias the result?
- A director prefers variance because it feeds into later tests. A ward secretary prefers standard deviation. Who should the public report satisfy and what would you publish for each audience?
Exercises
- Data: 12, 15, 18, 14, 16, 15, 19, 13. Compute sample variance and standard deviation using the computational formula. Verify $\sum(x-\bar{x})=0$.
- Government spending in NPR billion: Health mean 85 with $s=12$, Education mean 120 with $s=20$, Defense mean 95 with $s=8$. Compute $CV$ for each. Which department is most consistent in relative terms? Does the smallest $s$ coincide with the smallest $CV$?
- Frequency table: 10 to 20 ($f=4$), 20 to 30 (8), 30 to 40 (12), 40 to 50 (6). Find grouped mean, sample variance, and $CV$. State the unit of each.
- If every observation is multiplied by 133 to convert USD to NPR thousand, express the new mean, variance, and standard deviation in terms of the old values.
- Give one administrative example where reporting variance in squared units would confuse a nontechnical reader and rewrite the finding using $s$ and $CV$ instead.


