Skip to content
IB Diploma ProgrammeSL & HL

Sampling and types of data

Mathematics: Applications and Interpretation SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Sampling and types of data notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Sampling and types of data notes as text: skim, search, and jump between subtopics.

~13 min read

1. Population, sample and sample size

A population is the whole group you want to know about. A sample is the part of it you collect data from. A random sample gives every member of the population an equal chance of being selected.

The aim is a sample that is representative of the population. A larger sample is more likely to be representative, so its mean is likely to be closer to the population mean. A larger sample also costs more effort.

The command term ‘state’ asks for a short answer with no explanation. Give one clear point and stop.

Worked example 12 marks

At age 18, all students in school A and school B take the same final exam. Augustin chooses to take a representative sample of size six from each school. For each student in the sample, he will conduct an interview.

(a)(i) State one advantage of increasing the sample size. [1](ii) State one disadvantage of increasing the sample size. [1]

  1. 1

    (a)(i) any sensible comment, for example the sample will be more reliable or more representative (R1) [1]

  2. 2

    (a)(ii) more time consuming, expensive or more open to human error (R1) [1]

2. Discrete and continuous data

Discrete data is counted. It takes separate values, usually whole numbers: the number of students in a class.

Continuous data is measured. It can take any value in a range: height, mass and time.

The way a value is recorded does not change its type. A time recorded to the nearest second is still continuous, because the true time could be any value. Decide by asking whether the quantity is counted or measured.

Worked example 13 marks

State whether each set of data is discrete or continuous.

(i) The number of siblings of each student in a class.(ii) The height of each plant in a greenhouse.(iii) The mass of each parcel at a post office.

  1. 1

    (i) the number of siblings is counted: discrete (A1) [1]

  2. 2

    (ii) height is measured and can take any value in a range: continuous (A1) [1]

  3. 3

    (iii) mass is measured: continuous (A1) [1]

3. Reliability, bias and errors in data

A larger sample that is randomly selected is more reliable and more likely to be representative. A sample is biased when some members of the population are more likely to be chosen than others.

Check how the data was collected. Ask who was left out, when and where the data was gathered, and whether the sample was not randomly selected.

Data can also contain missing values and recording errors, such as a misplaced decimal point. Say how you deal with each. Correct an error you can identify, and leave a missing value out of a calculation instead of treating it as zero.

Worked example 12 marks

A town council wants to know whether residents support a new bus lane. An officer asks the people who walk past the railway station between 7 am and 9 am on one Monday.

(a) State one reason why this sample may be biased. [1](b) Suggest one change to reduce the bias. [1]

  1. 1

    (a) the sample is not randomly selected: residents who do not use the station have no chance of being chosen (R1) [1]

  2. 2

    (b) choose residents at random from a list of all residents, so the sample is more representative (R1) [1]

4. Interpreting outliers

An outlier is a data item that is more than 1.5 × IQR from the nearest quartile. Work out the interquartile range, then the two boundaries. A value exactly on a boundary is not an outlier.

In context, some outliers are a valid part of the sample. Others may be an error in the sample. Check the context before you remove one.

The command term ‘show that’ asks for every step and the given result, here that the value is outside the boundary.

IQR = Q₃ - Q₁

x < Q₁ - 1.5 × IQR or x > Q₃ + 1.5 × IQR

Worked example 13 marks

A set of data has lower quartile 12 and upper quartile 20. Show that a data value of 35 is an outlier.

  1. 1

    interquartile range: IQR = 20 - 12 = 8 (M1) [1]

  2. 2

    upper boundary: 20 + 1.5 × 8 = 32 (M1) [1]

  3. 3

    35 > 32, so 35 is more than 1.5 × IQR above the nearest quartile and is an outlier (R1) [1]

5. Random, systematic and stratified sampling

In simple random sampling every member of the population has an equal chance of being chosen. Number the members and pick numbers at random.

In systematic sampling you choose every kth member of an ordered list, after a random start. The gap is the population size divided by the sample size.

In stratified sampling you split the population into groups that share a characteristic. You then choose from each group in proportion to its size, so every group is represented and the sample is more representative of the population.

The command term ‘calculate’ asks for a numerical answer with working.

number from a group = (size of group)/(size of population) × sample size

k = (population size)/(sample size)

Worked example 13 marks

A school has 1200 students: 420 in Year 9, 380 in Year 10 and 400 in Year 11. A stratified sample of 60 students is taken. Calculate the number of students chosen from each year group.

  1. 1

    attempt to find a proportion: Year 9 = 420/1200 × 60 (M1) [1]

  2. 2

    Year 9: 21 students, Year 10: 380/1200 × 60 = 19 (A1) [1]

  3. 3

    Year 11: 400/1200 × 60 = 20, and 21 + 19 + 20 = 60 (A1) [1]

6. Convenience and quota sampling

In convenience sampling you choose the people who are easiest to reach, such as the first people to arrive. IB accepts opportunity sampling and accidental sampling as equivalent terms.

In quota sampling an interviewer must find a fixed number of people in each group, for example 20 men and 20 women. The interviewer chooses who to ask, so the choice is not random. Stratified sampling picks the people at random within each group.

Both can be biased, because the sample is not randomly selected and may not be representative.

Worked example 12 marks

A school librarian conducts a survey to determine the favourite genre of book within different age groups. A group of 230 students was asked to state their age and their favourite from three genres of books. The students who participated in the survey were the first 230 students who visited the library that week.

(d)(i) Write down the sampling method that the librarian used.(ii) State one reason why the sampling method used may lead to an invalid conclusion. [2]

  1. 1

    (d)(i) convenience sampling (A1) [1]

  2. 2

    (d)(ii) sample is not randomly selected (everyone does not have an equal chance of being selected), or the sample may not be representative of the school population (R1) [1]

Recap

  • A population is the whole group. A sample is the part you collect data from. A random sample gives every member an equal chance.
  • A larger sample is more reliable and more representative, but more time consuming, expensive and open to human error.
  • Discrete data is counted. Continuous data is measured, even when it is recorded to the nearest whole number.
  • A biased sample comes from a method that is not randomly selected. Correct recording errors and leave missing values out.
  • Outlier: more than 1.5 × IQR below Q₁ or above Q₃. Keep an outlier that is valid. Correct one that is an error.
  • Stratified: proportion of each group times the sample size. Systematic: every kth member, k = N ÷ n.
  • Convenience (opportunity) and quota sampling are not random, so they may not be representative.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State whether the time for a car to travel along a road, recorded to the nearest second, is discrete or continuous.1 mark
    Answer
    1. Continuous.
    2. Time is measured and can take any value in a range.

    Trap: Whole-number values look discrete, but rounding when recording does not change the type of data.

  2. A researcher weighs 40 apples to estimate the mean mass of an orchard's harvest. The 40 apples are: A a population B a sample C an outlier D discrete data1 mark
    Answer
    1. B.
    2. The 40 apples are the part of the harvest that was weighed. The whole harvest is the population.

    Trap: Choosing A confuses the sample with the population it comes from.

  3. An interviewer must question 20 men and 20 women, and chooses whom to ask. (a) Write down the name of this sampling method. [1] (b) State one weakness of this method. [1]2 marks
    Answer
    1. (a)
    2. Quota sampling [1].
    3. (b)
    4. The people are chosen by the interviewer, not randomly, so the sample may not be representative [1].

    Trap: Calling it stratified. In stratified sampling the people in each group are chosen at random.

  4. A club has 150 members: 90 juniors and 60 seniors. A stratified sample of 25 members is taken. Calculate the number of juniors and the number of seniors in the sample.2 marks
    Answer
    1. Juniors: 90/150 × 25 = 15 [1].
    2. Seniors: 60/150 × 25 = 10 [1].

    Trap: Taking 25 ÷ 2 from each group ignores the sizes of the groups.

  5. A factory makes 1800 bottles a day. An inspector takes a systematic sample of 60 bottles, starting with bottle 7. (a) Find the gap between the bottles chosen. [1] (b) Find the number of the third bottle chosen. [2]3 marks
    Answer
    1. (a)
    2. k = 1800/60 = 30 [1].
    3. (b)
    4. The bottles are 7, 37, 67, … so the third is 7 + 2 × 30 [1]
    5. = 67 [1].

    Trap: 7 + 3 × 30 = 97 counts the start bottle as a step. The first bottle chosen is number 7.

  6. The ages in a choir have lower quartile 28 and upper quartile 46. Show that an age of 75 is an outlier.3 marks
    Answer
    1. IQR = 46 - 28 = 18 [1].
    2. 46 + 1.5 × 18 = 73 [1].
    3. 75 > 73, so 75 is an outlier [1].

    Trap: The boundary is measured from the nearest quartile. Adding 27 to 28 gives 55 and would label many ages as outliers.

  7. The scores in a test have lower quartile 54 and upper quartile 70. (a) Determine which of the scores 26, 31 and 95 are outliers. [4] The teacher finds that the score 95 should have been 59. (b) State what should be done with the score 95. [1]5 marks
    Answer
    1. (a)
    2. IQR = 70 - 54 = 16 and 1.5 × 16 = 24 [1].
    3. Lower boundary: 54 - 24 = 30. Upper boundary: 70 + 24 = 94 [1].
    4. 26 < 30 and 95 > 94, so 26 and 95 are outliers [1].
    5. 31 > 30, so 31 is not an outlier [1].
    6. (b)
    7. It is an error, so correct it to 59 [1].

    Trap: Checking only the upper boundary misses 26. Outliers can be low as well as high.

  8. A student records the heights of eight seedlings, in cm. (a) The value 131 is probably a recording error. Suggest the correct value. [1] (b) One height is missing. Calculate the mean of the recorded heights, using the corrected value, to three significant figures. [3] | Seedling | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | Height (cm) | 12.4 | 13.1 | 11.8 | 131 | 12.9 | missing | 13.5 | 12.2 |4 marks
    Answer
    1. (a)
    2. The decimal point is misplaced: 13.1 [1].
    3. (b)
    4. Sum of the seven heights = 12.4 + 13.1 + 11.8 + 13.1 + 12.9 + 13.5 + 12.2 = 89.0 [1].
    5. Seven values are recorded, so mean = 89.0/7 [1].
    6. = 12.7 cm [1].

    Trap: Dividing by 8 treats the missing value as zero. Using 131 gives a mean of 29.6.

  9. A hospital employs 480 nurses, 168 doctors and 72 administrators. A researcher takes a stratified sample of the staff, by job. The sample contains 14 doctors. (a) Determine the total size of the sample. [2] (b) Calculate the number of nurses and the number of administrators in the sample. [2] (c) State one advantage and one disadvantage of doubling the sample size. [2]6 marks
    Answer
    1. (a)
    2. Staff = 480 + 168 + 72 = 720, and 168/720 × n = 14 [1].
    3. n = 14 × 720/168 = 60 [1].
    4. (b)
    5. Nurses: 480/720 × 60 = 40 [1].
    6. Administrators: 72/720 × 60 = 6, and 40 + 14 + 6 = 60 [1].
    7. (c)
    8. Advantage: the sample will be more reliable, or more representative [1].
    9. Disadvantage: it is more time consuming, or more expensive [1].

    Trap: Writing that a larger sample is "more accurate" earns no mark: the markscheme rejects accurate, precise and exact.

  10. A café manager records the waiting time, in minutes, of 11 customers: 4, 5, 5, 6, 7, 7, 8, 9, 10, 11, 40. The lower quartile is 5 and the upper quartile is 10. (a) Show that 40 is an outlier. [3] (b) Calculate the mean waiting time with the value 40, and without it. [2] The manager confirms that the 40 minute wait was real: a till broke down. (c) Evaluate the manager's suggestion to remove the value 40 because it is an outlier. [2]7 marks
    Answer
    1. (a)
    2. IQR = 10 - 5 = 5 [1].
    3. Upper boundary: 10 + 1.5 × 5 = 17.5 [1].
    4. 40 > 17.5, so 40 is an outlier [1].
    5. (b)
    6. With 40: 112/11 = 10.2 minutes [1].
    7. Without 40: 72/10 = 7.2 minutes [1].
    8. (c)
    9. Removing 40 gives a mean of 7.2 minutes, closer to a usual wait. But the value is real, so it is a valid part of the sample and not an error [1].
    10. Removing it would make the mean wait about 3 minutes shorter than customers experienced. Keep it, and report that it was caused by the breakdown [1].

    Trap: An outlier is not always an error. Remove one only when the context shows it is a mistake.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
a larger sample will be more accurate, precise or exacta larger sample will be more reliable or more representative
a larger sample is a disadvantage because of more outliers, or a bigger standard deviationa larger sample is more time consuming, expensive or more open to human error
the survey has a greater choice of book genres (about the survey, not the sampling method)the sample is not randomly selected, or may not be representative

Frequently asked questions

What is the difference between a population and a sample?
A population is the whole group you want to know about, and a sample is the part of it you collect data from. A random sample gives every member of the population an equal chance of being selected. The aim is a sample that is representative of the population.
What is the difference between discrete and continuous data?
Discrete data is counted and takes separate values, usually whole numbers, such as the number of siblings of each student. Continuous data is measured and can take any value in a range, such as height, mass and time. A time recorded to the nearest second is still continuous.
How do I decide whether an outlier should be removed?
An outlier is a data item more than 1.5 × IQR from the nearest quartile, so work out the IQR, then the two boundaries. A value exactly on a boundary is not an outlier. In context, some outliers are a valid part of the sample, while others are an error, so check the context before you remove one.
How do I calculate a stratified sample?
Split the population into groups that share a characteristic, and choose from each group in proportion to its size. The number from a group is its size divided by the population size, times the sample size. For 1200 students with 420 in Year 9 and a sample of 60, Year 9 gives 21 students.
What is systematic sampling and how is the gap found?
In systematic sampling you choose every kth member of an ordered list, after a random start, where k is the population size divided by the sample size. For 1800 bottles and a sample of 60, the gap is 30, and the bottles chosen are 7, 37, 67 and so on.
Why are quota and convenience sampling not valid for a survey?
Both are not random. In quota sampling the interviewer chooses who to ask, and in convenience sampling you choose the people who are easiest to reach. Both can be biased, because the sample is not randomly selected and may not be representative. Stratified sampling picks people at random within each group.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters