The Weibull distribution describes waiting times and life spans for systems exhibiting a power-law failure rate. It is parameterized by a shape value and a scale parameter . Its probability density is for . Varying produces a wide family of curves, from exponential decay at to bell-shaped forms around and beyond.
The cumulative distribution, giving the probability that a random variable does not exceed a threshold, is . Reliability engineers use these formulas to model component failure and plan maintenance schedules. Because the Weibull law covers sub-exponential and super-exponential behaviors depending on , it provides flexibility beyond the simpler exponential distribution.
When lies below one, the hazard rate decreases with time, representing scenarios like early-life failures that become less likely as the device proves itself. For , the hazard increases, modeling wear-out processes such as fatigue. By adjusting , we rescale the distribution to represent typical life expectancy. In fields as diverse as weather forecasting, materials science, and insurance, the Weibull distribution helps quantify risk over time.
This calculator lets you plug in shape and scale values along with a measurement point . Upon submission, it returns the PDF and CDF at that point. The implementation uses straightforward math.js expressions. Although seemingly simple, understanding how and interact fosters intuition for reliability modeling and probability theory.
Try experimenting with values: set and , then vary to see how the cumulative probability rises sharply after the scale threshold. With a smaller shape parameter, the tail becomes heavier, implying occasional very large values. These insights can aid decisions about replacement schedules or risk mitigation strategies.
Behind the scenes, the distribution’s moments can be computed in closed form. The expected value is . Likewise, the variance involves . Such formulas reveal the interplay between shape and spread.
The hazard function h(x) for a Weibull variable equals . This expression shows how failure rate evolves over time. When the exponent is negative, so diminishes—useful for modeling infant-mortality effects. At the hazard is constant and the distribution reduces to the exponential case. For the hazard grows with , matching wear-out processes where aging components become more likely to fail.
Shape k | Hazard Behavior | Example Use |
---|---|---|
k < 1 | Decreasing | Electronics with early defects |
k = 1 | Constant | Radioactive decay |
k > 1 | Increasing | Mechanical wear and tear |
Field data often arrives as a list of observed lifetimes. One quick way to estimate parameters is the method of moments. Compute the sample mean and sample variance . You then solve and numerically. For more precision, statisticians turn to maximum likelihood estimation, which iteratively adjusts and to maximize the probability of the observed data.
Suppose laboratory testing shows a part follows a Weibull distribution with and . To find the probability it lasts less than eight units of time, enter , , and . The calculator reports CDF ≈ 0.486, meaning roughly 49% of parts fail before eight time units. If maintenance costs are high, you might choose to replace parts proactively at six units, where the CDF drops to about 0.35, balancing reliability with expense.
By experimenting with different parameter pairs, engineers can build replacement schedules or warranty policies. The ability to model decreasing or increasing hazard rates makes the Weibull distribution a versatile choice across disciplines, from predicting wind-speeds for energy projects to estimating material fatigue in aerospace components.
The scale parameter stretches or compresses the distribution along the horizontal axis. A larger shifts the bulk of the distribution to the right, indicating longer lifetimes or waiting times. The shape parameter controls curvature: when the density is steep near zero and long-tailed, while introduces a peak. Understanding this interplay helps practitioners choose parameter values that mimic empirical data. For wind speed modeling, a between 2 and 3 often fits observations; for material fatigue, values greater than 3 may be appropriate.
The Weibull distribution subsumes several familiar families. Setting yields the exponential distribution with constant hazard. A value of produces the Rayleigh distribution, used for modeling the magnitude of a two-dimensional vector with normally distributed components. As approaches infinity, the distribution converges to a degenerate distribution at , reflecting near certainty about lifetime. Recognizing these connections provides shortcuts when selecting models: if your data seem exponential, the Weibull still works but with .
Solving for gives the quantile function . The median is simply . Although this calculator focuses on PDF and CDF, knowing the quantile function enables inverse calculations such as determining a replacement time that limits failure probability to a specified level.
Before adopting a Weibull model, plot your empirical failure data on Weibull probability paper—a specialized graph where a straight line suggests a good fit. Deviations from linearity may indicate multiple failure modes or that another distribution is more appropriate. When interpreting the shape parameter, remember that real systems often exhibit a combination of infant mortality and wear-out. Analysts sometimes model these phases separately with a mixture of Weibull distributions rather than forcing a single set of parameters to fit everything.
Most statistical packages include Weibull routines, but the formulas are simple enough for spreadsheet implementation. To simulate random variates, generate a uniform random number in and compute . This method is useful for Monte Carlo studies of system reliability or risk assessment.
Swedish engineer Waloddi Weibull introduced the distribution in 1939 while studying material strength. His work generalized earlier ideas by Maurice Frechet and stretched the toolbox of reliability engineers. Decades later, the distribution bears his name and remains central in failure analysis textbooks, illustrating how applied needs can drive fundamental advances in probability theory.
Despite its flexibility, the Weibull distribution assumes a single continuous failure mechanism. If your data show a bathtub-shaped hazard—high early failures, low mid-life failures, and rising wear-out—the pure Weibull may not suffice. In such cases, mixtures or piecewise models provide better fidelity. Also consider the quality of your data: censored observations, where some items have not yet failed, require specialized estimation techniques like maximum likelihood with censoring or Bayesian methods.
With just two parameters, the Weibull distribution captures a wide range of behaviors from early failure to gradual aging. This calculator's instant PDF, CDF, survival probability, and moment computations make it a handy reference when exploring reliability problems or teaching probability. By experimenting with different shapes and scales, you can build intuition for how systems deteriorate and how to plan maintenance or risk mitigation accordingly.
Compute probability density and cumulative probability for the normal distribution.
Evaluate probability density and cumulative probability for the gamma distribution.
Evaluate the beta distribution's PDF and CDF for given parameters.