Machine Learning & AI
Basic

Logistic Regression

Applies the sigmoid to a linear model to output a class probability.

Formula

y^=11+e(wx+b)\hat{y} = \dfrac{1}{1+e^{-(\mathbf{w}^\top \mathbf{x}+b)}}

Variables

\mathbf{w}Weights
\mathbf{x}Features
bBias

Example

linear score 0: probability = 0.5

Did You Know?

Despite the name, logistic regression is a classification algorithm, not a regression one.

Share this formula