Free Weibull Distribution Calculator
Enter k, λ, x
The Weibull distribution is a flexible continuous probability distribution that can model a wide variety of data shapes, from exponential decay to near‑symmetry. This free online Weibull Distribution Calculator lets you compute probabilities, generate random samples, evaluate the pdf and cdf, determine quantiles, and obtain key statistical measures—all in one place. Below we cover the distribution’s parameters, core formulas, and how to use the tool.
Parameters
Two positive parameters define the distribution:
- Shape – determines the curve’s form. For the distribution reduces to the exponential; for it becomes the Rayleigh distribution; with the pdf is nearly symmetric. Values between give various right‑skewed shapes.
- Scale – stretches or compresses the distribution along the x‑axis. A larger spreads the distribution out, while a smaller one concentrates it near zero.
Because controls the hazard rate (decreasing for , constant for , increasing for ), the Weibull distribution is especially popular in reliability engineering, survival analysis, hydrology, and electrical system modeling.
Probability Density Function (PDF)
For ,
Cumulative Distribution Function (CDF)
The CDF simplifies to a closed form:
Hence and .
Quantile Function and Sampling
The quantile function (inverse CDF) for is
To generate a random Weibull value, draw and set
This method is used by the calculator’s sample generation mode.
Common Statistical Measures
Let denote the gamma function. The main measures are:
| Measure | Formula |
|---|---|
| Mean | |
| Median | |
| Mode (when ) | (if the mode is 0) |
| Variance | |
| Standard deviation | |
| Skewness |
Skewness depends only on ; for example, at it is about 0.631, and near it approaches zero.
Using the Calculator
The tool offers six operating modes:
- Probabilities – obtain or .
- Samples – generate any desired number of random draws.
- CDF – evaluate at a given .
- PDF – evaluate at a given .
- Quantiles – find the value that corresponds to a specified probability.
- Distribution Measures – view mean, median, mode, variance, and skewness.
To get a result, select the mode, enter the Weibull parameters and , and fill in any additional required fields (such as sample size or argument ). The calculator then instantly returns the answer. With this free online Weibull Distribution Calculator you can explore the distribution’s behavior without manual computation.
FAQ
1. What do the shape and scale parameters of the Weibull distribution mean?
The shape parameter k controls the form of the distribution (e.g., k=2 gives the Rayleigh distribution, and k≈3.6 gives a near‑symmetric bell shape). The scale parameter λ stretches or compresses the distribution along the x‑axis: larger λ spreads it out, smaller λ concentrates it closer to zero.
2. How can I calculate the probability P(X ≤ x) for a Weibull distribution?
Use the cumulative distribution function: P(X ≤ x) = F(x) = 1 − e^{−(x/λ)^k}. Simply plug in the scale λ, shape k, and the value x into this formula. The calculator can perform this evaluation for you in the 'Probabilities' or 'CDF' mode.
3. What is the formula for the mean of a Weibull distribution?
The mean (expected value) is given by μ = λ · Γ(1 + 1/k), where Γ denotes the gamma function. For example, when k=1 the mean equals λ, and when k=2 the mean is λ·√π/2.
4. Can I generate random samples from a Weibull distribution with this tool?
Yes. Select the 'Samples' mode, enter the scale λ and shape k, and specify the desired sample size. The tool uses the inverse‑CDF method: X = λ(−ln U)^{1/k} where U is uniform on (0,1).
5. When is the Weibull distribution the same as the exponential distribution?
When the shape parameter k equals 1. In that case the pdf reduces to f(x) = (1/λ) e^{−x/λ}, which is exactly the exponential distribution with rate 1/λ.
How to Use
- Enter your values.
- The result updates automatically.
- Use the result for your needs.