7.8 Tests for Means, Variances, and Proportions
Key Takeaways
- 2-sample t-tests assess mean differences between independent groups; equal variance assumption uses pooled variance s_p^2, while unequal variance uses Welch's t-test with Satterthwaite df.
- Paired t-tests reduce nuisance variability by analyzing paired differences d_i = x_1i - x_2i with df = n - 1 pairs, increasing statistical power for matched designs.
- One-Way ANOVA decomposes total variance into between-group (SSB) and within-group (SSW) variance, evaluating F0 = MSB / MSW across k >= 3 factor levels.
- Tukey's Honestly Significant Difference (HSD) post-hoc test controls the family-wise Type I error rate (alpha_FW) when conducting all pairwise comparisons following a significant ANOVA.
- Chi-Square tests evaluate categorical data: Goodness-of-Fit tests categorical distribution fit (df = k - 1), while Independence tests evaluate contingency table associations (df = (r-1)(c-1)).
Comparative hypothesis testing evaluates process parameter differences across two or more experimental conditions, treatments, shifts, or operational lines. Choosing the correct parametric or non-parametric test depends on data type (continuous vs. discrete), sample independence (paired vs. independent), and variance homogeneity.
Two-Sample Hypothesis Tests for Means and Proportions
1. Independent Two-Sample $t$-Test
Compares the means of two independent continuous populations ($\mu_1$ vs. $\mu_2$).
Case A: Equal Variances ($\sigma_1^2 = \sigma_2^2$) — Pooled $t$-Test
- Pooled Variance ($s_p^2$):
- Test Statistic:
- Degrees of Freedom: $\text{df} = n_1 + n_2 - 2$.
Case B: Unequal Variances ($\sigma_1^2 \neq \sigma_2^2$) — Welch's $t$-Test
Uses unpooled standard errors with Welch-Satterthwaite degrees of freedom approximation ($\nu$):
2. Paired Two-Sample $t$-Test
Used when observations are naturally paired or matched (e.g., before-and-after measurements on the exact same production parts, tools, or operators).
- Difference Variable: $d_i = x_{1i} - x_{2i}$
- Test Statistic:
- Degrees of Freedom: $\text{df} = n - 1$ (where $n$ is the number of matched pairs).
- Operational Advantage: Eliminates unit-to-unit baseline variability, greatly reducing residual error variance and maximizing test sensitivity/power.
3. Two-Sample Proportion $z$-Test
Compares two independent binomial success proportions ($p_1$ vs. $p_2$).
- Pooled Proportion ($\bar{p}$):
- Test Statistic:
4. $F$-Test for Equality of Two Variances
Evaluates whether two independent population variances are equal ($H_0: \sigma_1^2 = \sigma_2^2$).
- Test Statistic:
- Degrees of Freedom: $\text{df}_1 = n_1 - 1$, $\text{df}_2 = n_2 - 1$.
- Sensitivity Note: The $F$-test is highly sensitive to non-normality. Levene's test or Bartlett's test are preferred robust alternatives.
Non-Parametric Hypothesis Tests
When continuous data violates normality and transformation is unsuccessful, non-parametric tests based on data ranks must be deployed:
| Parametric Test | Non-Parametric Equivalent | Primary Metric Tested |
|---|---|---|
| 1-Sample $t$-Test | 1-Sample Wilcoxon Signed-Rank | Median vs. Target |
| 2-Sample $t$-Test (Independent) | Mann-Whitney $U$ Test (Wilcoxon Rank-Sum) | Median Difference (2 Groups) |
| Paired $t$-Test | Paired Wilcoxon Signed-Rank | Median Paired Difference |
| One-Way ANOVA | Kruskal-Wallis $H$ Test | Median Difference ($k \ge 3$ Groups) |
Tests for Variances
The Body of Knowledge requires tests for means, variances, and proportions. Variance tests are the ones teams most often skip, and they matter for two reasons: variation reduction is frequently the project's actual objective, and equality of variance is an assumption of the two-sample t-test and of ANOVA.
One sample against a target variance
Compare against the chi-square distribution. This test is very sensitive to non-normality and should not be used on visibly skewed data.
Two variances: the F test
By convention the larger variance goes in the numerator so $F \ge 1$, and the result is compared with $F_{\alpha/2, df_1, df_2}$ for a two-sided test.
Worked example. Line A: $n_1 = 16$, $s_1 = 2.4$. Line B: $n_2 = 13$, $s_2 = 1.5$.
with 15 and 12 degrees of freedom. The two-sided critical value $F_{0.025, 15, 12} \approx 3.18$. Since $2.56 < 3.18$, do not reject: the evidence does not establish a difference in variability at the 5% level, despite the sample standard deviations differing by 60%. Variance tests need substantial sample sizes.
Like the chi-square test, the F test for variances is highly sensitive to departures from normality, much more so than the t-test is for means.
Several variances
| Test | Assumption | Use |
|---|---|---|
| Bartlett's test | Requires normality; very sensitive to violation | Data confidently normal |
| Levene's test | Uses absolute deviations from the group mean; robust to non-normality | The general-purpose default |
| Brown-Forsythe | Levene's using deviations from the median; still more robust | Skewed data |
Because Bartlett's test frequently rejects for non-normality rather than for unequal variance, Levene's test is the practical default when checking the equal-variance assumption before ANOVA.
When variances are unequal
| Situation | Response |
|---|---|
| Comparing two means with unequal variances | Use Welch's t-test, which does not pool the variances and adjusts the degrees of freedom |
| Comparing several means with unequal variances | Use Welch's ANOVA, or transform the response |
| Variance itself increases with the mean | Apply a variance-stabilizing transformation: logarithm, square root, or Box-Cox |
| Data badly non-normal | Use the non-parametric alternative: Mann-Whitney for two groups, Kruskal-Wallis for several |
Why variance tests matter to a Black Belt
A project that reduces the mean of a cycle time while leaving the spread unchanged has improved the average experience and left the worst case where it was. Customers experience the tail, not the mean. In many projects the correct primary metric is the standard deviation or a high percentile, and the corresponding hypothesis test is a variance test rather than a t-test.
The same logic drives the capability indices: $C_p$ is entirely a statement about variance, and a project targeting $C_p$ rather than $C_{pk}$ is targeting variation rather than centring.
A quality analyst conducts a Chi-Square test for independence analyzing defect types (3 categories) across shift operations (4 shifts). How many degrees of freedom does the test statistic have?
Why is a paired t-test preferred over an independent two-sample t-test when evaluating part measurements before and after heat treatment processing?
A One-Way ANOVA comparing four machine filling lines yields a calculated F-statistic F0 = 8.45 with a p-value = 0.0002 (alpha = 0.05). What conclusion should the Black Belt draw?