Hypothesis Testing
Framework & p-Values
Learn how businesses use statistical hypothesis testing to make data-driven decisions, from setting up \(H_0\) and \(H_a\) to interpreting p-values and drawing conclusions.
What Is Hypothesis Testing?
Hypothesis testing is a systematic method for evaluating claims about a population using sample data. In business, it helps you move beyond gut feelings and answer questions like: "Did our new ad campaign actually increase sales?" or "Is the defect rate truly below 2%?"
The Two Hypotheses
Every hypothesis test begins by stating two competing hypotheses. Think of it as a courtroom trial: the defendant is presumed innocent until proven guilty.
One-Tailed vs. Two-Tailed Tests
The direction of your alternative hypothesis determines the type of test you conduct.
Tests if the parameter is less than the claimed value.
Tests if the parameter is different from the claimed value in either direction.
Tests if the parameter is greater than the claimed value.
Visualizing the Rejection Region
What Is a p-Value?
The p-value is the probability of observing a test statistic as extreme or more extreme than the one calculated from your sample, assuming \(H_0\) is true.
Significance Level: \(\alpha\)
Before collecting data, you choose a significance level \(\alpha\) : the threshold for how much evidence is "enough" to reject \(H_0\). Common choices are \(\alpha = 0.05\) and \(\alpha = 0.01\).
The Decision Rule
Computing the Test Statistic
The test statistic measures how far the sample result is from the null hypothesis value, in standardized units.
Type I vs. Type II Errors
| Type I Error (\(\alpha\)) | Type II Error (\(\beta\)) | |
|---|---|---|
| What happens | Reject \(H_0\) when it is true | Fail to reject \(H_0\) when it is false |
| Analogy | False alarm (convicting an innocent person) | Missed signal (letting a guilty person go free) |
| Probability | \(\alpha\) (you choose this) | \(\beta\) (depends on effect size, \(n\)) |
| Controlled by | Choosing a lower \(\alpha\) | Increasing sample size \(n\) |
Step-by-Step Procedure
Example 1: Coffee Shop Wait Times
A coffee shop claims the average wait time is 5 minutes. A manager suspects it's longer. She samples \(n = 36\) customers and finds \(\bar{x} = 5.4\) min with a known \(\sigma = 1.2\) min.
Example 1: Conclusion
Example 2: Defect Rate Claim
A manufacturer claims its defect rate is \(3%\). A quality inspector tests \(n = 200\) items and finds 10 defective (\(\hat{p} = 0.05\)). Is there evidence the rate differs from 3%?
Example 3: Interpreting Strength of Evidence
Different p-values signal different levels of evidence. Here's how to interpret them in a business report:
| p-value range | Strength of evidence against \(H_0\) | Business language |
|---|---|---|
| \(p > 0.10\) | Weak or none | "No significant difference found" |
| \(0.05 < p \le 0.10\) | Marginal | "Suggestive but inconclusive" |
| \(0.01 < p \le 0.05\) | Moderate | "Statistically significant" |
| \(p \le 0.01\) | Strong | "Highly significant result" |
Common Mistakes
Question 1 of 5
A researcher tests \(H_0\!: \mu = 100\) against \(H_a\!: \mu > 100\) and obtains \(p = 0.03\) with \(\alpha = 0.05\). What is the correct conclusion?
Question 2 of 5
What does a p-value of 0.42 mean in a hypothesis test?
Question 3 of 5
A Type I error occurs when you:
Question 4 of 5
A company tests whether a new training program increases employee productivity. With \(\alpha = 0.01\), they find \(p = 0.04\). What should they conclude?
Question 5 of 5
For a two-tailed test with \(\alpha = 0.05\), the test statistic is \(z = -2.10\). Using the standard normal table, \(P(Z < -2.10) = 0.0179\). What is the p-value?