PracticeVideosBlogFlashcards

6.6 Specific Statistical Tests

Key Takeaways

  • One-sample and two-sample Z-tests and t-tests evaluate population means depending on whether the population standard deviation (σ) is known or unknown.

  • The paired t-test eliminates subject-to-subject variability by evaluating paired differences (d_i = x1_i - x2_i) with n - 1 degrees of freedom.

  • Two-sample t-tests utilize a pooled variance estimator (s_p²) under equal population variances, or Welch's approximation under unequal variances.

  • Chi-square (χ²) tests assess goodness-of-fit for categorical distributions (df = k - 1 - p) and independence in contingency tables (df = (r - 1)(c - 1)).

  • One-Way ANOVA evaluates the equality of three or more group means by comparing variance between groups (MSB) against variance within groups (MSW) using an F-test statistic (F = MSB / MSW).

Last updated: July 2026

6.6 Specific Statistical Tests

Selecting and properly executing the correct statistical test is a fundamental competency for Certified Quality Engineers. The choice of test depends on the nature of the data (continuous vs. discrete), the number of samples being compared, whether samples are independent or paired, and whether population parameters (such as σ\sigma) are known.


1. Summary of Standard Statistical Tests

Test NameData TypePurpose / ComparisonStandard Statistic & Degrees of Freedom (dfdf)
One-Sample ZZ-TestContinuousCompare sample mean to standard μ0\mu_0 (known σ\sigma)Z=xˉ−μ0σ/nZ = \frac{\bar{x} - \mu_0}{\sigma / \sqrt{n}}
One-Sample tt-TestContinuousCompare sample mean to standard μ0\mu_0 (unknown σ\sigma)t=xˉ−μ0s/nt = \frac{\bar{x} - \mu_0}{s / \sqrt{n}}, df=n−1df = n - 1
Two-Sample tt-Test (Pooled)ContinuousCompare two independent means (assume σ12=σ22\sigma_1^2 = \sigma_2^2)t=xˉ1−xˉ2sp1n1+1n2t = \frac{\bar{x}_1 - \bar{x}_2}{s_p \sqrt{\frac{1}{n_1} + \frac{1}{n_2}}}, df=n1+n2−2df = n_1 + n_2 - 2
Paired tt-TestContinuousCompare paired/matched samples (before vs. after)t=dˉ−μdsd/nt = \frac{\bar{d} - \mu_d}{s_d / \sqrt{n}}, df=n−1df = n - 1
χ2\chi^2 Goodness-of-FitCategoricalCompare observed counts to expected modelχ2=∑(O−E)2E\chi^2 = \sum \frac{(O - E)^2}{E}, df=k−1−pdf = k - 1 - p
χ2\chi^2 IndependenceCategoricalTest independence of 2 variables in r×cr \times c tableχ2=∑(O−E)2E\chi^2 = \sum \frac{(O - E)^2}{E}, df=(r−1)(c−1)df = (r-1)(c-1)
One-Way ANOVAContinuousCompare ≥3\ge 3 independent group meansF=MSBMSWF = \frac{MSB}{MSW}, df1=k−1,df2=N−kdf_1 = k - 1, df_2 = N - k

2. One-Sample and Two-Sample ZZ-Tests and tt-Tests for Means

One-Sample tt-Test

When population standard deviation σ\sigma is unknown, it is estimated using sample standard deviation ss, introducing extra sampling variability. The test statistic follows Student's tt-distribution with df=n−1df = n - 1.

Two-Sample Independent tt-Test (Equal Variances)

When comparing means from two independent groups assuming equal variances (verified via an FF-test for variances), sample variances are combined into a pooled variance (sp2s_p^2):

sp2=(n1−1)s12+(n2−1)s22n1+n2−2s_p^2 = \frac{(n_1 - 1)s_1^2 + (n_2 - 1)s_2^2}{n_1 + n_2 - 2} Test Statistic:tcalc=xˉ1−xˉ2sp2(1n1+1n2)with df=n1+n2−2\text{Test Statistic:} \quad t_{calc} = \frac{\bar{x}_1 - \bar{x}_2}{\sqrt{s_p^2 \left(\frac{1}{n_1} + \frac{1}{n_2}\right)}} \quad \text{with } df = n_1 + n_2 - 2

3. Paired tt-Test for Dependent Samples

When data consists of paired measurements on the same experimental units (e.g., measuring roughness before and after polishing on nn identical parts), subject-to-subject variation is eliminated by analyzing individual differences di=x1i−x2id_i = x_{1i} - x_{2i}.

  • Mean difference: dˉ=∑din\bar{d} = \frac{\sum d_i}{n}
  • Sample standard deviation of differences: sd=∑(di−dˉ)2n−1s_d = \sqrt{\frac{\sum (d_i - \bar{d})^2}{n - 1}}
  • Test statistic: tcalc=dˉ−μdsd/nwith df=n−1t_{calc} = \frac{\bar{d} - \mu_d}{s_d / \sqrt{n}} \quad \text{with } df = n - 1

CQE Tip: The paired tt-test has n−1n - 1 degrees of freedom (where nn is the number of pairs), which is half the degrees of freedom of an independent two-sample test (2n−22n - 2). However, by removing background variance between units, pairing dramatically reduces error variance and increases test sensitivity.


4. Chi-Square (χ2\chi^2) Tests: Goodness-of-Fit and Independence

Chi-square tests evaluate non-parametric categorical count data.

Chi-Square Test Statistic:χcalc2=∑i=1k(Oi−Ei)2Ei\text{Chi-Square Test Statistic:} \quad \chi^2_{calc} = \sum_{i=1}^{k} \frac{(O_i - E_i)^2}{E_i}

where OiO_i is the Observed frequency and EiE_i is the Expected frequency.

Goodness-of-Fit Test

Evaluates whether observed sample counts fit a theoretical distribution (e.g., Poisson, Normal, Binomial). Expected count Ei=n⋅piE_i = n \cdot p_i. Degrees of freedom df=k−1−pdf = k - 1 - p, where kk is the number of categories and pp is the number of parameters estimated from sample data.

Test of Independence (Contingency Tables)

Evaluates whether two categorical variables (e.g., defect type vs. manufacturing shift) are independent in an r×cr \times c table. Expected frequencies are computed as:

Eij=(Row i Total)×(Column j Total)Grand Total,df=(r−1)(c−1)E_{ij} = \frac{(\text{Row } i \text{ Total}) \times (\text{Column } j \text{ Total})}{\text{Grand Total}}, \quad df = (r - 1)(c - 1)

5. One-Way Analysis of Variance (ANOVA) FF-Test

When comparing k≥3k \ge 3 group means, running multiple pairwise tt-tests causes alpha inflation: overall Type I error risk rises to αoverall=1−(1−α)C\alpha_{overall} = 1 - (1 - \alpha)^C, where C=k(k−1)2C = \frac{k(k-1)}{2}. One-Way ANOVA avoids this by testing H0:μ1=μ2=⋯=μkH_0: \mu_1 = \mu_2 = \dots = \mu_k simultaneously.

ANOVA partitions total sum of squares (SSTSST) into between-group variation (SSBSSB) and within-group error variation (SSWSSW):

SST=SSB+SSWSST = SSB + SSW
  • Between-Group Mean Square (MSBMSB): MSB=SSBk−1MSB = \frac{SSB}{k - 1}
  • Within-Group Mean Square (MSWMSW): MSW=SSWN−kMSW = \frac{SSW}{N - k} (where N=∑niN = \sum n_i)
  • FF-Statistic: Fcalc=MSBMSWF_{calc} = \frac{MSB}{MSW} with df1=k−1df_1 = k - 1 and df2=N−kdf_2 = N - k

6. Worked Example: One-Way ANOVA for Machining Line Performance

Scenario: A quality engineer compares hole diameter measurements across k=3k = 3 CNC machining lines. Sample size is ni=5n_i = 5 parts per line (Total N=15N = 15).

  • Line A mean =10.2 mm= 10.2\text{ mm}
  • Line B mean =12.4 mm= 12.4\text{ mm}
  • Line C mean =13.4 mm= 13.4\text{ mm}
  • Overall Grand Mean xˉ..=12.0 mm\bar{x}_{..} = 12.0\text{ mm}
  • Calculated SSB=26.8SSB = 26.8, and calculated SSW=18.0SSW = 18.0.

Test at α=0.05\alpha = 0.05 (Fcrit,0.05,2,12=3.89F_{crit, 0.05, 2, 12} = 3.89) whether machine line means differ significantly.

Step-by-Step ANOVA Solution:

  1. Degrees of Freedom:
    • dfbetween=k−1=3−1=2df_{between} = k - 1 = 3 - 1 = 2
    • dfwithin=N−k=15−3=12df_{within} = N - k = 15 - 3 = 12
    • dftotal=N−1=14df_{total} = N - 1 = 14
  2. Mean Squares:
    • MSB=SSBdfbetween=26.82=13.4MSB = \frac{SSB}{df_{between}} = \frac{26.8}{2} = 13.4
    • MSW=SSWdfwithin=18.012=1.5MSW = \frac{SSW}{df_{within}} = \frac{18.0}{12} = 1.5
  3. Calculate FF-Statistic: Fcalc=MSBMSW=13.41.5=8.933F_{calc} = \frac{MSB}{MSW} = \frac{13.4}{1.5} = 8.933
  4. Decision: Since Fcalc=8.933>Fcrit=3.89F_{calc} = 8.933 > F_{crit} = 3.89, reject H0H_0. There is statistically significant evidence at α=0.05\alpha = 0.05 that at least one CNC machining line mean differs from the others.
Loading diagram...
Statistical Test Selection Decision Tree
Test Your Knowledge

A quality engineer evaluates two independent production lines for average part length. Sample 1 (n1 = 16, s1² = 12) and Sample 2 (n2 = 16, s2² = 20) are drawn. Assuming equal population variances, what is the pooled variance s_p²?

A

16.0

B

32.0

C

14.0

D

8.0

Test Your Knowledge

A contingency table categorizing defective units across 4 manufacturing shifts (rows) and 3 defect categories (columns) is analyzed for independence. How many degrees of freedom (df) must be used to find the Chi-square (χ²) critical value?

A

12

B

7

C

6

D

5

Test Your Knowledge

An ANOVA test comparing 4 heat-treatment processes (k = 4) with 6 specimens per process (total N = 24) yields a Between-Group Sum of Squares (SSB) of 120 and Within-Group Sum of Squares (SSW) of 100. What is the calculated F-statistic?

A

1.20

B

4.80

C

6.00

D

8.00

Sections you finish are checked off in the contents.