Maths4UBETA

Maths4U · Learning together

Range, quartiles and raw-data variance

← Corrected records, missing observations and reverse problemsCoded totals, origins and scale changes →

Notes

Objective

Use a centre and a spread together, distinguishing the middle half from squared deviations about the mean.

Before you start

Use exact totals, order raw observations, and distinguish a frequency from a measurement. Review Measures of central tendency if you need to recover a mean or decode an origin.

Key ideas

A centre alone does not describe a distribution

Two samples can have the same mean and very different variation. The range is maximum minus minimum and uses only the two extremes. The interquartile range is Q3−Q1Q_3-Q_1, measuring the span of the middle half. It is less affected by the size of an extreme value than the range.

Two samples with mean 8 have different ranges and standard deviations

State the raw-data quartile convention

Order every observation, including repetitions. Here, take the medians of the lower and upper halves, excluding the overall median for an odd count. This is the chapter convention, not a claim that every software package uses identical quartile positions.

Variance uses all deviations from the mean

σ2=∑(x−xˉ)2n.\sigma^2=\frac{\sum(x-\bar{x})^2}{n}.σ2=∑x2n−xˉ 2,σ=σ2.\sigma^2=\frac{\sum x^2}{n}-\bar{x}^{\,2},\qquad\sigma=\sqrt{\sigma^2}.

Use divisor n for descriptive spread here. Variance has squared units; SD has the same units as the observations. A negative calculated variance signals an error or inconsistent summaries. SD is zero exactly when all observations are equal.

Changing the reference value does not erase spread

∑(x−a)2=∑(x−xˉ)2+n(a−xˉ)2.\begin{aligned}\sum(x-a)^2&=\sum(x-\bar{x})^2\\&\quad+n(a-\bar{x})^2.\end{aligned}

The square-total about a reference is smallest at the mean. A sum of squared deviations and the square of a sum are different quantities.

Method

  1. Identify whether the observations are raw, grouped or coded.
  2. Recover the count, first total and square-total on one consistent scale.
  3. Find the requested spread without premature rounding.
  4. Restore all original conditions and give every valid result.

Common mistakes

  • Do not report a quartile position as a data value.
  • Use n, not n−1, for these descriptive summaries.
  • Take the non-negative square root for SD.
  • Equal means do not imply equal spreads.

Worked examples

Same mean, different consistency

Compare A: 4, 6, 8, 10, 12 and B: 0, 4, 8, 12, 16. Find their means, ranges and variances.

Follow the solution

Both means are 8. Their ranges are 8 and 16.

σA2=16+4+0+4+165=8.\sigma_A^2=\frac{16+4+0+4+16}{5}=8.σB2=64+16+0+16+645=32.\begin{aligned}\sigma_B^2&=\frac{64+16+0+16+64}{5}\\&=32.\end{aligned}

A has less variation. This is a comparison of spread, not a claim that its centre is smaller.

Range and IQR use different parts of the data

Find the range and IQR of 2, 3, 4, 6, 6, 7, 10, 30, using medians of halves.

Follow the solutionrange=30−2=28,Q1=3+42=72,Q3=7+102=172,IQR=5.\begin{aligned}\text{range}&=30-2=28,\\Q_1&=\frac{3+4}{2}=\frac72,\\Q_3&=\frac{7+10}{2}=\frac{17}{2},\\\text{IQR}&=5.\end{aligned}

The large final observation stretches the range; its exact size does not enter either quartile here.

Moments recover the centred square-total

Five observations have ∑x=40\sum x=40, ∑x2=350\sum x^2=350. Find their mean, centred square-total and SD.

Follow the solutionxˉ=8,∑(x−8)2=350−5(82)=30,σ=30/5=6.\begin{aligned}\bar{x}&=8,\\\sum(x-8)^2&=350-5(8^2)=30,\\\sigma&=\sqrt{30/5}=\sqrt6.\end{aligned}

Divide the centred total by the count before taking the square root.

The best reference for squared deviations

For 3, 7, 9, 13, find the real a minimising ∑(x−a)2\sum(x-a)^2, and its minimum.

Follow the solution

The mean is 8 and the centred square-total is 52.

∑(x−a)2=52+4(a−8)2.\sum(x-a)^2=52+4(a-8)^2.

The minimum is 52, attained only at a=8. The variance is 524=13\frac{52}{4}=13; it is not zero.

Practise this topic