A logistic function or logistic curve is a common S-shaped curve (sigmoid curve) with the equation f(x)=L1+e−k(x−x0) where
L is the carrying capacity, the supremum of the values of the function; k is the logistic growth rate, the steepness of the curve; and x0 is the x value of the function's midpoint. The logistic function has domain the real numbers, the limit as x tends to −∞ is 0, and the limit as x tends to +∞ is L.
The exponential function with negated argument (e−x) is used to define the standard logistic function where L=1,k=1,x0=0, which has the equation f(x)=11+e−x and is sometimes simply called the sigmoid function. It is also sometimes called the expit, being the inverse function of the logit. The logistic function finds applications in a range of fields, including biology (especially ecology), biomathematics, chemistry, demography, economics, geoscience, mathematical psychology, probability, sociology, political science, linguistics, statistics, and artificial neural networks. There are various generalizations, depending on the field.
History
The logistic function was introduced in a series of three papers by Pierre François Verhulst between 1838 and 1847, who devised it as a model of population growth by adjusting the exponential growth model, under the guidance of Adolphe Quetelet. Verhulst first devised the function in the mid 1830s, publishing a brief note in 1838, then presented an expanded analysis and named the function in 1844 (published 1845); the third paper adjusted the correction term in his model of Belgian population growth. The initial stage of growth is approximately exponential (geometric); then, as saturation begins, the growth slows to linear (arithmetic), and at maturity, growth approaches the limit with an exponentially decaying gap, like the initial stage in reverse. Verhulst did not explain the choice of the term "logistic" (French: logistique), but it is presumably in contrast to the logarithmic curve, and by analogy with arithmetic and geometric. His growth model is preceded by a discussion of arithmetic growth and geometric growth (whose curve he calls a logarithmic curve, instead of the modern term exponential curve), and thus "logistic growth" is presumably named by analogy, logistic being from Ancient Greek: λογιστικός, romanized: logistikós, a traditional division of Greek mathematics. As a word derived from ancient Greek mathematical terms, the name of this function is unrelated to the military and management term logistics, which is instead from French: logis "lodgings", though some believe the Greek term also influenced logistics; see Logistics § Origin for details.
Mathematical properties The standard logistic function is the logistic function with parameters k=1, x0=0, L=1, which yields f(x)=11+e−x=exex+1=ex/2ex/2+e−x/2. In practice, due to the nature of the exponential function e−x, it is often sufficient to compute the standard logistic function for x over a small range of real numbers, such as a range contained in [−6, +6], as it quickly converges very close to its saturation values of 0 and 1.
Symmetries The logistic function has the symmetry property that 1−f(x)=f(−x). This reflects that the growth from 0 when x is small is symmetric with the decay of the gap to the limit (1) when x is large. Further, x↦f(x)−1/2 is an odd function. The sum of the logistic function and its reflection about the vertical axis, f(−x), is 11+e−x+11+e−(−x)=exex+1+1ex+1=1. The logistic function is thus rotationally symmetrical about the point (0, 1/2).
Inverse function The logistic function is the inverse of the natural logit function logitp=logp1−p for 0<p<1 and so converts the logarithm of odds into a probability.
The conversion from the log-likelihood ratio of two alternatives also takes the form of a logistic curve.
Hyperbolic tangent The logistic function is an offset and scaled hyperbolic tangent function: f(x)=12+12tanh(x2), or tanh(x)=2f(2x)−1. This follows from tanh(x)=ex−e−xex+e−x=ex⋅(1−e−2x)ex⋅(1+e−2x)=f(2x)−e−2x1+e−2x=f(2x)−e−2x+1−11+e−2x=2f(2x)−1. The hyperbolic-tangent relationship leads to another form for the logistic function's derivative: ddxf(x)=14sech2(x2), which ties the logistic function into the logistic distribution. Geometrically, the hyperbolic tangent function is the hyperbolic angle on the unit hyperbola x2−y2=1, which factors as (x+y)(x−y)=1, and thus has asymptotes the lines through the origin with slope −1 and with slope 1, and vertex at (1,0) corresponding to the range and midpoint (1) of tanh. Analogously, the logistic function can be viewed as the hyperbolic angle on the hyperbola xy−y2=1, which factors as y(x−y)=1, and thus has asymptotes the lines through the origin with slope 0 and with slope 1, and vertex at (2,1), corresponding to the range and midpoint (1/2) of the logistic function. Parametrically, hyperbolic cosine and hyperbolic sine give coordinates on the unit hyperbola: ((et+e−t)/2,(et−e−t)/2), with quotient the hyperbolic tangent. Similarly, (et/2+e−t/2,et/2) parametrizes the hyperbola xy−y2=1, with quotient the logistic function. These correspond to linear transformations (and rescaling the parametrization) of the hyperbola xy=1, with parametrization (e−t,et): the parametrization of the hyperbola for the logistic function corresponds to t/2 and the linear transformation (1101), while the parametrization of the unit hyperbola (for the hyperbolic tangent) corresponds to the linear transformation 12(11−11).
Derivative
The standard logistic function has an easily calculated derivative. The derivative is known as the density of the logistic distribution: f(x)=11+e−x=ex1+ex, ddxf(x)=ex⋅(1+ex)−ex⋅ex(1+ex)2=ex(1+ex)2=ex1+ex⋅11+ex=ex1+ex(1+ex−ex1+ex)=ex1+ex(1−ex1+ex)=f(x)(1−f(x))from which all higher derivatives can be derived algebraically. For example, f″=(1−2f)(1−f)f. The logistic distribution is a location–scale family, which corresponds to parameters of the logistic function. If L=1 is fixed, then the midpoint x0 is the location and the slope k is the scale.
Integral Conversely, its antiderivative can be computed by the substitution u=1+ex, since f(x)=ex1+ex=u′u, so (dropping the constant of integration) ∫ex1+exdx=∫1udu=lnu=ln(1+ex). In artificial neural networks, this is known as the softplus function and (with scaling) is a smooth approximation of the ramp function, just as the logistic function (with scaling) is a smooth approximation of the Heaviside step function.
… excerpt ends here. Continue reading the full article.





