Part 6 · Chapter 32

Statistics

Summarising a mass of data in a few honest numbers — locating its centre with mean, median and mode, then measuring how widely it spreads with deviation, variance and standard deviation

Fundamentals of Mathematics Prof. Mithun Mondal Reading time ≈ 46 min
i What you'll learn
  • Data and frequency distributions, and the vocabulary of raw, ungrouped and grouped data.
  • The three measures of central tendencymean, median and mode — and when each is the right summary.
  • Measures of dispersion: range and mean deviation.
  • Variance and standard deviation, the standard measures of spread, with their short-cut formulas.
  • The coefficient of variation for comparing variability across data sets.
  • How a change of origin and scale affects these measures, and how to combine two data sets.
Section 32-1

Data & Frequency Distributions

Statistics is the art of compressing a large collection of observations into a few meaningful numbers. The observations themselves are the data. When the values are simply listed they are raw data; when each distinct value is paired with the count of how often it occurs — its frequency \(f_i\) — we have a frequency distribution. For large ranges the values are gathered into class intervals of width \(h\), giving grouped data, and each class is represented by its mid-value \(x_i\).

frequency class interval
A histogram pictures a grouped frequency distribution; bar height is the frequency
📊
The basic counts
\(\displaystyle N=\sum_{i} f_i\)

Here \(N\) is the total frequency — the number of observations. For raw data every value has frequency one, so \(N=n\). Two families of summary numbers follow: measures of central tendency (where the data centre) and measures of dispersion (how far they scatter).

Section 32-2

Arithmetic Mean

The arithmetic mean — the everyday "average" — is the balance point of the data: the total shared equally among all observations. For a frequency distribution each value is weighted by how often it occurs. When the numbers are large, an assumed mean \(A\) and a common step \(h\) turn heavy arithmetic into small ones.

The mean is the point at which the data would balance
Arithmetic mean — three equivalent forms
\(\displaystyle \bar{x}=\frac{1}{n}\sum x_i=\frac{\sum f_i x_i}{N}=A+h\cdot\frac{\sum f_i u_i}{N}\)

The last is the step-deviation form, with \(u_i=\dfrac{x_i-A}{h}\). It gives exactly the same answer as the direct formula but with far smaller numbers. The mean uses every observation, which makes it sensitive to a single extreme value — its chief weakness.

Section 32-3

Median

The median is the middle value once the data are arranged in order: half the observations lie below it and half above. Because it depends only on position and not on size, a few wild values cannot drag it about — it is a robust centre, ideal for skewed data such as incomes.

½
Median — ungrouped and grouped
\(\displaystyle \text{Median}=\ell+\frac{\tfrac{N}{2}-F}{f}\times h\)

For ungrouped data of size \(n\), sort the values: the median is the \(\left(\tfrac{n+1}{2}\right)\)th term when \(n\) is odd, and the average of the two middle terms when \(n\) is even. For grouped data, \(\ell\) is the lower boundary of the median class, \(F\) the cumulative frequency before it, \(f\) its own frequency, and \(h\) the class width.

Section 32-4

Mode

The mode is the value that occurs most often — the peak of the distribution. It is the natural "average" for categorical data (the most common shoe size, the best-selling colour) and the only one of the three that need not be unique.

mode median mean
In a skewed distribution the three centres separate, with the mean pulled toward the tail
Modal class and the empirical relation
\(\displaystyle \text{Mode}=\ell+\frac{f_1-f_0}{2f_1-f_0-f_2}\times h;\qquad \text{Mode}\approx 3\,\text{Median}-2\,\text{Mean}\)

For grouped data, \(f_1\) is the frequency of the modal class, with \(f_0\) and \(f_2\) the frequencies just before and after it. For a moderately skewed distribution the three measures obey the empirical relation on the right, which lets you recover any one from the other two.

Section 32-5

Dispersion: Range & Mean Deviation

A centre alone hides too much: two classes can share a mean of \(50\) yet one be tightly bunched and the other wildly scattered. Dispersion measures that scatter. The crudest measure is the range; a better one is the mean deviation, the average distance of the data from a centre.

|xᵢ − x̄|
Mean deviation averages the distances \(|x_i-\bar{x}|\) from the centre
Range and mean deviation
\(\displaystyle \text{Range}=x_{\max}-x_{\min};\qquad \text{MD}=\frac{\sum f_i\,|x_i-c|}{N}\)

The centre \(c\) is usually the mean or the median; the mean deviation is in fact smallest when taken about the median. Both measures are easy to read, but the absolute value makes the mean deviation awkward to manipulate algebraically — which is exactly why the next measure squares instead.

Section 32-6

Variance & Standard Deviation

Squaring the deviations rather than taking their absolute value gives a measure that is smooth, additive and central to all of statistics: the variance \(\sigma^2\), the mean of the squared deviations from the mean. Its square root, the standard deviation \(\sigma\), returns to the original units and is the headline measure of spread.

small σ large σ
Same mean, different standard deviation: a small \(\sigma\) means tightly clustered data
σ
Variance, standard deviation and the short-cut formula
\(\displaystyle \sigma^2=\frac{\sum f_i(x_i-\bar{x})^2}{N}=\frac{\sum f_i x_i^{2}}{N}-\bar{x}^{2};\qquad \sigma=\sqrt{\sigma^2}\)

The second form — "mean of the squares minus the square of the mean" — is the practical one for computation. In step-deviation variables it becomes \(\sigma^2=h^2\!\left[\dfrac{\sum f_i u_i^2}{N}-\left(\dfrac{\sum f_i u_i}{N}\right)^2\right]\), keeping the arithmetic light.

Section 32-7

Coefficient of Variation

Standard deviation carries units, so you cannot fairly compare the spread of heights in centimetres with that of weights in kilograms — nor two data sets with very different means. The coefficient of variation solves this by expressing the standard deviation as a percentage of the mean, giving a pure number.

%
Relative dispersion
\(\displaystyle \text{C.V.}=\frac{\sigma}{\bar{x}}\times 100\)

It is dimensionless, so it compares variability across data sets of any units or scale. The series with the smaller C.V. is the more consistent (less variable); the one with the larger C.V. is more erratic. This is the usual basis for judging which of two batches, players or processes is steadier.

Section 32-8

Change of Origin & Scale; Combining Data

Suppose every observation is transformed by \(y_i=a+bx_i\) — shifting the origin by \(a\) and rescaling by \(b\). The mean shifts and scales the same way, but the spread ignores the shift entirely: adding a constant to every value moves the whole data set without stretching it. This is precisely why the step-deviation shortcuts work.

Effect of a linear transformation
\(\displaystyle y=a+bx\ \Rightarrow\ \bar{y}=a+b\bar{x},\quad \sigma_y=|b|\,\sigma_x\)

Variance is independent of the change of origin (\(a\)) but scales with the square of \(b\): \(\sigma_y^2=b^2\sigma_x^2\).

! Combining two data sets

If two groups of sizes \(n_1,n_2\) have means \(\bar{x}_1,\bar{x}_2\) and variances \(\sigma_1^2,\sigma_2^2\), the combined mean is the weighted average \(\bar{x}=\dfrac{n_1\bar{x}_1+n_2\bar{x}_2}{n_1+n_2}\). The combined variance is not a simple average — it also picks up how far each group mean sits from the overall mean: with \(d_1=\bar{x}_1-\bar{x}\) and \(d_2=\bar{x}_2-\bar{x}\), \(\sigma^2=\dfrac{n_1(\sigma_1^2+d_1^2)+n_2(\sigma_2^2+d_2^2)}{n_1+n_2}\).

Worked Examples

Putting It to Work

1 Mean, median and mode

Problem. Find the mean, median and mode of \(4,\ 6,\ 6,\ 7,\ 8,\ 9,\ 16\).

Solution. The sum is \(56\) over \(7\) values; the data are already sorted, so the \(4\)th term is the median and \(6\) repeats most:

Working
\[ \bar{x}=\frac{56}{7}=8,\qquad \text{Median}=7,\qquad \text{Mode}=6 \]
2 Range and mean deviation

Problem. For \(3,\ 6,\ 7,\ 8,\ 11\), find the range and the mean deviation about the mean.

Solution. The mean is \(\bar{x}=\tfrac{35}{5}=7\); the deviations are \(4,1,0,1,4\):

Working
\[ \text{Range}=11-3=8;\qquad \text{MD}=\frac{4+1+0+1+4}{5}=\frac{10}{5}=2 \]
3 Variance via the short-cut

Problem. Find the variance and standard deviation of \(2,\ 4,\ 6,\ 8,\ 10\).

Solution. Here \(\bar{x}=6\) and \(\sum x_i^2=4+16+36+64+100=220\):

Working
\[ \sigma^2=\frac{220}{5}-6^2=44-36=8,\qquad \sigma=\sqrt{8}=2\sqrt{2}\approx 2.83 \]
4 Coefficient of variation

Problem. Batch A has mean \(50\) with \(\sigma=5\); batch B has mean \(40\) with \(\sigma=4.5\). Which is more consistent?

Solution. Compare relative spread, not raw \(\sigma\):

Working
\[ \text{C.V.}_A=\frac{5}{50}\times100=10\%,\qquad \text{C.V.}_B=\frac{4.5}{40}\times100=11.25\% \]

Batch A has the smaller C.V., so it is the more consistent.

5 Change of scale

Problem. A data set has mean \(20\) and standard deviation \(3\). Each value is replaced by \(y=2x+5\). Find the new mean and standard deviation.

Solution. Apply \(\bar{y}=a+b\bar{x}\) and \(\sigma_y=|b|\sigma_x\) with \(a=5,\ b=2\):

Working
\[ \bar{y}=2(20)+5=45,\qquad \sigma_y=|2|\times 3=6 \]
6 Combined mean

Problem. A class of \(30\) boys averages \(62\) marks and \(20\) girls average \(70\). Find the mean of the whole class.

Solution. Use the weighted average over all \(50\) students:

Working
\[ \bar{x}=\frac{30(62)+20(70)}{30+20}=\frac{1860+1400}{50}=\frac{3260}{50}=65.2 \]
Review

Chapter Summary

Mean

\(\bar{x}=\tfrac{\sum f_i x_i}{N}\); uses every value, sensitive to extremes.

Median & Mode

Median is the middle value; mode is the most frequent. \(\text{Mode}\approx 3\,\text{Med}-2\,\text{Mean}\).

Dispersion

Range \(=x_{\max}-x_{\min}\); \(\text{MD}=\tfrac{\sum f_i|x_i-c|}{N}\).

Variance

\(\sigma^2=\tfrac{\sum f_i x_i^2}{N}-\bar{x}^2\); \(\sigma=\sqrt{\sigma^2}\).

C.V.

\(\tfrac{\sigma}{\bar{x}}\times100\); smaller means more consistent.

Transform

\(y=a+bx\Rightarrow \sigma_y=|b|\sigma_x\); variance ignores the origin.

Practice

Problems

Decide first what is being asked — a centre or a spread — then pick the matching tool. Difficulty rises down the list.

  1. Find the mean of \(5,\ 8,\ 12,\ 15,\ 20\).
  2. Find the median of \(7,\ 3,\ 9,\ 5,\ 11,\ 1\).
  3. Find the mode of \(2,\ 3,\ 3,\ 4,\ 4,\ 4,\ 5\).
  4. Find the range of \(14,\ 9,\ 23,\ 6,\ 18\).
  5. Find the mean deviation about the mean of \(2,\ 4,\ 6,\ 8,\ 10\).
  6. Find the variance and standard deviation of \(3,\ 5,\ 7,\ 9,\ 11\).
  7. A series has mean \(40\) and standard deviation \(8\). Find its coefficient of variation.
  8. The mean and median of a moderately skewed distribution are \(35.4\) and \(36\). Estimate the mode.
  9. Each value of a data set with mean \(15\) and \(\sigma=4\) is replaced by \(y=3x-2\). Find the new mean and standard deviation.
  10. Find the standard deviation of the first \(n\) natural numbers, given \(\sigma^2=\tfrac{n^2-1}{12}\), for \(n=10\).
  11. Two samples of sizes \(40\) and \(60\) have means \(50\) and \(55\). Find the combined mean.
  12. For the two samples in Problem 11, the variances are \(16\) and \(25\). Find the combined variance.
  13. The mean of \(100\) observations is \(50\) and the variance is \(16\). If a wrong entry \(60\) should have been \(110\), find the corrected mean.
Tip: the watchword is "centre versus spread." A question about a typical or representative value wants a measure of central tendency — use the mean for symmetric data, but switch to the median the moment outliers appear, and reach for the mode for categories. A question about consistency, reliability or scatter wants a measure of dispersion — and whenever two data sets have different means or units, compare them with the coefficient of variation, never the raw standard deviation. Finally, remember that adding a constant to every value never changes the spread.