Lecture 21
Examples
DATA 8
Spring 2024
Announcements
Weekly Goals
Recap
Definition of the p-value
Formal name: observed significance level
The p-value is the chance (probability),
Coin Toss Example from Last Lecture
There are 1000 students in Data 8. Each student tests
Null: The coin is fair
Alternative: The coin is unfair
Suppose all 10,000 coins are fair. About how many students will conclude that their coins are unfair?
Statistic Simulated Under the Null
About 5% of the area is to the right of the gold line
An Error Probability
P-value cutoff vs P-value
P-Value cutoff
Section 11.3.8 from the textbook
The method of statistical testing – choosing between hypotheses based on data in random samples – was developed by Sir Ronald Fisher in the early 20th century. …. About the 5% level, he wrote, “It is convenient to take this point as a limit in judging whether a deviation is to be considered significant or not.”
(Statistical Methods for Research Workers, Ronald Fisher (1925)
“If one in twenty does not seem high enough odds, we may, if we prefer it draw the line at one in fifty (the 2 percent point), or one in a hundred (the 1 percent point). Personally, the author prefers to set a low standard of significance at the 5 percent point …”
More on Hypothesis Tests
Discussion Question
Manufacturers of Super Soda run a taste test. 91 out of 200 tasters prefer Super Soda over its rival
Question: Do fewer people prefer Super Soda than its rival, or is this just chance?
Null hypothesis:
Equal proportions of the population prefer Super Soda and the Rival.
Alternative hypothesis:
Fewer people in the population prefer Super Soda.
Test statistic: observed # of people who prefer Super Soda
p-value: Probability of seeing 91 or fewer people
(Demo)
Hypothesis Test Concerns
The outcome of a hypothesis test can be affected by:
Hypothesis Test Effects