What it does

Logistic regression turns clues into a chance, then chooses yes or no.

Sigmoid: The S-shaped line • Binary: A choice between two things

How it works

  • Add up the clues.
  • Turn the score into a percent chance.
  • If the chance is high enough, answer yes. Otherwise, answer no.

Uses & Applications

  • An email app can ask, “Is this spam or not spam?”
  • A school app can predict pass or fail from practice scores.
  • A shop can guess whether a visitor may buy something today.
In short

It is used for two-choice decisions, like spam or not spam.

Try it yourself

Spot a message that might be spam

Spam means unwanted junk messages. Teach a sorter using the number of suspicious word clues.

Your turn

Change one setting at a time. Reset example puts everything back.

Explore the sigmoid

Step 1
Why this happens

Look closer at the numbers
Numbers used in this example