Lognormal Distribution Calculator
Model a positive variable whose natural logarithm is normally distributed. This page opens on Lognormal: enter μ and σ for log X, set the interval and read its probability, or enter a probability to find a quantile. The density curve, moments and seeded sample draws share the same parameters.
μ and σ describe log(X), not X: μ from -10 to 10, σ from 0.05 to 3. The median of X is e to the μ.
| x | model | draws |
|---|---|---|
| 0 to 1.31 | 0.607667 | - |
| 1.31 to 2.63 | 0.225409 | - |
| 2.63 to 3.94 | 0.081870 | - |
| 3.94 to 5.26 | 0.036550 | - |
| 5.26 to 6.57 | 0.018632 | - |
| 6.57 to 7.89 | 0.010410 | - |
| 7.89 to 9.2 | 0.006223 | - |
| 9.2 to 10.5 | 0.003919 | - |
| 10.5 to 11.8 | 0.002572 | - |
| 11.8 to 13.1 | 0.001747 | - |
| above 13.1 | 0.005000 | - |
- mean
- 1.648721
- variance
- 4.670774
- SD
- 2.161197
- median
- 1.000000
- mode
- 0.367879
- skewness
- 6.184877
- excess kurtosis
- 110.936392
- mean of log X
- 0
- SD of log X
- 1
P(0.5 < X < 2) = 0.511783
CDF(2) - CDF(0.5) = 0.755891 - 0.244109
x = 1.000000
round trip: CDF(1.000000) = 0.500000, relative gap 0
Drawing once the page has loaded.
Common questions
- Are mu and sigma the mean and standard deviation of X?
- No. They describe the natural logarithm of X. For μ = 0 and σ = 1, the median of X is 1 and its mean is exp(0.5), about 1.6487.
- How do I find the probability between two values?
- Enter the lower and upper bounds. The calculator subtracts the lower CDF value from the upper CDF value and shades the interval. A lognormal variable has positive support.
- How do I calculate a lognormal percentile?
- Enter the cumulative probability in the quantile control. For the 95th percentile use 0.95. The page shows the quantile and checks it by passing the result back through the CDF.
- Why do the simulated results differ from the formula?
- A finite sample has sampling variation. The seed makes a set of draws reproducible; it does not make its sample mean equal to the model mean.
The parameters describe a mathematical model, not a fit to data or a prediction about real events, and in lognormal mode μ and σ are the mean and standard deviation of log(X), not of X. Probabilities, quantiles and moments are computed numerically, the incomplete beta by a continued fraction, and printed to six decimal places (six significant figures in e-notation below 0.0001 or from a billion up), with each quantile's round trip through the CDF shown; simulated summaries carry sampling error, shown as a standard error, and the same seed gives the same draws. A beta density that is infinite at 0 or 1 is labelled at that end rather than drawn as a finite peak.