Means: t = (x̄₁ - x̄₂) / √[(s₁²/n₁) + (s₂²/n₂)]
Null Hypothesis (H₀): No difference between groups (p₁ = p₂ or μ₁ = μ₂)
Alternative Hypothesis (H₁): Difference exists (≠, >, or <)
Pooled Proportion: p̂_pooled = (x₁ + x₂)/(n₁ + n₂)
Standard Error: Measures variability of the difference
P-value: Probability of observing the result under H₀
Decision Rule: Reject H₀ if p-value ≤ α
- State hypotheses: Define H₀ and H₁
- Check conditions: Independence, normality, success-failure
- Calculate test statistic: z or t value
- Find p-value: Based on test type and distribution
- Make decision: Compare p-value to α
Urban: n₁ = 200, x₁ = 120, p̂₁ = 120/200 = 0.60
Rural: n₂ = 150, x₂ = 80, p̂₂ = 80/150 = 0.533
Two-tailed z-test for difference in proportions
H₀: p₁ = p₂ (no difference in support)
H₁: p₁ ≠ p₂ (difference in support)
Independence: ✓ (separate samples)
Success-failure: n₁p̂₁ = 120 ≥ 5, n₁(1-p̂₁) = 80 ≥ 5, n₂p̂₂ = 80 ≥ 5, n₂(1-p̂₂) = 70 ≥ 5 ✓
p̂_pooled = (x₁ + x₂)/(n₁ + n₂) = (120 + 80)/(200 + 150) = 200/350 = 0.571
SE = √[p̂_pooled(1-p̂_pooled)(1/n₁ + 1/n₂)]
SE = √[0.571 × 0.429 × (1/200 + 1/150)]
SE = √[0.245 × 0.0117] = √0.00287 = 0.0536
z = (p̂₁ - p̂₂)/SE = (0.60 - 0.533)/0.0536 = 0.067/0.0536 = 1.25
Two-tailed test: p-value = 2 × P(Z ≥ |1.25|) = 2 × 0.1056 = 0.2112
Since p-value (0.2112) > α (0.05), fail to reject H₀
There is insufficient evidence to conclude a significant difference in policy support between urban and rural residents.
z = 1.25, p-value = 0.2112
Fail to reject H₀: No significant difference in support
• Pooling: Use pooled proportion under H₀ (p₁ = p₂)
• Standard Error: SE = √[p̂_pooled(1-p̂_pooled)(1/n₁ + 1/n₂)]
• Decision Rule: Reject H₀ if p-value ≤ α
Method A: n₁ = 25, x̄₁ = 78.5, s₁ = 12.3
Method B: n₂ = 20, x̄₂ = 75.2, s₂ = 10.8
H₀: μ₁ ≤ μ₂ (Method A not better than Method B)
H₁: μ₁ > μ₂ (Method A is better than Method B)
Independence: ✓ (different groups)
Normality: Assume approximately normal or n₁, n₂ ≥ 30
SE = √[(s₁²/n₁) + (s₂²/n₂)] = √[(12.3²/25) + (10.8²/20)]
SE = √[6.052 + 5.832] = √11.884 = 3.45
Using Welch's t-test (unequal variances):
t = (x̄₁ - x̄₂)/SE = (78.5 - 75.2)/3.45 = 3.3/3.45 = 0.957
df = [(s₁²/n₁ + s₂²/n₂)²] / [(s₁²/n₁)²/(n₁-1) + (s₂²/n₂)²/(n₂-1)]
df = [11.884²] / [6.052²/24 + 5.832²/19] = 141.23 / [1.526 + 1.792] = 42.4 ≈ 42
Right-tailed test: p-value = P(T₄₂ ≥ 0.957) ≈ 0.172
Since p-value (0.172) > α (0.05), fail to reject H₀
There is insufficient evidence to conclude that Method A is significantly better than Method B.
t = 0.957, df = 42, p-value = 0.172
Fail to reject H₀: No significant difference in scores
• Welch's T-Test: For unequal variances
• Degrees of Freedom: Welch-Satterthwaite approximation
• One-tailed Test: H₁: μ₁ > μ₂
City A: n₁ = 800, x₁ = 520, p̂₁ = 520/800 = 0.65
City B: n₂ = 750, x₂ = 450, p̂₂ = 450/750 = 0.60
H₀: p₁ ≤ p₂ (City A not higher than City B)
H₁: p₁ > p₂ (City A higher than City B)
Independence: ✓ (separate cities)
Success-failure: All np̂ and n(1-p̂) ≥ 5 ✓
p̂_pooled = (520 + 450)/(800 + 750) = 970/1550 = 0.626
SE = √[0.626 × 0.374 × (1/800 + 1/750)]
SE = √[0.234 × 0.00258] = √0.000604 = 0.0246
z = (0.65 - 0.60)/0.0246 = 0.05/0.0246 = 2.03
Right-tailed test: p-value = P(Z ≥ 2.03) = 0.0212
Since p-value (0.0212) > α (0.01), fail to reject H₀
At α = 0.01, there is insufficient evidence to conclude City A has significantly higher support.
z = 2.03, p-value = 0.0212
Fail to reject H₀ at α = 0.01: No significant difference
• One-tailed Test: H₁: p₁ > p₂
• Conservative Alpha: α = 0.01 requires stronger evidence
• Large Samples: Normal approximation valid
Model X: n₁ = 15, x̄₁ = 3.2 GHz, s₁ = 0.4 GHz
Model Y: n₂ = 18, x̄₂ = 3.0 GHz, s₂ = 0.5 GHz
H₀: μ₁ ≤ μ₂ (Model X not faster than Model Y)
H₁: μ₁ > μ₂ (Model X is faster than Model Y)
SE = √[(0.4²/15) + (0.5²/18)] = √[0.0107 + 0.0139] = √0.0246 = 0.157
t = (3.2 - 3.0)/0.157 = 0.2/0.157 = 1.27
df = [(0.0107 + 0.0139)²] / [0.0107²/14 + 0.0139²/17]
df = [0.0246²] / [0.0000082 + 0.0000114] = 0.000605 / 0.0000196 = 30.9 ≈ 31
Right-tailed test: p-value = P(T₃₁ ≥ 1.27) ≈ 0.107
Since p-value (0.107) > α (0.05), fail to reject H₀
There is insufficient evidence to conclude Model X is significantly faster than Model Y.
t = 1.27, df = 31, p-value = 0.107
Fail to reject H₀: No significant difference in speed
• One-tailed Test: Testing for "faster" (μ₁ > μ₂)
• Small Samples: Use t-distribution
• Unequal Variances: Welch's t-test
School A: n₁ = 24, x̄₁ = 76.8, s₁ = 9.2
School B: n₂ = 28, x̄₂ = 72.4, s₂ = 11.1
H₀: μ₁ = μ₂ (no difference in scores)
H₁: μ₁ ≠ μ₂ (difference in scores)
SE = √[(9.2²/24) + (11.1²/28)] = √[3.527 + 4.414] = √7.941 = 2.82
t = (76.8 - 72.4)/2.82 = 4.4/2.82 = 1.56
df = [(3.527 + 4.414)²] / [3.527²/23 + 4.414²/27]
df = [7.941²] / [0.541 + 0.725] = 63.06 / 1.266 = 49.8 ≈ 50
Two-tailed test: p-value = 2 × P(T₅₀ ≥ |1.56|) = 2 × 0.062 = 0.124
Since p-value (0.124) > α (0.05), fail to reject H₀
There is insufficient evidence to conclude a significant difference in reading scores between the schools.
t = 1.56, df = 50, p-value = 0.124
Fail to reject H₀: No significant difference in scores
• Two-tailed Test: H₁: μ₁ ≠ μ₂
• P-value: Multiply by 2 for two-tailed test
• Decision Rule: Compare to α level