MathsStatistics & Probability

Weibull Distribution
calculator.

The Weibull distribution models when parts fail, from early defects to wear-out.

How it's worked out

Two numbers set the curve. The shape k, also written β, says how failures behave over time. The scale λ, also written η, stretches the curve along the age axis. NIST calls the scale the characteristic life. Reliability R(t) is the share still working at age t.

R(t)\displaystyle R(t)=e−(tλ)k\displaystyle {}= e^{-\left( \frac{t}{\lambda} \right)^{k}}

The share failed is F(t) = 1 − R(t). At t = λ the exponent is −1 for any shape, so about 36.8% are still working and 63.2% have failed. That is why the scale sits at the 63.2% point whatever the shape.

Density and hazard

The density f(t) shows when failures bunch up. The hazard h(t) is the failure rate among units that are still working, which is the density divided by the reliability.

h(t)\displaystyle h(t)=kλ(tλ)k−1\displaystyle {}= \frac{k}{\lambda} \left( \frac{t}{\lambda} \right)^{k - 1}

Below k = 1 the hazard falls with age, which matches the early failure stretch of the bathtub curve. At k = 1 it stays flat and the model is the exponential distribution. Above 1 it rises, which is wear-out. At k = 2 NIST names it the Rayleigh distribution.

Mean, median and B-life

mean\displaystyle \text{mean}=λΓ(1+1k)\displaystyle {}= \lambda \, \Gamma \left( 1 + \frac{1}{k} \right)
Bp\displaystyle B_p=λ(−ln⁡(1−p))1k\displaystyle {}= \lambda \left( -\ln(1 - p) \right)^{\frac{1}{k}}

Γ is the gamma function. A B-life is the age by which a share p has failed, so B10 sets p to 0.10. The median is B50. The mode, the peak of the density, sits above zero only when k is above 1.

A unit that has already survived

The chance of lasting a further x, given it has reached t, is a ratio of two reliabilities. Its expected further life is the area under R past t, divided by R(t), which the tool works out with the incomplete gamma function.

R(x|t)\displaystyle R(x \mid t)=R(t+x)R(t)\displaystyle {}= \frac{R(t + x)}{R(t)}

A location γ shifts the whole curve so no failure can happen before age γ. NIST's general form replaces t with t − γ in each formula above.

Worked examples

A wearing part at 8,000 hours

A pump seal has k = 2 and λ = 10,000 hours. At 8,000 hours, R = 52.73%, so 47.27% of seals have failed. The hazard is 0.00016 per hour, the mean life is 8,862 hours, and B10 comes at 3,246 hours.

A new seal gets through 1,000 hours 99% of the time. A seal already at 8,000 hours manages it only 84.37% of the time, and it can expect about 4,335 more hours. That falling chance is what makes planned replacement worth it for wear-out.

Open this example in the tool

Early failures, and why survivors look better

A batch of electronics has k = 0.5 and λ = 1,000 hours. A new unit gets through its first 200 hours 63.94% of the time. A unit that already survived 200 hours gets through the next 200 83.09% of the time, which is better than new.

This is the reasoning behind burn-in, which runs parts before service so the weak ones fail early. Replacing a survivor with a new unit makes things worse here. The mean life of 2,000 hours is far above the median of 480, because a few units last a very long time.

Open this example in the tool

A fit from test data, with half the units still running

NIST's handbook works through 20 units: 10 failed within 386 hours, and 10 were still running when the test stopped at 500. Its maximum likelihood fit is k = 1.7208 and λ = 606.528. Here the engine's mean is 540.7 hours and its standard deviation is 323.8, which match NIST's published 540.7 and 323.8 to the decimal shown.

At 500 hours, the end of the test, R = 48.81%. That sits close to the 10 of 20 units seen running, as a fit should. The estimate of k carries real uncertainty with so few failures: at k = 1.29 the reliability would be 45.87%, and at k = 2.15 it would be 51.68%.

Open this example in the tool

Reading your result

Start with the shape. It tells you whether age matters. With k = 1 and λ = 5,000 hours, a new unit lasts the next 1,000 hours 81.87% of the time, and one already at 8,000 hours gets 81.87%. Those match, so replacing a working unit early buys nothing. Above k = 1 that same trade starts to pay, and below it the trade loses.

Do not read the scale as the mean. The scale is a percentile, not an average. Accendo Reliability states that the two match only at k = 1 with no location. At k = 0.5 the mean is 2 times λ, and at k = 2 it is 0.886 times λ.

Read B-lives for the early part of the curve. A mean says little about the first failures, and those are often what a warranty or a safety case cares about. Rolling bearings use the same idea: L10 is the life that 90% of bearings reach or exceed.

Center of the curve as multiples of λ
kMeanMedianMode
0.520.480
110.6930
1.50.9030.7830.481
20.8860.8330.707
3.60.9010.9030.914
50.9180.9290.956
Spread and early life, as multiples of λ
kSDB10R at 0.5λ
0.54.4720.01149.3%
110.10560.7%
1.50.6130.22370.2%
20.4630.32577.9%
3.60.2780.53592.1%
50.210.63896.9%

Small k spreads failures over a huge range, so B10 comes very early while the mean stays high. As k grows the curve tightens around λ. Near k = 3.6 the mean, median and mode almost meet, at 0.901, 0.903 and 0.914 times λ.

Common mistakes

  • Treating the hazard as a probability. It is a rate per unit of age. It only approximates a chance of failure over a short stretch, and its size changes when you switch from hours to days. Use the mission figure for a real chance.
  • Fitting one curve to two failure causes. A single Weibull describes one failure mode. A product with both early defects and wear-out needs one curve per mode, and a single fit will hide both.
  • Adding a location without a reason. Use γ only when something physical rules out failure before that age. Setting it because it improves the fit to a small data set can make early-life figures look safer than they are.
  • Dropping the units that have not failed. Leaving out units still running makes the life look shorter than it is. Fit methods such as maximum likelihood use them, and this tool works forward from k and λ once you have them.

Questions people ask

It tells you how the failure rate changes with age. Below 1 the rate falls, at 1 it stays constant, and above 1 it rises. On a Weibull plot it also sets how steep the fitted line is, which is why people call it the slope.

Sources