Logistic Distribution Calculator

Enter x, location μ and scale s to evaluate the logistic distribution.

How it is calculated

The tool standardises your point, z = (x - μ) / s, where μ is the location (the centre of the curve) and s is the scale (how spread out it is; it must be above zero, otherwise there is no result). It then evaluates the cumulative probability F(x) = 1 / (1 + e^(-z)), the density f(x) = e^(-z) / (s × (1 + e^(-z))²), the survival probability 1 - F(x), the mean (equal to μ) and the standard deviation s × π / √3. The formulas are arranged so that very large |z| does not overflow: a point thousands of scale units from μ simply shows 0.000000 or 1.000000. Probabilities and density are shown to six decimals, the mean to two and the standard deviation to four. The density is the height of the curve, not a probability, and can exceed 1 when s is small.

Worked example

Location μ = 10, scale s = 2, point x = 12. Step 1: z = (12 - 10) / 2 = 1, and e^(-1) is about 0.3679. Step 2: cumulative probability = 1 / 1.3679, which the tool shows as 0.731059, so about 73.1% of values fall at or below 12. Step 3: survival = 1 - 0.731059 = 0.268941. Step 4: density = 0.3679 / (2 × 1.3679²) = 0.098306. The mean is 10.00 and the standard deviation is 2 × π / √3, shown as 3.6276.

Try this example →

Common mistakes

  • Treating the scale s as the standard deviation. For the logistic distribution the standard deviation is s × π / √3, about 1.81 times s.
  • Reading the density as a probability. It is the height of the curve at x; probabilities come from the cumulative value or differences of it.
  • Entering a zero or negative scale. s must be greater than zero; the tool gives no result otherwise.
  • Using normal-distribution tables for a logistic problem. The two look alike, but the logistic has heavier tails, so tail probabilities differ.
  • Confusing this distribution with the logistic function in regression. That function is the cumulative curve with μ = 0 and s = 1; fitted regression coefficients are not the μ and s used here.

About this calculator

The logistic distribution is a continuous probability distribution defined by a location parameter μ and scale parameter s, with probability density function f(x) = e^(−(x−μ)/s) / (s(1 + e^(−(x−μ)/s))²) and cumulative distribution function F(x) = 1 / (1 + e^(−(x−μ)/s)) — the same S-shaped sigmoid curve used as the activation function in logistic regression. Its mean equals μ, and its standard deviation equals s·π/√3.

Statisticians use the logistic distribution as the basis of logistic regression for modeling binary outcomes, and it also appears in growth modeling (population or adoption curves that saturate over time) and in neural networks, where the sigmoid function derived from its CDF is a classic activation function.

Was this helpful?

You can pick up to 3 reactions.

Comments

  • Be the first to comment.

Popular calculators

All Calculators