Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

AC 2.7: Quartiles and percentiles

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

65 minutes

Where do you stand in the class?

A pupil scores 68 in a test. The mean is 62. Is 68 good? It depends on how many scored less.

If a pupil beat nine out of ten classmates, that says more than the score alone. Measures of position say where a value sits in the ordered data.

Key words

WordWhat it means
Dataseta collection of records held together for analysis
Positionwhere a value sits when the data is put in order
Quartileone of three values that cut ordered data into four equal parts
Lower quartilethe value with a quarter of the data below it, called Q1
Upper quartilethe value with three quarters of the data below it, called Q3
Interquartile rangethe upper quartile minus the lower quartile: the spread of the middle half
Percentilethe value with a given part of every 100 below it
Medianthe middle value when the data is in order

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can find the quartiles and a percentile of a small dataset and say what they tell me.

Starter

Have a go

Starter

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Cutting ordered data into parts

Put the data in order. The median cuts it in two. The quartiles cut it into four equal parts: Q1 has a quarter below it, Q2 is the median and Q3 has three quarters below it.

A percentile cuts it into 100 parts. The 90th percentile has 90 out of every 100 values at or below it.

Worked example: seven values

StepWorkingResult
Put in order1, 3, 5, 7, 9, 11, 13Seven values
MedianThe 4th value7
Lower half1, 3, 5 (the 7 is left out)Q1 is 3
Upper half9, 11, 13Q3 is 11
Interquartile range11 take away 38

The cells students fill in are left blank in this preview.

Worked example: eight values

StepWorkingResult
Put in order2, 4, 4, 4, 5, 5, 7, 9Eight values
MedianMean of the 4th and 5th: 4 and 54.5
Lower half2, 4, 4, 4Q1 is 4
Upper half5, 5, 7, 9Q3 is 6
Interquartile range6 take away 42

The cells students fill in are left blank in this preview.

Try it: quartiles in Python

Code: python
data = [2, 4, 4, 4, 5, 5, 7, 9]
lower = data[0:4]
upper = data[4:8]
print("lower half", lower)
print("upper half", upper)

# The median of [2, 4, 4, 4] is 4. The median of [5, 5, 7, 9] is 6.
# Change 9 to 90. Do the quartiles change?

Percentiles by nearest rank

To find the 90th percentile of 8 values, work out 90 times 8 divided by 100, which is 7.2. Round up to 8. The answer is the 8th value in order.

Different tools use slightly different rules, so their answers can differ a little. Say which rule you used.

Quartiles vary too. This lesson uses the median of each half. A spreadsheet QUARTILE formula gives 5.5, not 6, for the upper quartile of the eight values.

The lesson goes on

6 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.