Module 16 · Sorting Into Categories

How sure should a spam filter be before it calls a text a scam?

Lesson 16.3 · How Sure Is It?

Rosa · Owen

The filter says 70%. Someone decided 50% is the line. Someone can move it.

Rosa’s spam filter doesn’t actually say “scam.”

It says “70 percent scam,” and somebody set a line at 50. Move the line down and it catches more scams, and more of Owen’s texts.

Move it up and Owen gets through, and so does the package text. Rosa realizes a person picked that number.

The short answer

For texts, a little above 50: Rosa would rather see a scam she can ignore than lose a friend’s message. A bank fraud filter goes the other way. The model was never going to answer this. It was always a person’s call, and now Rosa knows whose.

Try it yourself

Slide the cutoff. Texts above it go to Junk. Watch which ones move.

Junk / Inbox at 0.50Package on hold, tap linkFINAL NOTICE, verify nowIs this Jordan? We met at the gameNetflix payment failed, update cardhey it’s owen, running lateDentist Tuesday 3:30, reply CGroup project doc link, due fridayCoach: practice moved to 4pmCongrats! $500 gift card, claim nowLibrary: your book is ready
Junk
Inbox
Junk
5
0
Inbox
0
5

What you just did has a name

Threshold

Most classifiers output a probability, and a threshold turns it into a decision.

Fifty percent is the default, not a law. Lower it to catch more of what you’re hunting, at the cost of more false alarms.

Raise it for fewer false alarms and more misses. Somebody chooses.

A few more things

The model gives odds, not verdicts

“92 percent scam” is the model. “Junk folder” is a policy. Keeping them separate is how you notice that the policy is a choice you could make differently.

The two mistakes

A false alarm: Owen’s text in Junk. A miss: the package scam in the inbox. Every threshold is a trade between them, and which one hurts more depends on the situation.

Some mistakes cost more

A missed scam might cost money. A missed real text costs a seat at lunch. For a medical test, a miss can cost a life and a false alarm costs a second test. The threshold should follow the costs.

Go deeper

The longer version, if you want it.

Precision and recall

Two scores describe a threshold. Recall: of all the real scams, what share did you catch? Precision: of everything you called scam, what share really was? Lowering the threshold raises recall and lowers precision. Raising it does the reverse. You can’t max both, and the curve that traces every threshold is how teams pick one.

The group project text at 46 percent and the “is this Jordan” scam at 55 percent are the ones that make this hard: they sit near the line, and no threshold gets both right. Module 18 turns this into a full grid.

Quick check

A smoke detector app rates each reading as a percent chance of fire. The family got sick of it going off over toast, so they raised the cutoff from 30 to 70 percent. What did they trade?

Let’s take it slower

Picture the model handing you a number, not a decision. Sixty out of a hundred. Your job is to draw a line somewhere on that scale and say: above this, act. Where you draw it is the threshold. Slide it low and you act more often, catching more of the real thing and more junk along with it. Slide it high and you act less often, missing some real ones but staying quiet the rest of the time. No line fixes both. There is only the line that matches what a mistake costs you.

More examples

1

The airport bag scanner

The X-ray software rates each bag for “might be a weapon.” Airports set that line very low, so a lot of shampoo bottles get a second look. A missed weapon costs far more than a slow line does.

2

The autoplay decision

A feed only autoplays the next video if it’s at least 80 percent sure you’ll watch. Drop that to 40 and you’d see more videos you’d like, and a lot more you’d skip. Somebody at the company picked 80.

Back to the question

So where should the line go?

Show the answer

For texts, a little above 50: Rosa would rather see a scam she can ignore than lose a friend’s message. A bank fraud filter goes the other way. The model was never going to answer this. It was always a person’s call, and now Rosa knows whose.

One last question

Owen has theories about the threshold. Trust them?

“The model itself decides what counts as scam.”

“Lowering the cutoff catches more scams and more real texts by mistake.”

“The right cutoff depends on which mistake costs more.”

Talk Card

Talk Card · 16.3

A model says “70 percent scam.” A person picks the line that turns that into a decision, and moving the line trades false alarms for misses.

Data to AI · pettigrewlab.com/learn

Next lesson