Check · Test yourselfPractice tests

Academy › Topic library › Going Deeper: Propagation of Error, Components of Variation, Simulation and Linear Programming

Q-BOT ACADEMY · FREE VIDEO LESSON · 12 MIN

Going Deeper: Propagation of Error, Components of Variation, Simulation and Linear Programming

Every result is built from parts: a leg from a cut and a glide, a reading from a part and a gauge, a week of output from machines that share hours. If you know how the parts combine, you can fix the biggest source first, instead of the loudest one. And you can test a change on paper before you spend money on it.

12:00 · Q-Bot · narrated, with worked example and a check-yourself question

In short

Now, check yourself. Two independent sources add to make a dimension. One has a standard deviation of point three millimeters, the other point four. What is the standard deviation of the total? A: point seven. B: point five. C: point three five. Or D: point two five. Pause the video if you want to think about it. The answer is B. Square each one: point oh nine plus point one six is point two five. The square root of point two five is point five. A added the standard deviations, C took their average, and D stopped at the variance, before the square root.

Check yourself

That's propagation of error, components of variation, simulation and linear programming. Questions? Ask Q-Bot right here in the Academy. And one for the road: why did the two variances get along so well? They knew how to add up their differences!

Show the answer

Where this topic is taught

This lesson is part of every free Academy course whose Body of Knowledge covers it. Each course puts it in context, with exercises and checks.

Full lesson transcript

The narration from the video, by chapter. Brindlewood Outdoor Furniture and its people are a fictional company used in every Q-Bot Academy lesson.

Intro

Brindlewood, Tuesday. Wobbly Harbor chairs are still the top complaint, and Rosa wants a fix. Kofi's leg saw is new and accurate, says Dwayne. So it must be the foot glides! Ellen says the glides are fine. Marcus holds up a chair leg. A leg is a saw cut plus a glide, he says, and a wobble is four legs. Let's add up the variation properly, before anyone buys anything.

Hey there, I'm Q-Bot. Welcome to the Q-Bot Academy. Today we're going deeper: propagation of error, components of variation, simulation and linear programming! If gauge studies are new to you, start with the Gauge R and R by the Numbers video. Today: how variation adds up, where it comes from, how to test a what-if on a computer, and how to pick the best plan when resources are tight.

Why the math matters

Why does the math matter? Every result is built from parts: a leg from a cut and a glide, a reading from a part and a gauge, a week of output from machines that share hours. If you know how the parts combine, you can fix the biggest source first, instead of the loudest one. And you can test a change on paper before you spend money on it.

Propagation of error

First, propagation of error. The rule for sums and differences of independent sources: variances add, standard deviations don't. The variance of x plus y, or x minus y, equals the variance of x plus the variance of y. So the total standard deviation is the square root of the sum of the squares. Bad: adding standard deviations, point two plus point one five. Good: square them, add, take the root!

For products and quotients, relative errors add the same way: the squared percent error of the result is the sum of the squared percent errors of the inputs. And for any smooth formula, the general rule weighs each input's variance by the square of its slope, its partial derivative. Two cautions: the inputs must be independent, and for a curved formula this is an approximation, good when the errors are small.

Worked example: the wobbly chair

Worked example one: the wobbly chair. Kofi's saw cuts legs with a standard deviation of point two oh millimeters. The glide supplier promises plus or minus point two six, spread flat across that range, which is a standard deviation of point two six over root three: point one five. One leg: root of point two squared plus point one five squared. That's point two five millimeters, not point three five!

A chair rocks on its diagonal: legs one and three against legs two and four. The mismatch adds four legs, so its variance is four times point two five squared, and its standard deviation is point five oh millimeters. A Harbor chair rocks when that mismatch passes about one and a half millimeters: three standard deviations. For a normal result, that's about two thousand seven hundred chairs per million. About five a week!

Now, which part to fix? Look at the shares of the variance. The saw is sixty four percent, the glides thirty six. So it's not the glides, Dwayne! Halve the saw's spread to point one oh, and one leg drops to point one eight, the mismatch to point three six. The biggest source gets fixed first. And notice: halving a source that's sixty four percent of the variance only cuts the total spread by about twenty eight percent.

Here's the product rule in Priya's lab. She checks slat density: mass over length times width times thickness. Five hundred ninety grams over eight hundred fifty five cubic centimeters: point six nine oh grams per cubic centimeter. The percent errors: mass point one seven, length point one oh, width point three three, thickness point two six. Square, add, root: point four seven percent. The width reading is half the variance, so she measures width with a better tool!

Measurement systems

Measurement systems follow the same rule. What you see is the part variation plus the gauge variation, in variances. And the gauge R and R itself is repeatability and reproducibility added the same way. Priya's coating gauge: point oh one five and point oh one four make point oh two one mils. Her best study gives point oh two two, six percent of the study variation. The number of distinct categories, one point four one times the part spread over the gauge spread, is about twenty three. Five or more is the goal.

Two special cases. An attribute check, pass or fail, has no standard deviation to add, so you count agreement and kappa instead. And the weld pull test destroys the weld, so no one can measure the same part twice. There, use frames made as alike as possible, and a nested gauge study: the gauge variation then includes some part variation, so treat it as a worst case.

Components of variation

Next, components of variation. Coating thickness varies spot to spot on a frame, frame to frame within a day, and day to day. A nested study splits the total into those layers. Marcus measures four spots on three frames a day, for ten days: one hundred twenty readings. An analysis of variance gives a mean square for each layer, and each component comes from the difference between layers.

The math, one layer at a time. Spot to spot: the within mean square, point oh oh four nine. Frame to frame: the frame mean square minus the spot mean square, divided by four spots, point oh oh six four. Day to day: the day mean square minus the frame mean square, divided by twelve readings a day, point oh oh three six. Total variance: point oh one four nine. A standard deviation of point one two mils!

Now the shares. Frame to frame is forty three percent, spot to spot thirty three, day to day twenty four. The F tests use critical values from an F table, or F dot INV dot RT in Excel. Frames versus spots: F is six point two, far beyond its critical one point six nine. Days versus frames: F is two point four two, just over its critical two point three nine. So the biggest lever is frame to frame! Lou checks the hooks and finds a likely cause: frames on the bottom hooks hang farther from the guns.

Next, simulation. When the formula gets hard, or the inputs aren't normal, let the computer build the product thousands of times. This is called Monte Carlo simulation. Step one: write the model. Step two: give each input its real distribution. Step three: draw random values and compute the result. Step four: repeat many times. Step five: read the result's distribution.

Simulation

Marcus builds one hundred thousand chairs in a spreadsheet: four saw cuts from a normal curve, four glides from a flat distribution. The simulated mismatch has a standard deviation of point five oh. The formula agrees! But two hundred forty eight chairs pass one and a half millimeters, about two thousand five hundred per million, a little fewer than the normal formula said, because flat glides have no long tails. Then he sets the saw to point one oh: zero rockers in one hundred thousand!

A simulation is only as good as its inputs. Feed it real data, run enough trials to make the answer steady, and use a seed so the run can be repeated. The same idea runs a whole process, too: a discrete event simulation follows chairs through welding, coating and packing, to test a new layout before anyone moves a machine.

Last, linear programming: the best plan when resources are limited. Rosa can add a Saturday shift for the spring rush: six hundred forty minutes on the coating line and eight hundred minutes of welding. A Harbor chair takes two coating minutes and four welding minutes, and earns thirty dollars. A Ridge bench takes four coating minutes and two welding minutes, and earns fifty. The bench orders cap benches at one hundred.

Linear programming

Write it down. Maximize thirty C plus fifty B. Subject to: two C plus four B, at most six hundred forty. Four C plus two B, at most eight hundred. B at most one hundred, and nothing negative. The best answer is always at a corner of the feasible region. So check the corners. All chairs: two hundred, welding runs out, six thousand dollars. All benches: one hundred, five thousand.

Now the corner where coating and welding both run out: one hundred sixty chairs and eighty benches, eight thousand eight hundred dollars! The best mix! The corner next to it, one hundred twenty chairs and one hundred benches, earns eight thousand six hundred. Excel's Solver gives the same answer, plus shadow prices: one more coating minute is worth eleven dollars sixty seven, a welding minute only a dollar sixty seven. So if Rosa buys extra time, she buys coating time!

How do you read the results and decide? Check independence before adding variances. Fix the biggest share of the variance first. Make sure the gauge is small next to the variation you're studying. Check every simulation input against real data. And remember a linear program is only as good as its numbers: if the minutes or the margins change, run it again.

Reading the result

Common mistakes. One: adding standard deviations instead of variances. Two: forgetting that sources are correlated, which breaks the simple rule. Three: chasing the loudest source instead of the biggest share. Four: a simulation with made-up inputs, or too few trials. Five: reading an L P answer as exact, when the inputs are estimates. And six: forgetting the gauge is part of every number you see!

Common mistakes

Let's recap. Independent variances add, so standard deviations combine as the root of the sum of squares. Measurement variation adds to process variation the same way. A nested study splits variation into layers, so you can fix the biggest one. Monte Carlo simulation builds the product thousands of times when the formula is hard. And linear programming finds the best mix at a corner, with shadow prices showing which resource is worth buying.

Recap

Now, check yourself. Two independent sources add to make a dimension. One has a standard deviation of point three millimeters, the other point four. What is the standard deviation of the total? A: point seven. B: point five. C: point three five. Or D: point two five. Pause the video if you want to think about it.

The answer is B. Square each one: point oh nine plus point one six is point two five. The square root of point two five is point five. A added the standard deviations, C took their average, and D stopped at the variance, before the square root.

Check yourself

That's propagation of error, components of variation, simulation and linear programming. Questions? Ask Q-Bot right here in the Academy. And one for the road: why did the two variances get along so well? They knew how to add up their differences!

Independent study material; not affiliated with or endorsed by ASQ. Body of Knowledge codes identify where the topic appears in each certification's published outline.