Weibull distribution

# Overview
In probability theory and statistics, the Weibull distribution (named after Waloddi Weibull) is a continuous probability distribution with the probability density function
for x \geq 0 and f(x; k, ) = 0 for x k >0 is the shape parameter and \lambda >0 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 flexibilityit 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.
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 nth raw moment is given by:
where \Gamma is the Gamma function. The expected value and standard deviation of a Weibull random variable can be expressed as:
and
The skewness is given by:
The excess kurtosis is given by:
-4\Gamma_1\Gamma_3+\Gamma_4}{^2}
where \Gamma_i=\Gamma(1+i/k). The kurtosis excess may also be written as
A generalized, 3-parameter Weibull distribution is also often found in the literature. It has the probability density function
for x \geq \theta and f(x; k, , ) = 0 for x k >0 is the shape parameter, \lambda >0 is the scale parameter and \theta 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
for x  0, and F(x; k; ) = 0 for x < 0.
The cumulative distribution function for the 3-parameter Weibull is
for x  , and F(x; k, , ) = 0 for x < .
The failure rate h (or hazard rate) is given by

# Generating Weibull-distributed random variates
Given a random variate U drawn from the uniform distribution in the interval (0, 1), then the variate
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
- X \sim \mathrm{Exponential}(\lambda) is an exponential distribution if X \sim \mathrm{Weibull}(\gamma = 1, \lambda^{-1}).
- X \sim \mathrm{Rayleigh}(\beta) is a Rayleigh distribution if X \sim \mathrm{Weibull}(\gamma = 2, \sqrt{2} \beta).
- \lambda(-\ln(X))^{1/k}\, is a Weibull distribution if X \sim \mathrm{Uniform}(0,1).
- Inverse Weibull distribution with p.d.f. f(x;k,\lambda)=(k/\lambda) (\lambda/x)^{(k+1)} e^{-(\lambda/x)^k}
- 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.