IA idea · Simulation & Monte Carlo methods
How many random numbers until the total passes 1? Finding e by chance
Research question
If you add random numbers between 0 and 1 until the total exceeds 1, how many do you need on average, and why is the answer e?
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
A spreadsheet suggests the answer quickly, which turns the IA into a hunt for the reason. The proof needs probability, a geometric argument about volumes and a series for e, all within reach of a strong AA student.
The mathematics you'll need
- Simulation with RAND()
- P(sum of n uniforms < 1) = 1/n!, from areas and volumes
- Expected value as a series
- The series for e (HL: Maclaurin series)
- Standard error of the simulated estimate
Where the data comes from
No data needed: simulate thousands of trials in a spreadsheet.
- Desmos graphing calculator — Free graphing and regression (y₁ ~ ax₁ + b) — fit models to your data and show residuals.
A possible outline
- Simulate and estimate the mean.
- Find P(N > 2) from the area of a triangle; P(N > 3) from a volume.
- Conjecture and justify P(N > n) = 1/n!.
- Sum the series to get e.
- Compare with the simulation and its error.
Pitfalls that cost marks
- Stopping at the simulation.
- Asserting 1/n! without a geometric or inductive argument.
- Not quantifying the simulation's uncertainty.
Showing personal engagement
- Predict the answer before simulating.
- Change the target from 1 to 2 and investigate.
- Use dice instead of random numbers and compare.
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 | Simulation with RAND; P(sum of n uniforms < 1) = 1/n!, from areas and volumes |
| AA HL | Good fit | Simulation with RAND; P(sum of n uniforms < 1) = 1/n!, from areas and volumes |
| AI SL | Not a natural fit | The mathematics is mainly AA or HL (calculus or proof beyond AI SL); an AI SL version would need a data-driven, technology-based approach. |
| AI HL | Not a natural fit | The mathematics is mainly from the AA course; an AI HL version would need modelling with technology, statistics or networks at HL level. |
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: stopping at the simulation; and asserting 1/n! without a geometric or inductive argument. Say how each one affects your answer.
Use of mathematics (E)
SL: simulation with RAND; p(sum of n uniforms < 1) = 1/n!, from areas and volumes; expected value as a series; the series for e (HL: Maclaurin series); standard error of the simulated estimate, 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 expected number needed to pass a general target t, or the distribution of the final total.
Extending it for HL
Add an HL technique the question genuinely needs: what an HL simulation exploration adds.
See a complete IA, marked
How long does a game of Snakes and Ladders last on my grandmother's board? (AI HL) is a complete simulation exploration, marked on every criterion.
Frequently asked questions
Which IB Maths course is this IA idea for?
It works for AA HL and AA SL. We rate it Solid: it needs some independent work beyond class examples.
What mathematics does this IA use?
Simulation with RAND(), p(sum of n uniforms < 1) = 1/n!, from areas and volumes, expected value as a series, the series for e (HL: Maclaurin series) and standard error of the simulated estimate.
Where can I get data for this IA?
No data needed: simulate thousands of trials in a spreadsheet. Checked sources and tools: Desmos graphing calculator.
Turn this idea into your IA
The planner opens with “How many random numbers until the total passes 1? Finding e by chance” 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
- Estimating π by dropping needles: how fast does the estimate improve?AA HLAA SLAI SLAI HLSolid
- How far does a random walker get? Distance after n stepsAA HLAA SLAI HLSolid
- What is a 'random' chord? Bertrand's paradox simulatedAA HLAA SLSolid
- Does the best team win? Knockout cups versus leaguesAI SLAI HLAA SLAA HLSolid
All simulation ideas · AA HL ideas · AA SL ideas · All 239 IA ideas