A head teacher wants the views of 60 students out of 1200.
3 lessons, about 1 h 25 min3 simulations10 problems3 practice questionsPython in every lesson
A simple random sample gives every group of people in the population the same chance of being the sample. This lesson shows how to choose one with names in a hat, with random digits and with Python's random.sample, and what a sampling frame is.
Three more fair methods are used in real surveys. A systematic sample takes every th member from a list. A stratified sample takes a simple random sample inside each group. A cluster sample chooses whole groups at random. This lesson shows when each is used, and why stratifying can beat a simple random sample.
A poll says "52% support the plan, with a margin of error of 3 points". The margin covers the luck of a random sample. A quick rule gives it: about percentage points for a sample of . This lesson tests the rule by simulation, finds the sample size for a margin, and shows what a margin does not cover.
Log in to join the discussion.
Loading…