Mathwords logoMathwords

Weibull Distribution — Definition, Formula & Example

The Weibull distribution is a continuous probability distribution for how long something lasts before it fails. Its shape parameter tells you whether failures get less likely, stay steady, or get more likely as the item ages.

A random variable XX has a Weibull distribution with shape k>0k > 0 and scale λ>0\lambda > 0, written X∼Weibull(k,λ)X \sim \text{Weibull}(k, \lambda), if its cumulative distribution function is F(x)=1−e−(x/λ)kF(x) = 1 - e^{-(x/\lambda)^k} for x≥0x \ge 0 and F(x)=0F(x) = 0 for x<0x < 0. Its hazard (instantaneous failure) rate is h(x)=kλ(xλ)k−1h(x) = \frac{k}{\lambda}\left(\frac{x}{\lambda}\right)^{k-1}. This rate decreases when k<1k < 1, stays constant when k=1k = 1, and increases when k>1k > 1.

Key Formula

f(x)=kλ(xλ)k−1e−(x/λ)k,x≥0f(x) = \frac{k}{\lambda}\left(\frac{x}{\lambda}\right)^{k-1} e^{-(x/\lambda)^k}, \quad x \ge 0
Where:
  • xx = Time to failure (or another nonnegative quantity), such as hours of operation
  • kk = Shape parameter; sets how the failure rate changes over time
  • λ\lambda = Scale parameter; about 63.2% of items fail by time λ\lambda
  • f(x)f(x) = Probability density at xx

Worked Example

Problem: The lifetime of a ball bearing follows a Weibull distribution with shape k=2k = 2 and scale λ=1000\lambda = 1000 hours. Find the probability that a bearing is still working after 500 hours, and the probability that it fails before then.
Step 1: The survival (reliability) function is R(t)=1−F(t)=e−(t/λ)kR(t) = 1 - F(t) = e^{-(t/\lambda)^k}. First compute the exponent's base quantity.
(tλ)k=(5001000)2=0.25\left(\frac{t}{\lambda}\right)^k = \left(\frac{500}{1000}\right)^2 = 0.25
Step 2: Substitute into the survival function.
R(500)=e−0.25≈0.7788R(500) = e^{-0.25} \approx 0.7788
Step 3: The probability of failure before 500 hours is the complement.
F(500)=1−e−0.25≈0.2212F(500) = 1 - e^{-0.25} \approx 0.2212
Answer: About 77.88% of bearings survive past 500 hours, and about 22.12% fail before then. Because k=2>1k = 2 > 1, the failure rate rises with age, which fits wear-out.

Why It Matters

Reliability engineers fit Weibull models to failure data from bearings, batteries, and turbine blades to set warranty periods and maintenance schedules. The fitted value of kk tells them whether a product fails early from defects (k<1k < 1), fails at random (k=1k = 1), or wears out (k>1k > 1). Courses in reliability engineering, survival analysis, and actuarial science use it heavily.

Common Mistakes

Mistake: Treating the scale parameter λ\lambda as the mean lifetime.
Correction: The mean is λ Γ(1+1/k)\lambda\,\Gamma(1 + 1/k), not λ\lambda. Instead, λ\lambda is the time by which 1−e−1≈63.2%1 - e^{-1} \approx 63.2\% of items have failed. For k=2k = 2 and λ=1000\lambda = 1000 hours, the mean is 1000 Γ(1.5)≈886.21000\,\Gamma(1.5) \approx 886.2 hours.

Related Terms