Weibull Distribution Calculator
Table of contents
What is the Weibull distribution?Weibull distribution formula. Weibull distribution examplesHow to calculate the Weibull distribution?Common measures of the Weibull distributionHow to use this Weibull calculator?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):
where:
λ > 0
is the scale parameter; andk > 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
:
In the second plot you can see how the cumulative distribution function of the Weibull distribution (Weibull cdf) changes with the value of k
:
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:
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:
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 follows the Weibull distribution with scale parameterλ
and shape parameterk
.
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:
- Median of the Weibull distribution:
- Mode of the Weibull distribution:
- Variance of the Weibull distribution:
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:
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:
-
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.
-
Enter the parameters of the Weibull distribution you want to work with.
-
You may need to enter more required data. For instance, for the
sample generator mode
enter the length of the sample, and for thepdf mode
enter the argumentx
at which the Weibull pdf will be evaluated. -
Our Weibull distribution calculator returns the result in a blink of an eye! Enjoy! 😊