Precision and Recall (where to set the spam filter’s bar)
How Do You Know It's Good · Open board
How Do You Know It’s Good?, on the How LLMs Work track. The board splits every task by how checkable it is, and puts “spam or not spam” firmly on the checkable side: every email has one right answer, so a filter can be graded exactly. This lesson is that exact grading, done by hand, on the oldest machine-learning job most people have met: the spam folder.
Or start free: a free account opens lessons 2 and 3 of every track.
In this lesson
August 2002: six months of spam rules, and every fix cost a real email
A weighted sum, then a squashing curve: turning evidence into a probability
The threshold: the line where a probability becomes “move it to spam”
Precision and recall: two questions about the spam folder
Lowering the threshold: recall rises, precision falls
How rare the spam is: the same filter, a cleaner inbox, a worse spam folder
The squash, by hand
The filter finds its own weights
The four boxes, counted
All of it in code
Terms it explains: How LLMs Work, false positive, 1.0, −2.5, sigmoid, threshold, left in the inbox, precision, recall, logistic regression, confusion matrix, base rate.