D1314 of 14
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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?

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, e12+e22+⋯, 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 (1−p)n. To claim p is below a target with confidence C after n passes with no failures, you need

n≥ln⁡(1−C)ln⁡(1−p)

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
  1. RSS spread. 12+102=10.05% about 160 Hz on 1592 Hz, as a limit.
  2. One standard deviation. Uniform tolerances have a standard deviation of the limit over √3: 10.05%3=5.8% or 92 Hz.
  3. 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
  1. Solve for n. n≥ln⁡0.1ln⁡0.999=2301.4
  2. Round up. That's 2302 clean packets.
  3. 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?

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.