Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Probability density f(x) at the initial x
0.001127
value at the first x in the series
Location a 0
Scale b 0.7
Mean (= a) 0
Variance (pi^2/3 * b^2) 1.612035
Points generated 101
x value
-5 0.001127
-4.9 0.0013
-4.8 0.0015
-4.7 0.001729
-4.6 0.001994
-4.5 0.002299
-4.4 0.002651
-4.3 0.003057
-4.2 0.003524
-4.1 0.004062
-4 0.004681
-3.9 0.005395
-3.8 0.006216
-3.7 0.007161
-3.6 0.008248
-3.5 0.009497
-3.4 0.010933
-3.3 0.012582
-3.2 0.014475
-3.1 0.016645
-3 0.019132
-2.9 0.021979
-2.8 0.025232
-2.7 0.028947
-2.6 0.033181
-2.5 0.037998
-2.4 0.043468
-2.3 0.049663
-2.2 0.05666
-2.1 0.064538
-2 0.073376
-1.9 0.08325
-1.8 0.094227
-1.7 0.106365
-1.6 0.119702
-1.5 0.134251
-1.4 0.149991
-1.3 0.166859
-1.2 0.184742
-1.1 0.203463
-1 0.222783
-0.9 0.242389
-0.8 0.261901
-0.7 0.280874
-0.6 0.298815
-0.5 0.3152
-0.4 0.329505
-0.3 0.341233
-0.2 0.349952
-0.1 0.355327
0 0.357143
0.1 0.355327
0.2 0.349952
0.3 0.341233
0.4 0.329505
0.5 0.3152
0.6 0.298815
0.7 0.280874
0.8 0.261901
0.9 0.242389
1 0.222783
1.1 0.203463
1.2 0.184742
1.3 0.166859
1.4 0.149991
1.5 0.134251
1.6 0.119702
1.7 0.106365
1.8 0.094227
1.9 0.08325
2 0.073376
2.1 0.064538
2.2 0.05666
2.3 0.049663
2.4 0.043468
2.5 0.037998
2.6 0.033181
2.7 0.028947
2.8 0.025232
2.9 0.021979
3 0.019132
3.1 0.016645
3.2 0.014475
3.3 0.012582
3.4 0.010933
3.5 0.009497
3.6 0.008248
3.7 0.007161
3.8 0.006216
3.9 0.005395
4 0.004681
4.1 0.004062
4.2 0.003524
4.3 0.003057
4.4 0.002651
4.5 0.002299
4.6 0.001994
4.7 0.001729
4.8 0.0015
4.9 0.0013
5 0.001127

What is the logistic distribution?

The logistic distribution is a continuous probability distribution shaped like the normal distribution but with heavier tails. It is defined by a location parameter a (which equals its mean and median) and a scale parameter b > 0. Its cumulative distribution function is the familiar logistic sigmoid, which is why the distribution appears throughout logistic regression, growth modeling, and machine learning. This calculator is pure mathematics and applies identically everywhere, with no country-specific assumptions.

Bell-shaped logistic probability density curve symmetric about location a
The logistic PDF is a symmetric bell-shaped curve centered at the location a.

How to use this calculator

Pick which function to compute: probability density f, lower cumulative probability P (the CDF), or upper cumulative probability Q (the survival function). Enter the location a and scale b. Then describe the x grid: the initial x, the step, and the number of points. The tool generates \(x_i = \text{startX} + i\cdot\text{stepX}\) for \(i = 0..\text{points}-1\), evaluates the chosen function at each, shows the headline value at the first x, lists the series, and draws a line graph.

The formula explained

Define the standardized variable \(z = (x - a)/b\) and \(E = e^{-z}\). The density is $$f = \frac{1}{b}\cdot\frac{E}{(1+E)^2}.$$ Writing the sigmoid \(\sigma = 1/(1+E)\), this equals \(\sigma(1-\sigma)/b\). The lower CDF is simply $$P = \sigma = \frac{1}{1+e^{-z}},$$ increasing monotonically from 0 to 1, and the upper (survival) function is \(Q = 1 - P\). To avoid overflow, the sigmoid is computed as \(1/(1+e^{-z})\) when \(z \geq 0\) and \(e^z/(1+e^z)\) when \(z < 0\).

Advertisement
Three curves showing logistic PDF, CDF, and survival function
PDF (peaked curve), CDF (rising S-curve) and survival function (falling S-curve) for the same parameters.

Worked example

With \(a = 0\) and \(b = 0.7\), evaluate at \(x = 0.7\). Then \(z = 1\) and \(E = e^{-1} = 0.367879\). Density $$f = \frac{1}{0.7}\cdot\frac{0.367879}{(1.367879)^2} \approx 0.28087.$$ Lower CDF $$P = \frac{1}{1.367879} \approx 0.73106.$$ Upper CDF $$Q = 1 - 0.73106 \approx 0.26894.$$ At the median \(x = a = 0\) you get the peak density \(1/(4b) = 0.35714\) and \(P = Q = 0.5\).

FAQ

What if b is zero or negative? The distribution is undefined; the calculator requires \(b > 0\) and returns an error otherwise.

What are the mean and variance? The mean (and median) equals \(a\), and the variance is \((\pi^2/3)\cdot b^2\).

Can I use a descending grid? Yes — a negative step produces x values that decrease, and a step of 0 evaluates every point at the initial x.

Last updated: