01 / 20
\(H_0\)
\(H_a\)

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.

Business Statistics

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%?"

Claim
A statement about a population parameter, such as the mean or proportion.
Evidence
Sample data collected and analyzed using a test statistic.
Decision
Reject or fail to reject the claim based on the strength of evidence.

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.

\(H_0\): Null Hypothesis
The "status quo" assumption: nothing has changed, no effect exists, or the parameter equals a claimed value. Example: \(H_0\!: \mu = 50\).
\(H_a\): Alternative Hypothesis
The "challenger" claim you want to prove: something has changed or an effect exists. Example: \(H_a\!: \mu \neq 50\).

One-Tailed vs. Two-Tailed Tests

The direction of your alternative hypothesis determines the type of test you conduct.

Left-Tailed
\(H_a\!: \mu < \mu_0\)
Tests if the parameter is less than the claimed value.
Two-Tailed
\(H_a\!: \mu \neq \mu_0\)
Tests if the parameter is different from the claimed value in either direction.
Right-Tailed
\(H_a\!: \mu > \mu_0\)
Tests if the parameter is greater than the claimed value.

Visualizing the Rejection Region

\(\mu_0\)
\(-z_{\alpha/2}\)
\(+z_{\alpha/2}\)
Reject Reject
Fail to Reject \(H_0\)
Two-Tailed Test: Rejection Regions

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.

test statistic p-value
\(\mu_0\)
p-Value: Area Beyond the Test Statistic

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\).

If \(p \le \alpha\)
Reject \(H_0\). The result is statistically significant: the data provides sufficient evidence against the null hypothesis.
If \(p > \alpha\)
Fail to reject \(H_0\). The result is not statistically significant: insufficient evidence to support the alternative.

The Decision Rule

Calculate p-value
\(p \le \alpha\) ?
Yes No
Reject \(H_0\)
Fail to Reject \(H_0\)
Evidence supports
\(H_a\)
Insufficient evidence
Cannot support \(H_a\)
Hypothesis Testing Decision Flowchart

Computing the Test Statistic

The test statistic measures how far the sample result is from the null hypothesis value, in standardized units.

z-test (known \(\sigma\))
$$z = \frac{\bar{x} - \mu_0}{\sigma / \sqrt{n}}$$
t-test (unknown \(\sigma\))
$$t = \frac{\bar{x} - \mu_0}{s / \sqrt{n}}$$

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

1
State the hypotheses. Write \(H_0\) (null) and \(H_a\) (alternative) using symbols.
2
Choose \(\alpha\). Typically \(0.05\) unless the context requires stricter control.
3
Collect data and compute the test statistic. Use the z-test or t-test formula.
4
Find the p-value. Determine the probability of observing a result this extreme.
5
Make your decision. If \(p \le \alpha\), reject \(H_0\). Otherwise, fail to reject.
6
State the conclusion in context. Translate the statistical result into a business-relevant statement.

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.

1
Hypotheses: \(H_0\!: \mu = 5\), \(H_a\!: \mu > 5\) (right-tailed)
2
Significance level: \(\alpha = 0.05\)
3
Test statistic: \(z = \frac{5.4 - 5}{1.2 / \sqrt{36}} = \frac{0.4}{0.2} = 2.0\)
4
p-value: \(P(Z > 2.0) = 0.0228\)

Example 1: Conclusion

0 1.0 1.645 critical value 3.0 Rejection Region
\(z = 2.0\)
\(p = 0.0228 < 0.05\)

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%?

1
Hypotheses: \(H_0\!: p = 0.03\), \(H_a\!: p \neq 0.03\) (two-tailed)
2
Test statistic: \(z = \frac{0.05 - 0.03}{\sqrt{\frac{0.03 \times 0.97}{200}}} = \frac{0.02}{0.01206} \approx 1.66\)
3
p-value (two-tailed): \(2 \times P(Z > 1.66) = 2 \times 0.0485 = 0.097\)
4
Decision: \(p = 0.097 > 0.05 = \alpha\) : Fail to reject \(H_0\).

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

✕ "Accept \(H_0\)"
We never accept \(H_0\). We either reject it or fail to reject it. Failing to reject is not proof that \(H_0\) is true.
✕ p-value = probability \(H_0\) is true
The p-value is the probability of the data given \(H_0\), not the probability that \(H_0\) is true.
✕ Ignoring sample size
A very large \(n\) can make trivially small differences statistically significant. Always consider effect size.

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?