Sums of Random Variables and Tolerance Stack-Up
Stack parts end to end and their average sizes simply add. Their variations add too, but as variances, because independent parts partly cancel each other out: some run large while others run small. So a stack of parts is only about times as variable as one part, not times.
What the symbols mean
- Coefficient
How a part enters the assembly: +1 if it opens the gap, −1 if it closes it.
- Mean of X
The average size of part X.
- Constant
A fixed offset that never varies.
What the symbols mean
- Variance of X
The square of part X's standard deviation.
- Covariance
Zero when the parts vary independently; positive when they tend to run large together (same tool, same batch).
What the symbols mean
- Part tolerance
The ± limit on part i; for a capable, centered process, about 3σᵢ.
- Worst-case stack
Every part at its limit in the bad direction: a guaranteed fit, bought with tight, expensive tolerances.
- Root-sum-square stack
The assembly's 3σ spread when the parts are independent, centered and roughly normal.
What the symbols mean
- Mean gap
The coefficient-weighted sum of the part means.
- SD of the gap
The root-sum-square of the coefficient-weighted part SDs.
- Standard normal CDF
The area to the left of z under the standard normal curve.
Explanation
Tolerance stack-up is simply working out how much a gap or a total length varies when it's built from several parts that each vary a little. The formulas look heavy, but there are only two ideas. Averages add: is just the parts' average sizes added up, with a minus sign for parts that close the gap. Variances add: (each part's variance, the minus signs squared away), plus a covariance term that's zero when parts vary independently. The worst-case and RSS formulas, and the fit probability, are those two ideas put to work.
A gap built from many parts. A gearbox shaft carries two bearings, a spacer and a gear hub between two shoulders. Every part comes out a little different, so the end play, the gap left over, changes from gearbox to gearbox. Too tight and the shaft binds when it warms up; too loose and it rattles. The design question: given how much each part varies, how much does the gap vary, and what fraction of gearboxes will be in spec?
Write the assembly as a sum. Every one-dimensional stack is a linear combination: gap = shoulder distance − bearing − bearing − spacer − hub, so with for dimensions that open the gap and for those that close it. Drawing this loop of dimensions, with a sign on each, is the first step of every stack-up.
Means add. Expectation is a sum or an integral, so it's linear: . Nominal sizes stack exactly the way you'd expect.
Variances add, even for differences. In Measurement Error you saw two independent pieces add their variances. Here is the general rule. Write each part as its mean plus a random deviation, and , with . Then
The first two terms are and , and the last is the covariance term, which is 0 for independent parts. The coefficients get squared, so a part that subtracts () still adds its variance. A hole's variation and a pin's variation both make the clearance less predictable.
Why standard deviations add like a right triangle. Independent deviations behave like perpendicular vectors: their sizes combine by Pythagoras, . Ten parts with σ = 10 µm each give µm, not 100 µm, because the deviations partly cancel: some parts run large while others run small.
Two ways to tolerance a stack.
- Worst case: every part sits at its limit, all pushing the same way: . Every assembly fits, but for equal parts the stack grows like , so each part gets only .
- Root-sum-square (RSS): if each tolerance is , the stack's is , which grows like . Each part can be times looser, at the price of about 0.27% of assemblies landing beyond .
The probability an assembly fits. A sum of independent normal parts is exactly normal, and a sum of several independent parts of any shape is close to normal by the central limit theorem. So , and the fraction in spec is a difference of two normal areas, just as in Using the Normal Distribution.
When RSS is too optimistic. It assumes independent, centered parts. Parts cut by the same worn tool or taken from the same batch are correlated, so the terms come back. A process mean that has drifted shifts . And a stack of just two or three flat (uniform) distributions isn't normal yet. Many design guides inflate the RSS answer by a factor of about 1.5 to cover all this, and the Monte Carlo lesson checks it directly.
A common mistake. When a dimension subtracts from the gap, it's tempting to subtract its variance too. It isn't subtracted: the coefficient gets squared, so every part adds its variance, whichever way it pushes. Two cousins of this slip: adding standard deviations instead of variances (that's the worst case in disguise), and treating one part counted twice as two independent parts, when but .
The same algebra runs the rest of this unit: Propagation of Error applies it to curved formulas, and process capability later asks whether each part's σ is small enough to spend.
See it
Worked examples
A housing slot has length with mean mm and SD mm. Three spacers stack into it, with means , and mm and SDs , and mm. All four vary independently and normally. The gap must be between and mm. What fraction of assemblies are in spec?
- 1
Mean gap: mm, right in the middle of the spec.
Five parts are stacked, each toleranced mm, where the tolerance is of a centered process. Compare the worst-case and RSS stack tolerances.
- 1
Worst case: mm.
Practice
Type your answer and check it. Solve them all to complete the lesson.
Three resistors are wired in series: Ω, Ω and Ω nominal, each from a process whose standard deviation is 1% of nominal. Find the standard deviation of the total resistance, in ohms, to 3 significant figures.
Holes are bored with mean diameter mm and SD mm; pins are turned with mean mm and SD mm. Both are normal, and pins and holes are paired at random. The clearance must be at least mm to hold an oil film. What fraction of pairs are too tight? Give 4 decimal places.
A pin's diameter has SD µm and the hole's has SD µm. What is the SD of the clearance, hole minus pin?
A stack of 6 identical parts must stay within mm of nominal. Under worst-case design each part gets mm. Under RSS design (tolerances are , parts independent and centered), what tolerance can each part have? Give it in micrometers, to 3 significant figures.
Two separate washers, each with thickness SD µm, are stacked. A designer suggests one washer twice as thick instead, from a process whose deviations scale with thickness, so its thickness is with SD µm. Find the SD of the two-washer stack, in micrometers, to 3 significant figures.
A shop measures 50 shafts once each with a bore gauge, and the readings have an SD of µm. Repeated readings of a single shaft with the same gauge have an SD of µm. Each reading is the true diameter plus an independent gauge error. What is the SD of the true shaft diameters, in micrometers?
Five plates, each with thickness mean mm and SD mm (normal, independent), are clamped in a fixture whose jaws open to mm. What fraction of stacks are too thick to fit? Give 4 decimal places.
The hardest one here. Get it, and you've got this lesson.
A gearbox shaft carries, between two shoulders, two bearings (each width mean mm, SD mm), a spacer (mean mm, SD ) and a gear hub (mean mm, SD mm). The shoulder-to-shoulder distance has SD mm, and its nominal is chosen to center the end play (shoulder distance minus the four parts) in its spec of to mm. Everything is independent and normal. What is the largest , in micrometers, for which at least 99% of gearboxes meet the spec? (The middle 99% of a normal lies within .) Give 3 significant figures.
Where it's used
Tolerance stack-up is everyday work in mechanical design: gearboxes, engine blocks, phone housings and aircraft panels all have critical gaps built from dozens of parts. Electrical engineers stack resistor and voltage-reference tolerances the same way, and chip fabs budget the misalignment between layers as a root-sum-square of tool, mask and wafer contributions. Choosing RSS over worst case where it's safe is one of the biggest cost levers in manufacturing, and knowing when it isn't safe (correlated or drifting parts) is what keeps it honest.