Comparing Two Processes
To compare two machines, suppliers or settings, look at the difference of their means. With separate samples, Welch's t adds the two variances in its standard error; when every unit sees both conditions, work with the differences and the unit-to-unit noise cancels out. Either way, the confidence interval for the difference tells you how big the gap is.
What the symbols mean
- Hypothesized difference
Usually 0: no difference between the processes.
- Variance of sample 1
Each sample keeps its own variance; Welch doesn't assume they're equal.
- Size of sample 1
The two samples can differ in size.
What the symbols mean
- Degrees of freedom
Usually not a whole number: round down, or use the software's value.
What the symbols mean
- t critical value
With Welch's ν degrees of freedom.
What the symbols mean
- Mean difference
The average of the within-unit differences.
- SD of the differences
Small when each unit responds consistently.
- Number of pairs
Units, not measurements.
Explanation
Comparing two processes is simply asking whether one really performs differently from the other, or whether the gap could be luck. You saw both tools in the intro course's two-sample lessons. Welch's t is the gap between the two sample means divided by (the two squared standard errors added). The paired t is the average difference divided by its own standard error, used when the same units go through both conditions. The real skill is choosing the design, and that choice can matter more than any formula.
Two ways to run the comparison. A plant wants to know whether a new cutting insert changes surface roughness. Option 1: cut 12 bars with the old insert and 12 other bars with the new one, which gives independent samples. Option 2: cut each of 12 bars half with each insert, which gives pairs. The analysis has to match the design.
Independent samples: Welch's t. has variance : variances of independent quantities add even when you subtract, the rule from tolerance stack-up. Estimating each variance separately, with no equal-variance assumption, gives Welch's statistic.
Where Welch's ν comes from. The estimated variance isn't exactly a scaled χ², so Welch matches it to one with the same mean and variance. Each has variance (because , from intervals for variability), so . A scaled with mean has variance . Set the two equal, solve for ν and plug in the sample variances: that's the formula. It always lands between the smaller and .
Paired designs. When each unit gets both treatments, compute and run a one-sample t on the d's. Why it's stronger: , and unit-to-unit variation makes the correlation ρ large, so the differences are far less noisy than either measurement (matched pairs). Pairing is the simplest case of blocking (randomization, replication and blocking). Randomize which condition each unit sees first, so a warm-up or wear trend can't masquerade as the effect.
Report the interval. "Significantly different" is half an answer; the interval for says whether the difference is worth acting on. Analyzing paired data as independent throws away the pairing and buries the effect; analyzing independent data as paired is simply wrong, because there are no pairs to subtract.
The pooled t uses with degrees of freedom, and it assumes equal variances. An F test (testing variability) can check that, but Welch is the safer default and loses almost nothing when the variances really are equal.
See it
Worked examples
Bolts from two suppliers: supplier 1, , MPa, MPa; supplier 2, , MPa, MPa. Test for a difference in mean tensile strength at and give the 95% confidence interval.
- 1
and , so MPa and .
Six engine blocks are bored with the old fixture and the new one, in random order. Bore out-of-roundness in µm, old/new: 8.2/7.1, 6.9/6.5, 9.5/8.3, 7.4/6.9, 8.8/7.6, 7.0/6.2. Is the new fixture better ()?
- 1
Differences (old − new): 1.1, 0.4, 1.2, 0.5, 1.2, 0.8, so µm.
Practice
Type your answer and check it. Solve them all to complete the lesson.
Cycle times on two assembly cells: cell A, , s, s; cell B, , s, s. Find Welch's for .
For the same two cells, compute the Welch–Satterthwaite degrees of freedom (don't round).
Using (), find the 95% confidence interval for . Enter the lower and upper limits, to 2 decimal places.
Two torque wrenches are checked on the same 7 bolts (N·m), wrench A/wrench B: 50.2/49.6, 48.9/48.5, 51.5/50.8, 49.8/49.5, 50.6/49.9, 52.1/51.4, 49.3/48.8. Find the mean difference (A − B) and .
Find the paired for the wrenches. With , do they disagree?
To compare the tread wear of two tire compounds, which design gives the most precise comparison?
A budget allows 30 test runs in total, split between machine A () and machine B (), to estimate . How many runs on machine A make the standard error of smallest?
The hardest one here. Get it, and you've got this lesson.
Six machines' vibration levels (mm/s) are measured before and after a lubricant change: before 4.8, 6.1, 5.3, 7.2, 5.9, 6.6; after 4.3, 5.8, 4.7, 6.6, 5.5, 6.0. Compute the paired statistic and the Welch two-sample statistic for the same data. Which analysis is valid, and what does it conclude ()?
Where it's used
Choosing between suppliers, qualifying a second production line, validating a new fixture or tool and comparing two gauges all come down to these comparisons. Engineers pair whenever they can (the same parts through both gauges, the same machines before and after a change), because pairing turns an expensive study into a cheap one, and they report the interval for the difference so a decision can weigh its size against its cost.