D13 · Lesson 14 · Verifying and reporting
Showing that a capstone meets its requirements, a test for every requirement with a pass criterion, worst-case and statistical tolerance analysis, Monte Carlo yield, how many tests a reliability claim needs, measurement uncertainty and guard bands, and writing the report
A capstone isn't finished when it works once on the bench. It's finished when you can show, with numbers, that it meets each requirement written in lesson 1, including on the units whose parts sit at the edges of their tolerances, at the temperatures and supply voltages it will see, and with the uncertainty of your own measurements accounted for. That evidence, and an honest account of what didn't work, is what the report is for.
- A thousand RC low-pass filters built from a 10 kΩ resistor and a 10 nF capacitor, each part drawn uniformly within its tolerance. The histogram is their corner frequencies, nominally 1592 Hz.
- The specification says the corner must be within ±s% of nominal. The measured yield is the fraction that pass.
- Tighten the capacitor's tolerance and the spread narrows. Compare the readouts: the worst-case range is much wider than where almost all of the parts actually fall.
Predict
A filter's corner is set by a 1% resistor and a 10% capacitor. In the worst case, how far above nominal can the corner be?
The corner is , highest when both parts are at their low limits: 1/(0.99 × 0.90) = 1.122, 12.2% high. Worst-case analysis assumes every part is at its worst at once, which rarely happens; the sim shows how few real filters get near that edge.
Name it
A test for every requirement
For each requirement from lesson 1, write the test, its conditions (temperature, supply voltage, signal levels) and its pass criterion, then record the result. Test the extremes of the conditions, not only the comfortable middle.
Tolerance analysis
- Worst case: put every part at the limit that hurts most. Guaranteed, but pessimistic.
- Root-sum-square: independent errors add in quadrature, , for a typical spread.
- Monte Carlo: draw every part at random from its distribution, compute the result thousands of times, and count the yield, the fraction that meet the specification.
How many tests
If a unit fails with probability p, the chance that n independent tests all pass is . To claim p is below a target with confidence C after n passes with no failures, you need
which at 95% confidence is about 3/p: 300 clean runs to claim a failure rate under 1%.
Measurement uncertainty
Your instruments have uncertainty too. If a reading must show an error within ±0.5 °C and the reference is good to ±0.1 °C, accept only measured errors within ±0.4 °C: a guard band. Independent uncertainties combine like tolerances, by root-sum-square.
The report
State the requirements, the design and its budgets, the tests and their results with uncertainties, and what failed or was left out, with the reason. A reader should be able to repeat every measurement.
Worked example
What's the RSS spread of the corner for a 1% resistor and a 10% capacitor, and how does it compare with the sim?
Show the solution
- RSS spread. about 160 Hz on 1592 Hz, as a limit.
- One standard deviation. Uniform tolerances have a standard deviation of the limit over √3: or 92 Hz.
- Compare with the sim. That matches the spread readout, and it's well inside the worst-case window.
Answer 10.05% (about 160 Hz) as a limit, or 5.8% (92 Hz) as one standard deviation, matching the sim's spread readout.
Worked example
A sensor node must not lose a packet more than once in 1000. How many packets must pass in a row to claim that at 90% confidence?
Show the solution
- Solve for n.
- Round up. That's 2302 clean packets.
- At 99% confidence. It would take 4603.
Answer 2302 clean packets in a row, or 4603 for 99% confidence.
Check
An RC corner uses a resistor of ±1% and a capacitor of ±5%. In the worst case, how many percent above nominal can it be?
Check
Two independent errors of 2% and 3% combine. What's their root-sum-square?
Check
With no failures allowed, how many tests must pass to claim a failure rate below 0.01 with confidence 0.9?
Check
A thermometer must read within ±0.5 °C, and the reference you test it against is good to ±0.05 °C. What's the largest measured error you should accept?
Check
A capstone's 100 test runs pass with no failures. At 95% confidence, below what failure probability, in percent, does that put the design (the rule of three)?
Check
A parameter is Gaussian, and the specification limits sit ±1.5 standard deviations from its mean. What percentage of units pass?
Explain why
Why do engineers use Monte Carlo or RSS analysis when worst-case analysis already guarantees the result?
Worst-case analysis assumes every part sits at its most harmful limit at the same time. With several independent parts that's extremely unlikely, so designing for it forces tighter, more expensive parts or wider margins than real production needs. RSS and Monte Carlo analysis use the fact that independent errors usually partly cancel, predicting the spread most units will actually have and the yield, the fraction that will pass. Engineers then choose: worst case where a single failure is unacceptable, such as safety limits, and statistical analysis where a small, known fraction of rejects is cheaper than tightening every part.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.