Omni Calculator logo

Weibull Distribution Calculator

Created by Anna Szczepanek, PhD
Reviewed by Dominik Czernia, PhD and Jack Bowater
Last updated: Jun 05, 2023


Welcome to the Weibull distribution calculator! Here you can quickly generate samples, determine probabilities, and find the values of the pdf, cdf, and quantile functions of the Weibull distribution.

Are you not sure what the Weibull distribution is? Do you want to know how to calculate the Weibull distribution? Then keep reading! We will explain to you what the Weibull distribution parameters mean and provide you with a few Weibull distribution formulas. As a bonus, we will also show you how to calculate the mean of the Weibull distribution, as well as its median, mode, variance, and skewness.

What is the Weibull distribution?

The Weibull distribution is a continuous probability distribution. It is very versatile, which is why it is widely used in mathematical modeling. You can find Weibull distribution examples in:

  • Survival analysis;
  • Electrica engineering;
  • Reliability engineering and failure analysis; and
  • Hydrology and weather forecasting.

The importance of the Weibull distribution comes from the fact that it can assume different shapes. The available shapes vary from an exponential distribution through to a nearly symmetric bell-shaped distribution to even a right-skewed distribution. A particular case of the Weibull distribution is the Rayleigh distribution. You can learn more about them in our dedicated Omni tools:

The next section provides details about the Weibull distribution formula.

💡 The Weibull distribution owes its name to a Swedish mathematician Waloddi Weibull, who described it in 1951. However, Maurice Fréchet studied this distribution more than twenty years earlier (in 1927).

Weibull distribution formula. Weibull distribution examples

So, how to calculate the Weibull distribution? Let's firstly look at its probability density function (pdf):

f(x) ⁣= ⁣{ ⁣ ⁣kxk1λke(x/λ)kx0 ⁣ ⁣0x<0\small f(x)\! =\! \left\{\begin{array}{ll} \!\! kx^{k-1}\lambda^{-k}\textrm{e}^{-(x/\lambda)^k} & x\geq 0 \\ \!\!0 & x < 0 \end{array} \right.

where:

  • λ > 0 is the scale parameter; and
  • k > 0 is the shape parameter.

The scale parameter, λ, is responsible for stretching/squeezing the distribution along the horizontal axis. If λ is large, then the distribution is more spread out. If λ is small, then the distribution is more concentrated.

Thanks to the presence of the shape parameter, k, the Weibull distribution can take on different shapes. The below Weibull distribution examples shows how the pdf of the Weibull distribution changes as we vary the value of k:

Weibull distribution pdf
Weibull distribution pdf Calimo / CC BY-SA

In the second plot you can see how the cumulative distribution function of the Weibull distribution (Weibull cdf) changes with the value of k:

Weibull distribution cdf
Weibull distribution cdf Calimo, after Philip Leitch. / CC BY-SA

How to calculate the Weibull distribution?

There are several different things related to the Weibull distribution that you may want to calculate. Let's go through them one by one.

  • How to calculate probabilities in the Weibull distribution:

    Let F stand for the cumulative distribution function of the Weibull distribution (Weibull cdf). The formula for the Weibull cdf is the following:

F(x) ⁣= ⁣{ ⁣ ⁣1e(x/λ)kx0 ⁣ ⁣0x<0\small F(x)\! =\! \left\{\begin{array}{ll} \!\! 1-\textrm{e}^{-(x/\lambda)^k} & x\geq 0 \\ \!\!0 & x < 0 \end{array} \right.

By the very definition of the cdf, we have

P(X ≤ x) = F(x)

As we deal with a continuous probability distribution, we have

P(X < x) = F(x)

and

P(X ≥ x) = P(X > x) = 1 - F(x).

  • How to calculate quantiles in the Weibull distribution?

The quantile function of the Weibull distribution reads:

Q(p)=λ(ln(1p))1/k,Q(p)=\lambda(-\ln(1-p))^{1/k},

where 0 ≤ p <1 Recall that the quantile function is the inverse of the cdf.

  • How to draw a sample from the Weibull distribution?

    It's easy to sample from the Weibull distribution, provided you can sample from the uniform distribution on (0,1).

    Namely, if X is a random variable following the uniform distribution on (0,1), then the random variable λ(lnX)1/k\lambda(-\ln X)^{1/k} follows the Weibull distribution with scale parameter λ and shape parameter k.

Common measures of the Weibull distribution

In this section, we give the formulas of the most common measures of central tendency (mode, median, and mean of the Weibull distribution), of spread (standard deviation and variance of the Weibull distribution), and of shape (skewness of the Weibull distribution).

  • Mean of the Weibull distribution:
λΓ(1+1k)\lambda\Gamma(1+\tfrac 1k)
  • Median of the Weibull distribution:
λ(ln2)1/k\lambda(\ln 2)^{1/k}
  • Mode of the Weibull distribution:
{λ(k1k)1/kk>10k1\left\{\begin{array}{ll} \lambda(\frac{k-1}{k})^{1/k} & k>1 \\ 0 & k\leq 1 \end{array} \right.
  • Variance of the Weibull distribution:
λ2[Γ(1+2k)Γ(1+1k)2]\lambda^2\big[\Gamma(1+\tfrac 2k)-\Gamma(1+\tfrac 1k)^2 \big]

As you surely remember, the standard deviation of the Weibull distribution is just the square root of the Weibull variance.

  • Skewness of the Weibull distribution:
Γ(1+3k)λ33μσ2μ3σ3\frac{\Gamma(1+\frac 3k)\lambda^3 - 3\mu\sigma^2 - \mu^3}{\sigma^3}

Interestingly, in the Weibull distribution the skewness depends only on the shape parameter k.

🙋 If you're not yet familiar with the statistical notion of skewness, check out our skewness calculator.

How to use this Weibull calculator?

Below, you can find an instruction about using the Weibull calculator:

  1. Choose the calculator mode. Our Weibull distribution calculator has six modes, which allow you to determine:

    • Probabilities;
    • Samples (of any length!);
    • Values of cdf;
    • Values of pdf;
    • Quantiles; and
    • A few of the most common distribution measures.
  2. Enter the parameters of the Weibull distribution you want to work with.

  3. You may need to enter more required data. For instance, for the sample generator mode enter the length of the sample, and for the pdf mode enter the argument x at which the Weibull pdf will be evaluated.

  4. Our Weibull distribution calculator returns the result in a blink of an eye! Enjoy! 😊

Anna Szczepanek, PhD
Mode
Probability calculator
Probability type
P(X ≤ x)
Scale parameter, λ
Shape parameter, k
Argument, x
P(X ≤ x)
Check out 31 similar distributions and plots calculators 🔔
Benford's lawBeta distributionBinomial distribution… 28 more
People also viewed…

Helium balloons

Wondering how many helium balloons it would take to lift you up in the air? Try this helium balloons calculator! 🎈

Range

The range calculator will quickly calculate the range of a given data set.

Sensitivity

This sensitivity calculator will introduce you to this key concept related to the accuracy of diagnostic tests.

Social Media Time Alternatives

Check what you could have accomplished if you get out of your social media bubble.
Copyright by Omni Calculator sp. z o.o.
Privacy, Cookies & Terms of Service