4.3 Measures of central tendency and dispersion

4.3 Measures of central tendency and dispersion

IB Maths: Analysis and Approaches HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Mean =∑xn=\frac{\sum x}{n}; the median is the middle of the ordered data; the mode is the most frequent value.
  • Grouped data: use mid-interval values, and the result is an estimate. The modal class has the highest frequency.
  • IQR =Q3−Q1=Q_3-Q_1; σ\sigma and σ2\sigma^2 come from technology.
  • For y=ax+by=ax+b: the mean becomes axˉ+ba\bar{x}+b and the standard deviation becomes ∣a∣σ|a|\sigma.
  • An extreme value distorts the mean and standard deviation, but barely moves the median and IQR.

Mean, median and mode

Add and divide for the mean, order the data for the median, and count for the mode.

For a frequency table the mean is xˉ=∑fx∑f\bar{x}=\frac{\sum fx}{\sum f}. At SL the data set is treated as the whole population, so the formula booklet writes the mean as μ\mu.

The median is the (n+12)\left(\frac{n+1}{2}\right)th value once the data are in order; with an even number of values take the mean of the middle two. The mode is the most frequent value; there can be several, or none.

If you know the mean you know the total, nxˉn\bar{x}. That is the quickest way to handle a value being added or removed.

012345612345Value xFrequency f
A frequency table with n = 16: the mode is 3, the median is 3 (mean of the 8th and 9th values) and the mean is 47/16 = 2.94.
  • Meanxˉ=∑xn\bar{x}=\dfrac{\sum x}{n}
  • Frequency tablexˉ=∑fx∑f\bar{x}=\dfrac{\sum fx}{\sum f}
  • Medianthe n+12\frac{n+1}{2}th ordered value

Worked example

Find the mean, median and mode of 3, 5, 5, 8, 9.

The mean of 9 values is 7. A tenth value of 17 is added. What is the new mean?

Grouped data

Replace each class by its mid-interval value and use ∑fx∑f\frac{\sum fx}{\sum f}.

When data are grouped into classes such as 25≤t<3025\le t<30, the exact values are lost. To estimate the mean, replace every value in a class by its mid-interval value (here 27.5) and use ∑fx∑f\frac{\sum fx}{\sum f}.

The modal class is the class with the highest frequency. On this course it is only used with equal class widths.

The answer is an estimate because it assumes the values in each class are centred on the mid-interval value.

02468100–1010–2020–30Time tFrequency
Frequencies for the worked example: the modal class is 20 ≤ t < 30

Worked example

Estimate the mean of: 0≤t<100\le t<10 (frequency 4), 10≤t<2010\le t<20 (6), 20≤t<3020\le t<30 (10). State the modal class.

Why is the mean from grouped data only an estimate?

Measures of dispersion

Range uses two values, the IQR uses the middle half, and standard deviation uses every value.

Dispersion measures how spread out the data are.

  • Range == largest −- smallest: depends only on the two most extreme values.
  • Interquartile range IQR=Q3−Q1\text{IQR}=Q_3-Q_1: the spread of the middle 50%, so extreme values do not affect it.
  • Standard deviation σ\sigma: a typical distance from the mean. The variance is σ2\sigma^2.

Find σ\sigma and the variance with technology only. At SL use the population standard deviation, labelled σx\sigma x on most calculators, not sxsx. The standard deviation has the units of the data; the variance has squared units.

0246810121416min 2Q₁ 4median 6Q₃ 9max 15

Range

Uses:
Two extreme values
Affected by extremes:
Yes
Found by:
Largest − smallest

IQR

Uses:
Middle 50%
Affected by extremes:
No
Found by:
Q₃ − Q₁

Standard deviation

Uses:
Every value
Affected by extremes:
Yes
Found by:
Technology

Which measure of spread is not affected by one extreme value?

Quartiles and technology

Use technology; the quartiles split the ordered data into quarters, though methods differ slightly.

The lower quartile Q1Q_1 and upper quartile Q3Q_3 split the ordered data into quarters. For discrete data you find them with technology.

Different methods exist: some calculators exclude the median and take the median of each half, others interpolate. For 38, 39, 41, 42, 44, 45, 46, 47, 48, 51, 120, one method gives Q1=41Q_1=41 and Q3=48Q_3=48, another 41.541.5 and 47.547.5. IB markschemes accept values from standard methods.

The value 120 is far from the rest, yet the quartiles barely notice it.

30405060708090100110120130Q₁ = 41median = 45Q₃ = 48120

Why might your quartiles differ slightly from a markscheme's?

Effect of constant changes

Adding a constant shifts the mean but not the spread; multiplying scales both.

If every value is transformed by y=ax+by=ax+b, adding bb shifts the data but does not change the spread, while multiplying by aa is scaling. The median and mode transform like the mean.

0246810121416MeanStandard deviationMeasureValue
  • x
  • y = 2x + 3
Data 2, 4, 6, 8, 10 (mean 6, σ = 2.83) and y = 2x + 3: the mean becomes 2×6 + 3 = 15 but σ only doubles to 5.66.
  • Meanyˉ=axˉ+b\bar{y}=a\bar{x}+b
  • Standard deviationσy=∣a∣ σx\sigma_y=|a|\,\sigma_x
  • Varianceσy2=a2σx2\sigma_y^2=a^2\sigma_x^2

Worked example

Temperatures have mean 18.4 ∘C18.4\,^{\circ}\text{C} and σ=3.5 ∘C\sigma=3.5\,^{\circ}\text{C}. Find the mean and σ\sigma in degrees Fahrenheit, using F=1.8C+32F=1.8C+32.

Data have mean 10 and standard deviation 2. Each value is changed by y=3x−4y=3x-4. What are the new mean and standard deviation?

Choosing measures

For skewed data or an extreme value use the median and IQR; for roughly symmetric data use the mean and standard deviation.

An extreme value pulls the mean and the standard deviation towards it but barely moves the median and IQR.

For skewed data, or data with an extreme value, the median and IQR usually describe a typical value and the spread better. For roughly symmetric data the mean and standard deviation use all of the data.

0246810MeanMedianMeasureValue
  • Without 40
  • With 40
Data 3, 4, 4, 5, 6 with and without an extreme value of 40: the mean jumps from 4.4 to 10.3 but the median hardly moves.

Roughly symmetric data

Centre:
Mean
Spread:
Standard deviation

Skewed, or an extreme value

Centre:
Median
Spread:
IQR

A data set has one very large extreme value. Which pair best describes it?

Try an exam question

(a) The mean of 9 values is 7. A tenth value of 17 is added. Find the new mean. (b) Another data set has mean 10 and standard deviation 2. Each value is changed using y=3x−4y=3x-4. Find the new mean and standard deviation.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the mean number of books read.

1 mark, marked against the mark scheme

Revision notes