James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AI SL › Statistics & probability › Sampling & statistics

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.

SL 4.1–4.3Paper 1Paper 2GDC allowed≈ 65 min to work through
Before you start: mean, median and mode, and frequency tables (Before you start › Averages).

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.

The big idea

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.

MethodHowWeakness
Simple randomevery member has an equal chance (random numbers)needs a full list; may by chance miss a group
Conveniencewhoever is easiest to reachlikely to be biased
Systematicevery kth member of a list, from a random startbiased if the list has a pattern
Quotaa fixed number from each group, chosen non-randomlynot random within groups
Stratifiedeach group sampled in proportion to its size, randomly within groupsneeds the size of each group
Worked example 1Paper 1
A school has 480 students in Year 12 and 720 in Year 13. A stratified sample of 50 students is taken. How many should be from each year?
Total: 1200. Year 12: 4801200×50=20
Year 13: 7201200×50=30

2.2 One-Variable Statistics on the GDC

Worked example 2Paper 1
Ten daily temperatures (°C) are 12, 15, 15, 17, 18, 20, 21, 23, 24, 40. Find (a) the mean and standard deviation (b) the median and the interquartile range (c) whether 40 is an outlier.
Enter the data in a list, then One-Variable Statistics: x¯=20.5, σx=7.42
At SL, treat the data as the whole population, so use σx (unless told it is a sample).
(b) Median =19; Q1=15, Q3=23, so IQR =8
(c) Q3+1.5×IQR=23+12=35. Since 40>35, 40 is an outlier.
Say whether it might be a genuine value or an error: a single hot day is possible, so it may be valid.
Outliers and variance Not in booklet: learn it

An outlier is more than 1.5×IQR below Q1 or above Q3. On a box plot it is marked with a cross, and the whisker stops at the last value that is not an outlier.
Variance =σ2, 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).

Worked example 3Paper 2
The times, t minutes, that 50 people spent in a shop are grouped: 0<t≤10: 5; 10<t≤20: 12; 20<t≤30: 18; 30<t≤40: 10; 40<t≤50: 5. Estimate the mean and standard deviation, and write down the modal class.
Mid-interval values 5, 15, 25, 35, 45 in list 1; frequencies in list 2
In One-Variable Statistics, set the Frequency List to list 2.
Mean ≈24.6 minutes; σ≈11.1 minutes
Modal class: 20<t≤30

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, Q1 at a quarter and Q3 at three quarters, and percentiles in the same way. A box plot shows the minimum, Q1, median, Q3 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

Effect of constant changes Not in booklet: learn it

Adding k to every value adds k to the mean and median, and does not change the standard deviation or IQR.
Multiplying every value by k multiplies the mean, median, standard deviation and IQR by k (and the variance by k2).

Worked example 4 (faded)Paper 1
A set of test marks has mean 24 and standard deviation 3. Every mark is doubled, then 5 is added. Find the new mean and standard deviation.
New mean =2×24+5= 53  ← you work this out
New standard deviation =2×3= 6  ← you work this out
On your TI-Nspire Calculator tricks →

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 x¯, σx (population), sx (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 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 sx when the data is the whole population (at SL, use σx 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: "x¯=20.5, σ=7.42".
  • 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.

FluencyP1
Find the mean, median and standard deviation of 3, 7, 8, 8, 10, 12, 15.
Mean 9, median 8, σ=3.55
FluencyP2
A factory has 300 day workers and 100 night workers. How many night workers are in a stratified sample of 40?
10
FluencyP3
Q1=12, Q3=20. Is 33 an outlier?
20+1.5×8=32; 33>32, so yes.
FluencyP4
Data has mean 50 and variance 16. Every value has 10 subtracted. Find the new mean and standard deviation.
Mean 40; standard deviation 4
Problem solvingP5
The heights (cm) of 50 plants are grouped with mid-interval values 155, 165, 175, 185, 195 and frequencies 4, 11, 20, 10, 5. Estimate the mean and standard deviation.
Mean 175.2 cm; σ≈10.7 cm
Problem solvingP6
A researcher asks the first 30 people leaving a gym how many hours of exercise they do a week. Name the sampling method and explain why the sample may be biased.
Convenience sampling; people at a gym probably exercise more than the population.

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.

Question 1Paper 1[7 marks]

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 sA1
σ=0.177 sA1
(b)
Q1=0.295, Q3=0.355(A1)
0.06 sA1
(c)
0.355+1.5×0.06=0.445M1
0.95>0.445, so it is an outlierR1
(d)
for example, the student was distracted, or a recording errorR1
Question 2Paper 1[5 marks]

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)
24004000×60=36A1
24A1
(b)
it makes sure both age groups are represented in proportionR1
(c)
convenience samplingA1
likely to be biased: library users may not represent the townR1
Question 3Paper 2[7 marks]

The heights of 50 sunflowers are summarised: 150<h≤160: 4; 160<h≤170: 11; 170<h≤180: 20; 180<h≤190: 10; 190<h≤200: 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)
170<h≤180A1
(b)
mid-interval values 155, …, 195 with frequencies(M1)
mean 175.2 cmA1
σ=10.7 cmA1
(c)
mean 179.2 cmA1
standard deviation 10.7 cm (unchanged)A1
(d)
the exact heights are not known; mid-interval values are usedR1

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.

PaperQuestionFocusDifficulty
May 2025 · TZ2 · Paper 1Q8Cumulative frequency of car speeds: percentage over the limit, estimated mean★★★
May 2021 · TZ1 · Paper 2Q1Reading times: sampling method, median, IQR, outliers★★★
May 2025 · TZ3 · Paper 1Q10Box plot of swim times: IQR, show an outlier★★☆
May 2025 · TZ3 · Paper 1Q2Grouped data: estimate the mean and standard deviation★☆☆
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