Topics / Chapter 3

Summarizing data with a few numbers

To describe the centre of a data set and how spread out it is with two or three numbers.

Same mean, two very different varieties

You tested two wheat varieties on five plots each. Both had a mean yield of 500 kg/da:

Plot yields (kg/da)MeanStandard deviation
Variety A490, 505, 498, 512, 4955008.6
Variety B310, 690, 455, 620, 425500153.5

Someone who looks only at the mean thinks the two are the same. But A yields around 500 on every plot, while B gives 310 in one place and 690 in another. A risk-averse farmer picks A.

That is why describing a data set takes at least two numbers:

  • A measure of location (centre): around which number do the values cluster? Mean, median, mode.
  • A measure of spread (dispersion): how far do the values stray from that centre? Standard deviation, range, coefficient of variation.

“A mean of 500 ± 9 kg/da” says far more than “a mean of 500” on its own.

Try it with your own data

Click a measure to see how it was calculated, step by step, on the right. Below is a plain reading of the results.

Sample data:

10 numbers read.

Centre Which value does the data cluster around?

  • The most widely used measure of centre. It uses every value, so it is affected by extreme values.

    1. Add up all values and divide by the number of values.

      xˉ=∑xin\bar{x} = \dfrac{\sum x_i}{n}
    2. xˉ=188+192+170+165+⋯+195+15010\bar{x} = \dfrac{188 + 192 + 170 + 165 + \cdots + 195 + 150}{10}
    3. xˉ=170010=170\bar{x} = \dfrac{1700}{10} = 170

Spread How different are the values from each other?

Shape Is the distribution symmetric or piled to one side?

What do these numbers say?

  • Values range from 150 to 195 cm; the mean is 170 cm.
  • There is a small gap between the mean (170) and the median (167.5): the distribution is slightly right-skewed.
  • The standard deviation is 17.31 cm. Roughly speaking, most values lie between 152.69 and 187.31 cm.
  • The coefficient of variation is 10.2%, so variability is moderate. Because the CV has no unit, it lets you compare different measurements (e.g. height and weight).

Which one should I use?

SituationSuggested measureWhy?
Data are symmetric, no extreme valuesArithmetic mean and standard deviationUses all the data; every later test is built on them
A few very high or very low valuesMedian and quartilesNot affected by extreme values
You suspect the extreme values are measurement errorsTrimmed or winsorized meanWeakens the extremes without ignoring them entirely
Categorical data (variety, disease type)ModeThe others can’t be calculated
Annual growth ratesGeometric meanSuits the multiplicative nature of rates
Speeds, amounts per unitHarmonic meanThe correct average for values given “per something”
Comparing variability across different units or magnitudesCoefficient of variationUnit-free

Short notes

Why is the mean so sensitive to extreme values?

Say five plots yield 480, 495, 500, 510 and 515 kg/da. The mean is 500 and so is the median. If wild boar trample one plot and its yield drops to 120, the mean falls to 424 while the median becomes 495. The median still describes “a typical plot”; the mean no longer describes any plot.

Why divide by n − 1 rather than n for the standard deviation?

The values in a sample are closer to their own mean than to the population mean, because xˉ\bar{x} was calculated from those very values. Dividing by nn would underestimate the spread; dividing by n−1n - 1 corrects that bias. This n−1n - 1 is called the degrees of freedom, and you will meet it again and again in t, χ² and F tests.

s=∑(xi−xˉ)2n−1s = \sqrt{\frac{\sum (x_i - \bar{x})^2}{n - 1}}

What does the coefficient of variation compare?

The standard deviation of plant height is 12 cm, that of kernel weight 3 g. Which is more variable? With different units you can’t compare the standard deviations. The coefficient of variation expresses the standard deviation as a percentage of the mean and makes that comparison possible:

CV=sxˉ×100CV = \frac{s}{\bar{x}} \times 100

In field trials the CV is also reported as a sign of how carefully the trial was run. A very high CV suggests there were differences between plots other than the treatments (soil, irrigation, measurement error).

About quartiles: there are several ways to calculate quartiles and they all give slightly different results. The calculator offers two: the standard method, which matches Excel’s QUARTILE.EXC, and the method used in the course notes’ example (coefficients 0.25 for Q₁ and 0.75 for Q₃). If you are not sure which one your exam expects, ask your instructor.