Lite / Textbooks / Engineering Design and Optimization / Chapter 3
3. Verification and reliability
Introduction
A design is only as good as the evidence that it meets its requirements and keeps meeting them. This chapter writes test plans with predictions and pass criteria before testing, digs past the symptom to the root cause when something fails, and models reliability with blocks in series and in parallel. It ends with failure modes: how the system will fail, how badly, and what you will do about it.
Figure 3.1. Series and parallel reliability (described in words)
A motor (0.97), a controller (0.995) and one sensor (0.8) in series give a system reliability of 0.772. Replacing the sensor with two independent sensors in parallel gives the pair 1 − 0.2² = 0.96, raising the system to 0.927, but only if they cannot fail together.
Explanation
Built from 4 School lessons. Each part is the lesson's own explanation.
3.1 A test plan that could prove you wrong
You test your gripper on the egg and it works. Then the bolt slips and the cup crushes. Did testing fail you, or did you test too little?
Write the plan first
A test plan states: the question ('does one fixed squeeze meet R2 and R3 for every object?'), the cases (objects × pads × lift speeds), the prediction, the pass criteria (squeeze ≥ needed and ≤ crush limit) and what would change your mind ('if any case fails, the fixed-squeeze design is rejected'). Writing it before running stops you explaining away surprises.
Cover the matrix and the edges
Failures hide in combinations: heavy and slippery, light and fragile. Run every combination of the conditions that matter; with 4 objects, 2 pads and 2 speeds that is 4 × 2 × 2 = 16 cases. Then add edge cases at the limits of what's allowed, such as an emergency lift. If the full matrix is too big, explain how you chose a subset.
Report like an engineer
Give the pass rate and the list of failing cases with the reason for each: 'bolt on plastic at 4.9 m/s² slipped: needs 4.9 N, squeeze 3 N'. A 94% pass rate means nothing if the failing 6% is the safety case. Compare with your prediction and say what you learned.
Common mix-ups
A high pass rate means the design is good.
✓ Look at which cases failed. One failed must can sink the design.Testing is for checking the design works.
✓ Testing is for finding out whether it works, so a good test plan tries hard to break it.
Open the Lite lesson: A test plan that could prove you wrong
3.2 Symptom, mechanism, root cause
The sorter dropped a red part in the blue bin. You lower the red threshold and the problem goes away. Have you fixed it?
Three layers
The symptom is what you see: red parts in the blue bin. The mechanism is how it physically happens: the sensor reads 40 instead of 85 because of glare. The root cause is the deepest cause you can act on, usually a design or process decision: the cleaning checklist doesn't mention the hood. Fix the root cause and the whole chain stops.
Evidence at every step
Each 'why?' answer must be something you could check: a log line, a replay, a test that switches the cause on and off. 'Shading the sensor stops the errors' is strong evidence. 'Someone was careless' isn't evidence and stops the investigation; ask what in the process allowed the mistake. A fishbone diagram helps list candidate causes before testing them.
Prevent, detect, tolerate
Prevent: remove the cause (fix the checklist). Detect: notice when it happens anyway (flag a reading far outside the normal range, or two sensors disagreeing). Tolerate: keep working safely despite it (two sensors that must agree). A patch hides the symptom (lower the threshold) and usually causes a new problem.
Common mix-ups
Once the failure stops, it's fixed.
✓ Only if you removed the root cause. A hidden symptom usually returns, often worse.Root cause means finding who made the mistake.
✓ It means finding the process or design decision that allowed it.
Open the Lite lesson: Symptom, mechanism, root cause
3.3 Chains and spares: reliability by multiplication
Every part of your robot works 95% of the time. With five parts, how often does the whole robot work?
Series: the chain gets weaker
If every part is needed, multiply their reliabilities. A 90% sensor, a 99% controller and a 95% motor give 0.9 × 0.99 × 0.95 ≈ 0.846, so about 85%. The more parts in series, the lower the total. Improving the weakest part gives the biggest gain.
Parallel: spares that cover each other
Redundant parts in parallel fail only if all fail. Two 90% sensors: both fail with probability 0.1 × 0.1 = 0.01, so the block works 99% of the time. Three: 99.9%. Each extra spare helps less, and once the sensor block is strong, the motor becomes the weakest link.
Real failures share causes
The formula assumes independence. Two sensors on the same power wire, or under the same glare, can fail together. Then the pair is barely better than one. Engineers use different sensor types, separate supplies and plausibility checks (does a reading fit physical limits and the other sensors?) so a failure is detected rather than trusted.
Derivation: Series and parallel rules
Reliability R is the probability a part works for the mission. Assume parts fail independently.
Series (all must work): the chance that A and B both work is R_A × R_B. For n parts: R = R₁ × R₂ × … × Rₙ.
Parallel (any one is enough): the block fails only if every branch fails. Failure chances multiply: (1 − R₁)(1 − R₂). So R = 1 − (1 − R₁)(1 − R₂)…
Two 90% sensors in parallel: 1 − 0.1 × 0.1 = 0.99. Then with a 95% motor in series: 0.99 × 0.95 ≈ 0.94.
Mixed systems: reduce each parallel block to one R, then multiply along the chain.
Common mix-ups
A machine made of 95% parts is 95% reliable.
✓ In series, reliabilities multiply: five 95% parts give about 77%.Adding more spares always improves reliability a lot.
✓ Each spare helps less, shared causes can defeat them, and the weakest series part soon dominates.
Open the Lite lesson: Chains and spares: reliability by multiplication
3.4 How will it fail?
Glare makes one colour sensor lie on 30 % of parts. Your sorter's accuracy drops from 99 % to 70 %. Did you plan for that, or discover it?
A failure-mode table
For each subsystem and interface, list: failure mode (sensor lies, message late, motor saturates), effect on the system, how it is detected, and mitigation. Rank by severity and likelihood; test the top few deliberately.
Detect, then make safe
A failure you cannot detect is the dangerous kind. Add checks: plausibility (is this reading possible?), freshness (timestamps), agreement between redundant sensors. On detection, move to a defined safe state, as in the FAULT state from week 29.
Measure mitigations
Treat a mitigation as a method to evaluate: compare with and without it, under the failure, over repeated trials, and also without the failure to check it doesn't cost too much in normal operation.
Common mix-ups
If the robot passes its tests, it has no failure modes.
✓ Tests check the conditions you tried. A failure table finds conditions you haven't tried yet.
Open the Lite lesson: How will it fail?
Worked examples
A test plan that could prove you wrong: example 1
A sorter must be tested at 3 belt speeds, with 4 part types, in 2 lighting conditions. How many cases? Which edge case would you add?
Solution
3 × 4 × 2 = 24 cases. Edge cases: the fastest speed in the worst lighting with the hardest-to-see part, and a sensor that gives an impossible reading.
Symptom, mechanism, root cause: example 1
A greenhouse overheated overnight. The log shows the vent never opened; the vent motor works when tested. Next why?
Solution
Why didn't the controller command it open? Check the log of the temperature reading: if it stayed at 21 °C while a second thermometer read 31 °C, the sensor failed. Next why: was it unplugged, damaged, or shaded? And a detect fix: flag a reading that stays perfectly constant for hours.
Chains and spares: reliability by multiplication: example 1
Battery 98%, controller 99%, two motors that are both needed, each 96%. System reliability?
Solution
All in series: 0.98 × 0.99 × 0.96 × 0.96 ≈ 0.894, about 89%.
Chains and spares: reliability by multiplication: example 2
Two independent 80% cameras, either one enough, feeding a 99% computer. System?
Solution
Camera block: 1 − 0.2 × 0.2 = 0.96. System: 0.96 × 0.99 ≈ 0.950, about 95%.
How will it fail?: example 1
Fill one row of a failure table for a rover's camera fix.
Solution
Mode: dust hides the landmark. Effect: no position correction, drift grows. Detection: landmark not found or match score low. Mitigation: re-image or wait; if drift estimate exceeds 2 m, stop. Test: dusty sols with and without the rule, 10 seeds each.
Interactive figures, in words
Figure 3.2 from A test plan that could prove you wrong
Before each run, set your predicted pass rate. Try squeezes of 1 N, 3 N and 5 N, then add the edge cases. Record each pass rate and which cases failed. Can you explain every failure from the 'needs' and 'crush' columns?
The test harness sets one fixed squeeze force, a required grip safety factor and an option for edge cases. Before running you enter a predicted pass rate. Running fills a table with every case (object, pad, lift acceleration, squeeze needed, crush limit, result) and reports the pass rate against your prediction. The bolt on plastic needs more than 3 N while the cup crushes above 3 N, so no single squeeze passes every case.
Figure 3.3 from Symptom, mechanism, root cause
Investigate both failures. At each 'why?', pick the cause the evidence supports; read why the others are ruled out. When you reach the root cause, pick the fix you'd ship first and read the feedback. Which fixes are patches?
The failure-mode explorer gives a symptom, then asks 'why?' up to four times. Each time you choose from three causes; wrong choices reveal the evidence that rules them out, right choices add the cause and its evidence to the chain. At the root cause you choose a fix and learn whether it prevents, detects, tolerates or only patches the failure.
Figure 3.4 from Chains and spares: reliability by multiplication
Start with one 90% sensor, a 99% controller and a 95% motor. Add a second and third sensor in parallel and record the system reliability each time. Then improve the motor instead. Which change helps more? Run 1000 simulated missions a few times and compare with the formula.
The reliability calculator draws one, two or three sensors in parallel, then a controller and a motor in series. Sliders set each part's reliability. The readout gives the sensor block's reliability 1 − (1 − R)ⁿ, the system reliability as the product, the expected failures in 1000 missions and the weakest block. A button runs 1000 simulated missions and reports how many succeeded.
Laboratory
These run in a browser on the full site (they need a faster connection). Simulations are simplified educational models.
- Simulation OS: Sorting conveyor sensors (Simulation OS experiment)
Raise the sensor fault rate and compare one sensor with majority voting across three; record the sorting error in each case.
Open on the full site - BUILD: Sorting machine, level 4 (BUILD level)
List the sorting machine's failure modes, rank them by severity and likelihood, and add one mitigation for the worst.
Open on the full site
Practice
Each question links to its Lite lesson, where your answer is checked on our server and a wrong answer gets a hint. Answers are never sent to your device.
- Why write the prediction and pass criteria BEFORE running the test?
Answer it in “A test plan that could prove you wrong” - Which is the best edge case to add to a gripper test plan?
Answer it in “A test plan that could prove you wrong” - Which fix is a patch rather than a real fix for a sensor that misreads under glare?
Answer it in “Symptom, mechanism, root cause” - An investigation concludes 'the operator forgot'. What should happen next?
Answer it in “Symptom, mechanism, root cause” - Sensor block 99.9%, controller 99%, motor 80%. Which single improvement helps the system most?
Answer it in “Chains and spares: reliability by multiplication” - Two 'redundant' colour sensors sit side by side under the same lamp. Why might the pair be much less reliable than 1 − (1 − R)²?
Answer it in “Chains and spares: reliability by multiplication” - Three-sensor majority voting tolerates…
Answer it in “How will it fail?” - Why also test a mitigation when nothing has failed?
Answer it in “How will it fail?”
Engineering applications
Aircraft systems
Critical aircraft functions use several independent channels, often of different designs, so that one common cause such as a software bug or icing cannot take them all out.
Root causes in factories
When a machine jams, asking 'why?' repeatedly turns 'operator error' into a guard that hides the jam sensor. Fixing the cause stops the next jam; retraining only treats the symptom.
Watch (optional)
Streaming video uses a lot of data. Everything you need is in the text.
- “FMEA - What is failure mode and effects analysis?” by Limble
- “Reliability Block Diagrams (RBD)” by Institute of Quality and Reliability
- “Flirting With Disaster - The Importance of Safety: Crash Course Engineering #28” by CrashCourse
- “Succeed by Failing: Crash Course Kids #42.1” by Crash Course Kids
Summary
- Write the prediction and pass criteria before the test, and include edge cases.
- Root-cause analysis keeps asking why until it reaches something you can change in the design or process.
- Series reliabilities multiply, so the weakest block dominates; parallel redundancy gives 1 − Π(1 − Ri).
- Redundancy helps only if failures are independent; common causes defeat it.
- Failure-mode analysis ranks how things can fail and tests the mitigations, including when nothing has failed.
Glossary
- Engineering lab notebook
- A lab notebook is a dated, chronological record of what you planned, did, observed and decided, written at the time rather than afterwards. Field Guide
- Repeated trials
- Repeating a measurement or test several times shows how much results vary and lets you average out random error. Field Guide
- Design review
- A design review is a structured meeting where others examine a design against its requirements before it is built or released, and the outcomes are recorded as actions. Field Guide
Project: A reliability case for a small robot
Draw the reliability block diagram of a robot you know, with stated (and sourced or clearly assumed) block reliabilities. Find the weakest block, propose one redundancy or design change, and recompute. Name one common-cause failure that would defeat your change.
Deliverables
- The block diagram with values and sources
- System reliability before and after
- A common-cause risk and its mitigation
Write it up on paper or in your own notes. Lite never stores what you write.
References
- Patrick D. T. O'Connor and Andre Kleyner (2012). Practical Reliability Engineering, 5th edition. Wiley.
- George E. Dieter and Linda C. Schmidt (2013). Engineering Design, 5th edition. McGraw-Hill.