Data & ComputingMachine LearningA-Level
AQAAPIBAbiturBachilleratoCambridgeCCEACESS

Logistic Function Calculator

Sigmoid activation function.

Use the free calculatorCheck the variablesOpen the advanced solver
This is the free calculator preview. Advanced walkthroughs stay in the app.
Result
Ready
Output (0-1)

Formula first

Overview

The logistic function, commonly known as the sigmoid function, maps any real-valued input into a constrained range between 0 and 1. In machine learning, it serves as the fundamental activation function for binary classification and neural networks, transforming linear combinations into probabilities.

Symbols

Variables

(x) = Output (0-1), x = Input Value

Output (0-1)
Variable
Input Value
Variable

Apply it well

When To Use

When to use: Use this function when performing binary classification to predict the probability of a specific class. It is particularly effective when the relationship between the features and the target outcome follows an S-shaped curve rather than a linear trend.

Why it matters: It allows models to make probabilistic interpretations of continuous data, which is essential for risk assessment and decision-making systems. Its differentiable nature also makes it vital for the gradient descent optimization used in training complex neural networks.

Avoid these traps

Common Mistakes

  • Forgetting the negative sign in e^-x.
  • Treating output as unbounded.

One free problem

Practice Problem

A neuron in a deep learning model receives a weighted sum (logit) of 0. Calculate the output activation S using the logistic function.

Input Value0

Solve for:

Hint: Any non-zero base raised to the power of 0 is 1.

The full worked solution stays in the interactive walkthrough.

References

Sources

  1. Wikipedia: Logistic function
  2. Deep Learning by Ian Goodfellow, Yoshua Bengio, Aaron Courville
  3. Wikipedia: Sigmoid function
  4. Ian Goodfellow, Yoshua Bengio, Aaron Courville Deep Learning
  5. Christopher M. Bishop Pattern Recognition and Machine Learning
  6. Trevor Hastie, Robert Tibshirani, Jerome Friedman The Elements of Statistical Learning
  7. Standard curriculum — A-Level Data Science & Machine Learning