Updated · By Pete Bromfield, former Head of Maths with IB examining experience

IA idea · Survey-based investigations

How big should a school poll be? Sampling from a known population

AI SLAI HLAA SL Solid Also in: Simulation, Statistics

Research question

By taking repeated samples of different sizes from a dataset where the true answer is known, how does the margin of error shrink with sample size, and how many students would a school poll need for a margin of ±5 percentage points?

Make it yours, then agree it with your teacher.

Next step: plan this IA free — the planner opens with this question filled in. For feedback on your own draft, the IA package (€39 once) gives you 5 AI feedback credits and every annotated exemplar in full.

Why it makes a good exploration

It makes sampling error visible: you see the spread of estimates around a known truth before you trust your own single poll.

The mathematics you'll need

  • Random sampling methods
  • Sampling distribution of a proportion
  • Standard error √(p(1 − p)/n)
  • Margin of error and sample size
  • Comparing random, convenience and stratified samples

Where the data comes from

Use a public dataset as a 'population' (the UCI repository has a student-performance dataset), then run your own small poll.

Real data for this idea

  1. Primary source: Census at School New Zealand random sampler. Draw a random sample of past responses as a comparison for your own survey, not a substitute for it. Licence: Check the terms on the site.
  2. Also useful: Census at School USA (American Statistical Association): Census at School USA. The US random sampler gives the same kind of comparison sample. Licence: Check the terms on the site.
  3. Also useful: UCI Machine Learning Repository: Dataset repository. Pick a dataset with a stated licence; its page lists every variable. Licence: Newer datasets are CC BY 4.0; older ones vary, so check each dataset's page.

Census at School responses are voluntary, so they are not a random sample of all students: use them as a comparison, not as the population. Links checked October 2026; we link to the data and never copy it. More free data sets.

A possible outline

  1. Choose a population dataset and a yes/no variable.
  2. Take many samples of each size and record the estimates.
  3. Compare the spread with the standard-error formula.
  4. Compare sampling methods.
  5. Plan and run your own poll and reflect.

Pitfalls that cost marks

  • Too few repeated samples.
  • Treating a convenience sample as random.
  • Using the formula without checking it against the simulation.

Showing personal engagement

  • Run a real poll on a school question.
  • Predict the needed sample size first.
  • Test a convenience sample against a random one.

See Criterion C: personal engagement for what examiners look for.

Which course is it for?

CourseFitMaths to lean on
AA SLGood fitRandom sampling methods; Sampling distribution of a proportion
AA HLNot a natural fitThe mathematics is mainly from the AI course; at AA HL the exploration would need an AA-level approach (calculus, proof or probability theory) to reach the top of Criterion E.
AI SLGood fitRandom sampling methods; Sampling distribution of a proportion
AI HLGood fitRandom sampling methods; Sampling distribution of a proportion

Level: Solid. Needs some independent work beyond class examples. See how the IA differs between AA and AI, SL and HL.

How this idea reaches the top bands

Reflection (D)

For this idea, start with the weak points: too few repeated samples; and treating a convenience sample as random. Say how each one affects your answer.

Use of mathematics (E)

SL: random sampling methods; sampling distribution of a proportion; standard error √(p(1 − p)/n); margin of error and sample size; comparing random, convenience and stratified samples, each explained in your own words and carried out correctly.

How surveys explorations reach the top bands in general: Survey-based investigations IA ideas. Guides: A · B · C · D · E · self-grade sheet.

Taking it further

Adjust for the finite population of your school and see how much it matters.

Extending it for HL

Add an HL technique the question genuinely needs: what an HL surveys exploration adds.

Frequently asked questions

Which IB Maths course is this IA idea for?

It works for AI SL, AI HL and AA SL. We rate it Solid: it needs some independent work beyond class examples.

What mathematics does this IA use?

Random sampling methods, sampling distribution of a proportion, standard error √(p(1 − p)/n), margin of error and sample size and comparing random, convenience and stratified samples.

Where can I get data for this IA?

Use a public dataset as a 'population' (the UCI repository has a student-performance dataset), then run your own small poll. Checked sources and tools: Census at School New Zealand, Census at School USA (American Statistical Association), UCI Machine Learning Repository and Desmos graphing calculator.

Turn this idea into your IA

The planner opens with “How big should a school poll be? Sampling from a known population” filled in: the question, the maths and the data sources.

Plan this IA free

Your plan is kept in this browser. A free account keeps it with your drafts on any device: Join free · Sign in

Also: free IA self-check · A–E checklist (PDF) · have a draft? AI feedback or a review with Pete (€100)

Writing it up: how to write a Maths IA, step by step · structure and format · mistakes that cost marks · IA statistics, step by step

Similar ideas

All surveys ideas · AI SL ideas · AI HL ideas · AA SL ideas · All 239 IA ideas