Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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

  • weibull_distribution⁡(k,λ)\displaystyle \operatorname{weibull\_distribution}(k, \lambda)
    weibull_distribution(k, lambda)Open in the solver
  • P(x>50), x∼weibull_distribution⁡(2,100)=1e14\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
  • weibull_distribution⁡(k,λ)=λΓ(1k+1)\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

Functions its examples use

  • probability

    The probability that a condition holds for a variable with a distribution.

  • distributed

    A variable and the distribution it follows, as probability and expectation read it.

  • mean

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