Updated · By Pete Bromfield, IB examiner

IA idea · Simulation & Monte Carlo methods

Estimating the area of a leaf with random points

AA SLAI SLAA HLAI HL Accessible Also in: Calculus, Health & biology

Research question

How accurately can random points estimate the area of a leaf (or any irregular shape), how does the error shrink as the number of points grows, and how does Monte Carlo compare with counting squares and the trapezoidal rule?

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

It is a simple, visual introduction to Monte Carlo methods with a real object, and the error question (why does it shrink like 1/√n?) leads to genuinely interesting mathematics.

The mathematics you'll need

  • Probability as a proportion of area
  • Binomial model for the number of hits
  • Standard error ∝ 1/√n, checked against repeated estimates
  • The trapezoidal rule from measured widths
  • Comparing methods for accuracy and effort

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

Photograph or scan leaves on squared paper; place random points with a spreadsheet and count hits by eye or in GeoGebra.

  • GeoGebra — Free geometry and graphing software — Voronoi diagrams, loci and regression built in.
  • Desmos graphing calculator — Free graphing and regression (y₁ ~ ax₁ + b) — fit models to your data and show residuals.

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. Measure the leaf area by counting squares as a reference.
  2. Estimate it with random points for several sample sizes.
  3. Repeat each size many times and measure the spread.
  4. Compare the spread with the binomial prediction.
  5. Compare with the trapezoidal rule and reflect on which you would use.

Pitfalls that cost marks

  • Using one estimate per sample size, so the error pattern is invisible.
  • Forgetting the area of the bounding rectangle in the scale factor.
  • No reference value to judge accuracy against.

Showing personal engagement

  • Use leaves from a plant you grow or a tree you pass.
  • Predict how many points you need for 1% accuracy, then test it.
  • Compare a smooth leaf with a jagged one.

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

Which course is it for?

CourseFitMaths to lean on
AA SLGood fitProbability as a proportion of area; Binomial model for the number of hits
AA HLFits, but add an HL techniqueProbability as a proportion of area; Binomial model for the number of hits
AI SLGood fitProbability as a proportion of area; Binomial model for the number of hits
AI HLFits, but add an HL techniqueProbability as a proportion of area; Binomial model for the number of hits

Level: Accessible. A good first extended piece of maths, with room to go deeper. 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: using one estimate per sample size, so the error pattern is invisible — 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

Use the same idea to estimate π or a volume, or compare random points with a regular grid of points and explain the difference.

Extending it for HL

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 · AA SL ideas · AI SL ideas · AA HL ideas · AI HL ideas · All 239 IA ideas