1. Random
2. 4. Special Distributions
3. The Weibull Distribution

## The Weibull Distribution

In this section, we will study a two-parameter family of distributions that has special importance in reliability.

### The Basic Weibull Distribution

#### Distribution Functions

Random variable $$Z$$ has the (basic) Weibull distribution with shape parameter $$k \in (0, \infty)$$ if $$Z$$ has a continuous distribution on $$[0, \infty)$$ with distribution function $$G$$ given by $G(t) = 1 - \exp\left(-t^k\right), \quad 0 \lt t \lt \infty$

Proof:

Clearly $$G$$ is continuous and increasing on $$[0, \infty)$$ with $$G(0) = 0$$ and $$G(t) \to 1$$ as $$t \to \infty$$.

The Weibull distribution is named for Waloddi Weibull. Weibull was not the first person to use the distribution, but was the first to study it extensively and recognize its wide use in applications. The special case $$k = 1$$ is the standard Weibull distribution, which is the same as the standard exponential distribution.

$$Z$$ has probability density function $$g$$ given by $g(t) = k t^{k - 1} \exp\left(-t^k\right), \quad t \in (0, \infty)$ If $$k \ge 1$$, $$g$$ is defined at 0 also.

1. If $$0 \lt k \lt 1$$, $$g$$ is decreasing and concave upward with $$g(t) \to \infty$$ as $$t \downarrow 0$$.
2. If $$k = 1$$, $$g$$ is decreasing and concave upward with mode $$t = 0$$.
3. If $$k \gt 1$$, $$g$$ increases and then decreases, with mode $$t = \left( \frac{k - 1}{k} \right)^{1/k}$$.
4. If $$1 \lt k \le 2$$, $$g$$ is concave downward and then upward, with inflection point at $$t = \left[\frac{3 (k - 1) + \sqrt{(5 k - 1)(k - 1)}}{2 k}\right]^{1/k}$$
5. If $$k \gt 2$$, $$g$$ is concave upward, then downward, then upward again, with inflection points at $$t = \left[\frac{3 (k - 1) \pm \sqrt{(5 k - 1)(k - 1)}}{2 k}\right]^{1/k}$$
Proof:

These results follow from basic calculus. The PDF is $$g = G^\prime$$ where $$G$$ is the distribution function given above. The first order properties come from $g^\prime(t) = k t^{k-2} \exp\left(-t^k\right)\left[-k t^k + (k - 1)\right]$ The second order properties come from $g^{\prime\prime}(t) = k t^{k-3} \exp\left(-t^k\right)\left[k^2 t^{2 k} - 3 k (k - 1) t^k + (k - 1)(k - 2)\right]$

So the Weibull density function has a rich variety of shapes, depending on the shape parameter, and has the classic unimodal shape when $$k \gt 1$$.

In the special distribution simulator, select the Weibull distribution. Vary the shape parameter and note the shape of the probability density function. For selected values of the shape parameter, run the simulation 1000 times and compare the empirical density function to the probability density function.

$$Z$$ has quantile function $$G^{-1}$$ given by $G^{-1}(p) = [-\ln(1 - p)]^{1/k}, \quad p \in [0, 1)$

1. The first quartile is $$q_1 = [\ln(4) - \ln(3)]^{1/k}$$.
2. The median is $$q_2 = [\ln(2)]^{1/k}$$.
3. The third quartile is $$q_3 = [\ln(4)]^{1/k}$$.
Proof:

The formula for $$G^{-1}(p)$$ comes from solving $$G(t) = p$$ for $$t$$ in terms of $$p$$.

Open the special distribution calculator and select the Weibull distribution. Vary the shape parameter and note the shape of the distribution and probability density functions. For selected values of the parameter, compute the median and the first and third quartiles.

$$Z$$ has reliability function $$G^c$$ given by $G^c(t) = \exp(-t^k), \quad t \in [0, \infty)$

Proof:

This follows trivially from the distribution function above, since $$G^c = 1 - G$$.

$$Z$$ has failure rate function $$r$$ given by $r(t) = k t^{k-1}, \quad t \in (0, \infty)$ If $$k \ge 1$$, $$r$$ is defined at 0 also.

1. If $$0 \lt k \lt 1$$, $$r$$ is decreasing with $$r(t) \to \infty$$ as $$t \downarrow 0$$ and $$r(t) \to 0$$ as $$t \to \infty$$.
2. If $$k = 1$$, $$r$$ is constant 1.
3. If $$k \gt 1$$, $$r$$ is increasing with $$r(0) = 0$$ and $$r(t) \to \infty$$ as $$t \to \infty$$.
Proof:

The formula for $$r$$ follows immediately from the PDF $$g$$ above and the reliability function $$G^c$$ above, since $$r = g \big/ G^c$$.

Thus, the Weibull distribution can be used to model devices with decreasing failure rate, constant failure rate, or increasing failure rate. This versatility is one reason for the wide use of the Weibull distribution in reliability.

#### Moments

Suppose again that $$Z$$ has the basic Weibull distribution with shape parameter $$k$$. The moments of $$Z$$, and hence the mean and variance of $$Z$$ can be expressed in terms of the gamma function.

$$\E(Z^n) = \Gamma\left(1 + \frac{n}{k}\right)$$ for $$n \ge 0$$.

Proof:

For $$n \ge 0$$, $\E(Z^n) = \int_0^\infty t^n k t^{k-1} \exp(-t^k) \, dt$ Substituting $$u = t^k$$ gives $\E(Z^n) = \int_0^\infty u^{n/k} e^{-u} du = \Gamma\left(1 + \frac{k}{k}\right)$

So the Weibull distribution has moments of all orders. The moment generating function, however, does not have a simple, closed expression in terms of the usual elementary functions.

In particular, the mean and variance of $$Z$$ are

1. $$\E(Z) = \Gamma\left(1 + \frac{1}{k}\right)$$
2. $$\var(Z) = \Gamma\left(1 + \frac{2}{k}\right) - \Gamma^2\left(1 + \frac{1}{k}\right)$$

Note that $$\E(Z) \to 1$$ and $$\var(Z) \to 0$$ as $$k \to \infty$$. We will learn more about the limiting distribution below.

In the special distribution simulator, select the Weibull distribution. Vary the shape parameter and note the size and location of the mean $$\pm$$ standard deviation bar. For selected values of the shape parameter, run the simulation 1000 times and compare the empirical mean and standard deviation to the distribution mean and standard deviation.

#### Related Distributions

As noted above, the standard Weibull distribution (shape parameter 1) is the same as the standard exponential distribution. More generally, any basic Weibull variable can be constructed from a standard exponential variable.

Suppose that $$k \in (0, \infty)$$.

1. If $$U$$ has the standard exponential distribution then $$Z = U^{1/k}$$ has the basic Weibull distribution with shape parameter $$k$$.
2. If $$Z$$ has the basic Weibull distribution with shape parameter $$k$$ then $$U = Z^k$$ has the standard exponential distribution.
Proof:

We use distribution functions. The basic Weibull CDF is given above; the standard exponential CDF is $$u \mapsto 1 - e^{-u}$$ on $$[0, \infty)$$. Note that the inverse transformations $$z = u^k$$ and $$u = z^{1/k}$$ are strictly increasing and map $$[0, \infty)$$ onto $$[0, \infty)$$.

1. $$\P(Z \le z) = \P\left(U \le z^k\right) = 1 - \exp\left(-z^k\right)$$ for $$z \in [0, \infty)$$.
2. $$\P(U \le u) = \P\left(Z \le u^{1/k}\right) = 1 - \exp\left[-\left(u^{1/k}\right)^k\right] = 1 - e^{-u}$$ for $$u \in [0, \infty)$$.

The basic Weibull distribution has the usual connections with the standard uniform distribution by means of the distribution and quantile functions.

Suppose that $$k \in (0, \infty)$$.

1. If $$U$$ has the standard uniform distribution then $$Z = [-\ln(U)]^{1/k}$$ has the basic Weibull distribution with shape parameter $$k$$.
2. If $$Z$$ has the basic Weibull distribution with shape parameter $$k$$ then $$U = \exp\left(-Z^k\right)$$ has the standard uniform distribution.
Proof:

Let $$G$$ denote the CDF of the basic Weibull distribution with shape parameter $$k$$, given above, and $$G^{-1}$$ the corresponding quantile function, given above

1. If $$U$$ has the standard uniform distribution then so does $$1 - U$$. Hence $$Z = G^{-1}(1 - U) = [-\ln(U)]^{1/k}$$ has the basic Weibull distribution with shape parameter $$k$$.
2. If $$Z$$ has the basic Weibull distribution with shape parameter $$k$$ then, since $$G$$ is strictly increasing on $$[0, \infty)$$, $$G(Z)$$ has the standard uniform distribution. But then so does $$U = 1 - G(Z) = \exp\left(-Z^k\right)$$.

Since the quantile function has a simple, closed form, the basic Weibull distribution can be simulated using the random quantile method.

Open the random quantile experiment and select the Weibull distribution. Vary the shape parameter and note again the shape of the distribution and density functions. For selected values of the parameter, run the simulation 1000 times and compare the empirical density, mean, and standard deviation to their distributional counterparts.

The limiting distribution with respect to the shape parameter is concentrated at a single point.

The basic Weibull distribution with shape parameter $$k \in (0, \infty)$$ converges to point mass at 1 as $$k \to \infty$$.

Proof:

Once again, let $$G$$ denote the basic Weibull CDF with shape parameter $$k$$ given above. Note that $$G(t) \to 0$$ as $$k \to \infty$$ for $$0 \le t \lt 1$$; $$G(1) = 1 - e^{-1}$$ for all $$k$$; and $$G(t) \to 1$$ as $$k \to \infty$$ for $$t \gt 1$$. Except for the point of discontinuity $$t = 1$$, the limits are the CDF of point mass at 1.

### The General Weibull Distribution

Like most special continuous distributions on $$[0, \infty)$$, the basic Weibull distribution is generalized by the inclusion of a scale parameter.

Suppose that $$Z$$ has the basic Weibull distribution with shape parameter $$k \in (0, \infty)$$. For $$b \in (0, \infty)$$, random variable $$X = b Z$$ has the Weibull distribution with shape parameter $$k$$ and scale parameter $$b$$.

Generalizations of the results given above follow easily from basic properties of the scale transformation.

#### Distribution Functions

Suppose that $$X$$ has the Weibull distribution with shape parameter $$k \in (0, \infty)$$ and scale parameter $$b \in (0, \infty)$$.

$$X$$ distribution function $$F$$ given by $F(t) = 1 - \exp\left[-\left(\frac{t}{b}\right)^k\right], \quad t \in [0, \infty)$

Proof:

Recall that $$F(t) = G\left(\frac{t}{b}\right)$$ for $$t \in [0, \infty)$$ where $$G$$ is the CDF of the basic Weibull distribution with shape parameter $$k$$, given above.

$$X$$ has probability density function $$f$$ given by $f(t) = \frac{k}{b^k} \, t^{k-1} \, \exp \left[ -\left( \frac{t}{b} \right)^k \right], \quad t \in (0, \infty)$ If $$k \ge 1$$, $$f$$ is defined at 0 also.

1. If $$0 \lt k \lt 1$$, $$f$$ is decreasing and concave upward with $$f(t) \to \infty$$ as $$t \downarrow 0$$.
2. If $$k = 1$$, $$f$$ is decreasing and concave upward with mode $$t = 0$$.
3. If $$k \gt 1$$, $$f$$ increases and then decreases, with mode $$t = b \left( \frac{k - 1}{k} \right)^{1/k}$$.
4. If $$1 \lt k \le 2$$, $$f$$ is concave downward and then upward, with inflection point at $$t = b \left[\frac{3 (k - 1) + \sqrt{(5 k - 1)(k - 1)}}{2 k}\right]^{1/k}$$
5. If $$k \gt 2$$, $$f$$ is concave upward, then downward, then upward again, with inflection points at $$t = b \left[\frac{3 (k - 1) \pm \sqrt{(5 k - 1)(k - 1)}}{2 k}\right]^{1/k}$$
Proof:

Recall that $$f(t) = \frac{1}{b} g\left(\frac{t}{b}\right)$$ for $$t \in (0, \infty)$$ where $$g$$ is the PDF of the basic Weibull distribution with shape parameter $$k$$, given above.

Open the special distribution simulator and select the Weibull distribution. Vary the parameters and note the shape of the probability density function. For selected values of the parameters, run the simulation 1000 times and compare the empirical density function to the probability density function.

$$X$$ has quantile function $$F^{-1}$$ given by $F^{-1}(p) = b [-\ln(1 - p)]^{1/k}, \quad p \in [0, 1)$

1. The first quartile is $$q_1 = b [\ln(4) - \ln(3)]^{1/k}$$.
2. The median is $$q_2 = b [\ln(2)]^{1/k}$$.
3. The third quartile is $$q_3 = b [\ln(4)]^{1/k}$$.
Proof:

Recall that $$F^{-1}(p) = b G^{-1}(p)$$ for $$p \in [0, 1)$$ where $$G^{-1}$$ is the quantile function of the basic Weibull distribution with shape parameter $$k$$, given above.

Open the special distribution calculator and select the Weibull distribution. Vary the parameters and note the shape of the distribution and probability density functions. For selected values of the parameters, compute the median and the first and third quartiles.

$$X$$ has reliability function $$F^c$$ given by $F^c(t) = \exp\left[-\left(\frac{t}{b}\right)^k\right], \quad t \in [0, \infty)$

Proof:

This follows trivially from the CDF $$F$$ given above, since $$F^c = 1 - F$$.

As before, the Weibull distribution has decreasing, constant, or increasing failure rates, depending only on the shape parameter.

$$X$$ has failure rate function $$R$$ given by $R(t) = \frac{k t^{k-1}}{b^k}, \quad t \in (0, \infty)$ If $$k \ge 1$$, $$R$$ is defined at 0 also.

1. If $$0 \lt k \lt 1$$, $$R$$ is decreasing with $$R(t) \to \infty$$ as $$t \downarrow 0$$ and $$R(t) \to 0$$ as $$t \to \infty$$.
2. If $$k = 1$$, $$R$$ is constant $$\frac{1}{b}$$.
3. If $$k \gt 1$$, $$R$$ is increasing with $$R(0) = 0$$ and $$R(t) \to \infty$$ as $$t \to \infty$$.

#### Moments

Suppose again that $$X$$ has the Weibull distribution with shape parameter $$k \in (0, \infty)$$ and scale parameter $$b \in (0, \infty)$$.

$$\E(X^n) = b^n \Gamma\left(1 + \frac{n}{k}\right)$$ for $$n \ge 0$$.

Proof:

Let $$X = b Z$$ where $$Z$$ has the basic Weibull distribution with shape parameter $$k$$. The result then follows from the corresponding result above since $$\E(X^n) = b^n \E(Z^n)$$.

In particular, the mean and variance of $$X$$ are

1. $$\E(X) = b \Gamma\left(1 + \frac{1}{k}\right)$$
2. $$\var(X) = b^2 \left[\Gamma\left(1 + \frac{2}{k}\right) - \Gamma^2\left(1 + \frac{1}{k}\right)\right]$$

Note that $$\E(X) \to b$$ and $$\var(X) \to 0$$ as $$k \to \infty$$.

Open the special distribution simulator and select the Weibull distribution. Vary the parameters and note the size and location of the mean $$\pm$$ standard deviation bar. For selected values of the parameters, run the simulation 1000 times and compare the empirical mean and standard deviation to the distribution mean and standard deviation.

#### Related Distributions

Since the Weibull distribution is a scale family for each value of the shape parameter, it is trivially closed under scale transformations.

Suppose that $$X$$ has the Weibull distribution with shape parameter $$k \in (0, \infty)$$ and scale parameter $$b \in (0, \infty)$$. If $$c \gt 0$$ then $$c X$$ has the Weibull distribution with shape parameter $$k$$ and scale parameter $$b c$$.

The exponential distribution is a special case of the Weibull distribution, the case corresponding to constant failure rate.

The Weibull distribution with shape parameter 1 and scale parameter $$b \in (0, \infty)$$ is the exponential distribution with scale parameter $$b$$.

More generally, any Weibull distributed variable can be constructed from the standard variable. The following result is a simple generalization of the result above for the basic distribution.

Suppose that $$k, \, b \in (0, \infty)$$.

1. If $$X$$ has the standard exponential distribution (parameter 1), then $$Y = b \, X^{1/k}$$ has the Weibull distribution with shape parameter $$k$$ and scale parameter $$b$$.
2. If $$Y$$ has the Weibull distribution with shape parameter $$k$$ and scale parameter $$b$$, then $$X = (Y / b)^k$$ has the standard exponential distribution.

The Rayleigh distribution, named for William Strutt, Lord Rayleigh, is also a special case of the Weibull distribution.

The Rayleigh distribution with scale parameter $$b \in (0, \infty)$$ is the Weibull distribution with shape parameter $$2$$ and scale parameter $$\sqrt{2} b$$.

The special case $$k = 2$$, is called the Rayleigh distribution with scale parameter $$b$$, named after .

As before, Weibull distribution has the usual connections with the standard uniform distribution by means of the distribution and quantile functions.

Suppose that $$k, \, b \in (0, \infty)$$.

1. If $$U$$ has the standard uniform distribution then $$X = b [-\ln(U)]^{1/k}$$ has the Weibull distribution with shape parameter $$k$$ and scale parameter $$b$$.
2. If $$X$$ has the basic Weibull distribution with shape parameter $$k$$ then $$U = \exp\left[-(X/b)^k\right]$$ has the standard uniform distribution.
Proof:

Let $$F$$ denote the CDF of the Weibull distribution with shape parameter $$k$$ and scale parameter $$b$$, given above, and $$F^{-1}$$ the corresponding quantile function, given above

1. If $$U$$ has the standard uniform distribution then so does $$1 - U$$. Hence $$X = F^{-1}(1 - U) = b [-\ln(U)]^{1/k}$$ has the Weibull distribution with shape parameter $$k$$ and scale parameter $$b$$.
2. If $$X$$ has the Weibull distribution with shape parameter $$k$$ and scale parameter $$b$$ then, since $$F$$ is strictly increasing on $$[0, \infty)$$, $$F(X)$$ has the standard uniform distribution. But then so does $$U = 1 - F(X) = \exp\left[-(X/b)^k\right]$$.

Again, since the quantile function has a simple, closed form, the Weibull distribution can be simulated using the random quantile method.

Open the random quantile experiment and select the Weibull distribution. Vary the parameters and note again the shape of the distribution and density functions. For selected values of the parameters, run the simulation 1000 times and compare the empirical density, mean, and standard deviation to their distributional counterparts.

The limiting distribution with respect to the shape parameter is concentrated at a single point.

The Weibull distribution with shape parameter $$k \in (0, \infty)$$ and scale parameter $$b \in (0, \infty)$$converges to point mass at $$b$$ as $$k \to \infty$$.

Proof:

If $$X$$ has the Weibull distribution with shape parameter $$k$$ and scale parameter $$b$$, then we can write $$X = b Z$$ where $$Z$$ has the basic Weibull distribution with shape parameter $$k$$. We showed above that the distribution of $$Z$$ converges to point mass at 1, so by the continuity theorem for convergence in distribution, the distribution of $$X$$ converges to point mass at $$b$$.

Finally, the Weibull distribution is a member of the family of general exponential distributions if the shape parameter is fixed.

Suppose that $$X$$ has the Weibull distribution with shape parameter $$k \in (0, \infty)$$ and scale parameter $$b \in (0, \infty)$$. For fixed $$k$$, $$X$$ has a general exponential distribution with respect to $$b$$, with natural parameter $$k - 1$$ and natural statistics $$\ln(X)$$.

Proof:

This follows from the definition of the general exponential distribution, since the PDF above can be written in the form $f(t) = \frac{k}{b^k}\exp\left(-t^k\right) \exp[(k - 1) \ln(t)], \quad t \in (0, \infty)$

### Computational Exercises

The lifetime $$T$$ of a device (in hours) has the Weibull distribution with shape parameter $$k = 1.2$$ and scale parameter $$b = 1000$$.

1. Find the probability that the device will last at least 1500 hours.
2. Approximate the mean and standard deviation of $$T$$.
3. Compute the failure rate function.
1. $$\P(T \gt 1500) = 0.1966$$
2. $$\E(T) = 940.7$$, $$\sd(T) = 787.2$$
3. $$h(t) = 0.000301 t^{0.2}$$