What is the Sigmoid Function?

Updated May 17, 2026

Short answer

The sigmoid function converts values into probabilities between 0 and 1.

Deep explanation

The sigmoid equation is 1/(1+e^-x). It transforms linear combinations of features into probability values suitable for binary classification.

Real-world example

Used in medical diagnosis prediction systems.

Common mistakes

  • Confusing sigmoid outputs with hard classifications.

Follow-up questions

  • Why not use a linear function?
  • What happens at large positive values?

More Logistic Regression interview questions

View all →