Logistic function

From Calculus

Definition

The logistic function is a function with domain R and range the open interval (0,1), defined as:

x↦11+e−x

Equivalently, it can be written as:

x↦exex+1

For this page, we will denote the function by the letter g.

We may extend the logistic function to a function [−∞,∞]→[0,1], where g(−∞)=0 and g(∞)=1.

Probabilistic interpretation

The logistic function transforms the logarithm of the odds to the actual probability. Explicitly, given a probability p (strictly between 0 and 1)of an event occurring, the odds in favor of p are given as:

p1−p

This could take any value in (0,∞)

The logarithm of odds is the expression:

ln(p1−p)

If x equals the above expression, then the function describing p in terms of x is the logistic function.

Functional equations

Symmetry equation

The logistic function g has the property that its graph y=g(x) has symmetry about the point (0,1/2). Explicitly, it satisfies the functional equation:

g(x)+g(−x)=1

Differential equation

The logistic function satisfies the condition:

g′(x)=g(x)(1−g(x))

Therefore, y=g(x) is a solution to the autonomous differential equation:

dydx=y(1−y)

The general solution to that equation is the function y=g(x+C) where C∈R. The initial condition y=1/2 at x=0 pinpoints the logistic function uniquely.

Key data

Item Value
default domain all of R, i.e., all reals
range the open interval (0,1), i.e., the set {x∣0≤x≤1}
derivative the derivative is −e−x(1+e−x)2.
If we denote the logistic function by the letter g, then we can also write the derivative as g′(x)=g(x)g(−x)=g(x)(1−g(x))
second derivative If we denote the logistic function by the letter g, then we can also write the derivative as g′(x)=g(x)g(−x)=g(x)(1−g(x))(1−2g(x))
logarithmic derivative the logarithmic derivative is e−x1+e−x
If we denote the logistic function by g, the logarithmic derivative is g(−x)
critical points none
critical points for the derivative (correspond to points of inflection for the function) x=0; the corresponding point on the graph of the function is (0,1/2).
local maximal values and points of attainment none
local minimum values and points of attainment none
intervals of interest increasing and concave up on (−∞,0)
increasing and concave down on (0,∞)
horizontal asymptotes asymptote at y=0 corresponding to the limit for x→−∞
asymptote at y=1 corresponding to the limit for x→∞
inverse function inverse logistic function or log-odds function given by x↦ln(x1−x)