Math 216: Statistical Thinking
How do we measure evidence against the null?
P-values quantify it—and the alternative hypothesis tells us which way to look!
Direction of the Alternative Sets the Rule
| Tail | \(H_a\) | P-value computes … |
|---|---|---|
| Right | \(\mu > \mu_0\) | probability in the upper tail |
| Left | \(\mu < \mu_0\) | probability in the lower tail |
| Two | \(\mu \neq \mu_0\) | probability in both tails |
Key: Pick \(H_a\) first; it governs the test direction and the P-value calculation.
Core Statistical Concept
P-Value Definition:
Key Interpretations:
Statistical Insight: P-values measure the strength of evidence, not the probability that \(H_0\) is true!
P-Value Formulas by Test Type
Right-Tailed Test: \[p = P(Z \geq z | H_0)\] - Example: Testing if new treatment is better than standard
Left-Tailed Test: \[p = P(Z \leq z | H_0)\] - Example: Testing if new process reduces defect rates
Two-Tailed Test: \[p = 2 \times P(Z \geq |z| | H_0)\] - Example: Testing if new method is different from current
R Implementation:
pnorm(z, lower.tail = FALSE) for right-tailedpnorm(z, lower.tail = TRUE) for left-tailed2 * pnorm(abs(z), lower.tail = FALSE) for two-tailed

Context: Clinical trial testing new drug effectiveness with sample data showing z = 2.3
Statistical Analysis:
Context: Manufacturing process improvement testing with z = -2.8
Statistical Analysis:
Practical P-Value Calculations Using R
Exercise 1: Two-Tailed Test P-Value
2 * pnorm(1.96, lower.tail = FALSE)Exercise 2: Right-Tailed Test P-Value
pnorm(2.5, lower.tail = FALSE)Practical P-Value Calculations Using R
Exercise 3: Left-Tailed Test P-Value
pnorm(-1.75, lower.tail = TRUE)Exercise 4: Real-World Interpretation
Essential P-Value Concepts:
Statistical Guidelines:
Next Topic: Extending P-value framework to different types of hypothesis tests