How to use this calculator
Fit a zero-location lognormal distribution to positive observations, distinguishing log-scale parameters from original-scale summaries.
- Enter Positive observed values, Quantile probability. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Uncensored lognormal maximum likelihood fit explained
A numerical walkthrough
Positive observed values = 4,6,7,10,14,20,31; Quantile probability = 0.9.
- MLE log-scale mean: 2.35647513 natural-log units
- MLE log-scale standard deviation: 0.66344953 natural-log units
- Fitted original-scale quantile: 24.69794156 data units
- Fitted original-scale arithmetic mean: 13.15178857 data units
The seven observations are right-skewed on the raw scale. Logging reduces their scale disparity, and the fitted 90th percentile is then back-transformed into the original data unit.
The model behind the numbers
μhat=mean(ln x); σhat²=Σ(ln xi−μhat)²/n; tq=exp[μhat+σhatΦ⁻¹(q)].
Maximum likelihood uses denominator n for log variance, unlike a sample SD with denominator n−1. The original-scale fitted arithmetic mean is exp(μhat+σhat²/2), while exp(μhat) is the fitted median.
What to enter
x— Positive observed values- Ordered values in the role named above. Match row positions with other lists and use a consistent measurement unit within the same variable. Use comma-separated values in the stated order.
q— Quantile probability- Cumulative probability for the fitted original-scale quantile, such as 0.5 for the median.
Interpreting the result
Independent positive uncensored observations and a zero-location lognormal model. 3–2,000 varying values. No goodness-of-fit test, confidence interval, or treatment of truncation is built into the fit.
Reading the outputs
Mu and sigma refer to natural logarithms. They must not be entered as raw-scale mean and SD in a distribution calculator.
Frequently asked questions
Why does sigma differ from sample log SD?
The likelihood estimate divides by n; the usual sample variance divides by n−1.
Can negative or zero observations be shifted?
An arbitrary shift changes the model; this tool fixes location at zero and rejects them.
Does this prove the data are lognormal?
No. Estimation and model checking are separate tasks.
How do I use the Uncensored lognormal maximum likelihood fit calculator?
Enter Positive observed values, Quantile probability. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Uncensored lognormal maximum likelihood fit?
Positive observed values = 4,6,7,10,14,20,31; Quantile probability = 0.9. MLE log-scale mean: 2.35647513 natural-log units MLE log-scale standard deviation: 0.66344953 natural-log units Fitted original-scale quantile: 24.69794156 data units Fitted original-scale arithmetic mean: 13.15178857 data units The seven observations are right-skewed on the raw scale. Logging reduces their scale disparity, and the fitted 90th percentile is then back-transformed into the original data unit.
Method reference: SciPy statistical function reference.
Read our calculation methodology.