‹ Class 6 · Ch 3
Simple Pattern Recognition and Decision Making · Principle 3 of 3

Make a rule, make a decision

A cut-off rule, and why it can be wrong.

Think

A rule for the plant

Asha wants a sensor to tell her when to water a plant. Which rule do you think would work best?

What this lesson covers

The idea

We can use observations to make a rule such as ‘if the reading is below this, do that’, but a rule can be wrong when cases overlap.

A rule for the plant

Asha wants a sensor to tell her when to water a plant. Which rule do you think would work best?

  • Water it every morning at 7 o’clock
  • Water it when the soil reading is below a certain number
  • Water it whenever someone remembers

Find the cut-off

Asha’s balcony has ten pots. A sensor gives each pot a soil moisture reading. Blue dots really needed water. Orange dots were fine.

Slide the cut-off to make a rule with no wrong calls.

A messier rule

Now Kabir wants a rule for his umbrella. He wrote down each day’s cloud cover. Blue dots stayed dry. Orange dots had rain.

Real days are messier. Some cloudy days stayed dry, and some clearer days brought a shower. No rule is perfect here.

Find a cut-off with the fewest wrong calls. Watch the two counts under the slider.

A rule can still be wrong

Asha’s pots were easy. The thirsty and fine pots were far apart, so one cut-off got all ten right.

Kabir’s days overlapped. The best cut-off still got 2 wrong. Different cut-offs gave different kinds of mistake: taking the umbrella for nothing, or getting wet.

A rule uses observations to decide: if the reading is below the cut-off, do this. Where cases overlap, no single cut-off can be perfect.

Programmers call this an if-then rule. The cut-off is also called a threshold.

Notes

A rule uses observations to decide: if the reading is below the cut-off, do this. Where cases overlap, no single cut-off can be perfect.

When a rule affects people, a person should be able to look again.

Check yourself

A phone rule says: if the battery is below 20%, turn on power saving. Five phones show 12%, 19%, 20%, 35% and 60%. How many phones turn on power saving?

Answer: 2 phones

12% and 19% are below 20%, so those two phones turn on power saving. A phone at exactly 20% is not below 20%, so it stays as it is.

A school shop’s rule says: if a student is taller than 150 cm, give a large shirt. Zoya is 151 cm but a medium fits her best. Gurpreet is 149 cm and needs a large. What does this show?

A school rule says: if a student scores below 40, send a note home about extra help. Priya scored 41, but she finds the topic very hard. What is the fairest thing for the school to do?

  • The shop should pick a better cut-off number. Move the cut-off to fix one child and the other child’s shirt goes wrong. Where heights overlap, no number fixes both.
  • Height is not real data, so the rule is useless. Height is real data, and the rule gets most students right. It is just not perfect for those in the overlap.
  • Same-height children can need different sizes — correct. Yes. The cases overlap: some medium and some large students share the same heights. A rule is a useful guide, not a perfect judge.
  • Wait, because the rule did not pick her. A rule only looks at one number. Priya still needs help, and the rule cannot see that.
  • Let a teacher look at more than the score — correct. Yes. A rule about people can be wrong, so a person should be able to look again and listen to her.
  • Change the rule to send a note to all students. Then the note means little, because every child gets one. A better fix is to let teachers add what a score cannot show.