Skip to content
You Start with one site
Amounts in Start with one site
Control, Measurement & Energy · Course

Weibull Analysis of Life Data

Lesson 3 of 10 26 min read
Found this useful?

A store keeper has a drawer of failed bearings and a notebook with the running hours of each, and nobody can say what the notebook means. One manager wants every bearing changed at 8,000 hours, another says that is waste, and both argue from the same twelve numbers. Meanwhile new control boards keep failing weeks after a repair campaign, and the proposal is to change them all again on a schedule. A list of failure times can settle both arguments, if it is plotted the right way. This lesson shows how to plot it, what the slope of the line says about the kind of failure, and how much a small sample can and cannot prove. #Weibull #LifeData #Reliability

Learning Objectives

By the end of this lesson, you will be able to:

  1. Explain what the shape and the scale of a Weibull distribution say about a part
  2. Construct a Weibull probability plot by hand from failure times and median ranks
  3. Calculate the shape, the characteristic life, the B10 life and the mean life from the fitted line
  4. Recognise censored data and say why units that are still running must stay in the analysis
  5. State the uncertainty of an estimate that comes from a dozen failures

Real-World System Problem: Twelve bearing lives and fifteen failed boards



The conveyor of the cold store runs on bearings of one type. Over several years twelve have failed, and the running hours of each at failure are in the maintenance record. The shortest life was 4,520 hours and the longest 23,162 hours, five times as long. The planner must decide whether to change these bearings at a fixed age, and that depends on one thing: does the chance of failure rise with age, or not?

The second record is of a different kind. After a repair campaign, fifteen control boards were replaced, and all fifteen replacements have since failed, some after a few days and some after almost two years. The supplier proposes to replace boards every 2,000 hours from now on.

A mean and a standard deviation of such a list say little, because lives are not spread like measurement errors. The tool for a list of lives is the Weibull distribution and its probability plot.

Weibull probability plot of each listControl boards15 failed, one type61 h ...... 15078 hConveyor bearings12 failed, one type4520 h ...... 23162 hshape β: early, random or wear-out?scale η: how long does the part last?
Two records from the same site

Fundamental Theory: The Weibull distribution and its plot



A distribution of lives

Take many parts of one type and run them all until they fail. The fraction that has failed by age is written . The fraction that is still working is the reliability . A life distribution is a formula for .

The hazard rate is the rate of failure among the parts that have reached age : at 0.0001 per hour, about 1 in 10,000 of the parts alive at that age fails in the next hour. It decides a maintenance policy: if it rises with age, an old part is more dangerous than a new one and changing it can help; if not, changing the part gains nothing.

Shape and scale

The Weibull distribution has two numbers. The scale (eta) is measured in hours and says how long the part lasts. The shape (beta) has no unit and says how the hazard rate changes with age.

The Weibull distribution

is the age, is the scale or characteristic life, and is the shape.

Put : the bracket becomes 1 for any , so . The characteristic life is the age by which 63.2 percent of the parts have failed, whatever the shape. It is not the mean life, nor a life most parts reach.

The shape is read from the exponent of the hazard rate, :

  • : the exponent is negative and the hazard rate falls with age. The weak items fail first and the survivors are the good ones. These are early failures.
  • : the hazard rate is constant, . The part does not age. This is the random pattern, and is then the mean time to failure.
  • : the hazard rate rises with age. This is wear-out. The larger is, the more closely the lives gather around one age.
β below 1β equal to 1β above 1hhhtttfalling:constant:rising:early failuresrandom failureswear-out
The shape decides how the hazard rate moves with age

So one formula serves for most life data: it covers all three patterns, and the data choose the pattern through .

Making the curve a straight line

A curve is hard to fit by eye and a straight line is easy. Start from and take the natural logarithm twice:

Write and . Then

This is a line with slope that crosses at , because means . So the Weibull probability plot, against , gives both numbers at once: the slope is the shape, and the age where the line crosses is the characteristic life.

y = ln(-ln(1-F))+1●●/0●/F=63.2%●●/-1●/●/slope = β-2●//-3●/x = ln(t)ln(η)
Reading the shape and the scale from the plot

Median ranks: the value of F for each failure

Each failure needs a value of . Sort the failure times from shortest to longest and number them to . The simple choice fails at once: it gives for the longest life, saying no part of this type could ever last longer, and does not exist.

The fair question: in the whole population, what fraction fails before the age of my -th failure? That fraction is not known, but its distribution is, and its median is the median rank. Bernard’s approximation is close enough for all practical work:

For the first of 12 failures this is , not . For the last it is , not 1.

Fitting the line

With the points on the plot, draw the line: by hand, a ruler and a judgement by eye are acceptable; for a repeatable result, use least squares:

Here and are the means of the plotted values and is the intercept of the line.

Look at the points before you trust the line. Points that follow a curve, or two groups with different slopes, are a message: usually two failure modes mixed in one record, or a time counted from the wrong start.

B10 life and mean life

The age by which a fraction of the parts has failed comes from solving :

The B10 life is this age for : 10 percent have failed and 90 percent are still working. Bearing makers state the life of a bearing in this form. For the formula gives the median life.

The mean life needs the gamma function , which Python and most spreadsheets provide:

Shape Mean life / B10 life / Fraction failed before the mean
0.52.0000.01175.7 %
11.0000.10563.2 %
20.8860.32554.4 %
3.50.9000.52649.9 %

The table shows why the mean alone can mislead: with the mean life is twice , yet one part in ten has failed by 1.1 percent of . A few very long lives lift the mean far above what most parts achieve.

Units that are still running: censored data

A real record is seldom complete. On the day of the analysis some units have failed and others are still running; some were removed for another reason (a planned overhaul, a change of design, a different failure mode). The life of such a unit is not known, only that it is longer than the hours it has run. Such a value is called censored, and the unit a suspension. It is like a race stopped at a fixed time: the runners still on the track are not losers, they simply have not finished.

unit0 h12,000 h1×2×3×4×5×6×7×8×9running10running11running12running× failedstill running (censored)
Twelve units when the study stops at 12,000 h

The mistake is to leave the running units out and analyse the eight failures as the whole sample. That throws away the best news in the record, four units past 12,000 hours, and the fitted life comes out far too short.

The plot keeps the running units by changing the ranks. In outline, the adjusted-rank method: sort all units, failed and running, by their hours. A running unit gets no point on the plot, but it changes the rank of every failure after it, because it could have failed at any later position. For each failure:

The adjusted rank then replaces in Bernard’s formula. A small example with five units shows the effect. The units ran 1,200 h (failed), 2,000 h (running), 2,600 h (failed), 3,100 h (running) and 4,000 h (failed). The first failure has rank 1. The second failure has the rank , not 2. The third has . The median ranks are 0.130, 0.361 and 0.708, and three points are plotted against a sample size of five.

For real work, with many censored units or decisions that cost money, use maximum likelihood. It finds the and under which the whole record is most probable: each failure enters with the chance of failing at its age, each running unit with the chance of surviving to its age. The script at the end of this lesson has such a fit in a few lines.

How far a small sample can be trusted

Most sites have five or ten failures of one type, not five hundred. A Weibull plot of ten points always gives a slope and a scale with two decimals, and the decimals mean very little.

Three rules keep the analysis honest:

  • State the number of failures beside every result.
  • Give a range and not one number alone. A simulation, as in Application 1, is a simple way to get the range.
  • Remember that and describe a population. They give the fraction of many bearings that fail by an age. They do not give the day on which the bearing in front of you will fail.

One more limit: a Weibull plot is for one failure mode of one type of part, with ages counted from new, not for the failure times of a whole repairable machine, where parts of many ages are mixed. For a machine, use the failure rate of the record.

Application 1: Conveyor bearings



Step 1: Median ranks and plot coordinates

Click to reveal the table of points
  1. Median ranks. With , . The first is and the last is . ✅

  2. Coordinates. For each failure, and . For the first: and . ✅

  3. The full table.

    (h)
    14,5200.05658.416-2.845
    25,4210.13718.598-1.914
    35,5810.21778.627-1.404
    47,9590.29848.982-1.037
    58,9690.37909.102-0.741
    69,4530.45979.154-0.485
    79,8930.54039.200-0.252
    810,0490.62109.215-0.030
    914,0060.70169.5470.190
    1016,1050.78239.6870.422
    1119,4450.86299.8750.687
    1223,1620.943510.0501.056

    Twelve points are ready for the plot. ✅

Step 2: Fit the line and read the shape and the scale

Click to reveal the fit
  1. Means. and . ✅

  2. Sums. and . ✅

  3. Shape.

    The shape is 2.13. It is above 1, so the hazard rate rises with age: these bearings wear out. ✅

  4. Intercept. . ✅

  5. Scale.

    Rounded to three figures, : by this age 63.2 percent of such bearings have failed. ✅

  6. Quality of the line. The squared correlation of the twelve points is . The points follow the line with some scatter and no clear curve. ✅

Step 3: B10 life and mean life

Click to reveal the lives
  1. B10 life. With and :

    One bearing in ten is expected to fail before about 4,430 h. ✅

  2. Median life. . Half of the bearings fail before about 10,700 h. ✅

  3. Mean life. , so

    The plain average of the twelve lives is 11,214 h, which agrees within 1 percent. ✅

  4. What the rising hazard means. From the fitted model, the chance that a bearing fails in its next 2,000 h is 1.9 percent when it is new, 15.6 percent when it has reached 6,000 h, and 28.9 percent when it has reached 12,000 h. An old bearing is a worse risk than a new one, so replacement at a fixed age can reduce failures. Whether it also reduces cost is a separate calculation. ✅

Step 4: Compare with the truth and check a second way

Click to reveal the comparison and the check
  1. Against the true model. The data came from and . The fit gives 2.13 and 12,750 h. The true B10 life is 5,482 h and the fit gives 4,427 h, which is 19 percent low. The true mean life is 12,411 h and the fit gives 11,295 h, 9 percent low. ✅

  2. A check by a different method. Maximum likelihood on the same twelve lives gives and . Two different methods agree, so the difference from the truth is not an error of the method. It is the sample. ✅

  3. How much twelve failures can say. The script repeats the whole study 5,000 times: it draws twelve lives from the true model and fits each set in the same way. In 90 percent of the sets lies between 1.37 and 3.56, between 11,300 and 17,300 h, and the B10 life between 2,630 and 8,150 h. The values of this record are well inside those ranges. Twelve failures cannot do better. ✅

  4. Is the wear-out real? The script also draws 5,000 sets of twelve lives from a constant rate (). Only 0.4 percent of them give a fitted shape of 2.13 or higher. A part with no wear-out would almost never produce this record. ✅

  5. Censored data, tried on the same record. Suppose the study had stopped at 12,000 h. Eight bearings had failed and four were still running. A plot of the eight failures alone gives and : a characteristic life about a third shorter than the fit of the full record. Maximum likelihood with the four running units included gives and . ✅

Application 2: Control boards after a repair campaign



Step 1: Plot and fit

Click to reveal the fit
  1. Median ranks. With , , from 0.0455 for the first failure to 0.9545 for the last. The eighth failure, the middle one, has exactly 0.5. ✅

  2. Means and sums. , , and . ✅

  3. Shape.

    The shape is 0.75, below 1. ✅

  4. Scale. The intercept is , so

    Rounded, . The points lie close to the line, with . ✅

Step 2: What the shape says

Click to reveal the reading
  1. Lives. The B10 life is . The median life is 2,965 h. The mean life is . ✅

  2. The mean misleads. The mean life is almost twice the median, and 68 percent of the boards fail before the mean. One board in ten fails in the first 240 h, which is ten days of running. ✅

  3. The hazard rate falls. From the fitted model, the hazard rate is 412 failures per million board hours at an age of 100 h, 230 at 1,000 h, 153 at 5,000 h and 128 at 10,000 h. ✅

  4. In plain numbers. A new board has a 26.5 percent chance of failing in its first 1,000 h. The record agrees: 4 of the 15 failed before 1,000 h. A board that has reached 2,000 h has a 16.7 percent chance of failing in its next 1,000 h. A board that has reached 8,000 h has 12.5 percent. The old board is the safer one. ✅

  5. What this says about the campaign. A falling hazard rate does not come from use. It comes from weak items that were present on the first day: a poor batch of boards, damage in handling or storage, a connector that was not seated, a setting that was wrong, or a cause on the site (heat in the panel, a supply disturbance) that the campaign did not remove. The question to ask is what was done to these boards before and during fitting. It is not how old they were. ✅

Step 3: Replacement on a schedule

Click to reveal the effect of the supplier’s proposal
  1. Run to failure. One board position sees one failure for each mean life: failures a year. ✅

  2. Replacement at a fixed age. With replacement at age , a board stays in place until it fails or reaches . The mean time in place is the area under from 0 to , and the fraction of boards that end by failure is . So

    The script evaluates the integral numerically. ✅

  3. Results.

    PolicyFailures a yearPlanned changes a year
    Run to failure1.450
    Replace at 4,000 h1.941.41
    Replace at 2,000 h2.253.33
    Replace at 1,000 h2.647.34

    The supplier’s proposal raises the failures from 1.45 to 2.25 a year for each position, an increase of 55 percent, and adds 3.33 planned changes a year. ✅

  4. Why. Every planned change removes a board that has survived its dangerous first weeks and fits a new board that has not. The schedule buys new early failures and pays for them with boards that were proven. ✅

Step 4: Check the evidence

Click to reveal the check
  1. Against the true model. The data came from and . The fit gives 0.75 and 4,840 h. The direction is right and the size is not exact. ✅

  2. A different method. Maximum likelihood on the same fifteen lives gives and . The two methods agree less well than they did for the bearings, and 0.91 is close to 1. ✅

  3. Could a constant rate give this record? The script draws 5,000 sets of fifteen lives from a constant rate () and fits each one. In 19.3 percent of the sets the fitted shape is 0.75 or lower. So this record alone does not prove early failures: about one record in five from parts with no early failures would look the same. ✅

  4. The decision holds in both cases. If the true shape is below 1, scheduled replacement adds failures, as the table shows. If it is exactly 1, a new board is no better than an old one, the failures stay the same, and every planned change is cost with no gain. In neither case does the record support the supplier’s proposal. ✅

Verify It in Python



The script generates both records, prints the table of plot coordinates for the bearings, fits both lines, and reproduces every number of the two applications, including the simulations and the censored example. It saves one figure with the two probability plots. The simulations use fixed seeds, so the output is the same on every run.

weibull_life_data.py
"""Weibull analysis of life data: conveyor bearings and control boards of one cold store."""
import numpy as np
import matplotlib.pyplot as plt
from scipy import stats
from scipy.integrate import quad
from scipy.optimize import minimize
from scipy.special import gamma
def bearing_lives(seed=3, n=12):
"""Running hours to failure of 12 conveyor bearings of one type (complete data).
True model: Weibull, shape 2.4, scale 14,000 h."""
rng = np.random.default_rng(seed)
return np.sort(14000.0 * rng.weibull(2.4, n)).round(0)
def early_failures(seed=14, n=15):
"""Hours to failure of 15 control boards replaced after a repair campaign.
True model: Weibull, shape 0.6, scale 3,000 h (early failures)."""
rng = np.random.default_rng(seed)
return np.sort(3000.0 * rng.weibull(0.6, n)).round(0)
def median_ranks(n):
"""Bernard's approximation for the i-th of n failures."""
i = np.arange(1, n + 1)
return (i - 0.3) / (n + 0.4)
def plot_fit(t):
"""Least-squares line on the probability plot (y on x). Returns beta, eta, r squared, x, y."""
t = np.sort(t)
x = np.log(t)
y = np.log(-np.log(1.0 - median_ranks(t.size)))
slope, intercept, r, _, _ = stats.linregress(x, y)
return slope, np.exp(-intercept / slope), r ** 2, x, y
def reliability(t, beta, eta):
return np.exp(-(t / eta) ** beta)
def b_life(p, beta, eta):
"""Age by which the fraction p has failed."""
return eta * (-np.log(1.0 - p)) ** (1.0 / beta)
def mean_life(beta, eta):
return eta * gamma(1.0 + 1.0 / beta)
def hazard(t, beta, eta):
return beta / eta * (t / eta) ** (beta - 1.0)
def fail_next(age, step, beta, eta):
"""Chance that a unit which has reached `age` fails in the next `step` hours."""
return 1.0 - reliability(age + step, beta, eta) / reliability(age, beta, eta)
def mle(t, failed=None):
"""Maximum likelihood fit. `failed` is False for units still running at time t."""
t = np.asarray(t, dtype=float)
failed = np.ones(t.size, dtype=bool) if failed is None else np.asarray(failed)
def negative_log_likelihood(p):
beta, eta = np.exp(p)
z = (t / eta) ** beta
log_density = np.log(beta / eta) + (beta - 1.0) * np.log(t[failed] / eta)
return -(log_density.sum() - z.sum())
start = np.log([1.0, t.mean()])
res = minimize(negative_log_likelihood, start, method="Nelder-Mead",
options={"xatol": 1e-9, "fatol": 1e-9, "maxiter": 4000})
return np.exp(res.x)
def report(name, t, true_beta, true_eta):
beta, eta, r2, x, y = plot_fit(t)
print(f" {name}: n = {t.size}")
print(f" least squares on the plot: slope {beta:.3f}, intercept {-beta * np.log(eta):.3f}, "
f"r squared {r2:.3f}")
print(f" beta {beta:.2f}, eta {eta:.0f} h (truth {true_beta} and {true_eta:.0f})")
print(f" B10 life {b_life(0.10, beta, eta):.0f} h, median {b_life(0.50, beta, eta):.0f} h, "
f"mean life {mean_life(beta, eta):.0f} h")
print(f" from the true model: B10 {b_life(0.10, true_beta, true_eta):.0f} h, "
f"mean {mean_life(true_beta, true_eta):.0f} h; "
f"sample mean {t.mean():.0f} h")
turned = stats.linregress(y, x) # the other regression: x on y
print(f" regression of x on y instead: beta {1.0 / turned.slope:.2f}, "
f"eta {np.exp(turned.intercept):.0f} h")
b_ml, e_ml = mle(t)
b_sp, _, e_sp = stats.weibull_min.fit(t, floc=0)
print(f" maximum likelihood: beta {b_ml:.2f}, eta {e_ml:.0f} h "
f"(scipy weibull_min.fit: {b_sp:.2f}, {e_sp:.0f})")
return beta, eta, x, y
# ---------- Application 1: the conveyor bearings ----------
print("Application 1: conveyor bearings")
bear = bearing_lives()
print(" lives (h): " + " ".join(f"{v:.0f}" for v in bear))
F = median_ranks(bear.size)
print(" i t (h) F x=ln t y")
for i, (t, f) in enumerate(zip(bear, F), start=1):
print(f" {i:2d} {t:6.0f} {f:.4f} {np.log(t):.3f} {np.log(-np.log(1 - f)):+.3f}")
b1, e1, x1, y1 = report("bearings", bear, 2.4, 14000.0)
for age in (0.0, 6000.0, 12000.0):
print(f" chance of failing in the next 2000 h at age {age:5.0f} h: "
f"{100 * fail_next(age, 2000.0, b1, e1):.1f} %")
# how far can 12 failures be trusted? repeat the whole study 5000 times
rng = np.random.default_rng(1)
sims = np.array([plot_fit(14000.0 * rng.weibull(2.4, 12))[:2] for _ in range(5000)])
lo_b, hi_b = np.percentile(sims[:, 0], [5, 95])
lo_e, hi_e = np.percentile(sims[:, 1], [5, 95])
b10s = b_life(0.10, sims[:, 0], sims[:, 1])
lo_10, hi_10 = np.percentile(b10s, [5, 95])
print(" 5000 samples of 12 from the true model, same fit:")
print(f" 90 % of the beta values lie between {lo_b:.2f} and {hi_b:.2f}")
print(f" 90 % of the eta values lie between {lo_e:.0f} and {hi_e:.0f} h")
print(f" 90 % of the B10 values lie between {lo_10:.0f} and {hi_10:.0f} h")
flat = np.array([plot_fit(rng.weibull(1.0, 12))[0] for _ in range(5000)])
print(f" 5000 samples of 12 from a constant rate (beta 1): fitted beta is "
f"{b1:.2f} or higher in {100 * (flat >= b1).mean():.1f} % of them")
# censored data: suppose the study had been stopped at 12,000 h
STOP = 12000.0
failed = bear <= STOP
t_cens = np.where(failed, bear, STOP)
print(f" stopped at {STOP:.0f} h: {failed.sum()} failed, {(~failed).sum()} still running")
bw, ew, _, _, _ = plot_fit(bear[failed])
print(f" wrong (failures only, n = {failed.sum()}): beta {bw:.2f}, eta {ew:.0f} h")
bc, ec = mle(t_cens, failed)
print(f" maximum likelihood with the {(~failed).sum()} running units: "
f"beta {bc:.2f}, eta {ec:.0f} h")
# ---------- Application 2: the control boards ----------
print("Application 2: control boards after the repair campaign")
board = early_failures()
print(" lives (h): " + " ".join(f"{v:.0f}" for v in board))
b2, e2, x2, y2 = report("boards", board, 0.6, 3000.0)
print(f" failed by 1000 h: model {100 * (1 - reliability(1000.0, b2, e2)):.1f} %, "
f"record {int((board <= 1000).sum())} of {board.size}")
for age in (100.0, 1000.0, 5000.0, 10000.0):
print(f" hazard at {age:5.0f} h: {1e6 * hazard(age, b2, e2):.0f} failures "
f"per million board hours")
for age in (0.0, 2000.0, 8000.0):
print(f" chance of failing in the next 1000 h at age {age:4.0f} h: "
f"{100 * fail_next(age, 1000.0, b2, e2):.1f} %")
# is a shape of 0.75 from 15 failures real evidence of early failures?
rng = np.random.default_rng(2)
null = np.array([plot_fit(rng.weibull(1.0, 15))[0] for _ in range(5000)])
print(f" 5000 samples of 15 from a constant rate (beta 1): fitted beta is "
f"{b2:.2f} or lower in {100 * (null <= b2).mean():.1f} % of them")
true = np.array([plot_fit(3000.0 * rng.weibull(0.6, 15))[0] for _ in range(5000)])
lo, hi = np.percentile(true, [5, 95])
print(f" 5000 samples of 15 from the true model: 90 % of the beta values lie "
f"between {lo:.2f} and {hi:.2f}")
# replace every board at a fixed age T: failures per board position per year (8400 h)
YEAR = 8400.0
print(f" run to failure: {YEAR / mean_life(b2, e2):.2f} failures per position per year")
for T in (4000.0, 2000.0, 1000.0):
cycle = quad(reliability, 0.0, T, args=(b2, e2))[0] # mean hours a board is in place
p_fail = 1.0 - reliability(T, b2, e2)
print(f" replace at {T:4.0f} h: {YEAR * p_fail / cycle:.2f} failures and "
f"{YEAR * (1 - p_fail) / cycle:.2f} planned changes per position per year")
# ---------- Plot ----------
fig, ax = plt.subplots(1, 2, figsize=(11, 5))
for a, x, y, b, e, name in ((ax[0], x1, y1, b1, e1, "Bearings"),
(ax[1], x2, y2, b2, e2, "Control boards")):
a.plot(x, y, "o")
xs = np.array([x.min() - 0.3, x.max() + 0.3])
a.plot(xs, b * (xs - np.log(e)), "-")
a.axhline(0.0, color="gray", linewidth=0.8, linestyle="--")
a.set_xlabel("x = ln(t), t in hours")
a.set_ylabel("y = ln(-ln(1 - F))")
a.set_title(f"{name}: beta {b:.2f}, eta {e:.0f} h")
fig.tight_layout()
fig.savefig("weibull_life_data.png", dpi=120)
print("Saved weibull_life_data.png")

Expected output

Application 1: conveyor bearings
lives (h): 4520 5421 5581 7959 8969 9453 9893 10049 14006 16105 19445 23162
i t (h) F x=ln t y
1 4520 0.0565 8.416 -2.845
2 5421 0.1371 8.598 -1.914
3 5581 0.2177 8.627 -1.404
4 7959 0.2984 8.982 -1.037
5 8969 0.3790 9.102 -0.741
6 9453 0.4597 9.154 -0.485
7 9893 0.5403 9.200 -0.252
8 10049 0.6210 9.215 -0.030
9 14006 0.7016 9.547 +0.190
10 16105 0.7823 9.687 +0.422
11 19445 0.8629 9.875 +0.687
12 23162 0.9435 10.050 +1.056
bearings: n = 12
least squares on the plot: slope 2.127, intercept -20.105, r squared 0.931
beta 2.13, eta 12753 h (truth 2.4 and 14000)
B10 life 4427 h, median 10734 h, mean life 11295 h
from the true model: B10 5482 h, mean 12411 h; sample mean 11214 h
regression of x on y instead: beta 2.28, eta 12536 h
maximum likelihood: beta 2.16, eta 12733 h (scipy weibull_min.fit: 2.16, 12733)
chance of failing in the next 2000 h at age 0 h: 1.9 %
chance of failing in the next 2000 h at age 6000 h: 15.6 %
chance of failing in the next 2000 h at age 12000 h: 28.9 %
5000 samples of 12 from the true model, same fit:
90 % of the beta values lie between 1.37 and 3.56
90 % of the eta values lie between 11306 and 17288 h
90 % of the B10 values lie between 2630 and 8146 h
5000 samples of 12 from a constant rate (beta 1): fitted beta is 2.13 or higher in 0.4 % of them
stopped at 12000 h: 8 failed, 4 still running
wrong (failures only, n = 8): beta 3.30, eta 8667 h
maximum likelihood with the 4 running units: beta 2.80, eta 11294 h
Application 2: control boards after the repair campaign
lives (h): 61 294 733 760 1444 1639 2018 3785 5258 5420 5606 7245 9923 12604 15078
boards: n = 15
least squares on the plot: slope 0.747, intercept -6.340, r squared 0.983
beta 0.75, eta 4842 h (truth 0.6 and 3000)
B10 life 238 h, median 2965 h, mean life 5783 h
from the true model: B10 71 h, mean 4514 h; sample mean 4791 h
regression of x on y instead: beta 0.76, eta 4782 h
maximum likelihood: beta 0.91, eta 4598 h (scipy weibull_min.fit: 0.91, 4598)
failed by 1000 h: model 26.5 %, record 4 of 15
hazard at 100 h: 412 failures per million board hours
hazard at 1000 h: 230 failures per million board hours
hazard at 5000 h: 153 failures per million board hours
hazard at 10000 h: 128 failures per million board hours
chance of failing in the next 1000 h at age 0 h: 26.5 %
chance of failing in the next 1000 h at age 2000 h: 16.7 %
chance of failing in the next 1000 h at age 8000 h: 12.5 %
5000 samples of 15 from a constant rate (beta 1): fitted beta is 0.75 or lower in 19.3 % of them
5000 samples of 15 from the true model: 90 % of the beta values lie between 0.36 and 0.85
run to failure: 1.45 failures per position per year
replace at 4000 h: 1.94 failures and 1.41 planned changes per position per year
replace at 2000 h: 2.25 failures and 3.33 planned changes per position per year
replace at 1000 h: 2.64 failures and 7.34 planned changes per position per year
Saved weibull_life_data.png

Common Mistakes



  • Using as the fraction failed. The last point then has and cannot be plotted. Use the median rank .
  • Reporting the characteristic life as the life of the part. By that age 63.2 percent have failed. Report the B10 life or another low percentile.
  • Leaving out the units that are still running. They are the longest lives in the record, and without them the fitted life is too short.
  • Mixing two failure modes, or two types of part, on one plot. The points bend, and the fitted shape belongs to neither mode.
  • Counting age in calendar days for a part that wears with running hours or with starts. The age must be in the unit that wears the part.

Summary



  • The Weibull distribution describes lives with a shape and a scale . A shape below 1 means early failures, 1 means a constant hazard rate, and above 1 means wear-out. By the age , 63.2 percent have failed.
  • On a plot of against , with median ranks for , Weibull data fall on a line. The slope is , and the line crosses zero at .
  • The twelve bearing lives gave and , a B10 life of about 4,430 h and a mean life of about 11,300 h. The truth was 2.4 and 14,000 h, and repeated samples of twelve put the B10 life anywhere from 2,630 to 8,150 h.
  • The fifteen board lives gave . Replacement at 2,000 h would raise the failures from 1.45 to 2.25 a year for each position.
  • Units that are still running must stay in the analysis, by adjusted ranks on the plot or by maximum likelihood.

Exercises



1. Five pump seals failed at 1,150, 1,900, 2,700, 3,400 and 4,600 h. Find the median rank of the first, the third and the fifth failure.

Answer

. The values are , and .

2. A fan bearing has and . Find the B10 life, the mean life and the reliability at 10,000 h. Use .

Answer

B10 life: . Mean life: . Reliability: .

3. A line drawn by eye on Weibull paper passes through 10 percent failed at 2,000 h and 60 percent failed at 9,000 h. Find and .

Answer

The points are , and , . Slope: . The line crosses at , so .

4. Fit the five seal lives of exercise 1 by least squares ( on ). Find , and the B10 life. What should be said with the result?

Answer

The points are and . Least squares gives and , and the B10 life is . With five failures the result is only a first indication of wear-out. It must be reported with the number of failures, and a range from a simulation would be wide.

References



  • R. B. Abernethy, The New Weibull Handbook, 5th edition, published by the author, 2006.
  • P. D. T. O’Connor and A. Kleyner, Practical Reliability Engineering, 5th edition, Wiley, 2012.
  • W. Q. Meeker and L. A. Escobar, Statistical Methods for Reliability Data, Wiley, 1998.


© 2021-2026 SiliconWit®. All rights reserved.
Watch it build: units still running
0 2,000 4,000 h 12345 failedrunning failedrunningfailed left outleft out life comes out too short could fail at any later age rank 1rank ?rank ? rank → F 1 → 0.1302.25 → 0.3614.125 → 0.708 maximum likelihood fails at tfails at tfails at t survives to tsurvives to t
  1. Five units: three failed, at 1,200, 2,600 and 4,000 h; two still run at 2,000 and 3,100 h.
  2. Leave the running units out and the best news in the record is lost: the life comes out too short.
  3. A running unit could fail at any later age, so it pushes up the rank of every failure after it.
  4. Adjusted ranks 1, 2.25 and 4.125 give F = 0.130, 0.361 and 0.708: three points, sample of five.
  5. Maximum likelihood uses every unit: the chance of failing at its age, or of surviving to it.
Predict first

Fifteen new control boards were fitted. Four failed in the first 1,000 hours. The others lasted longer, some for more than 12,000 hours. The supplier proposes to change every board when it reaches 2,000 hours. What happens to the number of failures a year?

See it: fit the line, read the lives

Shape β, the slope
Characteristic life η
B10 life
Median life
Mean life
Distance of the points from the line

Each point is one failure of the lesson's record, placed at its age and at its median rank (i − 0.3)/(n + 0.4). On these axes a Weibull life is a straight line. The slope of the line is β, and the line crosses 63.2 percent at the age η. The thin lines are the vertical distances that least squares makes as small as possible, and the last readout is the sum of their squares. Press Fit it by hand, move the two sliders until the line follows the points, and then compare with Best fit. A few failures do not fix the line closely: press the other button and judge whether the points clearly reject that line. The B10 life, the median and the mean are read from the line, so they are only as good as the line is. They describe many parts of this type, not the next one to fail.

63.2 %ηage, log scale steep: wear-outslope 1: randomshallow: early
study stops× failedstill running

Check yourself

Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.

1. Eight seals of one type have failed. What value of F is plotted for the third shortest life?

2. A fitted line gives β = 1.5 and η = 8,000 h. What is the B10 life?

3. A part has β = 0.5 and η = 4,000 h, so its mean life is 4,000 × Γ(3) = 8,000 h. What fraction of the parts fails before the mean life?

Conveyor bearings 12 failed, one type 4,520 h to 23,162 h Control boards 15 failed, one type 61 h to 15,078 h Weibull probability plot of each list shape β: early, random or wear-out? scale η: how long does the part last?
Two records of lives, one tool
β below 1 (0.5) h t falling: early failures β equal to 1 h t constant: random failures β above 1 (3) h t rising: wear-out example: h = (β/η)(t/η) to the power β − 1, same η
The shape decides how the hazard rate moves with age
−3 −2 −1 0 +1 8.5 9.0 9.5 10.0 y = ln(−ln(1 − F)) x = ln(t) F = 63.2 % ln(η) = 9.45 slope = β = 2.13 η = 12,753 h the twelve bearings, least squares line
Reading the shape and the scale from the plot
unit 0 h 12,000 h: study stops 1 4,520 h 2 5,421 h 3 5,581 h 4 7,959 h 5 8,969 h 6 9,453 h 7 9,893 h 8 10,049 h 9 running 10 running 11 running 12 running failed still running (censored)
Twelve units when the study stops at 12,000 h
Found this useful?

Discussion

    Comments show your name. Be kind, stay on the topic.