Distribution Fitting

Find which distribution your data follow: all 8 candidates are fitted, the one with the lowest AIC is chosen, and its probability density is overlaid on the histogram. Useful before nonnormal capability or reliability analysis.

1Data Table

Paste a table copied from Excel into a cell (Ctrl+V). Click a column header (A, B…) before pasting to use the first line as column names. Double-click a header to rename it, right-click to insert/delete rows and columns, and formulas such as =A1*2 work too.

2Distribution Fit Options

Select the columns to fit distributions to (multiple allowed):

How to fit distributions

  1. Copy the measurement column to examine together with its header.
  2. Select the columns to fit (each column gets its own result).
  3. Press Analyze and check the best distribution, the AIC ranking (top 5) and the parameter values.

Worked example with sample data

The sample data are 50 component lifetimes (hours) and 50 material strengths (MPa).

Distribution fit of component life - Weibull density over the histogram, with AIC ranking
Distribution fit of component life - Weibull density over the histogram, with AIC ranking

For lifetime, the Weibull distribution fits best with AIC=759.89. A shape parameter of 1.995 indicates wear-out failures that increase over time, and the location parameter of 89.54 means almost no failures occur before about 90 hours.

However, the AIC difference from second-place Normal (761.25) is 1.36, below 2, so the two fit about equally well. Since Weibull is the convention for life data, choosing Weibull here is natural.

For strength, the largest extreme value distribution ranks first (AIC=226.48) and lognormal second (227.17) - distributions with a longer right tail fit best.

Candidates and fitting method

Normal, lognormal, Weibull, exponential, gamma, logistic, smallest extreme value and largest extreme value are fitted by maximum likelihood (MLE). Lognormal, Weibull and gamma are 3-parameter forms with a location (threshold) parameter (exponential has 2), computed the same way as SciPy.

Choosing by AIC

AIC = 2×(number of parameters) - 2×(log-likelihood); it is smaller for distributions that describe the data well with fewer parameters. The distribution with the lowest AIC is chosen; fewer than 8 valid values are not fitted.

How to read the distribution fit

  • Distributions whose AIC differs by less than about 2 fit practically equally well - check the top-5 ranking.
  • Also check visually that the curve follows the peak and tails of the histogram.
  • Use the result to choose the distribution for nonnormal capability or reliability (life data) analysis.

Frequently asked questions

What is the order of the parameters?

The same as SciPy: (shape, location, scale) for distributions with a shape parameter, otherwise (location, scale).

How many values do I need?

At least 8; 30 or more are recommended to judge the distribution.

Is there a goodness-of-fit p-value?

This feature compares candidates by AIC. Check normality with a p-value on the normality test page.

Other chart tools