📊 Session 9.1.4 - P-Value in Hypothesis Testing

🔍 What Is a P-Value?

The p-value is the probability of obtaining a test statistic as extreme as the observed value, assuming the null hypothesis is true. It reflects the strength of the evidence against H₀.

🧪 Example – Propellant Burning Rate

A sample of 16 observations has x̄ = 51.3 cm/sec, σ = 2.5. We test:

📉 Visualization of the P-Value

📌 Interpretation

🧠 Summary: How P-Values Behave in Simulations

✅ Case 1: H₀ is True (μ = 0)

✅ Case 2: H₀ is False (μ = 1)

✅ Case 3: H₀ is Very False (μ = 2)

🎯 Final Takeaways:

ScenarioP-Value PatternType of ErrorPower
H₀ true (μ = 0)Uniform (flat)Type I (α ≈ 5%)Low
H₀ false, μ = 1Skewed toward 0Type II (some missed)Medium
H₀ false, μ = 2Strong skew toward 0Very few Type IIHigh

❓ Does α Still Matter When H₀ is False?

ScenarioCan Type I Happen?Is α Used?Main Error Risk
H₀ is true✅ Yes✅ YesType I
H₀ is false❌ No✅ YesType II

Conclusion: You always use α to set your rejection rule, but it only governs Type I error risk when H₀ is true. When H₀ is false, your main concern is β (Type II error) and power.

📝 Practice Question – Show Answer

A chemical process is designed to produce concentration μ = 8. A sample of 25 measurements gives x̄ = 7.6, σ = 1. What is the p-value for testing H₀: μ = 8 vs H₁: μ ≠ 8?

z = (7.6 - 8) / (1 / √25) = -2.0
P-value = 2 × P(Z < -2.0) = 2 × 0.0228 = 0.0456
Since 0.0456 < 0.05 → Reject H₀.