Measures of location

Measures of location

Spec 2.2 · Edexcel International A Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • The mean is xˉ=∑xn\bar x=\dfrac{\sum x}{n}; the median is the n+12\frac{n+1}{2}th value in order; the mode is the most frequent value.
  • For a frequency table, xˉ=∑fx∑f\bar x=\dfrac{\sum fx}{\sum f}, where ∑f=n\sum f=n.
  • For grouped data use midpoints for the mean and linear interpolation for the median: both are estimates.
  • With coding y=x−aby=\frac{x-a}{b}, decode with xˉ=byˉ+a\bar x=b\bar y+a; combine means using totals.
  • The median is not affected by extreme values; the mean is.

Mean, median and mode

The mean uses every value, the median is the middle value in order, and the mode is the most frequent value.

A measure of location is a single value that describes the centre of a data set.

For nn values x1,…,xnx_1,\dots,x_n the mean is xˉ=∑xn\bar x=\frac{\sum x}{n}. The median is the middle value when the data are in order (the n+12\frac{n+1}{2}th value), or the mean of the two middle values when nn is even. The mode is the most frequent value.

Data can be discrete (counts, such as goals) or continuous (measurements, such as time and mass).

01234567891012: median and mode3mean 3.610
  • Meanxˉ=∑xn\bar x=\dfrac{\sum x}{n}
  • Mediann+12\dfrac{n+1}{2}th value
  • Modemost frequent value

Worked example

Find the mean, median and mode of 0, 1, 1, 2, 2, 2, 3, 3, 4, 6.

Find the median of 7, 3, 9, 4, 8.

Frequency tables

Use xˉ=∑fx∑f\bar x=\dfrac{\sum fx}{\sum f}, dividing by the total frequency, not the number of rows.

When values are repeated, data are given in a frequency table. Then xˉ=∑fx∑f\bar x=\frac{\sum fx}{\sum f}, where ∑f=n\sum f=n. Do not divide by the number of rows.

For the median, use cumulative frequency to locate the n+12\frac{n+1}{2}th value.

The mode is the value with the highest frequency, not the frequency itself.

012345123xFrequency f
Frequencies for x=1,2,3x=1,2,3. The tallest bar is at x=2x=2, so the mode is 2.
  • Mean from a tablexˉ=∑fx∑f\bar x=\dfrac{\sum fx}{\sum f}

Worked example

x=1,2,3x=1,2,3 with f=4,5,1f=4,5,1. Find the mean, median and mode.

A table has x=0,1,2x=0,1,2 with f=3,5,2f=3,5,2. What is ∑f\sum f?

Grouped continuous data

With grouped data only estimates are possible: use midpoints for the mean and linear interpolation for the median.

For grouped data the individual values are lost, so only estimates are possible.

The modal class has the highest frequency; when widths differ, use the highest frequency density. The mean uses class midpoints.

The median uses linear interpolation, assuming data are evenly spread within each class. Find the class containing the n2\frac n2th value, where LL is its lower boundary, FF the cumulative frequency before it, ff its frequency and ww its width.

02468100–1010–2020–3030–40ClassFrequency
Illustrative grouped data: the modal class is 10–20, which has the highest frequency (equal class widths)
  • MedianL+n2−Ff×wL+\dfrac{\frac n2-F}{f}\times w
  • Mean∑fx∑f\dfrac{\sum fx}{\sum f}, xx = midpoint

Worked example

Classes 0 to under 10, 10 to under 20, 20 to under 30, 30 to under 50 have f=4,10,16,10f=4,10,16,10. Estimate the mean and median.

Which class is the modal class when widths differ?

Coding

Coding transforms each value; the mean obeys the same transformation, so decode at the end. To combine samples, use totals.

Coding simplifies arithmetic by transforming each value, for example y=x−aby=\frac{x-a}{b}.

The mean and median obey the same transformation: if y=x−aby=\frac{x-a}{b} then yˉ=xˉ−ab\bar y=\frac{\bar x-a}{b}, so xˉ=byˉ+a\bar x=b\bar y+a. The mode transforms in the same way.

To combine two samples, use totals. Never average the two means directly unless the samples are equal in size.

102030405060−4−22468xy(20, 0)(45, 5)y = (x − 20)/5
Coding y = (x − 20)/5: x = 20 codes to 0 and x = 45 codes to 5, and the mean follows the same line
  • Decode the meanxˉ=byˉ+a\bar x=b\bar y+a
  • Combined meann1xˉ1+n2xˉ2n1+n2\dfrac{n_1\bar x_1+n_2\bar x_2}{n_1+n_2}

Worked example

Masses mm are coded as y=m−50010y=\frac{m-500}{10}. For 20 values, ∑y=36\sum y=36. Find the mean mass.

Sample A has 10 values with mean 4. Sample B has 30 values with mean 8. What is the combined mean?

Interpreting measures of location

Choose the measure that suits the data: the median for skewed data or outliers, the mean otherwise, and the mode for the most popular choice.

Choose the measure that suits the data.

In a context question, name the measure, give a reason from the data, and state the conclusion in the context of the question.

When asked to compare two data sets, comment on a measure of location (a typical value) and a measure of spread (how consistent the values are).

Always refer to the context: write typical salary, not just average.

01020304050607080901002022median 24.5mean 36.2outlier 100

Mean

  • Uses every value
  • Distorted by extreme values

Median

  • Not affected by extreme values
  • Better for skewed data, such as salaries

Mode

  • Works for non-numerical data
  • May be none or several

Salaries in a firm include one very large director's salary. Which average best describes a typical salary?

Try an exam question

The times, tt minutes, taken by 4040 customers are grouped: 00–55 (66 customers), 55–1010 (1414), 1010–2020 (1212) and 2020–4040 (88). Estimate the mean time and the median time.

[5 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the mean number of goals scored per match.

1 mark, marked against the mark scheme

Revision notes