Chapter 17 Surprised Testing Hypotheses about Proportions Copyright
Chapter 17 Surprised? Testing Hypotheses about Proportions Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -1 1
Are the Results Convincing? n n n We keep talking about statistical significance. Now that we know the standard deviation of a proportion, we’re really in business. If a statistic we observe is more than 2 standard deviations from the proportion we expect, we are ready to say we have a statistically significant difference. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -2 2
The Reasoning of Hypothesis Testing n There are four basic parts to a hypothesis test: 1. Hypotheses We begin with an assumption that nothing interesting has happened. This is called the null hypothesis. 2. Model We check assumptions and conditions to confirm our choice of model. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -3 3
The Reasoning of Hypothesis Testing (Cont. ) n There are four basic parts to a hypothesis test: 3. Mechanics We use our model to ask what should happen if the null hypothesis were true. Then we ask ourselves if our result is surprising. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -4 4
The Reasoning of Hypothesis Testing (Cont. ) n There are four basic parts to a hypothesis test: 4. Conclusion Some variability is expected, so if our result is not too extreme we can’t claim that anything of interest has occurred. But if our data appears unusual, we reject the null hypothesis and conclude that we have evidence of a change. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -5 5
A Trial as a Hypothesis Test n Think about the logic of jury trials: n To prove someone is guilty, we start by assuming they are innocent. n We retain that hypothesis until the facts make it unlikely beyond a reasonable doubt. n Then, and only then, we reject the hypothesis of innocence and declare the person guilty. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -6 6
A Trial as a Hypothesis Test (cont. ) n The same logic used in jury trials is used in statistical tests of hypotheses: n We begin by assuming that a hypothesis is true. n Next we consider whether the data are consistent with the hypothesis. n If they are, all we can do is retain the hypothesis we started with. If they are not, then like a jury, we ask whether they are unlikely beyond a reasonable doubt. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -7 7
The Process of Hypothesis Testing 1. Hypotheses n Hypotheses are working models that we adopt temporarily. n Our starting hypothesis is called the null hypothesis, which we denote by H 0. n The null hypothesis specifies a particular parameter value to use in our model. n We usually write down the null hypothesis in the form H 0: parameter = hypothesized value. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -8 8
The Process of Hypothesis Testing (cont. ) n n n The alternative hypothesis, which we denote by HA, contains the values of the population parameter that we consider plausible if we reject the null hypothesis. Our question of inquiry determines our HA. For example, if we hope to find evidence that the new medication decreases the percent of infection, our HA will be that p is less than the current percent. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -9 9
The Process of Hypothesis Testing (cont. ) 2. Model n To plan a statistical hypothesis test, specify the model you will use to test the null hypothesis and the parameter of interest. n All models require assumptions, so state the assumptions and check any corresponding conditions. u Independence Assumption u Randomization Condition u 10% Condition u Success/Failure Condition Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -10 10
The Process of Hypothesis Testing (cont. ) 2. Model n Your model step should end with a statement such n Because the conditions are satisfied, I can model the sampling distribution of the proportion with a Normal model. n Watch out, though. It might be the case that your model step ends with “Because the conditions are not satisfied, I can’t proceed with the test. ” If that’s the case, stop and reconsider. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -11 11
The Process of Hypothesis Testing (cont. ) 2. Model n Each test we discuss in the book has a name that you should include in your report. n The test about proportions is called a oneproportion z-test. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -12 12
One-Proportion z-Test n The conditions for the one-proportion z-test are the same as for the one proportion z-interval. We test the hypothesis H 0: p = p 0 using the statistic where n When the conditions are met and the null hypothesis is true, this statistic follows the standard Normal model, so we can use that model to obtain a P-value. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -13 13
The Process of Hypothesis Testing (cont. ) 3. Mechanics n Under “mechanics” we place the actual calculation of our test statistic from the data. n We use the sampling model to calculate the z -score for how far our sample proportion lies from the hypothesized value of p. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -14 14
The Process of Hypothesis Testing (cont. ) 4. Conclusion n Our decision is based on the Rule of 2. n A sample result that’s more than 2 standard deviations from what should happen if the null hypothesis were true is strong evidence against the null hypothesis. n So if z > 2 (or if z < – 2), we reject the null. n Notice that we can’t accept the null hypothesis. n But we can say that we failed to find evidence to reject the null. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -15 15
Making Errors n n Here’s some shocking news for you: nobody’s perfect. Even with lots of evidence we can still make the wrong decision. When we perform a hypothesis test, we can make mistakes in two ways: I. The null hypothesis is true, but we mistakenly reject it. (Type I error) II. The null hypothesis is false, but we fail to reject it. (Type II error) Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -16 16
Making Errors (cont. ) n n Which type of error is more serious depends on the situation at hand. In other words, the gravity of the error is context dependent. Here’s an illustration of the four situations in a hypothesis test: Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -17 17
Alternatives n There are three possible alternative hypotheses: HA: parameter < hypothesized value n HA: parameter ≠ hypothesized value n HA: parameter > hypothesized value n Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -18 18
Alternatives (cont. ) n n HA: parameter ≠ value is known as a two-tailed alternative because we are equally interested in deviations on either side of the null hypothesis value. When we are looking for changes in either direction, we say we’re doing a two-tailed test. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -19 19
Alternatives (cont. ) n n n HA: parameter < value is known as a one-tailed alternative. A one-tailed alternative focuses on deviations from the null hypothesis value in only one direction. When we are interested in knowing whether the parameter has decreased, we say we’re doing a lower-tail test. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -20 20
Alternatives (cont. ) n n HA: parameter > value is known as a one-tailed alternative. When we are interested in knowing whether the parameter has increased, we say we’re doing a upper-tail test. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -21 21
Alpha Levels and Critical Values n n Our willingness to risk a Type I error is called the alpha level or significance level of the test. When we use the Rule of 2, the alpha level is about 5%. We write that α = 0. 05. The z-score that corresponds to a given alpha level is called the critical value, written z*. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -22 22
Alpha Levels and Critical Values n Some other commonly used critical values: Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -23 23
P-Values n n We can find the probability of seeing the data we have collected if, in fact, the Null is true. This extra step is the calculation of the P-value. When the P-value is low enough, it tells us that we observed is very unlikely if the Null is true. This makes our results statistically significant. So we reject the Null. When the P-value is high, we haven’t seen anything surprising. We won’t reject the Null. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -24 24
What Can Go Wrong? n n Don’t base your null hypothesis on what you see in the data. n Think about the situation you are investigating and develop your null hypothesis appropriately. Don’t base your alternative hypothesis on the data, either. n Again, you need to Think about the situation. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -25 25
What Can Go Wrong? (cont. ) n Don’t forget to check the conditions. n We need randomization, independence, and a sample that is large enough to justify the use of the Normal model. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -26 26
What Can Go Wrong? (cont. ) n n Don’t accept the null hypothesis. n You may not have found enough evidence to reject it, but you surely have not proven it’s true! Don’t forget that in spite of all your care, you might make a wrong decision. n We can never eliminate the possibility of a Type I or a Type II error. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -27 27
What have we learned? n n We can use what we see in a random sample to test a particular hypothesis about the world. n Hypothesis testing complements our use of confidence intervals. Testing a hypothesis involves proposing a model, and seeing whether the data we observe are consistent with that model or so unusual that we must reject it. n We base our decision on the Rule of 2. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -28 28
What have we learned? (cont. ) n We’ve learned: n Start with a null hypothesis. n Alternative hypothesis can be one- or two-sided. n Check assumptions and conditions. n If the data are far out of line with H 0, reject the null hypothesis. n If the data are consistent with H 0, don’t reject the null hypothesis. n State the conclusion in the context of the original question. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -29 29
What have we learned? (cont. ) n We’ve learned about the two kinds of error we might make. n If the Null hypothesis is true and we reject it anyway, we made a Type I error. And alpha is the probability of this event occurring. n If the Null hypothesis is false, but we fail to reject it, that’s a Type II error. Copyright © 2016, 2012 Pearson Education, Inc. Chapter 17, Slide 1 -30 30
- Slides: 30