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.
CDF
mean 0.9027 · variance 0.3757 · sd 0.6129 · mode 0.4807 · entropy 0.7869 nats
Formulas
| Parameters |
|
|---|---|
| Support | |
| 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?
How it relates to others
- Special case→ Exponential: Weibull() is Exponential(). checked by code
- Special case→ Rayleigh: Weibull() is Rayleigh(). checked by code
- Transformation→ Fréchet: If is Weibull(), is Fréchet(, , ). checked by code
- Transformation← Generalized extreme value: For , if is GEV() then is Weibull(, ): the reversed Weibull, with a finite upper end. checked by code
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?