9. Hypothesis Testing#
This chapter develops inferential thinking through hypothesis tests. You will compare observed evidence with chance models and translate statistical results into cautious management decisions, working through three business cases: promotions at a bank, the age mix of a customer survey, and the traffic split of an A/B test.
Chance Model: A hypothesis test starts by asking what outcomes would look like if only random selection were at work.
Test Statistic and Null Distribution: Simulating the statistic many times shows what the chance model predicts, so the observed value can be judged against it.
P-value and Significance Level: The p-value measures how surprising the data are under the null model, and a cutoff chosen in advance turns it into a decision.
Type I and Type II Errors: A test can raise a false alarm or miss a real effect, and the cutoff trades one risk against the other.
Statistical vs. Practical Significance: A result can be unlikely under chance yet too small to matter, so managers should weigh effect size and cost as well.
Chapter Video
Video credit: CrashCourse. (2018, June 27). How P-Values Help Us Test Hypotheses: Crash Course Statistics #21. YouTube. Watch on YouTube (11:52).
This embedded video is provided for educational reference only. All rights are retained by the respective copyright holder.
Learning Objectives
By the end of this chapter, you will be able to:
State null and alternative hypotheses for a data question.
Choose a test statistic that measures the relevant difference.
Simulate a null distribution for a test statistic.
Interpret p-values as evidence against a chance model.
Make decisions while separating statistical evidence from practical importance.
Chapter Flow
Glossary
# |
Term |
Explanation |
|---|---|---|
1 |
Hypothesis test |
A method for comparing observed data with a stated chance model. |
2 |
Null hypothesis |
The baseline claim tested against the data. |
3 |
Alternative hypothesis |
The competing claim suggested by the research question. |
4 |
Test statistic |
A numeric measure used to summarize evidence. |
5 |
Observed statistic |
The test statistic computed from the actual data. |
6 |
Null distribution |
The distribution of a test statistic assuming the null hypothesis is true: its sampling distribution under the null model. |
7 |
P-value |
The probability, under the null model, of evidence at least as extreme as observed; also called the observed significance level. |
8 |
Significance level |
A cutoff used to decide whether a p-value is small enough to reject the null. |
9 |
Reject the null |
Conclude that the observed evidence is inconsistent with the null model. |
10 |
Fail to reject |
Decide that the data do not provide enough evidence against the null model. |
11 |
One-sided test |
A test where the alternative points in one direction. |
12 |
Two-sided test |
A test where the alternative allows differences in either direction. |
13 |
Simulation |
Repeated random trials used to approximate a distribution. |
14 |
Random assignment |
Assigning units to groups by chance. |
15 |
Chance model |
A model describing what outcomes would look like under randomness alone. |
16 |
Statistical significance |
Evidence judged unlikely under the null model. |
17 |
Practical significance |
The real-world size or importance of an effect. |
18 |
Type I error |
Rejecting a true null hypothesis. |
19 |
Type II error |
Failing to reject a false null hypothesis. |
20 |
Decision rule |
A rule for converting statistical evidence into an action. |
21 |
Total variation distance (TVD) |
Half the sum of the absolute differences between two categorical distributions; 0 means identical, 1 means no overlap. |
22 |
Binomial distribution |
The distribution of the number of successes in a fixed number of independent yes/no trials with the same chance of success. |
23 |
Multinomial distribution |
The distribution of counts across several categories when each draw falls into one category with fixed chances. |
24 |
Empirical distribution |
The distribution of values actually observed or simulated, shown as a table or histogram. |
25 |
Statistical bias |
A systematic difference between how a sample was chosen and how a random sample would look. |
26 |
Representative sample |
A sample whose make-up matches the group you want to learn about. |
27 |
Sampling frame |
The list from which a sample is drawn, such as a customer email list. |
28 |
Non-response bias |
Systematic differences between the people who answer a survey and those who do not. |
29 |
Weighting |
Giving each respondent a weight so the weighted sample matches the population on a known trait. |
30 |
Four-fifths rule |
An HR screen that flags possible adverse impact when one group’s selection rate is below 80% of the highest group’s rate; a screen, not a test. |
31 |
Sample ratio mismatch |
An A/B test split that differs from the designed split by more than chance would produce, usually a sign of a bug. |
32 |
Multiple testing |
Running many tests, which makes at least one false alarm likely even when every null hypothesis is true. |