Distribution Fitting

Fit probability distributions and assess normality. Analyzes data distribution with histogram, QQ plot, normality test, and fits multiple probability…

Analyzes data distribution with histogram, QQ plot, normality test, and fits multiple probability distributions (Normal, Lognormal, Exponential, etc.) ranked by AIC/BIC.

What is distribution fitting and why does it matter?

Distribution fitting identifies which probability distribution best describes a dataset. While many assume data is normally distributed, real-world data often follows lognormal (multiplicative processes), exponential (time between events), Weibull (reliability/lifetime), or other distributions. Using the wrong distribution leads to incorrect predictions and process capability estimates.

The fitting process estimates distribution parameters (e.g., mean and σ for Normal, shape and scale for Weibull) using Maximum Likelihood Estimation. Model selection uses information criteria: AIC (Akaike Information Criterion) and BIC (Bayesian Information Criterion) balance fit quality against model complexity. Lower AIC/BIC values indicate a better model.

The Kolmogorov-Smirnov (KS) test compares the empirical cumulative distribution to the fitted theoretical CDF. A high KS p-value (> 0.05) indicates good fit. The QQ-plot provides visual validation: points following the diagonal confirm the chosen distribution is appropriate.

Formula: AIC = 2k - 2ln(L) BIC = k × ln(n) - 2ln(L) KS Statistic = max|Fₙ(x) - F(x)| k = number of parameters L = maximum likelihood n = sample size

Example Calculation

100 measurements fitted to Normal (AIC=312, BIC=317, KS p=0.08) and Lognormal (AIC=305, BIC=310, KS p=0.45). Lognormal has lower AIC/BIC and higher KS p-value — it is the better fit. The QQ-plot for lognormal shows tighter adherence to the diagonal than the normal QQ-plot.

When to Use This Calculator

Common Mistakes to Avoid

How to Interpret Results

Related Standards & References

Frequently Asked Questions

Which distribution should I try first?

Start with Normal for continuous symmetric data. Try Lognormal for positively skewed data or data that cannot be negative (concentrations, cycle times). Try Weibull or Exponential for lifetime/reliability data. Count data (defects per unit, arrivals) is discrete — this tool fits continuous families only, so model counts with a Poisson or binomial check instead. The histogram shape provides initial guidance: symmetric bell → Normal, right-skewed → Lognormal/Weibull, constant rate → Exponential.

What is the difference between AIC and BIC?

Both penalize model complexity to prevent overfitting, but BIC applies a stronger penalty for additional parameters, especially with large samples. AIC tends to select more complex models (better prediction), while BIC tends to select simpler models (better model identification). When they disagree, BIC is more conservative. Use both — if they agree, confidence in the selection is high.