Download presentation
Presentation is loading. Please wait.
Published byAshlee Barker Modified over 8 years ago
2
Statistics: Unlocking the Power of Data Lock 5 Hypothesis Testing: p-value STAT 250 Dr. Kari Lock Morgan SECTION 4.2 p-value
3
Statistics: Unlocking the Power of Data Lock 5 Two Plausible Explanations If the sample data support the alternative, there are two plausible explanations: 1. The alternative hypothesis (H a ) is true 2. The null hypothesis (H 0 ) is true, and the sample results were just due to random chance Do the data provide enough evidence to rule out #2? We need a way to quantify evidence against the null…
4
Statistics: Unlocking the Power of Data Lock 5 Question #1 of the Day Is Desipramine or Lithium better at treating cocaine addiction? Is each better than a placebo?
5
Statistics: Unlocking the Power of Data Lock 5 In a randomized experiment on treating cocaine addiction, 48 people were randomly assigned to take either Desipramine (a new drug), or Lithium (an existing drug), and then followed to see who relapsed Question of interest: Is Desipramine better than Lithium at treating cocaine addiction? Cocaine Addiction
6
Statistics: Unlocking the Power of Data Lock 5 Cocaine Addiction Is Desipramine better than Lithium at treating cocaine addiction (preventing relapses)? What parameter(s) are we interested in? a) Proportion b) Mean c) Difference in proportions d) Difference in means e) Correlation
7
Statistics: Unlocking the Power of Data Lock 5 Cocaine Addiction Is Desipramine better than Lithium at treating cocaine addiction (preventing relapses)? p D : proportion of cocaine addicts who relapse after Desipramine p L : proportion of cocaine addicts who relapse after Lithium What are the relevant hypotheses? a) H 0 : p D = p L, H a : p D ≠ p L b) H 0 : p D = p L, H a : p D < p L c) H 0 : p D = p L, H a : p D > p L d) H 0 : p D < p L, H a : p D = p L e) H 0 : p D > p L, H a : p D = p L
8
Statistics: Unlocking the Power of Data Lock 5 RRRRRR RRRRRR RRRRRR RRRRRR RRRRRR RRRRRR RRRRRR RRRRRR RRRR RRRRRR RRRRRR RRRRRR RRRR RRRRRR RRRRRR RRRRRR Desipramine Lithium 1. Randomly assign units to treatment groups
9
Statistics: Unlocking the Power of Data Lock 5 RRRR RRRRRR RRRRRR NNNNNN RRRRRR RRRRNN NNNNNN RR NNNNNN R = Relapse N = No Relapse RRRR RRRRRR RRRRRR NNNNNN RRRRRR RRRRRR RRNNNN RR NNNNNN 2. Conduct experiment 3. Observe relapse counts in each group Lithium Desipramine 10 relapse, 14 no relapse18 relapse, 6 no relapse 1. Randomly assign units to treatment groups
10
Statistics: Unlocking the Power of Data Lock 5 To see if a statistic provides evidence against H 0, we need to see what kind of sample statistics we would observe, just by random chance, if H 0 were true Measuring Evidence against H 0
11
Statistics: Unlocking the Power of Data Lock 5 RRRR RRRRRR RRRRRR NNNNNN RR RRRR RRRRNN NNNNNN RR NNNNNN 10 relapse, 14 no relapse18 relapse, 6 no relapse
12
Statistics: Unlocking the Power of Data Lock 5 RRRRRR RRRRNN NNNNNN NNNNNN RRRRRR RRRRRR RRRRRR NNNNNN RNRN RRRRRR RNRRRN RNNNRR NNNR NRRNNN NRNRRN RNRRRR Simulate another randomization Desipramine Lithium 16 relapse, 8 no relapse12 relapse, 12 no relapse
13
Statistics: Unlocking the Power of Data Lock 5 RRRR RRRRRR RRRRRR NNNNNN RR RRRR RNRRNN RRNRNR RR RNRNRR Simulate another randomization Desipramine Lithium 17 relapse, 7 no relapse11 relapse, 13 no relapse
14
Statistics: Unlocking the Power of Data Lock 5 Distribution of Statistic under H 0 How extreme is our observed statistic of - 0.333?
15
Statistics: Unlocking the Power of Data Lock 5 p-value The p-value is the chance of obtaining a sample statistic as extreme (or more extreme) than the observed sample statistic, if the null hypothesis is true
16
Statistics: Unlocking the Power of Data Lock 5 1. What kinds of statistics would we get, just by random chance, if the null hypothesis were true? (randomization distribution) 2. What proportion of these statistics are as extreme as our original sample statistic? (p-value) Calculating a p-value
17
Statistics: Unlocking the Power of Data Lock 5 p-value Proportion as extreme as observed statistic observed statistic If the two drugs are equal regarding cocaine relapse rates, we have a 2% chance of seeing a difference in proportions as extreme as we observed. Cocaine Addiction Distribution of statistic if H 0 true
18
Statistics: Unlocking the Power of Data Lock 5 p-value: The chance of obtaining a statistic as extreme as that observed, just by random chance, if the null hypothesis is true
19
Statistics: Unlocking the Power of Data Lock 5 Cocaine Addiction In the cocaine addiction experiment, people were actually randomized to one of three groups: Desipramine, Lithium, or Placebo Does Desipramine do better than just a placebo at preventing relapses? Does Lithium do better than just a placebo at preventing relapses?
20
Statistics: Unlocking the Power of Data Lock 5 Desipramine vs Placebo p-value observed statistic Distribution of statistic if H 0 true If there were no difference between Desipramine and placebo regarding cocaine relapses, we would only see a difference as extreme as that observed 1 out of 1000 times.
21
Statistics: Unlocking the Power of Data Lock 5 Plausible Null? Based on the Despiramine vs placebo results, do you think the null of no difference is plausible? a) Yes b) No
22
Statistics: Unlocking the Power of Data Lock 5 Lithium vs Placebo p-value observed statistic Distribution of statistic if H 0 true If there were no difference between Lithium and placebo regarding cocaine relapses, we would see a difference as extreme as the one observed about 34% of the time.
23
Statistics: Unlocking the Power of Data Lock 5 Plausible Null? Based on the Lithium vs placebo results, do you think the null of no difference is plausible? a) Yes b) No
24
Statistics: Unlocking the Power of Data Lock 5 Question #2 of the Day Is sleep or caffeine better for memory?
25
Statistics: Unlocking the Power of Data Lock 5 Sleep versus Caffeine Mednick, Cai, Kanady, and Drummond (2008). “Comparing the benefits of caffeine, naps and placebo on verbal, motor and perceptual memory,” Behavioral Brain Research, 193, 79-86. Students were given words to memorize, then randomly assigned to take either a 90 min nap, or a caffeine pill. 2 ½ hours later, they were tested on their recall ability. Explanatory variable: sleep or caffeine Response variable: number of words recalled
26
Statistics: Unlocking the Power of Data Lock 5 Sleep versus Caffeine What is the parameter of interest in the sleep versus caffeine experiment? a) Proportion b) Difference in proportions c) Mean d) Difference in means e) Correlation
27
Statistics: Unlocking the Power of Data Lock 5 Sleep versus Caffeine Let s and c be the true mean number of words recalled after sleeping and after caffeine. Is sleep better than caffeine for memory? What are the null and alternative hypotheses? a) H 0 : s ≠ c, H a : s = c b) H 0 : s = c, H a : s ≠ c c) H 0 : s ≠ c, H a : s > c d) H 0 : s = c, H a : s > c e) H 0 : s = c, H a : s < c
28
Statistics: Unlocking the Power of Data Lock 5 Sleep versus Caffeine
29
Statistics: Unlocking the Power of Data Lock 5 Sleep or Caffeine for Memory? WordsGroup 9sleep 11sleep 13sleep 14sleep 14sleep 15sleep 16sleep 17sleep 17sleep 18sleep 18sleep 21sleep WordsGroup 6caffeine 7 10caffeine 10caffeine 12caffeine 12caffeine 13caffeine 14caffeine 14caffeine 15caffeine 16caffeine 18caffeine sleep mean = 15.25 caffeine mean = 12.25 Is sleep actually better than caffeine for memory, or did the people with better memory just happen to get randomly assigned to sleep? sleep mean – caffeine mean = 3
30
Statistics: Unlocking the Power of Data Lock 5 WordsGroup 9sleep 11sleep 13sleep 14sleep 14sleep 15sleep 16sleep 17sleep 17sleep 18sleep 18sleep 21sleep WordsGroup 6caffeine 7 10caffeine 10caffeine 12caffeine 12caffeine 13caffeine 14caffeine 14caffeine 15caffeine 16caffeine 18caffeine mean = 15.25mean = 12.25 What kinds of results would you see, just by random chance, if there were no difference between sleep and caffeine? Sleep or Caffeine for Memory?
31
Statistics: Unlocking the Power of Data Lock 5 WordsGroup 9 11 13 14 15 16 17 18 21 WordsGroup 6 7 10 12 13 14 15 16 18 sleep mean = 14.25 sleep caffeine sleep caffeine sleep caffeine caffeine mean = 13.25 sleep mean – caffeine mean = 1 What kinds of results would you see, just by random chance, if there were no difference between sleep and caffeine? Sleep or Caffeine for Memory?
32
Statistics: Unlocking the Power of Data Lock 5 Sleep versus Caffeine p-value observed statistic Distribution of statistic if H 0 true If there were no difference between sleep and caffeine regarding memory, we would see a difference as extreme as the one observed about 2% of the time.
33
Statistics: Unlocking the Power of Data Lock 5 Sleep versus Caffeine Let s and c be the true mean number of words recalled after sleeping and after caffeine. Now: Is there a difference in average word recall between sleep and caffeine? What are the null and alternative hypotheses? a) H 0 : s ≠ c, H a : s = c b) H 0 : s = c, H a : s ≠ c c) H 0 : s ≠ c, H a : s > c d) H 0 : s = c, H a : s > c e) H 0 : s = c, H a : s < c
34
Statistics: Unlocking the Power of Data Lock 5 A one-sided alternative contains either > or < A two-sided alternative contains ≠ The p-value is the proportion in the tail in the direction specified by H a For a two-sided alternative, the p-value is twice the proportion in the smallest tail Alternative Hypothesis
35
Statistics: Unlocking the Power of Data Lock 5 p-value and H a Upper-tail (Right Tail) Lower-tail (Left Tail) Two-tailed
36
Statistics: Unlocking the Power of Data Lock 5 www.lock5stat.com/statkey Sleep or Caffeine for Memory? p-value = 2 × 0.022 = 0.044
37
Statistics: Unlocking the Power of Data Lock 5 p-value and H 0 The p-value measures how extreme the observed result would be, if the null hypothesis were true If the p-value is small, then a statistic as extreme as that observed would be unlikely if the null hypothesis were true, providing evidence against H 0 The smaller the p-value, the stronger the evidence against the null hypothesis (and in favor of the alternative)
38
Statistics: Unlocking the Power of Data Lock 5 Which of the following p-values gives the strongest evidence against H 0 ? a) 0.005 b) 0.1 c) 0.32 d) 0.56 e) 0.94 p-value and H 0
39
Statistics: Unlocking the Power of Data Lock 5 Which of the following p-values gives the strongest evidence against H 0 ? a) 0.22 b) 0.45 c) 0.03 d) 0.8 e) 0.71 p-value and H 0
40
Statistics: Unlocking the Power of Data Lock 5 Two different studies obtain two different p- values. Study A obtained a p-value of 0.002 and Study B obtained a p-value of 0.2. Which study obtained stronger evidence against the null hypothesis? a) Study A b) Study B p-value and H 0
41
Statistics: Unlocking the Power of Data Lock 5 The smaller the p-value, the stronger the evidence against H o. p-value and H 0
42
Statistics: Unlocking the Power of Data Lock 5 A formal hypothesis test has only two possible conclusions: 1.The p-value is small: reject the null hypothesis in favor of the alternative 2.The p-value is not small: do not reject the null hypothesis Formal Decisions How small?
43
Statistics: Unlocking the Power of Data Lock 5 To Do Read Section 4.2 HW 4.2 due Friday 10/23
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.