Sigmoid Function

Sigmoid Function

Sigmoid functions constitute a class of mathematical functions whose graphs display a characteristic S-shaped curve. They are widely encountered in mathematics, statistics, computer science, biology and engineering because they effectively model processes that begin slowly, accelerate, and eventually approach a limiting value. One of the most prominent examples is the logistic function, though several other forms, both algebraic and transcendental, also belong to this family. Sigmoid functions are especially valued for their smoothness, boundedness and monotonic behaviour, making them suitable for modelling growth, transitions and cumulative effects.

Definition and General Characteristics

A sigmoid function is commonly defined as a bounded, differentiable real-valued function defined for all real inputs and possessing a positive derivative everywhere. This ensures monotonicity and smoothness across its domain. The output is typically restricted to a fixed interval, often 0 to 1 or −1 to 1, although variations exist depending on the application.
A defining feature of sigmoid functions is the presence of two horizontal asymptotes, approached as the input tends to ±∞. The function is convex for inputs below a certain point and concave above it, with the inflection point frequently located at zero. These properties produce the familiar S-curve and give sigmoids their effectiveness in modelling steady transitions.

Mathematical Properties

Sigmoid functions display several notable mathematical characteristics:

  • Monotonicity: They are typically strictly increasing, though decreasing sigmoids exist.
  • Boundedness: Each function approaches fixed upper and lower asymptotes.
  • Smoothness: Classical sigmoid functions are differentiable, often indefinitely.
  • Bell-shaped derivative: The first derivative forms a unimodal curve with a single local maximum, reflecting the region of greatest growth.
  • Integral connections: The integral of any non-negative bell-shaped function with one maximum and no minima yields a sigmoidal curve. This relates cumulative distribution functions (CDFs) in probability theory to sigmoid forms.

Important examples of CDFs with sigmoidal shape include the error function (linked to the normal distribution) and the arctangent function (related to the Cauchy distribution). These connections illustrate how sigmoids naturally arise in statistical contexts.

Examples of Sigmoid Functions

Several families of sigmoid functions are widely studied:

  • Logistic function: σ(x)=11+e−x\sigma(x) = \frac{1}{1 + e^{-x}}σ(x)=1+e−x1​This is one of the most common sigmoids, notable for its use in logistic regression and neural network activation.
  • Hyperbolic tangent: f(x)=tanh⁡(x)=ex−e−xex+e−xf(x) = \tanh(x) = \frac{e^x – e^{-x}}{e^x + e^{-x}}f(x)=tanh(x)=ex+e−xex−e−x​This function ranges from −1 to 1 and is often used as a zero-centred activation in neural networks.
  • Algebraic sigmoids: Examples includef(x)=x1+x2f(x) = \frac{x}{\sqrt{1 + x^2}}f(x)=1+x2​x​and general forms such asf(x)=x(1+xk)1/k,f(x) = \frac{x}{(1 + x^k)^{1/k}},f(x)=(1+xk)1/kx​,which adjust steepness and shape through the parameter kkk.
  • Composite and Box–Cox-related sigmoids: Many sigmoids can be expressed through parameterised transformations involving the inverse of the negative Box–Cox transformation, enabling controlled shaping of the S-curve through scale and shift parameters.
  • Piecewise-smooth sigmoids: Certain specialised constructions provide sigmoids that attain limiting values within finite intervals while remaining infinitely differentiable, offering unique behaviour for applications demanding strict smoothness and saturation.

Applications in Science and Technology

Sigmoid functions appear across numerous scientific and engineering disciplines due to their ability to model gradual transitions.

  • Neural networks: Sigmoids historically served as activation functions, compressing neuron outputs into bounded ranges. The logistic and hyperbolic tangent functions were especially influential in early multilayer perceptrons. Efficient, non-smooth variants known as hard sigmoids are sometimes used to reduce computation.
  • Statistics and probability: Many cumulative distribution functions—including those of the logistic, normal and Student’s t distributions—exhibit sigmoidal shapes. These forms are crucial in regression models, Bayesian inference and classification tasks based on probability thresholds.
  • Agriculture and ecology: Logistic S-curves model crop yield responses to soil salinity, water table depth and other environmental variables. The van Genuchten–Gupta model is a prominent example applying an inverted S-curve.
  • Biochemistry and pharmacology: The Hill and Hill–Langmuir equations, used to describe ligand–receptor binding and enzyme kinetics, are sigmoidal. They capture cooperative effects in molecular systems.
  • Audio signal processing: Sigmoid functions serve as waveshaping transfer functions that emulate the smooth clipping of analogue electrical circuits.
  • Computer graphics: Sigmoids allow for smooth interpolation of colours, lighting and geometry, ensuring seamless transitions without visible discontinuities.
  • Electrochemistry and nucleation studies: Hierarchies of sigmoid growth models—such as hyperbolic tangent-based models, Johnson–Mehl–Avrami–Kolmogorov (JMAK) formulations and Richards curves—are used to analyse kinetic data from heterogeneous nucleation experiments. Even simplified models can effectively capture two-step nucleation, where a metastable phase precedes stable nucleus formation.

Importance of Scaling and Parameterisation

Many families of sigmoid functions allow for modifications through scaling, shifting and shape parameters. These parameters control steepness, midpoint location and asymptotic limits, enabling sigmoids to be adapted for specific modelling scenarios. Such flexibility is crucial in machine learning, pharmacodynamics and systems modelling, where response characteristics must be fitted to empirical data.

Originally written on September 27, 2016 and last modified on December 7, 2025.

Leave a Reply

Your email address will not be published. Required fields are marked *