Lite / Discovering How the World Works / Week 22
Choosing a good threshold
A sorting machine calls a part 'large' if it's over 65 mm. A part measures 64.9 mm. Is it large?
Why should I care?
A sensor gives a number; a machine needs a decision. The threshold is the bridge. Smoke alarms, spam filters, medical tests and sorting machines all work by picking a threshold, and picking it well is a real engineering decision with real consequences.
- Explain what a threshold is and how it splits readings into groups.
- Sort items using a given threshold, including at the edge.
- Describe the trade-off when a threshold is moved up or down.
Predict
A smoke alarm sounds when its smoke reading goes above a threshold. If engineers lower the threshold, what happens?
- Fewer false alarms, but slower to warn
- Faster warnings, but more false alarms from toast
- No change
Guess first, then reveal
It warns sooner but also beeps at burnt toast more often. A threshold always trades two kinds of mistake against each other: missing something real, or reacting to something that isn't there.
Discover
Use the client's brief and thresholds to sort six parts by hand. Look closely at any part whose reading is near a threshold: which side of the line is it on?
What the interactive shows (text version)
The sorting-machine activity can be replaced by this description: a colour sensor says how red each part is, a light gate measures its length and a metal detector senses metal. The client's brief sends metal parts to the Metal bin, large non-metal parts to Reject, small red plastic to Red, and everything else to Mixed. One part measures 58 mm, which is below the 65 mm size limit, so it is not large.
Understand
A threshold draws a line
A threshold is a value that splits readings into two groups: above and below. 'Large' means size > 65 mm. 'Dark' means light level < 30. The rule only cares which side of the line a reading is on, not how far.
Two kinds of mistake
Real readings are a bit noisy. Put the threshold too low and you get false alarms (reacting when you shouldn't). Too high and you get misses (not reacting when you should). Moving the line always trades one for the other.
Picking the value
Engineers choose a threshold by looking at real readings from both groups and putting the line in the gap between them. If there's no clear gap, they think about which mistake is worse. For a smoke alarm, a miss is far worse than a false alarm.
Explain it another way
Intuitive
A height bar at a theme park ride is a threshold. Everyone taller than the line can ride; everyone shorter can't. Where the park puts that line is a safety decision.
Technical
Thresholding turns a continuous measurement into a category. With noisy sensors the groups overlap, so any threshold produces some false positives and some false negatives; the threshold sets the balance between them.
Applied
A greenhouse controller might open the vents above 28 °C. Set it at 24 °C and the vents flap open on every sunny spell, wasting heat; set it at 35 °C and the seedlings cook before anything happens.
Worked example 1
A part sorter calls a part 'large' if its length > 65 mm. Parts measure 58, 65, 66 and 80 mm. Which are large?
58 > 65? No. 65 > 65? No (equal is not greater). 66 > 65? Yes. 80 > 65? Yes. 66 mm and 80 mm are large.
Common mix-ups
A perfect threshold never makes mistakes.
✓ With real, noisy readings, every threshold makes some mistakes. You choose which kind you'd rather have.A reading on the threshold counts as above it.
✓ That depends on whether the rule says > or ≥. Always check the edge.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
Apply it
Design a 'too loud' warning light for a classroom. Choose a threshold for a sound sensor (say, 0–100). Describe one situation that would cause a false alarm and one that would cause a miss. Which would you rather risk?
Reflect
Can you think of a threshold in your own life, like a grade boundary? Who chose it, and what does it trade off?
Write your answer on paper or in your own notes. Lite never stores what you write.