4.1 Sampling, data quality and outliers

4.1 Sampling, data quality and outliers

IB Maths: Applications and Interpretation SL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A population is everyone studied; a sample is the part used to draw conclusions.
  • Discrete data are counted; continuous data are measured.
  • Bias comes from how members are chosen, not from the sample being small.
  • Stratified sampling: group size ÷\div population ×\times sample size.
  • An outlier lies more than 1.5×IQR1.5\times\text{IQR} below Q1Q_1 or above Q3Q_3.

Population, sample and data

A population is the whole group; a sample is a part of it, and data are discrete if counted or continuous if measured.

A population is the whole group being studied. A sample is a smaller part used to draw conclusions about the whole. A random sample gives every member an equal chance of selection. At SL, a data set in a question is the population unless stated.

Discrete data take separate values, usually counted. Continuous data take any value in a range, usually measured.

Cars passing a school in an hour are discrete; the time a car takes to pass a point is continuous.

Discrete

Values:
Separate
How collected:
Counted
Examples:
Siblings, goals

Continuous

Values:
Any value in a range
How collected:
Measured
Examples:
Height, time, mass

The mass of a parcel is which type of data?

Reliability and bias

A source is reliable if trustworthy; bias comes from how members are chosen, so a large sample cannot cure it.

A source is reliable if it comes from a reputable organisation, uses a clear method and a large enough sample, and gives similar results when repeated.

Bias is a systematic tendency for a sample to differ from the population. Causes include members with no chance of being chosen, leading questions and only some people replying (non-response).

A larger sample does not remove bias: a large sample from the wrong group is still biased.

Unreliable

  • Small sample
  • Unclear method
  • Results change on repeat

Biased

  • Some members cannot be chosen
  • Leading questions
  • Non-response

A survey of 5000 people is taken only outside a gym. Its main problem is...

Random, systematic and stratified

Random sampling gives equal chances, systematic takes every kkth member, and stratified samples each group in proportion.

Simple random sampling: number every member and use random numbers (GDC) to pick distinct members. Fair, but needs a full list and may miss small groups.

Systematic sampling: take every kkth member from a list, starting at a random place, with k=populationsample sizek=\frac{\text{population}}{\text{sample size}}. Quick, but biased if the list has a pattern matching kk.

Stratified sampling: split the population into groups (strata) and sample each in proportion to its size.

  • Sample from a groupgroup sizepopulation×sample size\dfrac{\text{group size}}{\text{population}}\times\text{sample size}

Worked example

A club has 600 members: 240 juniors, 210 adults and 150 seniors. Choose a stratified sample of 80.

A population of 1000 has a sample of 50 taken systematically. What is kk?

Quota and convenience sampling

Quota copies the group structure but picks people non-randomly; convenience takes whoever is easiest to reach.

Convenience sampling takes whoever is easiest to reach, such as the first people to walk past. It is cheap and fast but often biased.

Quota sampling has the interviewer find a set number in each group (say 20 men and 20 women) but choose them non-randomly. It reflects the group structure like stratified sampling, but no sampling frame is needed and bias is still possible.

Random and stratified samples are usually the most representative; convenience samples the least.

Stratified

Uses groups:
Yes
Random selection:
Yes
Main weakness:
Needs group sizes

Quota

Uses groups:
Yes
Random selection:
No
Main weakness:
Bias within groups

Convenience

Uses groups:
No
Random selection:
No
Main weakness:
Often unrepresentative

Which method uses groups but does not choose members at random?

Errors and missing data

Never silently keep an impossible value: check it, correct or remove it, and report the problem.

Data may contain recording errors, such as typing mistakes, impossible values like 400 hours in a week, or a stopwatch left running. Data may also be missing.

Missing data matter most when the missing items differ from the rest, because then the remaining data are biased.

  1. 1

    Check the source

    and correct the value if you can

  2. 2

    Remove it

    if it cannot be corrected

  3. 3

    Follow up

    non-respondents, or replace them

  4. 4

    Report the issue

    and treat conclusions with caution

Responding to a suspicious value

A student records 400 hours of revision in one week. What first?

Outliers

A value is an outlier if it is more than 1.5×IQR1.5\times\text{IQR} below Q1Q_1 or above Q3Q_3.

An outlier is below Q1−1.5×IQRQ_1-1.5\times\text{IQR} or above Q3+1.5×IQRQ_3+1.5\times\text{IQR}, where IQR=Q3−Q1\text{IQR}=Q_3-Q_1. The distance is measured from the nearest quartile.

In context an outlier may be genuine (an exceptionally fast runner) or an error, so check before removing. Outliers appear as crosses on box and whisker diagrams (4.2) and inflate the range and standard deviation (4.3).

−20246810121416182022242628-0.2513.7525 (outlier)

Worked example

Test the data 4,5,5,6,7,8,9,254,5,5,6,7,8,9,25 for outliers.

Q1=10Q_1=10, Q3=18Q_3=18. What is the upper boundary for outliers?

Try an exam question

A school has 500 students: 200 in Year 10, 180 in Year 11 and 120 in Year 12. A stratified sample of 50 is taken. Find the number from each year, and state one advantage of stratified over convenience sampling.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which sampling technique has the researcher used?

1 mark, marked against the mark scheme

Revision notes