Skip to content

The Sigmoid Function

Published On:
Feb 4, 2020
Last Updated:
Mar 4, 2020

The sigmoid function is a mathematical function which when plotted, has a characteristic “S” shape or sigmoid curve. Sigmoid curves include many cumulative distribution functions (CDFs), including the CDF of the normal distribution. They are also used in neural networks as an activation function.

Logistic Function

The logistic function is given by the following equation:

S(x)=11+exS(x) = \frac{1}{1 + e^{-x}}

Plotted from x=10x = -10 to x=10x = 10, the function looks like this:

A graph of the logistic function.

The logistic function pops up in logistic regression (a popular algorithm used in machine learning) in the form:

P=11+e(a+biXi)P = \frac{1}{1 + e^{-(a + b_i X_i)}}

where:
PP is the probability of success
(\a, b_i) are coefficients
XiX_i are feature variables