Random Sampling and Random Numbers | Cambridge A Level Maths notes

Free preview: Random Sampling and Random Numbers

Simple Random Sampling

9709 Paper 6: Probability & Statistics 2 (A Level)

Watch: 1-minute explainer

Let's start with a thought experiment. You are asked to pick 10 apples from a crate of 200 to check for bruises. Be honest: would you reach for the ones on top? The shiny ones? Most people would, without meaning to. And then the sample would make the crate look better than it is.

  • A random sampling method is one where chance decides who is chosen.
  • Why? Because it protects against bias. The person choosing cannot (even without meaning to) pick the friendliest people or the nicest apples.
  • Both methods in this note need a sampling frame: a numbered list of the population (from the last note).

Simple random sampling

  • In a simple random sample of size n, every possible group of n members has the same chance of being the sample.
  • In particular, every member has an equal chance of being chosen.

๐Ÿ’ก In plain words

  • It's like a fair lottery: every name has the same chance, and every combination of names has the same chance too.
  • Nobody's judgement is involved in who gets picked.

How to do it: the 4-step recipe

  1. Number every member of the sampling frame, for example 001 to 250. Why: random numbers can only pick out numbered things.
  2. Generate random numbers in that range, using a calculator (the Ran# or RanInt key), a computer, or a random number table. Why: chance, not a person, does the choosing.
  3. Ignore any number that is out of range and any repeat (so nobody is chosen twice). Why: number 312 doesn't exist if there are 250 members, and a repeat would give one person double weight.
  4. Keep going until you have n different numbers. The members with those numbers form the sample. Why: you need exactly the sample size asked for.
  • The lottery method does the same thing by hand.
  • Write every name on a ticket, put them in a hat, mix, and draw n tickets without putting them back.

๐Ÿ‘€ Watch me do it: use a random number table

A club has 80 members numbered 01 to 80. Choose 4 using this line of random digits, read in pairs: 5 2 9 1 0 7 3 4 5 2 8 8 1 6 4 0

What I writeWhy I do it
Pairs: 52, 91, 07, 34, 52, 88, 16, 40Two digits per number, because the labels go up to 80 (two digits).
52: keep.In the range 01 to 80.
91: ignore.Out of range: there is no member 91.
07: keep. 34: keep.Both in range.
52: ignore.A repeat. Member 52 is already in the sample.
88: ignore. 16: keep.88 is out of range. 16 is our fourth member.
Sample: members 52, 07, 34, 16.Stop at 4. The 40 at the end is not needed.
AdvantagesDisadvantages
Free of bias: every member has the same chance. Easy to understand. Each number has a known equal chance of selection.Needs a full sampling frame, which may not exist or be up to date. Can be slow for large populations. By bad luck, the sample might not represent groups in the population well.

๐Ÿ“ Describe the method fully

For "describe how to take a simple random sample" you usually need: (1) a sampling frame numbered from 1 to N, (2) random numbers generated in that range, (3) repeats ignored, (4) continue until the sample size is reached. Missing any step often costs a mark.

  • Wrong: "pick 20 people at random". This says nothing about how.
  • Right: "number the 400 pupils 1 to 400, generate random integers from 1 to 400, ignore repeats, and continue until 20 different pupils are chosen".

โœ๏ธ YOUR TURN 1

Try this first:

A library has 640 books in its history section. Describe how to take a simple random sample of 25 books.

Answer:

  1. Use the library catalogue as a sampling frame and number the books 001 to 640.
  2. Use a calculator or computer to generate random integers from 1 to 640.
  3. Ignore any repeats.
  4. Continue until 25 different numbers are obtained; the books with those numbers form the sample.

โœ๏ธ YOUR TURN 2

Try this first:

Using the digits 3 8 1 2 0 4 3 8 9 9 2 6 read in pairs, choose 3 people from a list numbered 01 to 40.

Answer:

  • Pairs: 38, 12, 04, 38, 99, 26.
  • 38 keep, 12 keep, 04 keep. That's 3 already.
  • Sample: 38, 12, 04. (If more were needed: 38 is a repeat and 99 is out of range, so the next one would be 26.)

Systematic Sampling

Imagine a factory line producing 600 bottles an hour. Stopping to generate 30 random numbers and hunt down each bottle would be slow. It's far easier to say "take every 20th bottle". That is the idea behind systematic sampling.

  • In a systematic sample you choose members at regular intervals from an ordered list.
  • If the population size is N and you want a sample of size n, the gap between chosen members is k:

k=Nn

  • N is the population size, n is the sample size, and k is the interval (round to a whole number if needed).

๐Ÿ’ก In plain words

  • Split the list into n equal chunks of length k.
  • Pick one member from each chunk, always in the same position.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in ยท Subscribe ยท Start free trial

All notes in Sampling and estimation (6.4)

  1. Populations, Samples and the Census: Why We Sample
  2. Random Sampling and Random Numbers
  3. The Distribution of the Sample Mean
  4. The Sample Mean and Unbiased Estimates
  5. The Central Limit Theorem: Why Sample Means Become Normal
  6. Confidence Intervals for a Mean When the Variance Is Known
  7. Large-Sample Confidence Intervals and Sample Size
  8. Confidence Intervals for a Population Proportion

Video

What's inside for this topic

8 teacher notes, 136 practice questions, 40 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp ยท Try one live lesson

Previous note: Populations, Samples and the Census: Why We Sample Next note: The Distribution of the Sample Mean

All Cambridge A Level Maths topics ยท A Level Maths