James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AA SL › Topic 4: Statistics & probability › Data & summary statistics

Data: sampling, presenting & summary statistics

Populations and samples, sampling methods, presenting data, and measures of central tendency and spread, including outliers.

SL 4.1SL 4.2SL 4.3Paper 1Paper 2≈ 60 min to work through
Before you start: percentages and ratio. See Before you start SL › Percentages and ratio.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Know the difference between a population and a sample, and between discrete and continuous dataSL 4.1
  • Describe simple random, convenience, systematic, quota and stratified samplingSL 4.1
  • Read and draw histograms, cumulative frequency graphs and box plotsSL 4.2
  • Find the mean, median, mode, quartiles, range, IQR and standard deviationSL 4.3
  • Identify outliers using 1.5×IQRSL 4.2
  • Know the effect of adding or multiplying by a constantSL 4.3

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

Statistics turns a pile of numbers into a few useful facts. First you collect data fairly (sampling), then you describe it: a measure of the centre (mean or median) and a measure of the spread (range, IQR or standard deviation).

2.1 Sampling

It is often impossible or too expensive to ask everyone in a population, so we ask a sample. The sample is only useful if it represents the population fairly. A biased sample, such as asking only your friends, can give misleading results however carefully you calculate.

MethodHow
Simple randomevery member equally likely to be chosen (e.g. random numbers)
Conveniencewhoever is easiest to reach: quick but likely to be biased
Systematicevery kth member of a list
Quotaa fixed number from each group, not chosen at random
Stratifiedrandom samples from each group, in proportion to the group sizes

Discrete data is counted (number of siblings); continuous data is measured (height, time).

Worked example 1Paper 1
A school has 240 students in Year 12 and 360 in Year 13. A stratified sample of 50 is chosen. How many come from each year?
Total 600. Year 12: 240600×50=20
Year 13: 360600×50=30

2.2 Summary statistics

Two data sets can have the same mean but be very different: 49, 50, 51 and 0, 50, 100 both have mean 50. You need a measure of centre and a measure of spread to describe data properly.

The mean uses every value but is pulled by extreme values. The median is the middle value and ignores extremes, so it is better for skewed data such as salaries or house prices. In the same way, the standard deviation uses every value (roughly the typical distance from the mean), while the IQR measures the spread of the middle half and ignores outliers.

  • Median: the middle value. Quartiles: the medians of the lower and upper halves.
  • IQR =Q3−Q1. Range = max − min.
  • An outlier is less than Q1−1.5×IQR or more than Q3+1.5×IQR.
  • Standard deviation σ measures spread about the mean; variance is σ2. On Paper 2 find it with the GDC.
Worked example 2Paper 1
For the data 3, 5, 7, 8, 9, 12, 15, 21, find the mean, median, quartiles and IQR, and test 21 for being an outlier.
Mean =808=10. Median =8+92=8.5.
Q1 is the median of 3, 5, 7, 8: 6. Q3 is the median of 9, 12, 15, 21: 13.5. IQR =7.5.
Upper fence =13.5+1.5(7.5)=24.75. 21 is below it, so it is not an outlier.
Show the fence calculation: it is the method mark.
Worked example 3Paper 2
Estimate the mean of this grouped data: 0≤t<10: 5, 10≤t<20: 8, 20≤t<30: 7.
Use the midpoints 5, 15, 25.
5(5)+15(8)+25(7)20=32020=16
It is an estimate, because the exact values are not known.

2.3 Changing the data

Why does this happen?

Adding 5 to every value slides the whole data set along the number line: the centre moves by 5, but the gaps between values stay the same, so the spread does not change. Doubling every value doubles both the values and the gaps between them, so the centre and the spread both double. Variance is the standard deviation squared, so it is multiplied by k2.

Adding a constant c to every value adds c to the mean, median and quartiles, but does not change the spread. Multiplying every value by k multiplies the averages and the standard deviation, range and IQR by k (the variance by k2).

Worked example 4Paper 1
A data set has mean 10 and standard deviation 3. Each value is doubled and then 3 is added. Find the new mean and standard deviation.
Mean: 2(10)+3=23
Standard deviation: 2(3)=6 (adding 3 does not change it).
Worked example 5 (faded)Paper 1
For a data set, Q1=20 and Q3=30. Find the outlier boundaries.
IQR = 10  ← you work this out
Lower: 20−15= 5  ← you work this out
Upper: 30+15= 45  ← you work this out
On your TI-Nspire Calculator tricks →

Enter data in a Lists & Spreadsheet column, then menu → 4: Statistics → 1: Stat Calculations → 1: One-Variable Statistics. For grouped data, put midpoints in one list and frequencies in another, and set the Frequency List. Use σx for the standard deviation of the data.

3Explore it

The data set is 12, 15, 15, 17, 18, 20, 21, 23, 24 and X. Move X to see how an extreme value affects the mean, the median and the box plot.

4Common mistakes & exam tips

Common mistakes

  • Using the standard deviation sx instead of σx from the GDC.
  • Including the median in both halves when finding quartiles of an odd-sized set.
  • Using class boundaries instead of midpoints for a grouped mean.
  • Saying adding a constant changes the standard deviation.
  • Calling a value an outlier without showing the fence calculation.

Exam tips

  • "Estimate" in a grouped-data question is a clue to use midpoints.
  • When comparing two data sets, compare an average and a measure of spread, in context.
  • Describe why a sampling method could be biased, not just that it is.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Find the mean of 4, 8, 9, 11, 13.
455=9
FluencyP2
Find the median of 2, 5, 7, 10, 14, 20.
7+102=8.5
FluencyP3
Q1=14 and Q3=26. Find the IQR.
12
FluencyP4
Is "number of siblings" discrete or continuous?
Discrete: it is counted.
Problem solvingP5
The mean of five numbers is 12. Four of them are 10, 11, 14 and 15. Find the fifth.
Total =60, so the fifth is 60−50=10.
Problem solvingP6
Temperatures have mean 50 °F and standard deviation 4 °F. They are converted with y=1.5x−10. Find the new mean and standard deviation.
Mean 1.5(50)−10=65; standard deviation 1.5(4)=6.

6Exam-style questions

Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.

Question 1Paper 1[6 marks]

The data set 1, 3, 4, 4, 6, 8, 9, 12, 25 is given.

  • (a)Write down the median.[1]
  • (b)Find the lower and upper quartiles.[2]
  • (c)Find the interquartile range.[1]
  • (d)Show that 25 is an outlier.[2]
(a)
6A1
(b)
Q1=3.5A1
Q3=10.5A1
(c)
7A1
(d)
10.5+1.5(7)=21M1
25>21, so 25 is an outlierR1 AG
Question 2Paper 2[6 marks]

The times, t minutes, that 30 students take to travel to school are: 0≤t<10: 4; 10≤t<20: 9; 20≤t<30: 12; 30≤t<40: 5.

  • (a)Write down the modal class.[1]
  • (b)Estimate the mean time.[2]
  • (c)Estimate the standard deviation.[2]
  • (d)Write down the number of students who take at least 20 minutes.[1]
(a)
20≤t<30A1
(b)
Midpoints 5, 15, 25, 35 with frequenciesM1
21 minutesA1
(c)
GDC with midpoints and frequenciesM1
9.17 minutesA1
(d)
17A1
Question 3Paper 1[4 marks]

A school has 320 boys and 280 girls. A teacher asks the first 30 students to arrive in the library to complete a survey.

  • (a)Name this sampling method and explain why it may be biased.[2]
  • (b)A stratified sample of 40 students is to be chosen instead. Find how many boys and girls should be in it.[2]
(a)
Convenience samplingA1
Students in the library may not represent the school (e.g. keener readers)R1
(b)
320600×40=21.3M1
21 boys and 19 girlsA1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.

PaperQuestionFocusDifficulty
May 2025 · TZ3 · Paper 1Q1Box plot: interquartile range and number of golfers scoring 70-74★☆☆
Nov 2025 · TZ3 · Paper 2Q4Box plot of 28 scores; deduce two absent pupils' scores from mean, range★★☆
May 2022 · TZ2 · Paper 2Q5Box plots of reaction times: median, outlier test, skew, causation comment★★☆
Nov 2023 · TZ1 · Paper 1Q7Grouped ticket data: median, cumulative frequency, sampling methods, box plot, mean and variance★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake