GARETH GRANTTECHNOLOGY · DATA · INNOVATION
Explore

14 / Distributions

Weibull distribution: reliability and changing failure risk

A Weibull lifetime model separates scale from hazard shape. It can describe decreasing, constant or increasing failure hazard and support reliability discussions when failure and censoring records are suitable.

IntermediateLive exploration + Python

The business question

Does an asset’s failure risk change as it ages?

  • Compare lifetime scenarios for non-repairable components.
  • Estimate survival to a stated operating age or the age at which a proportion of units has failed.
  • Inform maintenance and spares analysis while keeping the replacement-cost decision separate from the lifetime curve.

How the method works

A lifetime is measured from a defined starting point until a specified failure. Record operating exposure, failure mode and units still functioning when observation ends. Those surviving units are right-censored observations, not missing failures to discard. A two-parameter Weibull model assumes a zero starting location; another origin or a mixture of failure modes may need a different formulation.

The shape parameter β determines how conditional failure risk changes with age. Values below one imply decreasing hazard, one gives the exponential constant-hazard case, and values above one imply increasing hazard. Scale η is the age at which the model’s cumulative failure probability reaches approximately 63.2%; it is not generally the mean lifetime.

Survival at age t is exp(−(t/η)^β). A conditional risk for an asset already surviving to t compares survival at t+u with survival at t. That calculation answers a more useful maintenance question than treating every asset as new. Deciding a replacement interval still needs downtime consequences, inspection information, replacement cost, spare lead time and uncertainty in the estimated lifetime curve.

The calculation

S(t) = exp(−(t/η)^β); F(t) = 1 − S(t); P(fail by t+u | survive to t) = 1 − S(t+u)/S(t)
Read the symbols
SymbolMeaning
tOperating age from the defined starting point.
ηPositive scale or characteristic-life parameter in the same age units.
βPositive shape parameter controlling how hazard changes with age.
S(t), F(t)Survival probability and cumulative failure probability.

A worked business example

ILLUSTRATIVE SCENARIO

Illustrative pump component has a fitted planning scenario with shape 2 and scale 1,000 operating hours. The manager compares survival at 600 hours and the next 200 hours for a surviving component.

Inputs

  • β = 2; η = 1,000 operating hours.
  • Current age t = 600 hours; additional horizon u = 200 hours.
  • B10 means the age by which 10% of modelled units fail.

Work through the numbers

  1. Survival to 600 hours is exp(−(600/1,000)²) = exp(−0.36) = 0.6976763.
  2. Cumulative failure by 600 hours is 1 − 0.6976763 = 30.2324%.
  3. For a component surviving to 600, next-200-hour risk is 1 − exp(−(0.80² − 0.60²)) = 24.4216%.
  4. B10 = 1,000 × sqrt(−ln(0.90)) = 324.59 hours. The mean is η × Gamma(1+1/β) = 886.23 hours, not 1,000.
Survival at 600 h 69.77%; conditional failure risk over the next 200 h 24.42%; B10 324.59 h.

The increasing-hazard scenario gives an older surviving component a different risk from a new one. B10 describes a lifetime percentile; it is not automatically the cost-optimal replacement age.

Explore the decision

Explore changing failure hazard. The live explorer has its own example inputs; it is separate from the worked calculation above.

Enable JavaScript to use this calculator. The worked example and executable Python remain available.

Apply it at work

  1. Define the failure mode, exposure clock, starting origin and censoring information.
  2. Fit a suitable lifetime model with both failures and censored units; investigate different operating conditions.
  3. Report survival, conditional risks and parameter uncertainty for the decision horizon.
  4. Combine reliability with operating consequences and compare maintenance or spares policies before choosing one.

Check these assumptions

  • The modelled units share a relevant lifetime mechanism or explicitly modelled covariates.
  • The age origin and operating exposure are measured consistently.
  • Censoring is handled appropriately rather than dropping units that have not failed.
  • The stated two-parameter Weibull shape is suitable; repairs and recurrent events may need a different process model.

Common mistakes and how to avoid them

  • Calling η the mean life is incorrect except for the exponential shape-one case.
  • Fitting only failed units can exaggerate early failure risk by ignoring survivors.
  • A single curve across unrelated failure modes or duty cycles can mislead maintenance decisions.

How this can help the business

  • Maintenance discussions can use age-specific conditional risk rather than an undifferentiated average lifetime.
  • Spares and warranty planning can be tied to explicit lifetime percentiles while recognising the uncertainty and costs involved.
A decision rule to adapt

Use a lifetime curve that accounts for censoring and operating context, then choose policy through reliability-and-cost comparison rather than a percentile alone.

When to use another approach

Use exponential for defensible constant hazard, Kaplan–Meier for an empirical censored survival curve, or a recurrent-event model for repairable assets.

Reproduce the worked example in Python

The code is self-contained for this example. Dependencies and run instructions are included with the downloadable notebook.

Show executable code and recorded output
from scipy.stats import weibull_min
shape, scale = 2, 1000
s600 = weibull_min.sf(600,shape,scale=scale)
s800 = weibull_min.sf(800,shape,scale=scale)
print(f'Survival to 600 h: {s600:.2%}')
print(f'Next 200 h risk, given survival to 600: {1-s800/s600:.2%}')
print(f'B10 life: {weibull_min.ppf(0.10,shape,scale=scale):.2f} h')
print(f'Mean lifetime: {weibull_min.mean(shape,scale=scale):.2f} h')

Recorded output

Survival to 600 h: 69.77%
Next 200 h risk, given survival to 600: 24.42%
B10 life: 324.59 h
Mean lifetime: 886.23 h
Download all worked examples

Sources and further reading

Concepts are linked to primary teaching or technical sources. The business examples are illustrative applications, not reported client results.