# weibull_distribution function

The lifetime of a unit whose chance of surviving to time x is e^(-(x/scale)^shape).

## How to write it

### weibull_distribution(shape, scale)

**shape**

The shape, above 0. Below 1 the failure rate falls with age, at 1 it is constant, above 1 it rises. Takes an expression.

**scale**

The scale, above 0: the time by which 1 - 1/e of the units have failed. Takes an expression.

## Examples

- $\displaystyle \operatorname{weibull\_distribution}(k, \lambda)$

  `weibull_distribution(k, lambda)`[Open in the solver](https://hilberon.com/?q=weibull_distribution%28k%2C%20lambda%29)
- $\displaystyle P(x > 50),\ x \sim \operatorname{weibull\_distribution}(2, 100) = \frac{1}{e^{\frac{1}{4}}}$

  `probability(x > 50, distributed(x, weibull_distribution(2, 100)))`

  In the solver, `probability(x > 50, distributed(x, weibull_distribution(2, 100)))` gives `1/e^(1/4)`.

  [Open in the solver](https://hilberon.com/?q=probability%28x%20%3E%2050%2C%20distributed%28x%2C%20weibull_distribution%282%2C%20100%29%29%29)
- $\displaystyle \operatorname{weibull\_distribution}(k, \lambda) = \lambda \Gamma\left(\frac{1}{k}+1\right)$

  `mean(weibull_distribution(k, lambda))`

  In the solver, `mean(weibull_distribution(k, lambda))` gives `lambda*gamma(1/k + 1)`.

  [Open in the solver](https://hilberon.com/?q=mean%28weibull_distribution%28k%2C%20lambda%29%29)

## Functions its examples use

- [probability](https://hilberon.com/library/probability)

  The probability that a condition holds for a variable with a distribution.
- [distributed](https://hilberon.com/library/distributed)

  A variable and the distribution it follows, as probability and expectation read it.
- [mean](https://hilberon.com/library/mean)

  The average of a list of numbers, or the expected value of a distribution.

## Related functions

- [uniform_distribution](https://hilberon.com/library/uniform_distribution)

  The continuous distribution that is equally likely anywhere between a and b.
- [binomial_distribution](https://hilberon.com/library/binomial_distribution)

  The number of successes in n independent trials that each succeed with chance p.
- [stationary_distribution](https://hilberon.com/library/stationary_distribution)

  The law a process settles into over time, when it has one.
- [poisson_distribution](https://hilberon.com/library/poisson_distribution)

  The number of events in a period when they come at an average rate lambda.
- [exponential_distribution](https://hilberon.com/library/exponential_distribution)

  The waiting time for events that come at rate lambda.
- [normal_distribution](https://hilberon.com/library/normal_distribution)

  The normal distribution with mean mu and standard deviation sigma.

---
Source: https://hilberon.com/library/weibull_distribution
