PracticeVideosBlogFlashcards

7.2 Hypothesis Testing: Means, Proportions, and Variances

Key Takeaways

  • Statistical hypothesis testing contrasts a null hypothesis H₀ (status quo, equality: =, ≤, ≥) against an alternative hypothesis H₁ (claim, difference: ≠, >, <); equality must strictly reside in H₀.

  • Type I error (α, significance level, producer's risk) is rejecting a true null hypothesis; Type II error (β, consumer's risk) is failing to reject a false null hypothesis; statistical power is 1 - β.

  • The p-value decision rule is universal across all tests: reject H₀ if p-value ≤ α; fail to reject H₀ if p-value > α.

  • When conducting a one-sample Z-test for a proportion, the standard error in the test statistic denominator must be calculated using the hypothesized null proportion p₀, not the observed sample proportion p̂.

  • Testing equality of two variances employs Snedecor's F-test (F₀ = s₁² / s₂² with ν₁ = n₁ - 1 and ν₂ = n₂ - 1); placing the larger sample variance in the numerator simplifies analysis to an upper-tail critical comparison.

Last updated: September 2026

Hypothesis testing is the formalized mathematical procedure by which industrial and systems engineers make objective, data-driven decisions regarding processes, machinery, materials, and human workflows. Rather than relying on subjective intuition or raw numerical differences that could simply be artifacts of random sampling variability, hypothesis testing quantifies the probability that an observed effect is genuine. The NCEES FE Reference Handbook provides the complete inventory of test statistics under the Engineering Probability and Statistics section. Understanding how to set up hypotheses, avoid decision errors, calculate test statistics, and interpret p-values is essential for the FE examination.


1. The Hypothesis Testing Framework

Null (H0H_0) and Alternative (H1H_1 or HaH_a) Hypotheses

Every statistical test establishes two mutually exclusive and exhaustive propositions:

  1. Null Hypothesis (H0H_0): Represents the baseline status quo, default assumption, historical standard, or claim of no effect or no difference. The null hypothesis must always contain the condition of equality (==, ≤\le, or ≥\ge).
  2. Alternative Hypothesis (H1H_1): Represents the experimental claim, departure from standard, new operating condition, or research hypothesis to be proven (<<, >>, or ≠\neq).

Directionality: Two-Tailed vs. One-Tailed Tests

Test TypeAlternative Hypothesis (H1H_1)Rejection RegionCritical Values
Two-Tailedμ≠μ0\mu \neq \mu_0Both tails (split α/2\alpha/2 in each tail)±Zα/2\pm Z_{\alpha/2} or ±tα/2,ν\pm t_{\alpha/2, \nu}
Upper One-Tailed (Right)μ>μ0\mu > \mu_0Upper tail (entire α\alpha in right tail)+Zα+Z_\alpha or +tα,ν+t_{\alpha, \nu}
Lower One-Tailed (Left)μ<μ0\mu < \mu_0Lower tail (entire α\alpha in left tail)−Zα-Z_\alpha or −tα,ν-t_{\alpha, \nu}
   Two-Tailed (α/2 in each tail)       One-Tailed Upper (α in right tail)
         ┌───────┴───────┐                           ┌───┴───┐
        ┌─┐             ┌─┐                         │       ┌─┐
     ───┴─┴─────────────┴─┴───                   ───┴───────┴─┴───
     -Z_crit           +Z_crit                             +Z_crit

2. Decision Errors, Risks, and Test Power

Because sample statistics are random variables, hypothesis testing inherently involves uncertainty. The two potential incorrect decisions define Type I and Type II errors.

Reality \ DecisionFail to Reject H0H_0Reject H0H_0
H0H_0 is TrueCorrect Decision; Confidence Level =1−α= 1 - \alphaType I Error (α\alpha); Significance Level / Producer's Risk
H0H_0 is FalseType II Error (β\beta); Consumer's RiskCorrect Decision; Statistical Power =1−β= 1 - \beta

Industrial Engineering Analogs: Producer's vs. Consumer's Risk

  • Type I Error (α\alpha, Producer's Risk): Rejecting a good batch of parts or stopping a production process that is actually functioning within specification. The manufacturer ("producer") incurs the unnecessary cost of scrap, sorting, or downtime.
  • Type II Error (β\beta, Consumer's Risk): Failing to reject a defective batch of parts or allowing an out-of-control machine to continue operating. The customer ("consumer") receives non-conforming product, leading to field failures, warranty claims, or safety hazards.

Statistical Power (1−β1 - \beta)

Power is the probability of correctly rejecting a false null hypothesis: Power=P(Reject H0∣H0 is False)=1−β\text{Power} = P(\text{Reject } H_0 \mid H_0 \text{ is False}) = 1 - \beta. Power can be increased by:

  1. Increasing sample size nn: Reduces standard error, narrowing distributions and decreasing overlap.
  2. Increasing significance level α\alpha: Moving the critical threshold inwards decreases β\beta (at the cost of increasing Type I risk).
  3. Larger effect size (δ=∣μ−μ0∣\delta = |\mu - \mu_0|): Substantial real differences are easier to detect.
  4. Decreasing process variance (σ2\sigma^2): Improving process capability tightens the distributions.

3. Decision Rules: Critical Value Approach vs. p-Value Approach

The Critical Value Method

Compute the test statistic from the sample data (Z0,t0,F0,χ02Z_0, t_0, F_0, \chi_0^2). If the test statistic falls into the designated rejection region defined by the critical value at significance level α\alpha, reject H0H_0; otherwise, fail to reject H0H_0.

The p-Value Method

The pp-value is the probability, assuming H0H_0 is true, of obtaining a test statistic at least as extreme as the observed value.

Golden Decision Rule:{p-value≤α  ⟹  Reject H0 (Statistically Significant)p-value>α  ⟹  Fail to Reject H0\text{Golden Decision Rule:} \quad \begin{cases} p\text{-value} \le \alpha & \implies \text{Reject } H_0 \text{ (Statistically Significant)} \\ p\text{-value} > \alpha & \implies \text{Fail to Reject } H_0 \end{cases}
  • For a right-tailed ZZ-test: p-value=P(Z≥Z0)p\text{-value} = P(Z \ge Z_0).
  • For a left-tailed ZZ-test: p-value=P(Z≤Z0)p\text{-value} = P(Z \le Z_0).
  • For a two-tailed ZZ-test: p-value=2×P(Z≥∣Z0∣)p\text{-value} = 2 \times P(Z \ge |Z_0|).

4. Test Statistics for a Single Population Mean (μ)

Case 1: Variance Known (Z-Test)

When σ\sigma is known and either the population is normal or n≥30n \ge 30:

Z0=xˉ−μ0σ/nZ_0 = \frac{\bar{x} - \mu_0}{\sigma / \sqrt{n}}

Case 2: Variance Unknown (One-Sample t-Test)

When σ\sigma is unknown, estimate with ss:

t0=xˉ−μ0s/nt_0 = \frac{\bar{x} - \mu_0}{s / \sqrt{n}}

with degrees of freedom ν=n−1\nu = n - 1. Compare t0t_0 against critical values tα,νt_{\alpha, \nu} or tα/2,νt_{\alpha/2, \nu}.


5. Two-Sample Tests for Comparing Population Means

Independent Samples with Equal Variances (Pooled t-Test)

Testing H0:μ1−μ2=Δ0H_0: \mu_1 - \mu_2 = \Delta_0 (usually Δ0=0\Delta_0 = 0) under the assumption σ12=σ22\sigma_1^2 = \sigma_2^2:

t0=(xˉ1−xˉ2)−Δ0sp1n1+1n2,where sp=(n1−1)s12+(n2−1)s22n1+n2−2t_0 = \frac{(\bar{x}_1 - \bar{x}_2) - \Delta_0}{s_p \sqrt{\frac{1}{n_1} + \frac{1}{n_2}}}, \quad \text{where } s_p = \sqrt{\frac{(n_1 - 1)s_1^2 + (n_2 - 1)s_2^2}{n_1 + n_2 - 2}}

Degrees of freedom: ν=n1+n2−2\nu = n_1 + n_2 - 2.

Independent Samples with Unequal Variances (Welch's t-Test)

When σ12≠σ22\sigma_1^2 \neq \sigma_2^2:

t0=(xˉ1−xˉ2)−Δ0s12n1+s22n2t_0 = \frac{(\bar{x}_1 - \bar{x}_2) - \Delta_0}{\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}}

with Satterthwaite degrees of freedom ν\nu.

Paired Samples (Paired t-Test)

For paired observations with differences di=x1i−x2id_i = x_{1i} - x_{2i}, testing H0:μd=Δd0H_0: \mu_d = \Delta_{d0}:

t0=dˉ−Δd0sd/nt_0 = \frac{\bar{d} - \Delta_{d0}}{s_d / \sqrt{n}}

with degrees of freedom ν=n−1\nu = n - 1, where dˉ\bar{d} is the sample mean of differences and sds_d is the sample standard deviation of differences.


6. Hypothesis Testing for Proportions

Single-Sample Proportion Z-Test

Testing H0:p=p0H_0: p = p_0 versus H1:p≠p0H_1: p \neq p_0 (or p>p0p > p_0, p<p0p < p_0):

Z0=p^−p0p0(1−p0)nZ_0 = \frac{\hat{p} - p_0}{\sqrt{\frac{p_0(1 - p_0)}{n}}}

Exam Watchout: Standard Error in Single Proportion Tests Under the null hypothesis, the true proportion is assumed to equal p0p_0. Therefore, the standard error in the denominator must be evaluated using p0p_0, not p^\hat{p}. In contrast, confidence intervals use p^\hat{p} because no hypothesized value exists. Substituting p^\hat{p} into the denominator of a hypothesis test is a classic distractor on the FE exam.

Two-Sample Proportion Z-Test

Testing H0:p1−p2=0H_0: p_1 - p_2 = 0 against H1:p1≠p2H_1: p_1 \neq p_2. Because the null hypothesis posits that p1=p2=pp_1 = p_2 = p, data from both samples are pooled to form the best single estimate of the common proportion pˉ\bar{p}:

pˉ=x1+x2n1+n2\bar{p} = \frac{x_1 + x_2}{n_1 + n_2}

The test statistic is:

Z0=p^1−p^2pˉ(1−pˉ)(1n1+1n2)Z_0 = \frac{\hat{p}_1 - \hat{p}_2}{\sqrt{\bar{p}(1 - \bar{p})\left(\frac{1}{n_1} + \frac{1}{n_2}\right)}}

7. Tests on Variances: Chi-Square and F-Tests

Single Population Variance (Chi-Square Test)

Testing H0:σ2=σ02H_0: \sigma^2 = \sigma_0^2 (or σ2≤σ02\sigma^2 \le \sigma_0^2, σ2≥σ02\sigma^2 \ge \sigma_0^2):

χ02=(n−1)s2σ02\chi_0^2 = \frac{(n - 1)s^2}{\sigma_0^2}

with degrees of freedom ν=n−1\nu = n - 1. Compare χ02\chi_0^2 against critical values χα,ν2\chi^2_{\alpha, \nu} or χα/2,ν2\chi^2_{\alpha/2, \nu}.

Two Population Variances (Snedecor's F-Test)

Testing equality of variances between two independent normal populations: H0:σ12=σ22H_0: \sigma_1^2 = \sigma_2^2 versus H1:σ12≠σ22H_1: \sigma_1^2 \neq \sigma_2^2 (or σ12>σ22\sigma_1^2 > \sigma_2^2).

The test statistic is the ratio of sample variances:

F0=s12s22F_0 = \frac{s_1^2}{s_2^2}

with numerator degrees of freedom ν1=n1−1\nu_1 = n_1 - 1 and denominator degrees of freedom ν2=n2−1\nu_2 = n_2 - 1.

Standard Calculation Convention: Always designate the sample with the larger sample variance as Sample 1, so that s12≥s22s_1^2 \ge s_2^2 and F0≥1F_0 \ge 1. For a two-tailed test at significance level α\alpha, compare F0F_0 to the upper-tail critical value Fα/2, ν1, ν2F_{\alpha/2, \, \nu_1, \, \nu_2}. If F0>Fα/2, ν1, ν2F_0 > F_{\alpha/2, \, \nu_1, \, \nu_2}, reject H0H_0 and conclude the variances are unequal.


8. Practical vs. Statistical Significance in Industrial Manufacturing

In high-volume manufacturing environments equipped with automated sensing (e.g., in-line vision inspection logging n=100,000n = 100{,}000 parts per day), standard error σ/n\sigma / \sqrt{n} approaches zero. As a result, even microscopic, trivial deviations—such as a shaft measuring 25.0002 mm25.0002\text{ mm} versus a 25.0000 mm25.0000\text{ mm} target—will yield an astronomical test statistic (Z0>10Z_0 > 10) and a tiny pp-value (p<0.00001p < 0.00001).

Industrial engineers must distinguish between:

  • Statistical Significance: The observed difference is unlikely to be explained by chance alone (p≤αp \le \alpha).
  • Practical (Engineering) Significance: The observed difference is large enough to impact product function, assembly fit, customer satisfaction, or unit economics. A change of 0.0002 mm0.0002\text{ mm} on a part with a ±0.100 mm\pm 0.100\text{ mm} tolerance band is statistically significant but practically meaningless.

9. Step-by-Step Worked Engineering Examples

Worked Example 7.2.1: Single-Sample t-Test on Polymer Tensile Strength

Problem: An additive manufacturing facility prints tooling fixtures. The nominal tensile yield strength must meet or exceed μ0=45.0 MPa\mu_0 = 45.0\text{ MPa}. A random sample of n=16n = 16 test dogbones yields a sample mean of xˉ=43.8 MPa\bar{x} = 43.8\text{ MPa} and a sample standard deviation of s=2.0 MPas = 2.0\text{ MPa}. Test at significance level α=0.05\alpha = 0.05 whether the fixtures fail to meet specification.

Solution:

  1. Formulate Hypotheses:
    • H0:μ≥45.0 MPaH_0: \mu \ge 45.0\text{ MPa} (compliant tensile strength)
    • H1:μ<45.0 MPaH_1: \mu < 45.0\text{ MPa} (undersized / non-compliant tensile strength, lower one-tailed test)
  2. Select Test Statistic and Identify Degrees of Freedom:
    • Since σ\sigma is unknown, use the one-sample tt-test with ν=n−1=16−1=15\nu = n - 1 = 16 - 1 = 15.
  3. Compute the Test Statistic: t0=xˉ−μ0s/n=43.8−45.02.0/16=−1.22.0/4=−1.20.50=−2.40t_0 = \frac{\bar{x} - \mu_0}{s / \sqrt{n}} = \frac{43.8 - 45.0}{2.0 / \sqrt{16}} = \frac{-1.2}{2.0 / 4} = \frac{-1.2}{0.50} = -2.40
  4. Determine Critical Value and Rejection Region:
    • Significance level: α=0.05\alpha = 0.05.
    • Degrees of freedom: ν=15\nu = 15.
    • For a lower one-tailed test, the critical value is −t0.05,15=−1.753-t_{0.05, 15} = -1.753.
    • Rejection region: Reject H0H_0 if t0<−1.753t_0 < -1.753.
  5. Statistical Decision and Engineering Interpretation:
    • Since t0=−2.40<−1.753t_0 = -2.40 < -1.753, we reject H0H_0 at α=0.05\alpha = 0.05.
    • Conclusion: There is statistically significant evidence at the 5%5\% level that the 3D-printed polymer fixtures fail to meet the required 45.0 MPa45.0\text{ MPa} tensile specification. The production batch must be quarantined.

Worked Example 7.2.2: Two-Sample Proportion Test on Solder Bridging

Problem: A surface-mount electronics line experiences solder bridging defects. An engineer tests a new nitrogen-inerting reflow process against the baseline air process:

  • Baseline Air (11): x1=36x_1 = 36 defectives out of n1=400n_1 = 400 boards (p^1=0.090\hat{p}_1 = 0.090).
  • Nitrogen Inerting (22): x2=18x_2 = 18 defectives out of n2=400n_2 = 400 boards (p^2=0.045\hat{p}_2 = 0.045). At α=0.05\alpha = 0.05, has the nitrogen process significantly reduced the defect rate?

Solution:

  1. Formulate Hypotheses:
    • H0:p1−p2≤0H_0: p_1 - p_2 \le 0 (nitrogen does not reduce defects)
    • H1:p1−p2>0H_1: p_1 - p_2 > 0 (nitrogen significantly reduces defects, right-tailed test)
  2. Compute Pooled Proportion pˉ\bar{p}: pˉ=x1+x2n1+n2=36+18400+400=54800=0.0675\bar{p} = \frac{x_1 + x_2}{n_1 + n_2} = \frac{36 + 18}{400 + 400} = \frac{54}{800} = 0.0675 1−pˉ=1−0.0675=0.93251 - \bar{p} = 1 - 0.0675 = 0.9325
  3. Compute Pooled Standard Error: SE=pˉ(1−pˉ)(1n1+1n2)=0.0675×0.9325×(1400+1400)\text{SE} = \sqrt{\bar{p}(1 - \bar{p})\left(\frac{1}{n_1} + \frac{1}{n_2}\right)} = \sqrt{0.0675 \times 0.9325 \times \left(\frac{1}{400} + \frac{1}{400}\right)} SE=0.062944×0.0050=0.00031472≈0.01774\text{SE} = \sqrt{0.062944 \times 0.0050} = \sqrt{0.00031472} \approx 0.01774
  4. Compute the Test Statistic Z0Z_0: Z0=p^1−p^2SE=0.090−0.0450.01774=0.0450.01774≈+2.537Z_0 = \frac{\hat{p}_1 - \hat{p}_2}{\text{SE}} = \frac{0.090 - 0.045}{0.01774} = \frac{0.045}{0.01774} \approx +2.537
  5. Decision and Conclusion:
    • For an upper one-tailed test at α=0.05\alpha = 0.05, critical value Z0.05=1.645Z_{0.05} = 1.645.
    • Because Z0=2.537>1.645Z_0 = 2.537 > 1.645 (corresponding p-value≈0.0056<0.05p\text{-value} \approx 0.0056 < 0.05), we reject H0H_0.
    • Conclusion: The nitrogen reflow process significantly reduces the solder bridge defect rate from 9.0%9.0\% to 4.5%4.5\%.

10. NCEES Reference Handbook Tips & Realistic Exam Traps

  • Equality Belongs in the Null: On conceptual setup questions, look for the choice where the equals sign (=,≤,≥=, \le, \ge) is in H0H_0. Any choice placing an inequality without an equals sign (<,>,≠<, >, \neq) in H0H_0 is automatically invalid.
  • Two-Tailed p-Value Doubling: When given a test statistic Z0=2.10Z_0 = 2.10 for a two-tailed test, finding P(Z≥2.10)=0.0179P(Z \ge 2.10) = 0.0179 from standard normal tables is only half the answer. You must double it for a two-tailed test: p-value=2×0.0179=0.0358p\text{-value} = 2 \times 0.0179 = 0.0358.
  • F-Test Degree of Freedom Ordering: When looking up Fα,ν1,ν2F_{\alpha, \nu_1, \nu_2}, make sure ν1\nu_1 is the numerator degrees of freedom (columns in the NCEES handbook table) and ν2\nu_2 is the denominator degrees of freedom (rows). Reversing them results in a completely wrong critical value because the FF-distribution is not symmetric.
  • Pooled Proportion in Two-Sample Z-Tests: Never use unpooled sample variances when testing H0:p1=p2H_0: p_1 = p_2. The standard error must use pˉ=(x1+x2)/(n1+n2)\bar{p} = (x_1 + x_2)/(n_1 + n_2).
Test Your Knowledge

In an automotive stamping facility, incoming steel coils are subjected to an acceptance sampling test. The null hypothesis H₀ is that the incoming coil batch meets tensile specification limits, while the alternative hypothesis H₁ is that the batch is out of specification. What constitutes a Type II error (β) in this inspection system, and what is its operational interpretation?

A

Rejecting a compliant coil batch; this represents Producer's Risk (α)

B

Failing to reject a compliant coil batch; this represents correct acceptance

C

Rejecting a non-compliant coil batch; this represents statistical power (1 - β)

D

Failing to reject an out-of-specification coil batch; this represents Consumer's Risk (β)

Test Your Knowledge

A CNC milling operation produces bearing housings with a target bore diameter of μ₀ = 50.000 mm. A quality engineer measures a random sample of n = 25 housings, obtaining a sample mean of x̄ = 50.012 mm and a sample standard deviation of s = 0.020 mm. What is the calculated test statistic t₀, and for a two-tailed test at α = 0.05 with critical value t_(0.025, 24) = 2.064, what is the correct statistical conclusion?

A

t₀ = +3.00; reject H₀ because the test statistic exceeds the critical threshold

B

t₀ = +0.60; fail to reject H₀ because the difference is within normal sampling variation

C

t₀ = +1.50; fail to reject H₀ because the test statistic falls below the critical threshold

D

t₀ = +3.00; fail to reject H₀ because bore diameter is within manufacturing tolerance

Test Your Knowledge

A quality engineer investigates whether an automated optical inspection (AOI) firmware update altered the false reject rate. On Line 1 (baseline), x₁ = 45 out of n₁ = 500 units were rejected. On Line 2 (updated), x₂ = 25 out of n₂ = 500 units were rejected. Under the null hypothesis H₀: p₁ - p₂ = 0, what is the pooled proportion p̄ and the calculated standard error of the difference in proportions?

A

p̄ = 0.035; SE ≈ 0.0116

B

p̄ = 0.070; SE ≈ 0.0161

C

p̄ = 0.070; SE ≈ 0.0228

D

p̄ = 0.045; SE ≈ 0.0161

Sections you finish are checked off in the contents.