James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AI HL › Statistics & probability › Data collection & reliability

Designing data collection & reliability

Statistics is only as good as the data behind it. This page is about collecting data that answers the question you are actually asking: writing fair questions, choosing the right variables, grouping data sensibly for a χ² test, and checking that a measurement is both reliable and valid.

AHL 4.12HL onlyPaper 1Paper 2Paper 3GDC allowed≈ 45 min to work through
Before you start: sampling methods (Data, sampling & summary statistics) and χ² tests (χ² tests).

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.

  • Design surveys and questionnaires that avoid bias, using structured questions with consistent answer choicesAHL 4.12
  • Select the relevant variables, and appropriate data, for an investigationAHL 4.12
  • Group numerical data for a χ² test so that every expected frequency is greater than 5AHL 4.12
  • Choose the degrees of freedom for a goodness of fit test when parameters are estimated from the dataAHL 4.12
  • Explain the difference between reliability and validityAHL 4.12
  • Describe test-retest and parallel forms reliability, and content and criterion-related validityAHL 4.12

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

A clever analysis of bad data gives a confident wrong answer. Before any calculation, ask: does this question measure what I want (validity), and would it give the same answer if I measured again (reliability)? Paper 3 questions often ask you to criticise a method, so this vocabulary earns marks.

2.1 Surveys and questionnaires

A biased question pushes people towards an answer: leading wording ("Don’t you agree…"), loaded words ("the much-needed…"), or two questions in one. A structured question offers fixed answer choices that are consistent and cover every option (for example a 1–5 scale, or ranges that do not overlap). An unstructured (open) question lets people answer freely: richer, but hard to analyse. Personal or sensitive questions may get dishonest answers unless responses are anonymous. Questions should be precise: "How many hours did you spend on homework last week?" not "Do you do a lot of homework?"

Worked example 1Paper 1
A school asks: "Don’t you agree that the canteen is far too expensive?" with answers Yes / No. Give two criticisms and write a better question.
It is leading ("Don’t you agree"), and loaded ("far too expensive").
Yes/No gives no sense of strength of opinion.
Better: "How would you rate the value for money of canteen food?" 1 Very poor, 2 Poor, 3 Fair, 4 Good, 5 Very good.
Structured, neutral and with consistent choices.

2.2 Choosing variables and data

Real data sets have many variables. Choose the ones that relate to the question, that can be measured accurately, and that are not just another version of a variable you already have. Choose data that represents the population you are interested in (the right place, time and group), and is large enough to be useful.

Worked example 2Paper 1
A student investigates whether the size of a flat affects its rent in Madrid. The data set includes rent, floor area, number of bedrooms, the agent’s name, the listing date and the photo count. Which variables should she use?
Rent (response) and floor area (explanatory).
Number of bedrooms is another measure of size, so it could replace floor area, but not both should be used as if independent. The agent’s name and photo count are not relevant to the question.
She should restrict the data to one area or account for location, since location strongly affects rent.
Choosing appropriate data, not just all data.

2.3 Grouping data for a χ² goodness of fit test

A χ² test is unreliable when expected frequencies are small. Every expected frequency must be greater than 5; if one is not, combine it with a neighbouring category and combine the observed frequencies in the same way. Combine categories in a way that makes sense (adjacent values, usually at the tails).

Degrees of freedom for goodness of fit Not in booklet: learn it
ν=(number of categories after combining)−1−(number of parameters estimated from the data)

Fitting a Poisson with λ estimated from the data: subtract 1 more. A binomial with p estimated: 1 more. A normal with μ and σ both estimated: 2 more.

A football analyst records the goals scored in 100 matches. The sample mean is 1.94 goals per match.

Goals012345 or more
Matches18223014106
Worked example 3Paper 2
Test, at the 5% level, whether a Poisson distribution is a suitable model.
H0: the goals follow a Poisson distribution; H1: they do not.
Using λ=1.94: expected 14.37, 27.88, 27.04, 17.49, 8.48, 4.74
100 × P(X = x); the last is 100 × P(X ≥ 5).
4.74 < 5, so combine "4" and "5 or more": observed 16, expected 13.22
ν=5−1−1=3 (one parameter, λ, was estimated)
χcalc2=3.76, p-value=0.289>0.05
Do not reject H0: there is not enough evidence that the Poisson model is unsuitable.
Worked example 4 (faded)Paper 1
Data in 6 categories (after combining) are fitted to a binomial distribution with p estimated from the data. Find the degrees of freedom.
6−1−1= 4  ← you work this out

2.4 Reliability and validity

TermMeaningHow to check
Reliabilitythe measurement gives consistent resultsTest-retest: the same people take the same test twice; a high correlation between the two sets of scores shows reliability. Parallel forms: the same people take two different versions of the test designed to be equivalent; a high correlation shows reliability.
Validitythe measurement measures what it claims to measureContent validity: experts check that the test covers all the relevant content. Criterion-related validity: compare scores with an established measure (or a later outcome); a high correlation shows validity.

A bathroom scale that always reads 2 kg too heavy is reliable (consistent) but not valid (it does not give the true mass). Reliability is necessary for validity, but not enough on its own.

Worked example 5Paper 1
A new 10-minute reading test is given to 15 students, then given again two weeks later. The correlation between the two sets of scores is 0.91. What does this show?
This is a test-retest check of reliability.
r=0.91 is strong, so the test is reliable: students get similar scores each time.
It says nothing about validity: the test might consistently measure something other than reading ability.
On your TI-Nspire Calculator tricks →

For a goodness of fit test on the TI-Nspire, put the observed frequencies in list o and the expected frequencies in list e (after combining), then use menu → Statistics → Stat Tests → χ² GOF and enter the degrees of freedom yourself, remembering to subtract the estimated parameters. Expected Poisson frequencies come from 100·poissPdf(1.94, x), and the last category from 100·(1 − poissCdf(1.94, 0, 4)). For reliability, correlate the two sets of scores with menu → Statistics → Stat Calculations → Linear Regression.

3Explore it

These are the expected frequencies for 100 observations from a Poisson model. Change the mean and the number of observations. Bars in dark blue have expected frequencies of 5 or less, so they would need to be combined with a neighbour before a χ² test.

4Common mistakes & exam tips

Common mistakes

  • Combining observed frequencies but forgetting to combine the expected ones (or the other way round).
  • Checking the observed frequencies for "greater than 5". The rule is about expected frequencies.
  • Forgetting to subtract 1 from the degrees of freedom for each parameter estimated from the data.
  • Confusing reliability (consistency) with validity (measuring the right thing).
  • Criticising a question vaguely ("it is biased") without saying which words make it biased.

Exam tips

  • When asked to criticise a method, name the issue and its effect: "only people online were asked, so older residents are under-represented".
  • State clearly which categories you combined and why.
  • For a parallel forms test, both versions must be taken by the same people.
  • Criterion-related validity always needs a second, trusted measure to compare against.

5Practice

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

FluencyP1
Give one advantage and one disadvantage of an unstructured (open) question.
Advantage: richer, unexpected answers. Disadvantage: hard to categorise and analyse.
FluencyP2
A normal distribution is fitted to grouped data in 7 classes, with mean and standard deviation estimated from the data. Find the degrees of freedom.
7−1−2=4
FluencyP3
Explain the difference between test-retest and parallel forms reliability.
Test-retest: the same test taken twice. Parallel forms: two equivalent versions of the test.
FluencyP4
A survey asks "How often do you exercise?" with choices 0–1, 1–2, 2–3, 3+ hours per week. Identify the problem.
The ranges overlap (1, 2 and 3 appear twice), so some answers fit two choices.
Problem solvingP5
A new fitness app estimates VO₂ max. Describe how you would check its criterion-related validity.
Measure a group with the app and with a laboratory treadmill test, then find the correlation between the two sets of results.
Problem solvingP6
In the goals example, explain why "5 or more" had to be combined, and not "0".
Expected for 5+ was 4.74 (less than 5); expected for 0 was 14.37, which is fine.

6Exam-style questions

Original questions in the style of the IB Maths AI HL 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[5 marks]

A city council wants to know residents’ views on a new cycle lane. It posts a questionnaire on its website containing the question: "How strongly do you support the much-needed new cycle lane?"

  • (a)Give two reasons why this question may produce biased results.[2]
  • (b)Write an improved version of the question, including the answer choices.[2]
  • (c)Explain why posting the questionnaire only on the website may give unrepresentative results.[1]
(a)
"much-needed" is a loaded phraseR1
"How strongly do you support" assumes the person supports it (leading)R1
(b)
neutral wording, for example "What is your opinion of the proposed cycle lane?"A1
consistent structured choices, for example strongly oppose / oppose / neutral / support / strongly supportA1
(c)
residents without internet access, or who do not visit the website (for example older residents), are excludedR1
Question 2Paper 2[9 marks]

The number of breakdowns per day on a city’s tram network was recorded for 80 days.

Breakdowns01234 or more
Days22291784
It is suggested that the number of breakdowns per day follows a Poisson distribution with mean 1.3, the value estimated from these data.

  • (a)Find the expected number of days with 0 breakdowns and with 4 or more breakdowns.[3]
  • (b)Explain why two of the categories must be combined.[1]
  • (c)State the number of degrees of freedom for a goodness of fit test, giving a reason.[2]
  • (d)Carry out the test at the 5% significance level, stating the p-value and your conclusion.[3]
(a)
80×P(X=0)=21.8(M1)A1
80×P(X≥4)=3.45A1
(b)
the expected frequency for "4 or more" is less than 5R1
(c)
4−1−1=2A1
4 categories after combining, and λ was estimated from the dataR1
(d)
combined observed 12, expected 11.4(M1)
p=0.925 (χ2=0.155)A1
0.925>0.05, so do not reject H0: the Poisson model is suitableR1
Question 3Paper 1[6 marks]

A teacher writes a new 10-minute reading test. Fifteen students take the test, and take it again two weeks later. The correlation between the two sets of scores is 0.91.

  • (a)Name this method of checking the test, and state whether it checks reliability or validity.[2]
  • (b)Comment on the value 0.91.[1]
  • (c)Describe how the teacher could check the criterion-related validity of the test.[2]
  • (d)The teacher writes a second version of the test. Explain how the two versions could be used to check reliability.[1]
(a)
test-retestA1
reliabilityA1
(b)
strong positive correlation, so the test is reliableR1
(c)
give the same students an established reading testM1
and find the correlation between the two sets of scores (a high value shows validity)R1
(d)
parallel forms: the same students take both versions and the scores are correlatedR1

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 are scoring well above, try these real IB Maths AI HL questions on this topic. Your school or teacher will have the papers.

PaperQuestionFocusDifficulty
May 2023 · TZ1 · Paper 2Q5Bird sightings: Poisson goodness of fit with an estimated mean★★★
Nov 2023 · Paper 2Q2Student heights: fitting a normal model to grouped data★★☆
May 2021 · TZ1 · Paper 3Q2Validity and reliability of a firm’s recruitment process★★★
May 2021 · TZ2 · Paper 3Q1Reviewing the methods of a study on income and happiness★★★
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