The Sigmoid Function

Article by:
Date Published:
Last Modified:


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) = \frac{1}{1 + e^{-x}} $$

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

A graph of the logistic function.

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 = \frac{1}{1 + e^{-(a + b_i X_i)}} $$

\(P\) is the probability of success (\a, b_i\) are coefficients \(X_i\) are feature variables


Geoffrey Hunter

Dude making stuff.

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License .

Related Content:


comments powered by Disqus