Statistics & probability · AI SL & HL
Sampling and bias
Judge whether data represents a population, distinguish sampling methods and explain how bias affects conclusions.
Course focus: AI SL & HL: use technology to support calculation, show the mathematical setup and interpret the result in its context. Additional HL methods are labelled below.
Before you start: Populations, proportions and reading a question in context.
Build it from the beginning
A population is the whole group you want to describe; a sample is the part actually observed. A bigger sample does not automatically fix a biased selection process. Ask who can enter the sample and who is systematically missing.
A first walkthrough
A school asks only its sports-club members about student exercise. Identify the sampling problem.
- The target population is all students.
- The sample excludes students outside the clubs.
- Club members are likely to exercise more, so the method may overestimate typical exercise.
The foundations behind the method
Understand what the symbols mean
The population is the full group of interest; a sample is the observed subset. A census attempts to observe everyone. Sampling variation means different legitimate samples produce different results. Bias is a systematic tendency caused by selection, nonresponse, measurement or question wording.
How the ideas connect
Random selection helps make selection probabilities controlled, but does not cure a poor sampling frame or nonresponse. Stratification samples within relevant groups to improve representation. Increasing sample size reduces some random variation but cannot repair a systematically excluded group.
Start with the idea
Build your understanding
Statistics starts with how data are obtained. A large sample cannot repair a systematic selection bias. Define the population and the question being estimated before judging whether a sample design is appropriate.
Representation
Different groups may have different outcomes or different chances of participating. A sampling frame that omits a group can distort conclusions.
Random variation versus bias
Random variation changes between samples; bias systematically favours certain outcomes. Increasing size reduces some random uncertainty but does not remove a faulty selection mechanism.
Compare the approaches
Choose by the information in the question, rather than the formula you recognise first.
Random sampling
When it helpsUse chance-based selection from an appropriate frame.
Check before using itSimple random sampling makes every fixed-size group equally likely.
Stratified sampling
When it helpsSample within named groups, often proportionally.
Check before using itSelection within each stratum still needs an appropriate mechanism.
Your method plan
- Define the target population and measurable variable.
- Identify who can enter the sampling frame and who may not respond.
- Explain a specific bias and propose a matching design improvement.
Learn the methods
Learn step by step
1. Population and sample
The population is the complete group about which a conclusion is intended. A sample is the subset actually observed. Define both specifically: “students” may be too broad if the question concerns students at one school. A census observes the whole population, but may still suffer nonresponse or measurement problems.
Sample proportion
Why this formula works
A proportion is the count satisfying the characteristic divided by the total observed. It summarises the sample, not automatically the entire population; representativeness is a separate issue.
\(\hat p=x/n\), where x is the count possessing the characteristic and n the sample size.
Quick example
If 18 of 30 respondents cycle to school, the sample proportion is \(\frac{18}{30}=0.6\). A volunteer sample may not support the same population claim.
2. Sampling methods
A simple random sample of fixed size n gives every possible group of n distinct eligible individuals the same chance of selection. Equal inclusion probability alone does not establish that stronger condition. A systematic sample uses a random starting point and a fixed interval; a hidden cycle in the list can cause bias. Stratified sampling randomly samples within relevant groups, often in proportion to their sizes. Quota sampling fills chosen group totals without necessarily selecting individuals randomly.
Proportional allocation
Why this formula works
Proportional sampling keeps each stratum’s share of the sample equal to its share of the population. Set \(n_{i}/n=N_{i}/N\) and rearrange. Rounding allocations may require adjustment so they still add to n.
\(n_i=nN_i/N\), where Nᵢ is stratum population, N total population and n total sample. Round with a stated adjustment that preserves the total.
Quick example
If a group is 40% of a population and the sample has 50 people, allocate \(0.4\times 50=20\) to it, selected randomly within the group.
Sampling interval
Why this formula works
To spread approximately n selections through a list of N names, take roughly one in every \(N/n\) entries. Randomising the starting position avoids always beginning with the same part of the list; periodic patterns can still cause bias.
A systematic sample often uses interval approximately \(N/n\), with a random starting position.
Quick example
From 100 names, a systematic sample of 10 can use every tenth name after a random start from the first ten.
Worked example: Allocate a stratified sample
A school has 300 SL and 200 HL students. Allocate a sample of 50 proportionally.
- The population size is 500. SL allocation is \(50\times \frac{300}{500}=30\).
- HL allocation is \(50\times \frac{200}{500}=20\). Select randomly within both groups.
- The allocation preserves their 60% and 40% population shares; choosing the first names on each list would not be random.
3. Convenience and self-selection
An online poll, volunteers or the people easiest to reach may systematically differ from the population. The problem is not merely sample size. A huge biased sample can give a less useful estimate than a smaller representative random sample.
A large sample can still miss part of a population
4. Sources of bias
Coverage bias leaves parts of the population out of the sampling frame. Nonresponse bias occurs when people who do not respond differ in relevant ways. Leading questions and unreliable measurement change the data collected. Identify the mechanism and connect it to the measured variable rather than just writing “biased”.
Worked example: Explain a specific bias
A gym surveys members at 6 a.m. to estimate all members’ weekly attendance. Identify a limitation.
- People present at 6 a.m. may attend more regularly than absent members.
- The sampling frame excludes members who visit later or rarely, so the estimate may overstate attendance.
- Improve it by randomly selecting from the full membership list, with a method to contact non-attenders.
5. Improve the design
Use a suitable sampling frame, random selection and neutral questions. Make groups appropriately represented, follow up nonresponses and describe remaining limitations. Random sampling improves representativeness; random assignment in an experiment serves a different purpose and supports causal comparisons.
6. Classify data before choosing a summary or display
Categorical data describes labels; quantitative data describes numerical measurements or counts. Discrete values occur in separate possible steps, while continuous measurements can vary through an interval. A recorded rounded measurement can still come from a continuous variable. Arithmetic on category labels is meaningless even if labels are stored as numbers. Use a bar chart for categories or discrete counts and a histogram for grouped continuous measurements, with bars spanning numerical intervals.
Classify data before choosing a summary or display
Why this formula works
The variable’s meaning determines which comparisons and operations are valid. Numerical codes do not turn categories into measurable quantities, and rounding changes recorded precision rather than the underlying physical variable.
Discrete count: number of items. Continuous measurement: a value along a scale. Category frequency proportion =frequency/total observations.
Quick example
Number of siblings is a discrete count; measured arm length is continuous even when recorded to the nearest centimetre; a bus-route number is a label.
Worked example: A misleading numerical category
A survey stores favourite transport as \(1=\text{walk}\), \(2=bus\) and \(3=\text{cycle}\). Explain why its mean is not a meaningful measure.
- The numbers are category codes, not quantities of transport.
- Changing the codes would change the calculated average without changing anyone’s response.
- Report category frequencies or proportions instead; the most frequent category is meaningful, while a mean code is not.
7. Build a usable survey and explain specific bias
Define the target population and make a sampling frame that covers it. Select people by the intended method and handle duplicate random selections appropriately when a sample without replacement is required. Ask one neutral, clearly timed question at a time; provide non-overlapping response categories covering plausible answers. Missing answers are not automatically negative responses. Explain bias through a mechanism and likely direction, not just by naming a sampling method. A small random sample has uncertainty, which differs from systematic selection bias.
Build a usable survey and explain specific bias
Why this formula works
Random selection addresses who enters the sample; neutral measurement addresses how their answers are recorded. Either step can fail independently, so an unbiased-looking selection does not fix a leading or ambiguous question.
For proportional strata, target \(n_i=nN_i/N\); choose integers that preserve total n and explain the rounding allocation.
Quick example
If three groups contain \(101,99,100\) people and a sample of 30 is needed, ten randomly selected from each is a sensible rounded proportional allocation.
Worked example: Repair a double question
A survey asks, “Do you agree that our excellent lessons and cheap membership are helpful?” Identify two problems and improve it.
- “Excellent” and “cheap” lead the respondent toward favourable answers.
- It asks about lessons and price in one item, so a person with different views cannot answer unambiguously.
- Use separate neutral questions with a stated response scale and time frame, such as rating lesson usefulness and rating price affordability independently.
Quick formula reference
For revision once you understand the methods above. Check the conditions before using a formula.
Proportional allocation
\(n_i=nN_i/N\), where Nᵢ is stratum population, N total population and n total sample. Round with a stated adjustment that preserves the total.
Return to the explanation →Sampling interval
A systematic sample often uses interval approximately \(N/n\), with a random starting position.
Return to the explanation →Sample proportion
\(\hat p=x/n\), where x is the count possessing the characteristic and n the sample size.
Return to the explanation →Classify data before choosing a summary or display
Discrete count: number of items. Continuous measurement: a value along a scale. Category frequency proportion =frequency/total observations.
Return to the explanation →Build a usable survey and explain specific bias
For proportional strata, target \(n_i=nN_i/N\); choose integers that preserve total n and explain the rounding allocation.
Return to the explanation →Learn to diagnose an error
Spot the mistake
The statement below is incorrect. Identify the missing condition or reasoning before opening the explanation.
A survey of 10,000 website volunteers must be representative because it is large.
Explain and repair the mistake
Volunteering can select unusually interested people. A large biased sample can estimate the wrong population very precisely. Describe who could respond and how respondents differ from those missing.
Connect and apply
Put the ideas together
A more demanding application of this guide’s methods. This is a learning stage; any additional HL content is labelled separately.
Correct allocation does not guarantee a fair survey
A school has 600 junior and 400 senior students. It samples 100 students proportionally, but lets the first volunteers in each group respond.
- Proportional allocation gives \(100(600/1000)=60\) juniors and 40 seniors.
- The proportions match the population, but volunteers within each group may systematically differ from non-volunteers. This is self-selection bias.
- Randomly selecting named students within each stratum improves the selection mechanism. Track nonresponse because selected students may still fail to participate.
- A conclusion should concern the school’s students and the measured variable, not automatically all schools or all young people.
Would increasing the volunteer sample to 500 eliminate the design problem?
Check your reasoning
No. The systematic volunteer mechanism remains. A bigger biased sample can produce a more precise estimate of the wrong population pattern.
Common mistakes and how to avoid them
- A large sample does not remove selection bias.
- Describe who is excluded and why that affects the variable.
- A proportional quota is not automatically a random stratified sample.
Practise independently
Build confidence, then apply it
Try each question before opening its hint or solution. If a method is new, return to the walkthrough, then try again. These learning stages describe the practice sequence; additional HL content is labelled separately.
- 1
Build confidence
Would doubling this club-only sample necessarily remove the bias?
Need a starting point?
Think about who is still excluded.
Show the worked solution
- No. It still selects from the same restricted group.
- A larger biased sample can give a precise estimate for the wrong population.
- 2
Apply and explain
Suggest a more representative design.
Need a starting point?
Give every student an appropriate chance of selection.
Show the worked solution
- Randomly sample from the full student list.
- If year groups differ in size, a proportionate stratified sample can ensure their representation.
- 3
Check your understanding
A school surveys only students present on one day. Name a possible limitation.
Show the worked solution
Absent students are omitted and may differ in relevant ways. This is a coverage concern; whether it biases the particular result depends on the question and reasons for absence.
- 4
Use the method
A website invites volunteers to rate its service. What kind of sampling concern arises?
Show the worked solution
Self-selection: especially satisfied or dissatisfied users may be more likely to respond, so respondents may not represent all users.
- 5
Combine the skills
Classify data before choosing a summary or display
Is the number of goals scored discrete or continuous, and is recorded temperature continuous or discrete in origin?
Show the worked solution
Goals are discrete counts. Temperature is a continuous variable, although an instrument records finite precision.
- 6
Combine the skills
Build a usable survey and explain specific bias
Why does a voluntary online poll remain potentially biased with \(10,000\) responses?
Show the worked solution
Respondents self-select. If willingness to respond relates to the measured opinion, a large count does not remove that systematic difference.
Finished? Use the linked question bank below to practise selecting the method without a guide telling you which rule to use.
Using these methods in exam questions
AI Paper 1
GDC requiredShort-response questions still need mathematical setup and interpretation. Choose the correct tool, enter the model or data carefully, and check units and rounding.
AI Paper 2
GDC requiredExtended-response questions connect several steps. Keep intermediate values at full precision and explain how each result answers the context.
For this topic: Define the variable or events, write the probability statement or hypotheses, then calculate. Name the distribution and its parameters; interpret the result using the original population or context.
Paper 3: build a connected argument
Both AA HL and AI HL Paper 3 contain two extended problem-solving questions. A question develops a theme, so keep useful earlier results, test small cases and explain any proposed general rule. A calculator pattern can suggest a result; your mathematical reasoning must support it.
- Identify what the first part establishes and record the conditions under which it holds.
- When a later part introduces a new definition or model, connect it to methods you already know rather than assuming a new formula must have been memorised.
- Check the conclusion against an earlier numerical case and explain its meaning or limitation.
For the first-assessment-2021 courses. IB assessment reference ↗
Find a specific method or formula
Now practise the method
If you opened this guide from a question, return to that tab and try the method without looking at the example. Your answer stays in the question tab.
Practise this subtopic →Want a broader practice session? Explore IB Maths AI SL practice questions →Explore IB Maths AI HL practice questions →Try free IB Maths exam-style questions and worked solutions →
Original Arc Practice teaching notes for Maths AI. Core and HL sections are distinguished above. These notes follow the first-assessment-2021 course and are not an official IB publication or a complete syllabus checklist. IB course reference. Report a correction.