Continuous distribution

Weibull distribution

Time to failure when the failure rate changes with age as a power law: falling for (early failures), constant for (the exponential), rising for (wear-out). It is the workhorse of reliability engineering and is also used for wind speeds and particle sizes.

Weibull probability calculator

P(X ≤ 0.78) = 0.497861

At the parameters set by the sliders. The shaded region on the plot is the probability; the dots on the CDF mark F at its ends.

PDF

00.250.50.75012345f(x)mean

CDF

00.250.50.751012345F(x)

mean 0.9027 · variance 0.3757 · sd 0.6129 · mode 0.4807 · entropy 0.7869 nats

Formulas

Parameters
  • , the shape
  • , the scale
Support
PDF
CDF
Mean
Variance
Mode
MGF
Entropy

Worked example

A bearing's life is Weibull with shape 1.5 and scale 1,000 hours. What fraction fail in the first 500 hours?

. answer checked by code

How it relates to others

All the relationships, as a diagram →

In Python

from scipy import stats
import numpy as np

X = stats.weibull_min(c=1.5, scale=1)
X.pdf(0.8)  # f(0.8) = 0.656
X.cdf(0.8)  # P(X ≤ 0.8) = 0.5111
X.mean(), X.var()  # 0.9027, 0.3757
X.ppf(0.95)  # 95th percentile
X.rvs(size=10, random_state=0)

rng = np.random.default_rng(0)
1 * rng.weibull(a=1.5, size=10)

NumPy's weibull has scale 1; multiply by λ.

Choosing between this and its neighbours? Which distribution for waiting times and lifetimes? · Which distribution for extremes and heavy tails?

← Log-logisticRayleigh →