03 — Random and systematic

Two kinds of cause.

+ The questionWhy can a resistor be given a failure rate when a line of code cannot?

Copies that fail together

Given the same input, two identical copies of a program fail together every time, and no failure rate can describe failures of that kind. A failure rate is the share of parts still working that fail in each hour, and Chapter 10 gives its units. The number means something because parts of one kind fail at scattered times, each for reasons of its own, so that over many parts and many hours the count settles to a steady value. The copies of a program meet neither condition. They hold the same instructions, so the input that defeats one copy defeats the other, and neither copy fails without the other.

Chapter 1 introduced the incubator's protective channel, and Chapter 4 sets it up in full. The channel watches the air with its own thermistor, compares the reading with a limit and opens a cutout in the heater's supply when the air passes that limit. The limit is 38 °C for set temperatures below 37 °C, in the figures that Chapter 4 takes from one maker's filing with the US Food and Drug Administration. The channel can lose its protection in two ways, and the first is the drift of Chapter 1: the thermistor's resistance creeps until the thermistor reads the air too low, and the channel acts late or not at all. The drift comes from slow change in the part's material, and it reaches each incubator at its own time.

The second way is built in. In an invented example, the comparison runs as firmware, the program fixed in the channel's processor, and the requirement gives the limit as 100.4 °F, which is 38 °C in degrees Fahrenheit. If the number 100.4 is typed into firmware that compares in degrees Celsius, the line of code that holds the limit makes the channel trip only above 100.4 °C, a temperature no incubator air reaches. The thermistor still reads truly, the processor runs, and the cutout would open if told to. Nothing shows in daily use, because the protective channel does nothing while the control loop holds the air at the set temperature. When the control loop fails and the air climbs past 38 °C, the cutout stays closed, in every incubator that runs that firmware and on every such occasion.

Wear makes hardware fail at random

Resistors, the thermistor among them, fail because their materials change. Heat, current, voltage, moisture and repeated operation drive slow physical and chemical processes in a part: a ceramic cracks, insulation breaks down, relay contacts wear a little with each operation. The harder a part is driven, the faster those processes run, so stress sets the pace of aging. Makers use that link to estimate long lives from short tests. TE Connectivity, a sensor maker, reports in a 2021 white paper that it aged its own thermistor chips unpowered at 50 to 150 °C for up to 10,080 hours, about 14 months, and extrapolated their drift to 30 °C with a model of how such change speeds up with heat.

Stress sets how fast a part ages but not the moment at which it fails. Parts made to one drawing still differ in their small flaws, and each degrades from its own starting point at its own speed, so the hour at which any one part fails cannot be predicted. Across many parts the scatter becomes regular: of a large number working under the same stress, a steady share fails in each hour, and that share is the failure rate. The rate belongs to a population under stated conditions, not to any one part. IEC 61508:2010, the general standard for functional safety, calls such a failure a random hardware failure, one "occurring at a random time, which results from one or more of the possible degradation mechanisms in the hardware".

The failure rate is not the same at every age. Among new parts, those with flaws that escaped manufacture fail early, so the rate starts high and falls as those parts leave the population. The survivors fail at a roughly steady rate through their useful life, and the rate rises again toward the end, as degradation accumulated over years brings wear-out failures one after another. Drawn against age, the rate's three stretches make the bathtub curve. Failure rates are often calculated as if they were constant, even where that holds only in part. Chapter 10 works on the flat floor of the curve, as Chapter 11's proof tests do.

06 — The bathtub curve
FAILURE RATE share of parts still working that fail in each hour AGE IN SERVICE (SCHEMATIC) EARLY FAILURES flaws that escaped manufacture USEFUL LIFE a steady share fails each hour WEAR-OUT degradation accumulates over years one constant rate describes the parts here (Chapter 10) STRESS SETS THE PACE HEAT CURRENT AND VOLTAGE REPEATED OPERATION Schematic, not to scale; an idealized shape.
Focal detail
Plate 06 — Among many parts of one kind, the share that fails in each hour falls as flawed parts fail early, stays roughly steady through the useful life and rises as wear accumulates. The flat floor is where a single constant rate describes the parts. The shape is an idealization, and stress sets how fast a part moves along it.

The curve is an idealization. In a 2003 theoretical paper, Klutke and colleagues at Texas A&M and Clemson universities showed that the failure rate of a practical part is unlikely to be falling at the very start of its life, and they urged great care in interpreting such curves. The word random names a cause and the way that cause sets the moment of failure. It does not name a frequency, and a part driven hard can fail randomly and often. A rate exists because many copies of a part fail independently, each at its own time, and the copies of a program do neither.

A systematic fault is built in

The number typed into the firmware has no mechanism of wear. It is as wrong in the incubator's first hour as in its tenth year. It causes a failure whenever the air passes 38 °C, and on no other occasion. Such a failure is a systematic failure. IEC's vocabulary defines it as one that consistently occurs under particular conditions of handling, storage or use, and adds that applying the same conditions on purpose reproduces it, though not every failure that can be reproduced is systematic. IEC 61508's definition calls it a failure "related in a deterministic way to a certain cause". The cause itself, here the wrong limit, is a systematic fault: built into a design, and dormant until the conditions that call on it occur.

A systematic fault can enter wherever people decide what a system is and does. IEC's vocabulary lists where the cause of a systematic failure can originate: in the specification, design, manufacture, installation, operation or maintenance of the item. Every later change can bring in a new fault. The firmware's limit went wrong where a requirement became code. At Buncefield, the independent high-level switch on Tank 912 was installed without the padlock meant to hold its test lever in the operating position. After the switch's periodic tests, the lever was left in the position that disabled the switch, or free to fall into it (Chapter 11). No part of the switch had worn out. The regulators who investigated the explosion judged that the switch could not act because of the way it was designed, installed and maintained. No failure rate of the switch's parts describes such causes.

The Health and Safety Executive (HSE), Britain's regulator for health and safety at work, analyzed 34 incidents involving control systems. HSE classed each incident by the stage of the system's life in which its primary cause began, and more primary causes began in the specification than in any other stage. The analysis first appeared in 1995 and is unchanged in the 2003 edition of HSE's guidance on control systems. A sample of 34 incidents is small, and HSE states that the results have low statistical significance. The results show where the primary causes began, not how often a control system fails.

Solved example: where 34 control-system failures began

HSE's counts by the stage in which the primary cause began are specification 15, design and implementation 5, installation and commissioning 2, operation and maintenance 5, and changes after commissioning 7, a total of 34. Each share is the count divided by 34: 15 ÷ 34 is 44 %, 5 ÷ 34 is 15 %, 2 ÷ 34 is 6 %, and 7 ÷ 34 is 21 %, which HSE gives as 20 %. The 15 causes in the specification fall into two groups: 4 of them, 12 % of the 34, began in the functional requirements, which state what the system must do, and 11, 32 %, began in the safety integrity requirements, which state how reliably it must do it. By the end of commissioning, 15 + 5 + 2 = 22 causes were in place, about 65 %. Changes after commissioning added 7, for 29 of 34, about 85 %. Nearly half the causes were written into the specification before any part was chosen, and about six in seven began in work that defined, built, installed or changed the system rather than in its use.

Every copy carries the same fault

Across 1,000 incubators of one design in service, the two causes behave differently. The protective thermistors drift at their own paces, so the number of channels that have drifted too far grows year by year, one incubator at a time. A rate describes that growth and predicts how many of the 1,000 channels would fail a demand at a given age. The firmware fault is present in all 1,000 from the first hour. The share of channels that would fail a demand is all of them, and it stays all of them until the firmware is changed. What varies is how often the control loops fail and call on the channels, a number that belongs to the control loops and not to the firmware.

Duplicating the channel separates the two causes in the same way. A designer may add a second, identical channel, so that either channel can cut the heater. The second channel makes a random loss of protection much rarer, because both thermistors would have to drift too far, each for its own reasons, before the same demand (Chapter 13 computes the gain). Against the typed limit the second channel adds nothing, because it runs the same firmware and holds the same 100.4. Chapter 14 follows the causes that copies share, among them the fault common to the two inertial reference units of Ariane 501.

A systematic failure can arrive at a random time

Seen from outside, the firmware's failures would look random. The control loops fail at scattered moments, so the occasions on which the wrong limit shows itself are scattered too, and counting them over many incubators and years gives a number per hour. Such a number suggests that a second copy or a better-made processor would make the loss rarer, but every copy fails on every demand. A systematic failure can also be rarer than any random one, if its conditions seldom occur.

Each cause has its own defense

Random failures are met with numbers. Their rates can be estimated (Chapter 10). With those rates, a designer can choose the parts and their stresses, run proof tests for failures that hide (Chapter 11), use diagnostics to detect failures as they happen (Chapter 12) and add redundant channels that fail independently (Chapter 13). The designer can then compute how rarely the function will be found failed. One incubator holds both kinds of failure side by side. The transistor in the heater driver fails randomly, through the physics of its materials, and a rate describes it. The program that decides when the heater runs fails systematically, through its specification or design, and no rate does.

Systematic failures are met with method, because only a change removes them. The same definition in IEC 61508:2010 states that such a failure "can only be eliminated by a modification of the design or of the manufacturing process, operational procedures, documentation or other relevant factors". The defense therefore works on how the function is specified, built, installed and changed: a requirement stated with its units and reviewed, a design checked against it, a test that drives the protective thermistor past 38 °C and watches the cutout open, and a check on every change (Chapters 15 to 17). Such a test finds the typed limit in the first unit tested, and the cure is new firmware for every unit. A test that finds a drifted thermistor finds one incubator's fault.

07 — Two routes to one failure
RANDOM: WEAR IN ONE PART HEAT AND TIME CHANGE THE CERAMIC RESISTANCE DRIFTS: READS THE AIR LOW ONE INCUBATOR, AT ITS OWN TIME A RATE DESCRIBES MANY UNITS · MET BY RATES, REDUNDANCY, DIAGNOSTICS, PROOF TESTS (CHAPTERS 10 TO 14) SECOND IDENTICAL CHANNEL: SAME FIRMWARE, SAME 100.4 PROTECTIVE THERMISTOR COMPARISON (FIRMWARE) CUTOUT SENSOR LOGIC SOLVER FINAL ELEMENT DEMAND: THE CONTROL LOOP FAILS AND THE AIR PASSES 38 °C CUTOUT STAYS CLOSED AT THE DEMAND the heater keeps heating SYSTEMATIC: BUILT INTO THE DESIGN REQUIREMENT: 100.4 °F TYPED AS 100.4 INTO FIRMWARE THAT COMPARES IN °C EVERY INCUBATOR ON THAT FIRMWARE, FROM ITS FIRST HOUR NO RATE: EVERY COPY FAILS ON EVERY DEMAND · MET BY SPECIFICATION, REVIEW, BOUNDARY TEST, CHANGE CONTROL (CHAPTERS 15 TO 17) every copy carries the fault, so a second identical channel adds nothing Schematic. The wrong unit is an invented example; the 38 °C limit is a maker's figure, from the summary of one filing with FDA (2019).
Dangerous failureSafety functionFocal detail
Plate 07 — Drift reaches one incubator at a time, so a rate describes it and redundancy, diagnostics and tests reduce it. The limit typed in the wrong unit is in every incubator that runs the firmware, a second identical channel included, and only a change to the design removes it. Both routes end in the same failure at the demand.

A test written from the specification can only confirm that the system does what the specification says, so the specification needs a check of its own. Had the requirement itself given the limit as 100.4 °C, every test written from it would have passed the firmware. In HSE's analysis, 15 of the 34 incidents, the largest group, began in the specification. Chapter 17 makes the safety requirements specification a step of the lifecycle in its own right.

Sort every cause of a lost function by its kind

For each part of a safety function, list the causes of the function's loss in two columns. In the first, list the part's random failure modes, each with the rate the calculation will use and the test or diagnostic that finds it. In the second, list each place where a systematic fault could enter: the requirement, the design and its code, the installation, the test and service instructions, or a later change. Give each the check that catches the fault before service. Write every limit with its unit, carry the unit into the code, and test the built unit by driving its input past the limit. Credit no identical copy against a cause in the second column.

+ What this chapter established
  • A failure rate describes hardware because parts of one kind degrade under stress, each at its own time, so that among many parts under the same stress a roughly steady share fails in each hour through the useful life of the bathtub curve.
  • A systematic fault, such as a limit typed in the wrong unit or a padlock never fitted, is built in by the specification, design, manufacture, installation, operation or maintenance of an item, or by a later change, and causes a failure whenever its conditions occur.
  • Every copy made to one design carries the same systematic fault, so an identical second channel adds nothing against it, and a count of the failures it causes measures only how often its conditions arrive.
  • Random failures are met by rates, redundancy, diagnostics and proof tests, and systematic failures by how the function is specified, built, installed and changed. In HSE's small sample of 34 incidents involving control systems, 44 % of the primary causes began in the specification.
Created with Claude (Anthropic).
Educational reference material, not engineering, regulatory or clinical advice. Product and company names referenced are the property of their respective owners.