# Weibull distribution

Template:Probability distribution\,</math> if <math>k>1</math>|

arg mode =<math>\lambda\frac{k-1}{k}^{\frac{1}{k}}\,</math> if <math>k>1</math>| variance =<math>\lambda^2\Gamma\left(1+\frac{2}{k}\right) - \mu^2\,</math>| skewness =<math>\frac{\Gamma(1+\frac{3}{k})\lambda^3-3\mu\sigma^2-\mu^3}{\sigma^3}</math>| kurtosis =(see text)| entropy =<math>\gamma\left(1\!-\!\frac{1}{k}\right)+\ln\left(\frac{\lambda}{k}\right)+1</math>| mgf = see Weibull fading| char =|

}}

## Overview

In probability theory and statistics, the **Weibull distribution**^{[1]} (named after Waloddi Weibull) is a continuous probability distribution with the probability density function

- <math>f(x;k,\lambda) = {k \over \lambda} \left({x \over \lambda}\right)^{k-1} e^{-(x/\lambda)^k}\,</math>

for <math>x \geq 0</math> and *f*(*x*; *k*, λ) = 0 for *x* < 0, where <math>k >0</math> is the *shape parameter* and <math>\lambda >0</math> is the scale parameter of the distribution. Its complementary cumulative distribution function is a stretched exponential.

The Weibull distribution is often used in the field of life data analysis due to its flexibility—it can mimic the behavior of other statistical distributions such as the normal and the exponential. If the failure rate decreases over time, then *k* < 1. If the failure rate is constant over time, then *k* = 1. If the failure rate increases over time, then *k* > 1.

An understanding of the failure rate may provide insight as to what is causing the failures:

- A decreasing failure rate would suggest "infant mortality". That is, defective items fail early and the failure rate decreases over time as they fall out of the population.

- A constant failure rate suggests that items are failing from random events.

- An increasing failure rate suggests "wear out" - parts are more likely to fail as time goes on.

When *k* = 3.4, then the Weibull distribution appears similar to the normal distribution.
When *k* = 1, then the Weibull distribution reduces to the exponential distribution.

## Properties

The *n*th raw moment is given by:

- <math>m_n = \lambda^n \Gamma(1+n/k)\,</math>

where <math>\Gamma</math> is the Gamma function. The expected value and standard deviation of a Weibull random variable can be expressed as:

- <math>\textrm{E}(X) = \lambda \Gamma(1+1/k)\,</math>

and

- <math>\textrm{var}(X) = \lambda^2[\Gamma(1+2/k) - \Gamma^2(1+1/k)]\,.</math>

The skewness is given by:

- <math>\gamma_1=\frac{\Gamma\left(1+\frac{3}{k}\right)\lambda^3-3\mu\sigma^2-\mu^3}{\sigma^3}.</math>

The excess kurtosis is given by:

- <math>\gamma_2=\frac{-6\Gamma_1^4+12\Gamma_1^2\Gamma_2-3\Gamma_2^2

-4\Gamma_1\Gamma_3+\Gamma_4}{[\Gamma_2-\Gamma_1^2]^2}</math>

where <math>\Gamma_i=\Gamma(1+i/k)</math>. The kurtosis excess may also be written as

- <math>\gamma_{2}=\frac{\lambda^4\Gamma(1+\frac{4}{k})-4\gamma_{1}\sigma^3\mu-6\mu^2\sigma^2-\mu^4}{\sigma^4}</math>

A generalized, 3-parameter Weibull distribution is also often found in the literature. It has the probability density function

- <math>f(x;k,\lambda, \theta)={k \over \lambda} \left({x - \theta \over \lambda}\right)^{k-1} e^{-({x-\theta \over \lambda})^k}\,</math>

for <math>x \geq \theta</math> and *f*(*x*; *k*, λ, θ) = 0 for *x* < θ, where <math>k >0</math> is the shape parameter, <math>\lambda >0</math> is the scale parameter and <math>\theta</math> is the location parameter of the distribution. When θ=0, this reduces to the 2-parameter distribution.

The cumulative distribution function for the 2-parameter Weibull is

- <math>F(x;k,\lambda) = 1- e^{-(x/\lambda)^k}\,</math>

for *x* ≥ 0, and *F*(*x*; *k*; λ) = 0 for *x* < 0.

The cumulative distribution function for the 3-parameter Weibull is

- <math>F(x;k,\lambda, \theta) = 1- e^{-({x-\theta \over \lambda})^k}</math>

for *x* ≥ θ, and *F*(*x*; *k*, λ, θ) = 0 for *x* < θ.

The failure rate *h* (or hazard rate) is given by

- <math> h(x;k,\lambda) = {k \over \lambda} \left({x \over \lambda}\right)^{k-1}.</math>

## Generating Weibull-distributed random variates

Given a random variate *U* drawn from the uniform distribution in the interval (0, 1), then the variate

- <math>X=\lambda (-\ln(U))^{1/k}\,</math>

has a Weibull distribution with parameters *k* and λ. This follows from the form of the cumulative distribution function. Note that if you are generating random numbers belonging to (0,1), exclude zero values to avoid the natural log of zero.

## Related distributions

- <math>X \sim \mathrm{Exponential}(\lambda)</math> is an exponential distribution if <math>X \sim \mathrm{Weibull}(\gamma = 1, \lambda^{-1})</math>.
- <math>X \sim \mathrm{Rayleigh}(\beta)</math> is a Rayleigh distribution if <math>X \sim \mathrm{Weibull}(\gamma = 2, \sqrt{2} \beta)</math>.
- <math>\lambda(-\ln(X))^{1/k}\,</math> is a Weibull distribution if <math>X \sim \mathrm{Uniform}(0,1)</math>.
- Inverse Weibull distribution with p.d.f. <math>f(x;k,\lambda)=(k/\lambda) (\lambda/x)^{(k+1)} e^{-(\lambda/x)^k}</math>
- See also the generalized extreme value distribution.

## Uses

The Weibull distribution is most commonly used in life data analysis, though it has found other applications as well. The Weibull distribution is often used in place of the normal distribution due to the fact that a Weibull variate can be generated through inversion, while normal variates are typically generated using the more complicated Box-Muller method, which requires two uniform random variates. Weibull distributions may also be used to represent manufacturing and delivery times in industrial engineering problems, while it is very important in extreme value theory and weather forecasting. It is also a very popular statistical model in reliability engineering and failure analysis, while it is widely applied in radar systems to model the dispersion of the received signals level produced by some types of clutters. Furthermore, concerning wireless communications, the Weibull distribution may be used for fading channel modelling, since the Weibull fading model seems to exhibit good fit to experimental fading channel measurements. The Weibull distribution is also commonly used to describe wind speed distributions as the natural distribution often matches the Weibull shape.

## References

- ↑ Weibull, W. (1951) "A statistical distribution function of wide applicability"
*J. Appl. Mech.-Trans. ASME*18(3), 293-297

## External links

- The Weibull distribution (with examples, properties, and calculators).
- The Weibull plot.
- Weibull plotting paper.
- Mathpages - Weibull Analysis
- Using Excel for Weibull Analysis

This article from the Quality Digest describes how to use MS Excel to analyse lifetest data with the Weibull statistical distribution. Although Excel doesn't have an inverse Weibull function, this article shows how to use Excel to solve for critical values. - Biography of Waloddi Weibull.

ca:Distribució Weibull de:Weibull-Verteilung gl:Distribución Weibull it:Variabile casuale di Weibull nl:Weibull-verdeling su:Sebaran Weibull sv:Weibullfördelning