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.
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.
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?"
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.
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).
Fitting a Poisson with estimated from the data: subtract 1 more. A binomial with 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.
| Goals | 0 | 1 | 2 | 3 | 4 | 5 or more |
|---|---|---|---|---|---|---|
| Matches | 18 | 22 | 30 | 14 | 10 | 6 |
2.4 Reliability and validity
| Term | Meaning | How to check |
|---|---|---|
| Reliability | the measurement gives consistent results | Test-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. |
| Validity | the measurement measures what it claims to measure | Content 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.
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.
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.
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 phrase | R1 |
| "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 support | A1 |
| (c) | |
| residents without internet access, or who do not visit the website (for example older residents), are excluded | R1 |
The number of breakdowns per day on a city’s tram network was recorded for 80 days.
| Breakdowns | 0 | 1 | 2 | 3 | 4 or more |
|---|---|---|---|---|---|
| Days | 22 | 29 | 17 | 8 | 4 |
- (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 -value and your conclusion.[3]
| (a) | |
| (M1)A1 | |
| A1 | |
| (b) | |
| the expected frequency for "4 or more" is less than 5 | R1 |
| (c) | |
| A1 | |
| 4 categories after combining, and was estimated from the data | R1 |
| (d) | |
| combined observed 12, expected 11.4 | (M1) |
| () | A1 |
| , so do not reject : the Poisson model is suitable | R1 |
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-retest | A1 |
| reliability | A1 |
| (b) | |
| strong positive correlation, so the test is reliable | R1 |
| (c) | |
| give the same students an established reading test | M1 |
| 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 correlated | 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 are scoring well above, try these real IB Maths AI HL questions on this topic. Your school or teacher will have the papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| May 2023 · TZ1 · Paper 2 | Q5 | Bird sightings: Poisson goodness of fit with an estimated mean | ★★★ |
| Nov 2023 · Paper 2 | Q2 | Student heights: fitting a normal model to grouped data | ★★☆ |
| May 2021 · TZ1 · Paper 3 | Q2 | Validity and reliability of a firm’s recruitment process | ★★★ |
| May 2021 · TZ2 · Paper 3 | Q1 | Reviewing the methods of a study on income and happiness | ★★★ |
