Sigmoid function

Source: Wikipedia, the free encyclopedia.

logistic curve
Plot of the error function

A sigmoid function is any

mathematical function whose graph
has a characteristic S-shaped curve or sigmoid curve.

A common example of a sigmoid function is the logistic function shown in the first figure and defined by the formula:[1]

Other standard sigmoid functions are given in the

artificial neural networks
, the term "sigmoid function" is used as an alias for the logistic function.

Special cases of the sigmoid function include the

monotonically increasing
but could be decreasing. Sigmoid functions most often show a return value (y axis) in the range 0 to 1. Another commonly used range is from −1 to 1.

A wide variety of sigmoid functions including the logistic and

normal density, and Student's t probability density functions. The logistic sigmoid function is invertible, and its inverse is the logit
function.

Definition

A sigmoid function is a bounded, differentiable, real function that is defined for all real input values and has a non-negative derivative at each point[1] [2] and exactly one inflection point.

Properties

In general, a sigmoid function is

arctan function, which is related to the cumulative distribution function of a Cauchy distribution
.

A sigmoid function is constrained by a pair of

horizontal asymptotes
as .

A sigmoid function is convex for values less than a particular point, and it is concave for values greater than that point: in many of the examples here, that point is 0.

Examples

Some sigmoid functions compared. In the drawing all functions are normalized in such a way that their slope at the origin is 1.
  • Logistic function
  • Hyperbolic tangent
    (shifted and scaled version of the logistic function, above)
  • Arctangent function
  • Gudermannian function
  • Error function
  • Generalised logistic function
  • Smoothstep function
  • Some algebraic functions, for example
  • and in a more general form[3]
  • Up to shifts and scaling, many sigmoids are special cases of
    where
    is the inverse of the negative
    Box–Cox transformation
    , and and are shape parameters.[4]
  • Smooth Interpolation[5] normalized to (-1,1) and is the slope at zero:

using the hyperbolic tangent mentioned above.

Applications

Inverted logistic S-curve to model the relation between wheat yield and soil salinity

Many natural processes, such as those of complex system learning curves, exhibit a progression from small beginnings that accelerates and approaches a climax over time. When a specific mathematical model is lacking, a sigmoid function is often used.[6]

The van Genuchten–Gupta model is based on an inverted S-curve and applied to the response of crop yield to soil salinity.

Examples of the application of the logistic S-curve to the response of crop yield (wheat) to both the soil salinity and depth to water table in the soil are shown in modeling crop response in agriculture.

In

artificial neural networks, sometimes non-smooth functions are used instead for efficiency; these are known as hard sigmoids
.

In

In

Hill–Langmuir equations
are sigmoid functions.

In computer graphics and real-time rendering, some of the sigmoid functions are used to blend colors or geometry between two values, smoothly and without visible seams or discontinuities.

pH scale
.

The logistic function can be calculated efficiently by utilizing

See also

References

Further reading

External links