Lecture 21
Examples
DATA 8
Spring 2022
Announcements
More on Hypothesis Tests
Discussion Question
Question: Do fewer people prefer Super Soda than its rival, or is this just chance?
Null hypothesis: The same proportion of people prefer Super as Rival
Alternative hypothesis: A smaller proportion of people prefer Super
Test statistic: Number of people (out of 200) who prefer Super
p-value: Start at the observed statistic and look which way? Left
(Demo)
Hypothesis Test Concerns
The outcome of a hypothesis test can be affected by:
Hypothesis Test Effects
Number of simulations: Make it as large as possible so that the empirical distribution of the test statistic under the null distribution is good. No new data needs to be collected.
Number of observations: A larger sample will lead you to reject the null more reliably if the alternative is in fact true.
Difference from the null: If the null hypothesis is false, but the truth is similar to the null hypothesis, then even a large sample may not provide enough evidence to reject the null.