Sampling & summary statistics
How data is collected, how it is displayed and how it is summarised. Sampling methods and bias, outliers, histograms, cumulative frequency graphs and box plots, and the mean, median, quartiles and standard deviation, all found with One-Variable Statistics on the GDC.
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 words population, sample, random sample, discrete and continuous dataSL 4.1
- Describe simple random, convenience, systematic, quota and stratified sampling, and their weaknessesSL 4.1
- Decide whether a value is an outlier, using 1.5 × IQRSL 4.1
- Draw and read histograms, cumulative frequency graphs and box plotsSL 4.2
- Find the mean, median, mode, quartiles, IQR, standard deviation and variance with the GDC, including grouped dataSL 4.3
- Know the effect on the mean and standard deviation of adding to or multiplying every valueSL 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.
Statistics answers two questions: where is the middle? (mean, median) and how spread out is it? (range, IQR, standard deviation). In AI SL the GDC computes all of them in one go with One-Variable Statistics; you choose which ones matter and explain them. Before any of that, ask whether the data can be trusted: how was it sampled?
2.1 Populations, samples and sampling methods
The population is everyone or everything you are interested in; a sample is the part you actually measure. Discrete data is counted (number of siblings); continuous data is measured (height, time). A sample is biased if some members of the population are more likely to be chosen than others.
| Method | How | Weakness |
|---|---|---|
| Simple random | every member has an equal chance (random numbers) | needs a full list; may by chance miss a group |
| Convenience | whoever is easiest to reach | likely to be biased |
| Systematic | every th member of a list, from a random start | biased if the list has a pattern |
| Quota | a fixed number from each group, chosen non-randomly | not random within groups |
| Stratified | each group sampled in proportion to its size, randomly within groups | needs the size of each group |
2.2 One-Variable Statistics on the GDC
An outlier is more than below or above . On a box plot it is marked with a cross, and the whisker stops at the last value that is not an outlier.
Variance , the square of the standard deviation.
2.3 Grouped data
For grouped data, use the mid-interval values as the data and the frequencies as the frequency list. The mean and standard deviation are then estimates. The modal class is the class with the highest frequency (equal class widths only).
2.4 Graphs of data
Histograms (equal class widths) show the shape of a distribution. A cumulative frequency graph plots the running total against the upper end of each class; read the median at half the total frequency, at a quarter and at three quarters, and percentiles in the same way. A box plot shows the minimum, , median, and maximum. A roughly symmetric box plot suggests the data may be normally distributed.
To compare two distributions, compare a measure of the middle (median) and a measure of spread (IQR or range), in context: "Group A took longer on average (higher median) and their times were more consistent (smaller IQR)."
2.5 Changing every value
Adding to every value adds to the mean and median, and does not change the standard deviation or IQR.
Multiplying every value by multiplies the mean, median, standard deviation and IQR by (and the variance by ).
Lists & Spreadsheet page: type the data in column A (name it, for example temp). Then on a Calculator page: menu → Statistics → Stat Calculations → One-Variable Statistics, choose the list (and a frequency list for grouped data). The output gives , (population), (sample), MinX, Q₁X, MedianX, Q₃X, MaxX. Box plot: on a Data & Statistics page, choose the list for the horizontal axis, then menu → Plot Type → Box Plot.
3Explore it
The data set is 12, 15, 15, 17, 18, 20, 21, 23, 24 and . Move to see how an extreme value affects the mean, the median and the box plot.
4Common mistakes & exam tips
Common mistakes
- Using when the data is the whole population (at SL, use unless told it is a sample).
- Using class boundaries instead of mid-interval values for grouped data.
- Plotting cumulative frequency at the middle of each class instead of the upper end.
- Saying stratified sampling takes "the same number from each group": it is in proportion.
- Comparing distributions with only one statistic, or without context.
Exam tips
- Write the GDC values you use: ", ".
- Different methods give slightly different quartiles; the IB accepts GDC values.
- For an outlier question, show the calculation of the boundary, then the comparison.
- In "comment on" questions, think about bias, sample size and whether an outlier is an error.
5Practice
Fluency questions build the basics. Problem-solving questions make you think about which method to use.
6Exam-style questions
Original questions in the style of the IB Maths AI SL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.
The reaction times, in seconds, of 12 students are: 0.31, 0.28, 0.35, 0.42, 0.29, 0.33, 0.30, 0.95, 0.36, 0.32, 0.27, 0.34.
- (a)Find the mean and the standard deviation.[2]
- (b)Find the interquartile range.[2]
- (c)Show that 0.95 is an outlier.[2]
- (d)Suggest one reason why this value might have occurred.[1]
| (a) | |
| mean 0.377 s | A1 |
| s | A1 |
| (b) | |
| , | (A1) |
| 0.06 s | A1 |
| (c) | |
| M1 | |
| , so it is an outlier | R1 |
| (d) | |
| for example, the student was distracted, or a recording error | R1 |
A town has 2400 adults aged under 40 and 1600 aged 40 or over. A council wants a sample of 60 adults.
- (a)Find how many adults in each age group should be chosen for a stratified sample.[2]
- (b)Explain why a stratified sample may be better than a simple random sample here.[1]
- (c)The council instead surveys the first 60 people at the town library. Name this sampling method and give one disadvantage.[2]
| (a) | |
| A1 | |
| 24 | A1 |
| (b) | |
| it makes sure both age groups are represented in proportion | R1 |
| (c) | |
| convenience sampling | A1 |
| likely to be biased: library users may not represent the town | R1 |
The heights of 50 sunflowers are summarised: : 4; : 11; : 20; : 10; : 5.
- (a)Write down the modal class.[1]
- (b)Estimate the mean and the standard deviation.[3]
- (c)Every sunflower grows a further 4 cm. Write down the new estimated mean and standard deviation.[2]
- (d)Explain why the values in (b) are estimates.[1]
| (a) | |
| A1 | |
| (b) | |
| mid-interval values 155, …, 195 with frequencies | (M1) |
| mean 175.2 cm | A1 |
| cm | A1 |
| (c) | |
| mean 179.2 cm | A1 |
| standard deviation 10.7 cm (unchanged) | A1 |
| (d) | |
| the exact heights are not known; mid-interval values are used | R1 |
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 these real IB Maths AI SL questions. Your school or teacher will have the papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| May 2025 · TZ2 · Paper 1 | Q8 | Cumulative frequency of car speeds: percentage over the limit, estimated mean | ★★★ |
| May 2021 · TZ1 · Paper 2 | Q1 | Reading times: sampling method, median, IQR, outliers | ★★★ |
| May 2025 · TZ3 · Paper 1 | Q10 | Box plot of swim times: IQR, show an outlier | ★★☆ |
| May 2025 · TZ3 · Paper 1 | Q2 | Grouped data: estimate the mean and standard deviation | ★☆☆ |
