Jump to content

Sigmoid function

From Wikibase

Languages: English · français · Esperanto

$\sigma(z)=\frac{1}{1+e^{-z}}$ for $z\in[-5.6,5.6]$, with the asymptote $\sigma=1$ and $\sigma(0)=\frac{1}{2}$ marked
Image: Rong Martin-Siebler ZHOU and Veramiko AI · CC BY-SA 4.0
· Open in a new tab

The sigmoid function, also known as the logistic function, is a bounded, differentiable, and real-valued special function, commonly used as an activation function in artificial neural networks (ANN).

It is the inverse of the logit function.

Definition

$$\begin{gathered} \sigma:\mathbb{R}\to(0,1)\\ \sigma(x)=\frac{1}{1+e^{-x}}. \end{gathered}$$

Properties

Limits

The sigmoid is strictly increasing, with limits

$$ \lim_{x\to-\infty}\sigma(x)=0, \qquad \lim_{x\to+\infty}\sigma(x)=1. $$

Symmetry

$$ \sigma(-x)=1-\sigma(x). $$

Derivative

$$ \dot{\sigma}(x)=\sigma(x)\bigl(1-\sigma(x)\bigr). $$

Generalised form (Richard's curve)

$$ \sigma(z):\mathbb{R} \to (0,L) \sigma(z)=\frac{L}{1+e^{-k(z-z_0)}}, \qquad L>0,\ k>0,\ z_0\in\mathbb{R}. $$

The standard sigmoid function is then the special case $L=1$, $k=1$, and $z_0=0$.

Properties of the generalised form

Limit

$$ \begin{cases} \lim_{z\to-\infty}\sigma(z)=0,\\ \lim_{z\to+\infty}\sigma(z)=L. \end{cases} $$

Symmetry according to $z=z_0$

$$ \sigma(2z_0-z)=L-\sigma(z). $$

Derivative

$$ \dot{\sigma}(z) = k\,\sigma(z)\left(1-\frac{\sigma(z)}{L}\right). $$