---
title: "Designing a simulation"
subtitle: "Year 9 Probability · Chance · Lesson 7"
---

# Designing a simulation

**Name:** {{field-24}} **Date:** {{field-15}} **Class:** {{field-15}}

> **Key question:** A striker scores 4 penalties in 5. How often would she score all five in a shootout?


:::teacher-note

**In one sentence:** To simulate something you cannot repeat, match each outcome to a share of random digits, decide what one trial is, and plan how many trials to run.

**Students should be able to say:** I can match digits to a probability. I can say what one trial is. I can plan how many digits a simulation needs.

**Width:** the unmarked parts are the floor every student does (predict, run, investigate and make). Typical adds the modify practice; wider adds the real-world contexts. They add contexts, not difficulty. Students work in the online tutorial alongside this sheet.

:::


## Predict


:::keep-together

**A random digit from 0 to 9 stands for one kick. The striker scores 80% of the time. Which digits should mean "goal"?**

☐ 0 to 7 (8 digits)

☐ 0 to 3 (4 digits)

☐ 0 to 9 (all 10)

My prediction, and why:

{{lines-3}}

:::


:::teacher-note

**What happens:** 0 to 7. Eight of the ten digits are 80% of the digits, and every digit is equally likely.

:::


## Run

Try it on the board in the tutorial. Was your prediction right? What was different?

{{lines-2}}

## Trial, record, repeat


:::keep-together

### One shootout

1. $P(\text{goal}) = 0.8$ — The rate from the player's record.
2. $\text{digits } 0\text{--}7 \text{ goal},\ 8,9 \text{ miss}$ — 8 of 10 digits is 80%.
3. $5 \text{ digits} = 1 \text{ shootout}$ — One trial is a whole shootout; repeat many times.

**A trial is one shootout of 5 kicks, using 5 digits. A digit 0 to 7 is a goal. The digits are 7 2 9 0 3. How many goals is that?**

Answer: {{field-15}}

:::


:::teacher-note

**Answer:** 4

7, 2, 0 and 3 are goals (9 is a miss): 4 goals.

:::


:::keep-together

### What is a trial

**In your simulation, what should one trial be?**

☐ The total of all digits

☐ One goal

☐ One whole shootout of 5 digits

☐ One digit

:::


:::teacher-note

**Answer:** One whole shootout of 5 digits

A trial is one run of whatever you are studying: here a full shootout, so five digits, and you note whether all five were goals.

:::


:::keep-together

### Find the mistake

**Raj sets up a simulation of a player who scores 4 in every 5 penalties. Click the line where he goes wrong.**

```
 1  The striker scores 4 out of every 5 penalties.
 2  I will use digits 0 to 4 as a goal and 5 to 9 as a miss.
 3  Five digits make one shootout, and I will run 100 shootouts.
```

Line: {{field-15}}

Why is it wrong?

{{lines-2}}

:::


:::teacher-note

**Answer:** line 2

Line 2: digits 0 to 4 are 5 of the 10 digits, a 50% chance. 80% needs 8 digits, 0 to 7.

:::


:::typical

## Other players


**70% scorer.** 

**One in four.** 

**A coin.** 

Work in the tutorial. Plan first: what will you change, and how will you test it?

{{box-4}}

:::


## Digit rules


:::keep-together

### On-time rate

**A student gets a bus on time 90% of the time. How many of the 10 digits stand for on time?**

Answer: {{field-15}}

:::


:::teacher-note

**Answer:** 9

90% of 10 = 9.

:::


:::keep-together

### Digits needed

**A simulation of a 3-kick penalty round needs 3 digits for each round. How many digits are needed for 20 rounds?**

Answer: {{field-15}}

:::


:::teacher-note

**Answer:** 60

3 × 20 = 60.

:::


:::keep-together

### Review

**Review: a bus was late on 12 of 40 days. What is the relative frequency (a decimal)?**

Answer: {{field-15}}

:::


:::teacher-note

**Answer:** 0.3

12 ÷ 40 = 0.3.

:::


## Make: plan the shootout

Where would you get 100 random digits from? A spreadsheet, a calculator or a dice are all fine.

**Also used in**

- **Engineering.** Testing a bridge design against thousands of random loads is a simulation.
- **Weather and finance.** Forecasts run thousands of simulated futures and report how often each happens.
- **Next lesson.** Running a simulation on a computer and comparing with the theory.

Work in the tutorial. Plan first: what will you change, and how will you test it?

{{box-4}}

## Exit ticket

:::keep-together

**A player scores 30% of the time. Which digits are goals?**

{{lines-3}}

:::


:::teacher-note

**Answer:** Three digits, such as 0 to 2.

:::

