IA idea · Simulation & Monte Carlo methods
One snake queue or a queue at every till? Simulating supermarket checkouts
Research question
For the arrival rate and service times you measure at a real shop, does one shared queue feeding several tills give shorter and less variable waits than a separate queue at each till, and by how much?
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
Everyone has an opinion about queues; a simulation built on your own timings settles it. You collect the inputs, build the model, and compare both the average wait and its spread.
The mathematics you'll need
- Modelling arrivals (Poisson counts, exponential gaps) from your own data
- Service-time distributions fitted to timings
- Simulation in a spreadsheet or short program, explained step by step
- Mean and standard deviation of waiting times; comparing distributions
- HL: confidence intervals for the mean wait
Modelling the data, step by step
This idea usually needs an exponential model. See it worked step by step, with a criterion tip at every step: Exponential y = a e^(kx) + c and y = a·bˣ.
Model your own data Paste it from Desmos, GeoGebra or a spreadsheet and get the same play-by-play with your numbers. New to modelling? Start with the modelling workflow. Writing it up? The IA modelling planner comments on each paragraph as you draft — it never writes it for you.
The statistics, step by step
Worked with every number shown, with what examiners look for and the common mistakes: Confidence intervals for a mean · Binomial and Poisson models · Descriptive statistics and box plots. Then run the same steps on your own data in Analyse my data, or start from the statistics workflow.
Where the data comes from
Time customer arrivals and service at a shop or canteen for several busy periods (with permission, no personal data).
- Desmos graphing calculator — Free graphing and regression (y₁ ~ ax₁ + b) — fit models to your data and show residuals.
A possible outline
- Collect arrival and service data; fit distributions and check the fit.
- Simulate a single till and compare with your observations.
- Simulate both queue designs for the same arrivals.
- Compare averages, spreads and the longest waits.
- Reflect on queue-jumping, choosing the 'wrong' queue and staff breaks.
Pitfalls that cost marks
- Assuming arrivals are Poisson without checking.
- Running too few simulations to tell the designs apart.
- Comparing only averages, not the spread that customers notice.
Showing personal engagement
- Time the queues yourself at a place you use.
- Ask the manager why they chose their layout.
- Test a 'join the shortest queue' rule against random choice.
See Criterion C: personal engagement for what examiners look for.
Which course is it for?
| Course | Fit | Maths to lean on |
|---|---|---|
| AA SL | Good fit | Modelling arrivals (Poisson counts, exponential gaps) from your own data; Service-time distributions fitted to timings |
| AA HL | Good fit | Modelling arrivals (Poisson counts, exponential gaps) from your own data; Service-time distributions fitted to timings |
| AI SL | Good fit | Modelling arrivals (Poisson counts, exponential gaps) from your own data; Service-time distributions fitted to timings |
| AI HL | Good fit | Modelling arrivals (Poisson counts, exponential gaps) from your own data; Service-time distributions fitted to timings |
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: assuming arrivals are Poisson without checking; and running too few simulations to tell the designs apart. Say how each one affects your answer.
Use of mathematics (E)
SL: modelling arrivals (Poisson counts, exponential gaps) from your own data; service-time distributions fitted to timings; simulation in a spreadsheet or short program, explained step by step; mean and standard deviation of waiting times; comparing distributions, each explained in your own words and carried out correctly.
HL adds: confidence intervals for the mean wait, each explained in your own words and carried out correctly.
How simulation explorations reach the top bands in general: Simulation & Monte Carlo methods IA ideas. Guides: A · B · C · D · E · self-grade sheet.
Taking it further
Add customers who leave if the queue is too long, or find the number of tills needed to keep the average wait under two minutes.
Extending it for HL
This idea already has HL mathematics in it: confidence intervals for the mean wait. Make that the centre of the exploration and use it with full rigour.
See a complete IA, marked
Should I lease or buy my first car? (AI SL) is a complete simulation exploration, marked on every criterion.
Frequently asked questions
Which IB Maths course is this IA idea for?
It works for AI SL, AI HL, AA SL and AA HL. We rate it Solid: it needs some independent work beyond class examples.
What mathematics does this IA use?
Modelling arrivals (Poisson counts, exponential gaps) from your own data, service-time distributions fitted to timings, simulation in a spreadsheet or short program, explained step by step, mean and standard deviation of waiting times; comparing distributions and hL: confidence intervals for the mean wait.
Where can I get data for this IA?
Time customer arrivals and service at a shop or canteen for several busy periods (with permission, no personal data). Checked sources and tools: Desmos graphing calculator.
Turn this idea into your IA
The planner opens with “One snake queue or a queue at every till? Simulating supermarket checkouts” filled in: the question, the maths and the data sources.
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 modelling, step by step
Similar ideas
- Are arrivals at the school canteen random? A Poisson model of a queueAI HLAI SLSolid
- Estimating π by dropping needles: how fast does the estimate improve?AA HLAA SLAI SLAI HLSolid
- Does the best team win? Knockout cups versus leaguesAI SLAI HLAA SLAA HLSolid
- How many shuffles does it take to mix a deck of cards?AI HLAA HLAI SLAmbitious
All simulation ideas · AI SL ideas · AI HL ideas · AA SL ideas · AA HL ideas · All 239 IA ideas