Conditional probability of failure
Failure Patterns
On this page
Every year the plant stops for a week, good parts are removed and new ones fitted “to be safe”, and the breakdowns continue as before. Some come in the first weeks after the shutdown, from parts that were new. The money was spent, the stock was lost anyway, and nobody can say which of the changed parts needed changing. The reason: a part’s age tells you about its next failure only for some kinds of failure. This lesson shows how to describe the way a part fails as a pattern, and how to calculate what a replacement interval does for each pattern. #Reliability #FailurePatterns #PreventiveMaintenance
Learning Objectives
By the end of this lesson, you will be able to:
- Define the hazard rate and distinguish it from the fraction of parts that have failed
- Calculate the probability that a part of a known age survives a further interval
- Describe the bathtub curve and the six failure patterns, and say what the published figures do and do not show
- Calculate the failures a year and the parts used a year for a fixed replacement interval
- Decide from the failure pattern whether scheduled replacement can help
Real-World System Problem: The yearly shutdown of a cold store
A cold store keeps its stock cold with two refrigeration compressors, takes water from a borehole pump, moves pallets on a conveyor with a gearbox, and has a standby generator. The site runs 8,400 hours a year (350 days of 24 hours). This course follows that site in every lesson.
Once a year the site stops and the maintenance team changes a list of parts: the coils of the solenoid valves, the drive belts of the conveyor, contactors, control boards. The list was written many years ago and has grown after every bad breakdown. Its rule: an old part is nearer to failure than a new one, so fit new parts.
The rule is true for a belt, which wears a little with every running hour, like a candle that burns down. It is false for a valve coil that fails when a voltage surge or a drop of water reaches it, because the surge does not ask how old the coil is. For that coil the yearly change buys nothing, and each new coil brings a small risk of its own: a faulty coil from the box, or a connector not pushed home. The store’s failure log shows the result.
To decide which parts belong on the list, the team needs one piece of knowledge about each part: how its chance of failing changes as it gets older.
Fundamental Theory: How the chance of failure changes with age
The question that age must answer
Take a part that is running now. The useful question is not “how long do these parts last?” but: given that this part has reached its present age, how likely is it to fail in the next period?
If the answer rises with age, the part wears out, and removing it before the answer becomes large prevents failures. If it is the same at every age, the part is as good at 6,000 hours as at 6 hours, and removing it changes nothing. If it falls with age, the survivors are the proven ones, and a new part is the most dangerous part you can fit. The quantity that carries this answer is the hazard rate.
The hazard rate
Start 1,000 identical parts together. Suppose 400 are still running at 4,000 hours, and 8 of those 400 fail in the next 100 hours.
The hazard rate at 4,000 hours is the failures in the period divided by the parts that were at risk and by the length of the period:
The parts that failed earlier are not in the bottom line: they cannot fail again, so they are not at risk. The hazard rate describes the survivors, and a part in service is always a survivor.
In symbols, let
Its unit is failures per hour. For a short period
Surviving a further interval
For a longer period the approximation
This one formula answers the question of the yearly shutdown for any part whose
A constant hazard rate has no memory
Some parts fail from events that come from outside at random: a surge, a stone, a blocked filter upstream, an operator error. The part does not get weaker while it waits. Its hazard rate is a constant,
The mean time between failures is
The age
At the MTBF,
A hazard rate that falls or rises: the Weibull model
One formula can describe falling, constant and rising hazard rates. In the Weibull model the reliability is
The scale
- With
the hazard rate falls with age: early failures. - With
it is constant and equal to : random failures. - With
it rises with age: wear-out.
The mean life is
The bathtub curve
The three behaviours one after the other give the best-known picture in reliability, named after its shape.
In the first region the hazard rate is high and falling: defects of manufacture, damage in transport or store, and mistakes of installation make parts fail soon and leave the population. In the middle region the rate is low and constant, from random outside events. In the last it rises as wear, fatigue or corrosion uses the part up.
The curve is a good way to remember the three behaviours, and a poor description of most real items, for three reasons:
- It is the sum of three different mechanisms. A simple part usually has one dominant mechanism, so it shows one region and not the other two.
- A machine is a collection of many parts with different lives. Once several have been replaced at different times, the ages in the machine are mixed, and the failures of the whole machine arrive at a rate close to constant even if every part inside it wears out.
- The picture suggests that every item has a wear-out age that a plan can stay ahead of. The evidence below says that for many items no such age can be found.
The six patterns
The best-known evidence is a study of airline equipment reported by Nowlan and Heap in 1978, the report that began reliability-centred maintenance. It sorted the failure behaviour of aircraft components into six patterns of hazard rate against age.
| Pattern | Shape of the hazard rate | Share commonly quoted from that study |
|---|---|---|
| A | High at first, constant, then rising (the bathtub) | 4 percent |
| B | Constant or slowly rising, then a clear wear-out zone | 2 percent |
| C | Slowly rising, with no clear wear-out age | 5 percent |
| D | Low when new, then quickly up to a constant level | 7 percent |
| E | Constant at every age | 14 percent |
| F | High when new, falling to a constant level | 68 percent |
Patterns A, B and C are related to age, and together they are commonly quoted as 11 percent. Patterns D, E and F are not, and are commonly quoted as 89 percent.
What each pattern means for maintenance
A scheduled replacement swaps a part of some age for a part of age zero: a gain only if the hazard rate at age zero is lower than at the age removed.
- Wear-out (B, and the right side of A). The new part has a much lower hazard rate than the old one. Replacement at a fixed age prevents failures, if the age is chosen before the rate has risen far.
- Slow rise (C). Replacement helps a little. Whether the gain pays for the parts and the work is a question of cost.
- Constant (E, and the level parts of the others). The new part has the same hazard rate as the old one. Replacement prevents nothing.
- Early failures (F, and the left side of A). The new part has a higher hazard rate than the old one. Replacement causes failures.
The last point is stronger than it looks. Even for a part with a constant hazard rate, replacing it is a chance to introduce a defect: the wrong part number, a seal pinched on assembly, a terminal left loose, dirt in an opened system. Every intrusive task carries this risk, so a task that prevents nothing is not harmless.
Counting failures under a replacement rule
To compare rules, count failures over a long time. Suppose a part is replaced when it fails, or when it reaches age
Long-run failure rate with replacement at age T
With no planned replacement (
For a constant hazard rate the integral is
What a pattern cannot tell you
A hazard rate describes a population of similar parts under similar conditions: the fraction of many parts that will fail, and the expected failures over many years. It does not give the day the belt on your conveyor will break. A probability of 0.26 means about 26 of 100 such parts fail in the period, and nothing more about one of them.
The pattern must also come from evidence. A site with five failures of a part cannot tell a shape of 1 from a shape of 2 with any confidence. Until the records can decide, the physical nature of the failure is the best guide: does anything in the part get used up with running hours?
Application 1: A valve coil that fails at random
Step 1: Survival of a new coil
Click to reveal the calculation
-
Hazard rate.
per hour. In a year of 8,400 hours that is failures a year. ✅ -
Survive 2,000 hours from new.
About 78 of 100 new coils reach 2,000 hours. ✅
Step 2: Survival of a coil that is 6,000 hours old
Click to reveal the calculation
-
Reliability at the two ages.
and . ✅ -
Conditional survival.
The old coil has exactly the same chance as the new one. The 6,000 hours behind it have told us nothing about the 2,000 hours ahead. ✅
Step 3: What the yearly replacement achieves
Click to reveal the calculation
-
Without planned replacement. Each coil runs to failure. The mean life is 8,000 hours, so the site has
failures a year and uses 1.05 coils a year. ✅ -
Chance that a coil reaches its planned change.
. About 65 percent of the coils fail before the shutdown that was meant to protect them. ✅ -
Mean service time with replacement at 8,400 hours.
✅
-
Failures a year.
The same 1.05 failures a year as with no replacement at all. ✅
-
Coils used a year.
. The plan uses 54 percent more coils and prevents no failure. ✅
Step 4: The new coil is not always a good coil
Click to reveal the calculation
-
Reliability of a newly fitted coil. It is a mixture of the two kinds:
✅
-
Early life. The chance of failing in the first 500 hours is
. For a coil with no defects it is 0.0606. The hazard rate of this mixture is high at first and falls as the defective coils leave: pattern F. ✅ -
Without planned replacement. The mean life is
hours, so there are failures a year. ✅ -
With replacement at 8,400 hours. The defective part of the integral is
hours, and the good part is hours, so the mean service time is 4,950 hours. The chance of failing before the change is . The plan now uses 1.697 coils a year. ✅
-
Compare. Yearly replacement raises the failures from 1.104 to 1.133 a year, an increase of 2.6 percent, and raises the coils used from 1.104 to 1.697 a year. Each planned change is one more draw from a box in which 1 coil in 20 is bad. ✅
Step 5: Check by simulation
Click to reveal the check
-
Method. The script draws random lives for 20,000 years of service and counts what happens, with no formula for the failure rate. ✅
-
Result. Run to failure: 1.054 failures and 1.054 coils a year. Replacement at 8,400 hours: 1.050 failures and 1.614 coils a year. The simulation agrees with the calculated 1.05 and 1.615 within its random scatter. ✅
Application 2: A conveyor belt that wears out
Step 1: The model and the mean life
Click to reveal the calculation
-
Reliability.
. ✅ -
Mean life.
hours. ✅ -
Hazard rate.
. At 6,000 hours it is per hour (108 per million hours). At 9,000 hours it is per hour. At age zero it is zero. The rate grows with the square of the age. ✅
Step 2: The next 2,000 hours at three ages
Click to reveal the calculation
-
New belt.
. Fewer than 1 new belt in 100 fails in its first 2,000 hours. ✅
-
Belt at 6,000 hours.
and . ✅
-
Belt at 9,000 hours.
and . ✅
-
Read the three results together. The same 2,000 hours carry a risk of 0.8 percent, 25.6 percent and 45.2 percent. For this part, age is strong information. Compare the coil, whose risk was 22.1 percent at every age. ✅
Step 3: Failures a year under three rules
Click to reveal the calculation
-
Run to failure.
failures a year and 0.941 belts a year. ✅ -
Replacement at 8,400 hours. The chance of failing before the change is
. The area under up to 8,400 hours has no simple formula, so the script integrates it: 7,340 hours. The site uses
belts a year. ✅ -
Replacement at 6,000 hours. The chance of failing before the change is
, and the mean service time is 5,695 hours. The site uses
belts a year. ✅ -
Compare. Against run to failure, the yearly change removes 46 percent of the failures for 22 percent more belts. The change at 6,000 hours removes 70 percent of the failures for 57 percent more belts. ✅
Step 4: Check with a limiting case and by simulation
Click to reveal the check
-
Limiting case. As the replacement age becomes very large, the chance of failing before the change goes to 1 and the mean service time goes to the mean life. The formula then gives
, the run to failure value. ✅ -
Simulation. The script draws random Weibull lives for 20,000 years with replacement at 6,000 hours: 0.288 failures and 1.475 belts a year, against the calculated 0.287 and 1.475. ✅
Verify It in Python
The script reproduces both applications, checks the replacement rules by simulation, and saves one plot with the three hazard rates and the conditional probability of failure against age.
"""Failure patterns: a constant-rate part and a wear-out part, with and without yearly replacement."""import numpy as npfrom scipy.integrate import quadfrom scipy.special import gammaimport matplotlib.pyplot as plt
YEAR = 8400.0 # running hours in a year at the siteSTEP = 2000.0 # the interval we ask about, hours
def weibull_R(t, beta, eta): """Probability of surviving to age t.""" return np.exp(-(t / eta) ** beta)
def weibull_h(t, beta, eta): """Hazard rate at age t, failures per hour.""" return beta / eta * (t / eta) ** (beta - 1.0)
def fail_next(age, step, R): """Probability of failing in the next `step` hours, for a part that has reached `age`.""" return 1.0 - R(age + step) / R(age)
def per_year(R, replace_age): """Mean hours in service, failures a year and parts a year, when the part is replaced at failure or on reaching replace_age, whichever comes first.""" service, _ = quad(R, 0.0, replace_age, points=[min(1000.0, replace_age / 2.0)]) return service, (1.0 - R(replace_age)) / service * YEAR, YEAR / service
def simulate(draw_life, replace_age, years, rng): """Count failures and parts used over many years of service.""" horizon = years * YEAR clock = 0.0; failures = 0; parts = 0 while clock < horizon: life = draw_life(rng) parts += 1 if life < replace_age: failures += 1 clock += life else: clock += replace_age return failures / years, parts / years
# ---------- Application 1: constant failure rate, MTBF 8,000 h ----------MTBF = 8000.0lam = 1.0 / MTBFR_exp = lambda t: np.exp(-lam * t)print("Application 1: constant failure rate")print(f" failure rate {lam:.6f} per hour, {lam * YEAR:.2f} failures a year")print(f" survive 2,000 h from new: {R_exp(STEP):.4f}")print(f" R(6,000) {R_exp(6000.0):.4f}, R(8,000) {R_exp(8000.0):.4f}")print(f" survive 2,000 h more at age 6,000 h: {1.0 - fail_next(6000.0, STEP, R_exp):.4f}")print(f" survive to the MTBF: {R_exp(MTBF):.4f}, survive one year: {R_exp(YEAR):.4f}")print(f" failures a year, run to failure: {YEAR / MTBF:.3f}")s, f, p = per_year(R_exp, YEAR)print(f" replaced at 8,400 h: mean service {s:.0f} h, {f:.3f} failures and {p:.3f} parts a year")
rng = np.random.default_rng(1)draw_exp = lambda r: r.exponential(MTBF)f0, p0 = simulate(draw_exp, 1e12, 20000, rng)f1, p1 = simulate(draw_exp, YEAR, 20000, rng)print(f" simulation, run to failure: {f0:.3f} failures and {p0:.3f} parts a year")print(f" simulation, replaced at 8,400 h: {f1:.3f} failures and {p1:.3f} parts a year")
# a new part is not always a good part: 5 % have a defect and a mean life of 200 hP_BAD, LIFE_BAD = 0.05, 200.0R_mix = lambda t: P_BAD * np.exp(-t / LIFE_BAD) + (1.0 - P_BAD) * np.exp(-lam * t)mean_mix = P_BAD * LIFE_BAD + (1.0 - P_BAD) * MTBFprint(f" with 5 % defective new parts: mean life {mean_mix:.0f} h")print(f" fail in the first 500 h: {1.0 - R_mix(500.0):.4f} " f"(a part with no defects: {1.0 - R_exp(500.0):.4f})")print(f" failures a year, run to failure: {YEAR / mean_mix:.3f}")s, f, p = per_year(R_mix, YEAR)print(f" replaced at 8,400 h: mean service {s:.0f} h, {f:.3f} failures and {p:.3f} parts a year")
# ---------- Application 2: wear-out, Weibull shape 3, scale 10,000 h ----------BETA, ETA = 3.0, 10000.0R_w = lambda t: weibull_R(t, BETA, ETA)mean_w = ETA * gamma(1.0 + 1.0 / BETA)print("Application 2: wear-out part, Weibull shape 3, scale 10,000 h")print(f" mean life {mean_w:.0f} h")for age in (0.0, 6000.0, 9000.0): print(f" age {age:5.0f} h: R {R_w(age):.4f}, hazard {weibull_h(age, BETA, ETA) * 1e6:6.1f} " f"per million hours, fail in next 2,000 h {fail_next(age, STEP, R_w):.4f}")print(f" failures a year, run to failure: {YEAR / mean_w:.3f}")for T in (YEAR, 6000.0, 4000.0): s, f, p = per_year(R_w, T) print(f" replaced at {T:5.0f} h: fail before replacement {1.0 - R_w(T):.4f}, " f"mean service {s:.0f} h, {f:.3f} failures and {p:.3f} parts a year")draw_w = lambda r: ETA * r.weibull(BETA)f2, p2 = simulate(draw_w, 6000.0, 20000, rng)print(f" simulation, replaced at 6,000 h: {f2:.3f} failures and {p2:.3f} parts a year")
# ---------- Plot ----------t = np.linspace(1.0, 14000.0, 400)ages = np.linspace(0.0, 12000.0, 200)fig, ax = plt.subplots(2, 1, figsize=(8, 8))ax[0].plot(t, np.full(t.size, lam * 1e6), label="constant rate, MTBF 8,000 h")ax[0].plot(t, weibull_h(t, BETA, ETA) * 1e6, label="wear-out, shape 3, scale 10,000 h")ax[0].plot(t, weibull_h(t, 0.6, 3000.0) * 1e6, label="early failures, shape 0.6, scale 3,000 h")ax[0].set_ylim(0.0, 700.0)ax[0].set_xlabel("age (h)")ax[0].set_ylabel("hazard rate (failures per million hours)")ax[0].set_title("Three failure patterns")ax[0].legend()ax[1].plot(ages, [fail_next(a, STEP, R_exp) for a in ages], label="constant rate")ax[1].plot(ages, [fail_next(a, STEP, R_w) for a in ages], label="wear-out")ax[1].set_xlabel("age already reached (h)")ax[1].set_ylabel("probability of failing in the next 2,000 h")ax[1].set_title("What age tells you about the next 2,000 hours")ax[1].legend()fig.tight_layout()fig.savefig("failure_patterns.png", dpi=120)print("Saved failure_patterns.png")Expected output
Application 1: constant failure rate failure rate 0.000125 per hour, 1.05 failures a year survive 2,000 h from new: 0.7788 R(6,000) 0.4724, R(8,000) 0.3679 survive 2,000 h more at age 6,000 h: 0.7788 survive to the MTBF: 0.3679, survive one year: 0.3499 failures a year, run to failure: 1.050 replaced at 8,400 h: mean service 5200 h, 1.050 failures and 1.615 parts a year simulation, run to failure: 1.054 failures and 1.054 parts a year simulation, replaced at 8,400 h: 1.050 failures and 1.614 parts a year with 5 % defective new parts: mean life 7610 h fail in the first 500 h: 0.1035 (a part with no defects: 0.0606) failures a year, run to failure: 1.104 replaced at 8,400 h: mean service 4950 h, 1.133 failures and 1.697 parts a yearApplication 2: wear-out part, Weibull shape 3, scale 10,000 h mean life 8930 h age 0 h: R 1.0000, hazard 0.0 per million hours, fail in next 2,000 h 0.0080 age 6000 h: R 0.8057, hazard 108.0 per million hours, fail in next 2,000 h 0.2562 age 9000 h: R 0.4824, hazard 243.0 per million hours, fail in next 2,000 h 0.4523 failures a year, run to failure: 0.941 replaced at 8400 h: fail before replacement 0.4472, mean service 7340 h, 0.512 failures and 1.144 parts a year replaced at 6000 h: fail before replacement 0.1943, mean service 5695 h, 0.287 failures and 1.475 parts a year replaced at 4000 h: fail before replacement 0.0620, mean service 3937 h, 0.132 failures and 2.134 parts a year simulation, replaced at 6,000 h: 0.288 failures and 1.475 parts a yearSaved failure_patterns.pngCommon Mistakes
- Reading the MTBF as a life. With a constant hazard rate only 37 percent of parts reach the MTBF, and a part that has reached it is no nearer to failure than a new one.
- Using
for a part that is already at age . The part in service is a survivor, so divide by . - Assuming that a new part is always safer than an old one. It is safer only for wear-out. For random failures it is equal, and where new parts or the fitting work bring defects it is worse.
- Applying the percentages of the aircraft study to another industry as if they were measured there. Use your own records and the physical nature of the failure.
- Treating a probability for a population as a forecast for one machine. A risk of 26 percent in the next 2,000 hours does not say when this belt will break.
Summary
- The hazard rate is the rate of failure among the parts that are still running. It answers the question that matters for a part in service.
- The probability that a part of age
fails in a further interval is . - A constant hazard rate has no memory. The coil with an MTBF of 8,000 hours has a 77.9 percent chance of surviving 2,000 hours at any age, and yearly replacement leaves its 1.05 failures a year unchanged while using 54 percent more coils.
- A rising hazard rate makes age useful. The belt with
and hours has a risk of 0.8, 25.6 and 45.2 percent in the next 2,000 hours at ages 0, 6,000 and 9,000 hours, and replacement at 6,000 hours removes 70 percent of its failures. - The bathtub curve joins early failures, random failures and wear-out in one picture, but few real items show all three. The figures commonly quoted from the Nowlan and Heap study of aircraft components put 11 percent of items in the age-related patterns, and other industries differ.
- Scheduled replacement helps only where the hazard rate rises. Elsewhere it prevents nothing, and it can add failures.
Exercises
1. A sensor has a constant hazard rate and an MTBF of 15,000 hours. Find the probability that it survives 4,000 hours. Then find the probability that a sensor already 10,000 hours old survives a further 4,000 hours.
Answer
2. A seal follows a Weibull model with
Answer
3. Control boards fitted after a repair campaign follow a Weibull model with
Answer
New:
4. The belt of Application 2 (
Answer
References
- F. S. Nowlan and H. F. Heap, Reliability-Centered Maintenance, United Air Lines, report for the US Department of Defense, 1978.
- P. D. T. O’Connor and A. Kleyner, Practical Reliability Engineering, 5th edition, Wiley, 2012.
- J. Moubray, Reliability-centred Maintenance, 2nd edition, Butterworth-Heinemann, 1997.
- R. B. Abernethy, The New Weibull Handbook, 5th edition, published by the author, 2006.
- 1,000 parts start together. At 4,000 h, 400 still run, and 8 of them fail in the next 100 h.
- Divide the 8 by the 400 at risk and by 100 h: the hazard rate is 0.0002 per hour.
- The 600 that failed earlier cannot fail again, so they are not in the bottom line.
- The same from the curves: f = 0.00008 per hour, R = 0.4, so h = f / R = 0.0002.
- Divide by the 1,000 that started and you get f, 0.00008: 2.5 times too small.
The coil of a valve fails only from random electrical events. One coil is new. Another coil of the same type has already run 6,000 hours and still works. Which coil is more likely to fail in the next 2,000 hours?
The upper curve is the hazard rate: the rate of failure among the parts that are still running. The lower curve is the fraction that survives from new to each age. The shaded band is the interval you ask about, and you can also drag it along the age axis. On the survival curve, the bracket is the fall inside the band. Divide that fall by the height of the curve at the start of the band and you have the chance that a part of this age fails in the interval. The three buttons are the lesson's parts: the valve coil (β = 1, η = 8,000 h), the conveyor belt (β = 3, η = 10,000 h) and the control boards (β = 0.6, η = 3,000 h, with an interval of 500 h). The vertical axis of the hazard rate changes its scale with the settings, so read its numbers. All values are fractions of many similar parts. They do not say when one part will fail.
Check yourself
Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.
1. A seal follows a Weibull model with β = 2 and η = 10,000 h, so R(5,000) = 0.7788 and R(10,000) = 0.3679. A seal has reached 5,000 h. What is the chance that it fails in the next 5,000 h?
2. A part has a constant hazard rate and a mean time between failures of 8,000 h. Of 100 new parts, about how many are still running at 8,000 h?
3. Control boards follow a Weibull model with β = 0.6 and η = 3,000 h. A board has run 2,000 h and works. The plan is to change it for a new board now. What does the change do to the chance of a failure in the next 500 h?
Discussion
No comments yet. Questions, results from your own build, a better way to explain it: all welcome.
My notes on this page
Kept on this device only. Nothing is sent anywhere.
Tip: select words in the lesson, or tap a figure or an equation, to put a note right there.
Notes on earlier wording
The lesson has changed and these words are no longer in it. Your notes are kept, with the words you chose.