Updated · By Pete Bromfield, IB examiner

IA idea · Simulation & Monte Carlo methods

One snake queue or a queue at every till? Simulating supermarket checkouts

AI SLAI HLAA SLAA HL Solid Also in: Probability, Statistics

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?

Adapt it: change the place, the data or the comparison until the question is yours.

Free: the A–E checklist an examiner uses, by email ↓

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

Course labels show where a technique sits; using maths from outside your course is fine if you explain it clearly and say it is new to you.

Where the data comes from

Time customer arrivals and service at a shop or canteen for several busy periods (with permission, no personal data).

Cite every source in a footnote where you use it and in your bibliography. Check the licence of any dataset you download.

A possible outline

  1. Collect arrival and service data; fit distributions and check the fit.
  2. Simulate a single till and compare with your observations.
  3. Simulate both queue designs for the same arrivals.
  4. Compare averages, spreads and the longest waits.
  5. 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?

CourseFitMaths to lean on
AA SLGood fitModelling arrivals (Poisson counts, exponential gaps) from your own data; Service-time distributions fitted to timings
AA HLGood fitModelling arrivals (Poisson counts, exponential gaps) from your own data; Service-time distributions fitted to timings
AI SLGood fitModelling arrivals (Poisson counts, exponential gaps) from your own data; Service-time distributions fitted to timings
AI HLGood fitModelling 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

Personal engagement (C)

Design the simulation yourself: choose the rules, test them on a small case you can check by hand, and change one rule at a time to answer a question you care about.

Reflection (D)

Compare simulation with exact theory or real data, say how many runs you used and how much the answer varies between batches, and question the random-number assumptions. For this idea, start with: assuming arrivals are poisson without checking — say how it affects your answer.

Use of mathematics (E)

SL: A probability model described precisely, simulated correctly, with the simulated answer compared with an exact calculation for at least one simple case and the results summarised with appropriate statistics.

HL: An estimate of the simulation's error (standard error, or a confidence interval for the estimate), a distribution fitted to the results and tested, or an exact result proved for the general case that the simulation confirms.

Criteria A and B (presentation and communication) work the same way for every idea: see the guides to Criterion A and Criterion B.

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. Give a confidence interval for each simulated estimate and show how it narrows as the number of runs grows, or prove a general result that the simulation confirms.

Before you start: the checklist an examiner uses

Every check for Criteria A–E in a 4-page PDF, the mistakes that cost the most marks and a self-assessment grid. We'll email it with a short IA tip every few days, timed to your deadline if you give it. Free — no account, no payment.

Turn this idea into your IA

Similar ideas

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