Menu

Logistic Regression
📰

Logistic Regression

DEV Community: datascience·saksham780·about 17 hours ago
#Y9qyPTOp
#devtodatascience#science#devto#dev#spam
Long article (845 words) — no AI summary yet.
Reading 0:00
15s threshold

Logistic Regression: Turning Evidence into a Yes-or-No Answer

Every morning your email app quietly makes a decision about each message: spam or not spam. It doesn't get to say "probably around 37.2 spam-ness." It has to pick a side. But behind that pick, there's usually a probability, something like "I'm 94% sure this is junk."

Logistic regression is one of the simplest and most dependable ways to produce that probability. The name is a bit unfortunate, because it's a classification method, not a way of predicting numbers.

The problem it solves

You have some features describing a case (how many exclamation marks an email has, whether it contains the word "winner", how many links it carries) and a label that's either 0 or 1. You want a model that looks at fresh features and says how likely the label is to be 1.

The obvious first thought is to fit a straight line and call anything above 0.5 a "yes." It doesn't work well.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.