IB Analysis and Approaches HL · Descriptive statistics · Section 4 of 5

Measures of dispersion

3 worked examples · By Álvaro López

Key idea

The mean or the median tell you where the centre of the data is, but not how far the data lie from it. The measures of dispersion (range, interquartile range, variance and standard deviation) measure that spread and allow you to compare two sets with the same centre. In the IB exam you calculate them with the GDC in Paper 2 and by hand, using a table, in Paper 1.

Range and quartiles

Two classes can have the same average mark and be very different: in one everyone scores around 6, and in the other there are zeros and tens. What distinguishes them is the dispersion.

It is easy to calculate, but it depends on only two data and a single extreme value sets it off. That is why the quartiles, which ignore the extremes, are also used.

A way to locate the quartiles by hand with ordered data is to look at the positions , and ; if the position is not an integer, the two neighbouring data are averaged. With data in a table, look for that position in the cumulative frequency column.

The five numbers , , , and are the ones that draw the box-and-whisker diagram you saw in the section on graphs: the box measures exactly the IQR.

Outliers

A datum very far from the rest distorts the mean and the range. The IB sets a rule for deciding when a datum is considered an outlier.

On the box-and-whisker diagram, outliers are marked separately with a cross, and the whisker reaches only to the most extreme datum that is not an outlier.

Box-and-whisker diagram with an outlier to the right of the upper fence

Variance and standard deviation

The range and the IQR look at only some of the data. The standard deviation uses all of them, measuring how far each datum lies from the mean.

For each datum, is its deviation from the mean. If the deviations were simply added, positive and negative ones would cancel out and the result would be . To avoid this, they are squared and then averaged.

The second expression (the mean of the squares minus the square of the mean) is the most convenient by hand: you only need and . The standard deviation is measured in the same units as the data; the variance is not (it is in squared units).

Interpreting the standard deviation

A large standard deviation means data very spread out around the mean; a small one means data closely grouped. A single number says little: its value is interpreted by comparing it with another set measured in the same unit, or with the mean itself.

When two sets have similar means, the one with the smaller standard deviation is the more regular or homogeneous. When comparing, always write a complete sentence that mentions the context, for example "the pieces made by machine A are more uniform because their standard deviation is smaller". A number without a sentence loses the interpretation mark.

Some properties worth remembering: , and it is only if all the data are equal; and, unlike the range, it uses all the data, so an outlier increases it greatly. That is why, if there are outliers, the IQR is a more reliable measure of spread than .

Worked examples

Example 1 Basic

Range, quartiles and outliers

A town council records the waiting time, in minutes, of eleven patients at a health centre:

Patient 1 2 3 4 5 6 7 8 9 10 11
Waiting time (min) 4 6 7 9 10 12 13 15 16 18 40

The data are already ordered.

a) Find the range.

b) Find , and the interquartile range.

c) Determine whether there is any outlier.

Solution

a) Range minutes.

b) There are data. The positions are and , so is the third datum and the ninth: and . Then

c) We calculate . The limits are

No datum lies below . Above lies the . The only outlier is , and it is the one in the figure above.

Example 2 Medium

Standard deviation from a frequency table

20 people are asked how many books they have read this month. The results are:

Books read, 0 1 2 3 4
People, 3 5 7 4 1

a) Find the mean.

b) Find the standard deviation of these 20 values, in exact form.

c) Now consider the 20 people to be a sample of the readers in a neighbourhood. Find in exact form.

Solution

The table is extended with the columns and :

0 3 0 0
1 5 5 5
2 7 14 28
3 4 12 36
4 1 4 16
Sum 20 35 85

a) books.

b) The variance is

and the standard deviation is books.

c) With :

As expected, is slightly larger than .

Example 3 Hard

Comparing two machines

A cereal factory has two machines that fill 50 g bags. Eight bags from each machine are weighed (in grams):

Machine Weights
A 48, 50, 49, 51, 50, 52, 49, 51
B 45, 55, 50, 47, 53, 50, 46, 54

a) Find the mean of each machine.

b) Find the standard deviation of each machine, in exact form.

c) State which machine is more regular. Answer with the letter "A" or "B".

d) For machine A, and . Find the limits beyond which a weight is an outlier, and decide whether a weight of g would be one. Answer as the tuple (lower limit, upper limit, is it an outlier?).

e) If the eight bags from B are treated as a sample of everything that machine produces, find in exact form.

Solution

a) Machine A: . Machine B: . Both means are g.

b) As the means equal , the deviations are .

  • A: . Their squares add up to , so and g.
  • B: . Their squares add up to , so and g.

c) The means coincide, so the spread decides: . Machine A is more regular, because its bags are closer to 50 g.

d) and . The limits are and . As , a weight of g would be an outlier for machine A.

e) With : , and therefore g.

In the exam: when comparing, give the conclusion in a sentence in context ("machine A is more regular because its standard deviation is smaller"); a loose number does not earn the interpretation mark. For "outlier", show both limits and compare against them. And state whether you use or .

Common mistakes

Summary

  • Range . Quartiles: , (median) and ; is the width of the box. In the exam, the quartile given by the GDC is valid.
  • Outlier: a datum below or above .
  • Population variance: ; standard deviation , in the same units as the data.
  • Sample: and . Use if the data are the whole population, if they are a sample used to estimate the population.
  • A smaller standard deviation means more tightly grouped and more regular data; always interpret it by comparing, with a sentence in context.
  • An outlier makes the range and the standard deviation grow a lot, but barely affects the IQR.
  • With the GDC (Paper 2) you obtain the mean, , , , the median and ; with grouped data, use the class midpoints.
Maths classes in Aldaia and online

Want to work on it together?

Free first consultation: we look at your level and your exam, and build a plan. Álvaro replies on WhatsApp.

Message us on WhatsApp