Estimate Weibull measures with formulas and visual insights. Compare density, distribution, quantiles, and random samples. Export clean results for study, audits, reporting, and reuse.
The page uses a single-column flow, while the form fields use 3 columns on large screens, 2 on smaller screens, and 1 on mobile.
f(x) = (k / λ) (x / λ)k-1 e-(x/λ)k, for x ≥ 0
F(x) = 1 - e-(x/λ)k
S(x) = e-(x/λ)kh(x) = f(x) / S(x)
Q(p) = λ[-ln(1 - p)]1/k for lower-tail probabilities
E(X) = λΓ(1 + 1/k)Var(X) = λ²[Γ(1 + 2/k) - Γ²(1 + 1/k)]
rweibull().Illustrative values using shape = 1.8 and scale = 12.
| x | Shape | Scale | CDF | Survival | |
|---|---|---|---|---|---|
| 5 | 1.8 | 12 | 0.060547 | 0.186845 | 0.813155 |
| 10 | 1.8 | 12 | 0.063089 | 0.513362 | 0.486638 |
| 15 | 1.8 | 12 | 0.040240 | 0.775595 | 0.224405 |
| 20 | 1.8 | 12 | 0.018381 | 0.918569 | 0.081431 |
Start with the density f(x) = (k/λ)(x/λ)^(k-1)e^(-(x/λ)^k). For the r-th raw moment,
compute E(X^r) = ∫ x^r f(x) dx from 0 to ∞.
Substitute y = (x/λ)^k. Then x = λy^(1/k) and dx = (λ/k)y^(1/k - 1)dy.
After simplification, the integral becomes λ^r ∫ y^(r/k)e^-y dy.
That integral is the gamma function, so E(X^r) = λ^r Γ(1 + r/k).
Setting r = 1 gives the mean:
E(X) = λΓ(1 + 1/k).
Setting r = 2 gives E(X²) = λ²Γ(1 + 2/k). Therefore,
Var(X) = E(X²) - [E(X)]² = λ²[Γ(1 + 2/k) - Γ²(1 + 1/k)].
The shape parameter controls the curve form and failure pattern. Values below 1 suggest decreasing hazard, 1 gives a constant hazard, and values above 1 produce an increasing hazard over time.
The scale parameter stretches or compresses the distribution horizontally. Larger scale values move the distribution to the right and increase typical lifetimes, lengths, or waiting times.
This calculator mirrors the core R workflow: dweibull() for density, pweibull() for cumulative probability, qweibull() for quantiles, and rweibull() for simulation.
Upper-tail probability is useful in reliability and survival work. It returns the chance that a value exceeds x, which is often interpreted as remaining life or survival beyond a threshold.
When the shape is less than or equal to 1, the density is highest at the left boundary. In that case, the most likely value occurs at zero, so the mode is reported as 0.
The hazard rate is the instantaneous event rate at x, given survival up to x. It equals density divided by survival and is widely used in reliability, maintenance, and time-to-failure analysis.
Random samples help compare theory with simulation. They are useful for teaching, Monte Carlo checks, stress testing, and exploring how sample means vary around the theoretical mean.
The CSV export includes inputs, computed outputs, and simulated samples. The PDF export captures the visible result area, including summary cards, tables, and charts for quick sharing or records.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.