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

IA idea · Simulation & Monte Carlo methods

Why do buses come in bunches? A simulation of a bus route

AI HLAI SLAA HL Ambitious Also in: Probability, Kinematics

Research question

On a route where buses leave at regular intervals but dwell longer at stops with more waiting passengers, how quickly do small delays grow into bunches, and which simple rule (holding buses, limiting dwell time) breaks the bunches up best?

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

Bus bunching is a famous feedback effect: a late bus picks up more passengers and gets later still. A simulation lets you watch it happen and test fixes that transport planners actually use.

The mathematics you'll need

  • A deterministic model of headways and dwell times
  • Random delays added with chosen distributions
  • Simulation over many runs; summary statistics of headways
  • Positive feedback in a recurrence
  • Comparing control rules with clear measures

Where the data comes from

Time buses at a stop you use on several days, or use timetables and observed arrivals; estimate boarding times by watching (no personal data).

Real data for this idea

  1. Primary source: Transport for London open data: TfL Unified API. Live and timetabled arrivals for any bus stop: record arrival times over a few days to measure the gaps. Licence: Check TfL's open data terms; attribution is required.

Links checked October 2026; we link to the data and never copy it. More free data sets.

A possible outline

  1. Build a simple recurrence for headways.
  2. Show the feedback effect with no randomness.
  3. Add random delays and simulate many days.
  4. Test holding rules and compare waits.
  5. Reflect on what your simulation leaves out (traffic lights, overtaking).

Pitfalls that cost marks

  • Building a model too complicated to explain.
  • Inventing parameters without any observation behind them.
  • Measuring success only by average wait, not reliability.

Showing personal engagement

  • Time your own bus route.
  • Ask a driver or the operator how they try to prevent bunching.
  • Design your own rule and test it.

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

Which course is it for?

CourseFitMaths to lean on
AA SLNot a natural fitThe core technique sits in the AI course or at HL; an AA SL student could use it only as clearly explained new mathematics.
AA HLGood fitA deterministic model of headways and dwell times; Random delays added with chosen distributions
AI SLFits — ambitious at SLA deterministic model of headways and dwell times; Random delays added with chosen distributions
AI HLGood fitA deterministic model of headways and dwell times; Random delays added with chosen distributions

Level: Ambitious. Suits confident students; expect to learn some mathematics on your own. 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: building a model too complicated to explain; and inventing parameters without any observation behind them. Say how each one affects your answer.

Use of mathematics (E)

SL: a deterministic model of headways and dwell times; random delays added with chosen distributions; simulation over many runs; summary statistics of headways; positive feedback in a recurrence; comparing control rules with clear measures, 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

Find the holding time that minimises the average total journey time, or compare your simulation with a full day of observed arrivals.

Extending it for HL

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

Frequently asked questions

Which IB Maths course is this IA idea for?

It works for AI HL, AI SL and AA HL. We rate it Ambitious: it suits confident students, who should expect to learn some mathematics on their own.

What mathematics does this IA use?

A deterministic model of headways and dwell times, random delays added with chosen distributions, simulation over many runs; summary statistics of headways, positive feedback in a recurrence and comparing control rules with clear measures.

Where can I get data for this IA?

Time buses at a stop you use on several days, or use timetables and observed arrivals; estimate boarding times by watching (no personal data). Checked sources and tools: Transport for London open data and Desmos graphing calculator.

Turn this idea into your IA

The planner opens with “Why do buses come in bunches? A simulation of a bus route” 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 modelling, step by step

Similar ideas

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