← Teacher guide

Simulate it

Students design a simulation of the screening test where the second step depends on the first, run it many times on the board, and compare the simulated chance with the table. They see that a simulation wanders around the calculated chance and settles as trials grow (AC9M10P02, nodes 1 and 2).

Year 10 Probability · Conditional chance · about 50 minutes · Open the student lesson

Classroom resources

Open these in Waypoints Prepare with one click. To share a file another way, copy its address and paste it into Load URL, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.

Students will be able to

Timing

Predict and Run 10 min · Investigate 18 min · Modify 8 min · Practise and Make 14 min

Before class

Do the Run board yourself first. Students need the last lessons (tables, Venns and trees) and Year 9's simulation lessons.

The one idea: a simulation picks random people with the right chances, then counts. A conditional chance is read from the counts inside the group, so the Positive rows give the chance given a positive. The board here picks one outcome in proportion to its count (the tree in the last lesson), so one trial is one imaginary person. The two-step design with digits is the same idea in a form a student could do with dice, a spreadsheet or code.

The board has no field for the chance given a positive: students read the count table and divide. That is deliberate. Results are random, so no check depends on a particular count: the board checks wait for a number of trials, and the number questions use counts given in the question.

Every rate and count is made up: the screening test, the simulated counts and the counters. A simulation of a made-up test says nothing about any real test.

Running the lesson

  1. Predict: show of hands before the board. Most choose exactly 67.
  2. Run: ask each group to report its own simulated chance after 1000 trials. They will differ: put them on the board.
  3. Paper: the counters design and the Make comparison are worked on paper first. Look for a different second step.
  4. Modify: before the last board, ask 'what is the chance there are no positives in 10 trials?' (about half).

The hard part (on purpose)

Forgetting that the second step changes with the first. Ask: 'Is the chance of a positive the same for everyone? Who has a different chance?'

When students get stuck

What you will seeA question to askThe fix
A student gives every person the same chance of a positive.Is a positive equally likely for someone who has the condition and someone who doesn't?Make the second step depend on the first: 9 in 10 for people with it, 1 in 20 for the rest.
A student divides by the number of trials.Given a positive test, which trials are you looking at?Only the trials with a positive result: add the two Positive rows.
A student says the table is wrong because the simulation gave a different number.If you ran it again, would you get exactly the same number? How many trials was it?Run more trials and see whether the result settles near the table's number.

Answers to the checks

  1. how close will it be: A simulation picks 1000 imaginary people with the rates above. The table says 67 of 1000 test positive. How many positives will the simulation give?
    Close to 67, but a little different each time. The picks are random, so the count wanders around 67 (for example 59 or 74) and does not land on it every time.
  2. a thousand imaginary people: Press Run 1000 two or three times and watch the count table. How close to the chance in the table (0.27) do you get, from the two Positive rows?
  3. Which design: Which design simulates one person in the screening test correctly?
    Pick 1 to 50 (1 = has it), then 1 to 10 or 1 to 20 for the test
    Pick a whole number from 1 to 50 (1 means has the condition). If it was 1, pick from 1 to 10 (1 to 9 mean positive). Otherwise pick from 1 to 20 (1 means positive). The first pick decides who has the condition, with chance 1 in 50. The second pick uses the chance that goes with that result, 9 in 10 or 1 in 20. That is how the condition is built in.
  4. How the second step depends: A bag has 4 red and 6 blue counters (made up). Two are drawn with no put-back. Design a simulation with random digits: the first digit from 0 to 9, and the second step depends on the first. Then use it to find the chance the second counter is red, given the first was red. Give a decimal to 2 places.
    First draw: digits 0 to 3 mean red, 4 to 9 mean blue (4 of the 10 digits are red); If the first was red, 3 red and 6 blue are left: use digits 0 to 8, with 0 to 2 meaning red (the second step depends on the first); 3÷9=0.333 \div 9 = 0.33 (the chance of a red second, given a red first)
    After a red is out, 3 of the 9 left are red, so the second step uses 9 digits with 3 for red: 3/9 = 0.33.
  5. Find the mistake: Zoe compares a simulation of 100 people with the table. Click the line where she goes wrong.
    line 3
    Line 3: a simulation of only 100 people wanders. 0.35 against 0.27 is not enough to say the table is wrong. She should run many more trials and see whether the result settles near 0.27.
  6. Ten thousand: Run at least 10,000 trials. Read the two Positive rows and work out the simulated chance of the condition, given a positive test. Compare it with 0.27.

    With 10,000 trials the simulated chance should be close to 0.27: a gap of a couple of hundredths is normal.
  7. A better test: This test gives fewer false alarms. Run at least 5,000 trials and work out the simulated chance of the condition, given a positive test. The table gives 18 out of 32.

    18/32 = 0.56. The simulation should be near 0.56, a lot higher than the 0.27 of the first test.
  8. Too few: Edge case: you run only 10 trials of the first test. About 7 in 100 trials are positive. What can go wrong when you try to find the chance of the condition, given a positive test?
    There might be no positives at all, so there is nothing to divide by
    Only about 0.7 of the 10 trials are expected to be positive, so you may get none. With no positives there is no group to look in, so the chance cannot be worked out.
  9. Reading a simulation: A simulation of the screening test gave 22 people with the condition and a positive test, and 51 people without it and a positive test. What is the simulated chance of the condition, given a positive test? Give a decimal to 2 places.
    0.3
    22 + 51 = 73 positives, and 22 of them have the condition: 22 ÷ 73 = 0.30.
  10. Which run is better: The table says 0.27. Run A (1000 trials) gave 0.31. Run B (50 000 trials) gave 0.28. Which sentence is right?
    Both are close, and the bigger run is closer, as expected
    Run A is 0.04 from 0.27 and Run B is 0.01. Both are near, and the one with more trials is nearer: more trials settle nearer the true chance.
  11. A review: Review: a coin is tossed and a die is rolled, so there are 12 outcomes. How many of them are heads with a die showing 5 or 6?
    2
    Heads with 5 and heads with 6: 2 of the 12.
  12. Check against the table: A simulation of 10 000 imaginary people (the first test) gave 192 people with the condition and a positive test, and 507 people without it and a positive test. What is the simulated chance of the condition, given a positive test? Give a decimal to 2 places.
    All the positives: 192+507=699192 + 507 = 699 (the group the 'given' picks); Positives with the condition: 192192 (the count inside the group); 192÷699=0.27192 \div 699 = 0.27 (the part over the group)
    699 test positive and 192 of them have the condition: 192 ÷ 699 = 0.27.
  13. Say how they compare: Which sentence best compares the simulation with the table?
    They match (0.27 and 18/67), as 10 000 trials should
    The simulated chance of 0.27 matches the table's 18/67 = 0.27, as expected for 10 000 trials; a run of only 100 would be likely to wander further. A simulation estimates the same chance as the table. A good comparison gives both numbers and says what the number of trials does to the gap.

Solutions

One possible solution for each task. Other correct programs are fine.

more trials, a different test › Ten thousand

Open task: any program that does what the step asks.

more trials, a different test › A better test

Open task: any program that does what the step asks.

more trials, a different test › Too few

Open task: any program that does what the step asks.

Stretch and support

Stretch: Change the board's rates so 100 people in 1000 have the condition, the test is positive for 9 in 10 of them and for 1 in 20 of the rest. Predict the chance given a positive, then simulate it. What did a more common condition do?

Support: A printed table of the four outcomes with a space for tallies, and the calculation written as a fraction to fill in: ___ ÷ (___ + ___).

Coach prompt (optional)

For a student who has done the lesson and is still stuck. They paste it into an AI tool your school allows; it asks questions about this lesson's one idea and doesn't give answers. Students see it on the course recap page only through a link ending in ?coach=1: recap with coach prompts.

You are a patient maths coach for a Year 10 student in Australia. Help me understand the ideas in ONE lesson only, from the lesson "Simulate it".

The ideas:
- Designing simulations for conditional probability: I can design a simulation to model a conditional probability situation, specifying how the conditioning will be implemented in the digital tool.
- Interpreting simulated results: I can compare simulated frequencies to theoretical probabilities and explain why they differ for small samples but converge for large samples.

What understanding looks like:
- Student describes a simulation design that correctly encodes the conditional structure of the problem
- Student implements the simulation in a digital tool and runs it for a sufficient number of trials
- Student correctly compares a simulated frequency to the theoretical probability and describes the direction and size of the difference
- Student explains that increasing sample size reduces the gap between simulated and theoretical probabilities

Mistakes students often make here:
- A student gives every person the same chance of a positive.
- A student divides by the number of trials.
- A student says the table is wrong because the simulation gave a different number.

How to coach me (rules from the Waypoints Kit coach):
- Ask me one short question at a time (2 to 4 sentences) and wait for my answer. Never give me the answer before you have heard my thinking, and don't hide the answer inside your question.
- Start in Discover: ask me to explain the idea in my own words, or to predict what happens in a simple example. I can switch any time: "teach it back" (you play a beginner and I explain), "spot the flaw" (you show me an answer with one common mistake and I find it), or "check" (I explain, and you tell me what is solid and what to revisit).
- If I am stuck or say "just tell me", ask what I think first, then give a small hint or a simpler example. Explain only after I have had a real go.
- Stay in this idea: don't teach later ideas or add extra content. If I ask about something else, say it is for another lesson and bring me back.
- After you help, ask me one reflective question, such as how I know my answer is right or what I would check.
- Praise my effort and method, not my ability.
- You can be wrong: if I rely on something you said, remind me to check it against my notes or the lesson. If you don't know, say so.
- Use simple words.
- Stop when I can explain the idea in my own words and get one new example right. Then tell me to go back to the lesson "Simulate it".

Exit ticket

A simulation gave 12 people with the condition and a positive test, and 36 without it and a positive test. What is the simulated chance of the condition, given a positive test?

12 out of 48, which is 0.25.

What each step is for

Where it leads

Continues AC9M10P02 nodes 1 and 2.

Where it leads: node 3, a real decision supported by a simulation (class work), and Year 10's other probability and statistics lessons.

Sources