Sampling and Data Collection AA SL

Almost every statistical claim rests on a sample, so how the sample is chosen decides whether the result can be trusted. This page shows how to name a sampling method and judge it, how to work out a systematic interval or a stratified allocation, how to spot bias, how to tell discrete from continuous data, and how to decide whether a data value is an outlier, with worked examples and exam-style questions.

Formulas at a glance

The interquartile range, Q3−Q1Q_3-Q_1, is in the formula booklet. The sampling interval, the stratified allocation and the 1.5×IQR1.5\times\text{IQR} rule for outliers are not, so learn them.

Proportion of the population sampled from each stratum

Sampling fraction =sample sizepopulation size=\dfrac{\text{sample size}}{\text{population size}}

Not in the booklet

Number sampled from a given subgroup

Stratum sample == fraction ×\times stratum size

Not in the booklet

Gap between selected members in systematic sampling

Systematic interval k=population sizesample sizek=\dfrac{\text{population size}}{\text{sample size}}

Not in the booklet

Which method to use

Choose the sampling method from how the population is arranged and whether every member must have a chance of selection, then use the matching test for bias, data type or outliers.

The situation isUseNotes
A full list of the population is available and every member should have an equal chanceSimple random samplingNumber the list and use random numbers. It avoids selection bias but needs the complete list
A list is available and a fixed gap between chosen members is acceptableSystematic samplingInterval k=population sizesample sizek=\dfrac{\text{population size}}{\text{sample size}}, a random start from 11 to kk, then every kkth member. It can be biased if the list repeats with a pattern matching kk
The population splits into groups of different sizes and each must be represented in proportionStratified samplingSample from a group =group sizepopulation size×sample size=\dfrac{\text{group size}}{\text{population size}}\times\text{sample size}, choosing members at random within each group
Interviewers must fill a fixed number from each group but choose the people themselvesQuota samplingNot random within a group, so it can be biased
Whoever is easiest to reach is chosenConvenience samplingQuick and cheap, but likely to be biased and unrepresentative
A judgement on whether a data value is unusually far from the restThe outlier rule: more than 1.5×IQR1.5\times\text{IQR} beyond the nearest quartileWork out Q1−1.5×IQRQ_1-1.5\times\text{IQR} and Q3+1.5×IQRQ_3+1.5\times\text{IQR}, then compare. Decide in context whether to keep the value
A variable to classify as discrete or continuousCounted values are discrete, measured values are continuousAsk whether the value comes from counting or from measuring, not whether it looks like a whole number
A survey or sampling method whose results may not be fairLook for who could be missed or pushed towards an answerCheck the sampling method, the survey question and missing data. A larger sample does not remove bias

Section 1 of 2 SL4.1

Sampling methods

A sample is a group taken from a population, and the sampling method decides whether it fairly represents that population. The five methods to know are simple random, convenience, systematic, quota and stratified sampling, each with its own strengths and sources of bias. Name the method, describe how it works, and judge how reliable the results are.

Working out a sample

Stratified allocation

stratum sample=stratum size×sample sizepopulation size\text{stratum sample} = \text{stratum size} \times \dfrac{\text{sample size}}{\text{population size}}

Also not in the booklet. Apply the same sampling fraction to each stratum's own size so the sample stays proportional across all the groups.

Key terms

What is the difference between a population and a sample?

The population is the whole group you want information about, and a sample is the part of it from which you actually collect data.

e.g. If 6060 students from a school of 600600 are surveyed, the population is all 600600 students and the sample is the 6060.

What is a simple random sample?

Every member of the population has an equal chance of being chosen. It avoids selection bias but needs a complete list of the population.

e.g. Numbering 500500 people from 11 to 500500 and choosing 5050 different numbers using a random number generator gives a simple random sample of 5050.

What is convenience sampling?

Convenience sampling chooses whoever is easiest to reach. It is quick and cheap, but it is likely to be biased and unrepresentative.

e.g. Surveying the first 3030 students you meet in the canteen is a convenience sample.

What is sampling bias?

Bias occurs when the method makes some members of the population more likely to be chosen than others, so the sample does not represent the population. A larger sample does not remove it.

e.g. Surveying 100100 people only at a gym to estimate how much a town exercises is biased, because gym users exercise more than most people.

Worked example, step by step

The question No calculator needed [4 marks]

A library keeps an alphabetical list of its 12601260 registered borrowers. A systematic sample of 9090 borrowers is required.

(a) Find the sampling interval.

(b) The first borrower chosen is number 77 on the list. Write down the numbers of the next two borrowers chosen.

(c) Explain why systematic sampling could give a biased sample if the list repeated a pattern every 1414 names.

Worked solution: worked example

Answer: (a) k=14k=14. (b) 2121 and 3535. (c) Every chosen borrower would hold the same position in the repeating pattern, so some types would never be sampled and the sample would be biased.

Step 1 - Find the sampling interval.

k=population sizesample size=126090=14.k=\dfrac{\text{population size}}{\text{sample size}}=\dfrac{1260}{90}=14. M1 - Divide the population size by the sample size, 126090\dfrac{1260}{90} A1 - k=14k=14

Why? The interval tells you how far apart the chosen members are on the list. Dividing the population by the sample size makes the chosen members spread evenly along the whole list, so the last one chosen is near the end.

Step 2 - Check the interval is a whole number.

90×14=126090\times14=1260, so the interval is exactly 1414 and the sample will contain exactly 9090 borrowers.

Why? If the division is not exact, the interval is rounded down and the sample size can come out slightly different, so it is worth checking by multiplying back.

Step 3 - Apply the interval from the start.

The random start is number 77. Add 1414 each time: 7+14=217+14=21, then 21+14=3521+14=35. The next two borrowers are numbers 2121 and 3535. A1 - 2121 and 3535

Why? Only the starting point is random. After that every kkth member is chosen, so the rest of the sample is fixed once the start is known.

Step 4 - Explain the possible bias.

If the list repeated a pattern every 1414 names, every chosen borrower would sit at the same place in the pattern, so for example all of them could be one type of borrower. Other types would never be chosen, so the sample would not be representative. R1 - States that every chosen member would hold the same place in the repeating pattern, so the sample is unrepresentative

Why? Systematic sampling is not simple random sampling. A hidden pattern in the list that matches the interval makes the selection systematically unrepresentative, which is the standard weakness to name.

Marks (4):
M1 Divide the population size by the sample size, 126090\dfrac{1260}{90}
A1 k=14k=14
A1 2121 and 3535
R1 States that every chosen member would hold the same place in the repeating pattern, so the sample is unrepresentative

Now you try: enter your answers to be marked

These are real practice questions. Type your answer in each box and press Mark it. The worked solution and mark scheme appear straight away, and your first attempt is the one that counts. Use the keyboard for powers, roots and trig, and the working box for your notes.

1
Medium
No calc
[2 marks]
A company has 80 managers and 320 other staff. A stratified sample of 50 is required. How many managers should be in the sample?
[2]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
No calc
[4 marks]
A school has 300 Year 1, 200 Year 2 and 100 Year 3 students (600 total). A stratified sample of 60 is taken.

(a) Find the number of students sampled from each of Year 1, Year 2 and Year 3.
[4]
Fractions & powers
Other

Worked solution: practice question 2

3
Hard
No calc
[4 marks]
A company's workforce is made up of day-shift and night-shift staff in the ratio 5:3.5:3. A stratified sample of 96 workers is required for a survey.
(a) Find the number of day-shift and night-shift workers to be sampled.
[3]
(b) State one assumption needed for this to be considered a fair stratified sample.
[1]
Fractions & powers
Other

Worked solution: practice question 3

Your score so far: 0 out of 10 marks

Common mistakes

  • Mixing up stratified and quota sampling. Stratified sampling picks members randomly within each proportional subgroup; quota sampling only fixes how many are needed from each group and leaves the interviewer to choose who fills it, so it is not random within a group.
  • Applying the sampling fraction to the wrong total. The fraction (sample size divided by population size) must be multiplied by each stratum's own size - not by the overall sample size or population size again.
  • Assuming a bigger sample fixes a biased method. A biased technique, such as convenience sampling, stays biased no matter how large it grows; only switching to a properly randomised method removes the bias.

Try some questions on sampling methods

Section 2 of 2 SL4.1

Population, bias, data types and outliers

This section covers what a population and a sample are, how bias and unreliable data arise, how to classify data as discrete or continuous, and how to decide whether a data value is an outlier.

Key terms

Five words worth knowing cold, each with an example showing exactly what it means.

What is the difference between a population and a sample?

A population is the entire group you want to draw conclusions about. A sample is a smaller subset of the population that is actually studied, chosen because surveying the whole population is usually too slow, costly or impossible.

e.g. All 800 students at a school form the population; a stratified sample of 40 of them is the sample.

What is stratified sampling?

Stratified sampling divides the population into subgroups (strata) and samples from each in proportion to its size, guaranteeing that every subgroup is represented fairly. The proportion sampled from each stratum equals the overall sampling fraction.

e.g. For 240 staff (120 production, 80 sales, 40 admin) and a sample of 30, the fraction is 30240=18\tfrac{30}{240}=\tfrac18, so production contributes 18×120=15.\tfrac18\times120=15.

What is systematic sampling?

Systematic sampling selects every kkth member of a list after a random starting point, where kk is the sampling interval. It's fast and spreads the sample evenly, but can be biased if the list has a hidden pattern matching the interval.

e.g. For a population of 800 and a sample of 40, the interval is k=800/40=20k=800/40=20, so every 20th person is chosen.

What is convenience sampling?

Convenience sampling selects whoever is easiest to reach, such as the first people who happen to walk past. It's quick to carry out but is likely to be biased, since it only reaches a particular kind of person rather than a representative cross-section.

e.g. Surveying people leaving a gym about exercise habits over-represents people who already exercise regularly.

What is sampling bias?

Sampling bias occurs when the way a sample is chosen makes it systematically unrepresentative of the population, so conclusions drawn from it are unreliable. It can come from the sampling method itself, or from how survey questions are worded.

e.g. "Don't you agree that taxes are too high?" is a leading question that pushes respondents toward one answer.

Data and reliability

Discrete vs continuous

Discrete data is counted (whole numbers); continuous data is measured (any value in a range).

Number of cars is discrete; height or time is continuous.

Not in the formula booklet - prior knowledge

Reliability of data

Consider missing data, recording errors, and whether the sampling method itself introduces bias.

A large sample doesn't fix bias - a biased method stays biased no matter how many people you ask.

Not in the formula booklet - key exam idea

Outliers

An outlier is a data item more than 1.5×1.5\times IQR from the nearest quartile.

Some outliers are genuine and should stay in the data; others are recording errors and should be investigated.

Not in the formula booklet - definition to know

Worked example, step by step

The question No calculator needed [5 marks]

The daily sales, in pounds, of a cafe over a period of weeks have lower quartile 2424 and upper quartile 3838. The smallest value is 44 and the largest value is 6363. An outlier is a data item more than 1.5×1.5\times the interquartile range (IQR) from the nearest quartile.

(a) Find the interquartile range.

(b) Determine whether the smallest value or the largest value is an outlier.

(c) The largest value was recorded on the day of a local festival. State, with a reason, whether it should be removed from the data.

Worked solution: worked example

Answer: (a) 1414. (b) 6363 is an outlier (it is above 5959); 44 is not (it is above 33). (c) Keep it, because it is a valid value explained by the festival.

Step 1 - Find the interquartile range.

IQR=Q3−Q1=38−24=14.\text{IQR}=Q_3-Q_1=38-24=14. A1 - IQR=14\text{IQR}=14

Why? The IQR is the spread of the middle half of the data, so it is the yardstick for what counts as far from the quartiles. It is in the formula booklet, but it is just the difference of the two quartiles.

Step 2 - Find the outlier limits.

1.5×14=211.5\times14=21. Lower limit: 24−21=324-21=3. Upper limit: 38+21=5938+21=59. M1 - Use 1.5×IQR1.5\times\text{IQR} beyond the nearest quartile A1 - Limits 33 and 5959

Why? A value is an outlier only if it is more than 1.5×IQR1.5\times\text{IQR} beyond the nearest quartile, so the limits are measured from Q1Q_1 downwards and from Q3Q_3 upwards, not from the median.

Step 3 - Compare the extreme values with the limits.

The largest value 63>5963>59, so it is an outlier. The smallest value 4>34>3, so it is inside the lower limit and is not an outlier. A1 - 6363 is an outlier and 44 is not

Why? Check each end separately against its own limit. A value only just inside a limit, like 44 here, is not an outlier.

Step 4 - Decide in context.

The value 6363 is a genuine sales figure for a festival day, so it should be kept. It is an unusual but valid value, not a recording error. R1 - Keeps the value, with a reason that it is a valid figure explained by the festival

Why? The syllabus asks you to interpret outliers in context. Some outliers are valid data and should stay in; others are mistakes, such as a mis-typed figure, and should be investigated or corrected.

Marks (5):
A1 IQR=14\text{IQR}=14
M1 Use 1.5×IQR1.5\times\text{IQR} beyond the nearest quartile
A1 Limits 33 and 5959
A1 6363 is an outlier and 44 is not
R1 Keeps the value, with a reason that it is a valid figure explained by the festival

Now you try: enter your answers to be marked

1
Easy
No calc
[3 marks]
A weather station records four variables each day: the rainfall in millimetres; the number of lightning strikes within 10 kilometres; the highest temperature in degrees Celsius; and the number of gusts of wind above 50 kilometres per hour.
(a) Write down the number of these four variables that are discrete.
[1]
(b) State which of the following could be a value of the number of lightning strikes recorded on a day.
[1]
(c) The mean daily rainfall for a month is calculated. State whether the mean daily rainfall is a discrete or a continuous variable.
[1]
Fractions & powers
Other

Worked solution: practice question 1

2
Easy
No calc
[4 marks]
For each variable, state whether it is discrete or continuous.
(a) The number of goals scored in a football match.
[1]
(b) The time taken by a runner to complete a 100 metre race.
[1]
(c) The number of pupils absent from a school on one day.
[1]
(d) The mass of a parcel.
[1]
Fractions & powers
Other

Worked solution: practice question 2

Your score so far: 0 out of 7 marks

Try some questions on population, bias, data types and outliers

Worked examples

Two exam-style questions with full worked solutions and mark schemes. Try each one yourself before reading the solution.

1
Easy
No calc
[3 marks]

Consider the following variables.

(a) Classify the number of cars in a car park as discrete or continuous.

(b) Classify the height of a tree as discrete or continuous.

(c) Classify the time to run 100 m as discrete or continuous.

Worked solution

(a) Discrete (counted). A1

(b) Continuous (measured). A1

(c) Continuous (measured). A1

A1 Discrete A1 Continuous
2
Hard
No calc
[8 marks]

A school has 600 students in three year groups in the ratio 5:4:35:4:3. A stratified sample of size nn is taken; 20 students are chosen from the largest year group.

(a)(i) Find the number of students in the largest year group.

(a)(ii) Find the number of students in the middle year group.

(a)(iii) Find the number of students in the smallest year group.

(b) Find the sampling fraction.

(c) Hence find nn.

Worked solution

(a)(i) Parts =5+4+3=12;=5+4+3=12; largest group =512×600=\tfrac{5}{12}\times600 M1
=250.=250. A1

(a)(ii) Middle group =412×600=200.=\tfrac{4}{12}\times600=200. A1

(a)(iii) Smallest group =312×600=150.=\tfrac{3}{12}\times600=150. A1

(b) Largest group =250,=250, and 2020 chosen: fraction =20250=\tfrac{20}{250} M1
=225.=\tfrac{2}{25}. A1

(c) n=225×600n=\tfrac{2}{25}\times600 M1
=48.=48. A1

M1 Find the ratio fraction and apply it to the total of 600 students A1 Correct largest group of 250 A1 Correct middle group of 200 A1 Correct smallest group of 150 M1 Form the sampling fraction using 20 out of the largest group of 250 A1 Correct sampling fraction of 2/25 M1 Apply the sampling fraction to the total population of 600 A1 Correct value n=48 (FT)

Common mistakes

The four slip-ups that account for most of the marks lost on this topic - worth reading before you start practising, not just after you get one wrong.

  • Mixing up stratified and quota sampling. Stratified sampling selects randomly within each proportional subgroup; quota sampling only fixes the quota size and lets the interviewer choose who fills it, so it isn't random within each group.
  • Applying the population's sampling fraction to the wrong total. The fraction (sample size ÷ population size) must be multiplied by each stratum's own size, not by the total sample size or population size again.
  • Assuming a bigger sample automatically fixes bias. A biased sampling method - like convenience sampling - stays biased no matter how large the sample gets; only changing the method fixes it.
  • Classifying data by its numerical appearance rather than how it arises. A quantity like shoe size is discrete because it's counted from a fixed set of values, even though it can include halves - the test is whether it's measured (continuous) or counted (discrete), not whether it "looks like a whole number".

Syllabus content covered

CodeSyllabus content
SL4.1Concepts of population, sample, random sample, discrete and continuous data. Reliability of data sources and bias in sampling. Dealing with missing data, errors in the recording of data. Interpretation of outliers. Outlier is defined as a data item which is more than 1.5×1.5\times interquartile range (IQR) from the nearest quartile. Awareness that, in context, some outliers are a valid part of the sample but some outlying data items may be an error in the sample. Sampling techniques and their effectiveness. Simple random, convenience, systematic, quota and stratified sampling methods.

Official IB source: Mathematics: analysis and approaches subject brief (PDF, ibo.org).

Quick questions

What is the difference between stratified and quota sampling?

Stratified sampling selects members randomly within each proportional subgroup (stratum). Quota sampling only fixes how many are needed from each group and lets the interviewer choose who fills it, so it is not random within a group.

What's the difference between a population and a sample?

A population is the entire group you're interested in studying. A sample is a smaller subset of the population that is actually surveyed or measured. Statistics is largely about using what you find in a sample to draw reliable conclusions about the whole population.

How do I calculate how many to take from each group in a stratified sample?

Multiply the sample size by the fraction of the population in each group. For groups of 200200 and 300300 in a population of 500500 with a sample of 5050, the numbers are 200500×50=20\dfrac{200}{500}\times50=20 and 300500×50=30\dfrac{300}{500}\times50=30.

When should I use stratified sampling instead of simple random sampling?

Use stratified sampling when the population has distinct subgroups (like year groups or departments) and you want each one represented in proportion to its size. Simple random sampling doesn't guarantee this - by chance it could under- or over-represent a subgroup, especially with a small sample.

Why can a larger sample still be unreliable?

A larger sample reduces random variation but does not fix a biased method. If the method favours some members of the population, the results stay unrepresentative however many people are surveyed.

Why is convenience sampling usually unreliable?

Convenience sampling only reaches people who happen to be present or easy to reach at a particular time and place, which is rarely representative of the wider population. Surveying gym-goers about exercise habits, for example, over-represents people who already exercise a lot.

Is systematic sampling a random method?

Only the starting point is random. After that, every kkth member is chosen, so not every group of the required size is possible and it is not a simple random sample.

How do I calculate a stratified sample size for one group?

Find the sampling fraction - the total sample size divided by the total population - then multiply that fraction by the size of the subgroup. For example, sampling 30 from a population of 240 gives a fraction of 1/8, so a subgroup of 120 contributes 1/8 × 120 = 15 to the sample.

Ready to practise properly?

Practice questions on every section, marked instantly like the real exam.