STA 291 - Lecture 221 !! DRAFT !! STA 291 Lecture 22 Chapter 11 Testing Hypothesis – Concepts of Hypothesis Testing.

Slides:



Advertisements
Similar presentations
Introduction to Hypothesis Testing
Advertisements

1 Hypothesis testing. 2 A common aim in many studies is to check whether the data agree with certain predictions. These predictions are hypotheses about.
INFERENCE: SIGNIFICANCE TESTS ABOUT HYPOTHESES Chapter 9.
Testing Hypotheses About Proportions Chapter 20. Hypotheses Hypotheses are working models that we adopt temporarily. Our starting hypothesis is called.
Chapter 10: Hypothesis Testing
Copyright © Cengage Learning. All rights reserved. 8 Tests of Hypotheses Based on a Single Sample
Hypothesis Testing Steps of a Statistical Significance Test. 1. Assumptions Type of data, form of population, method of sampling, sample size.
BCOR 1020 Business Statistics Lecture 21 – April 8, 2008.
8-2 Basics of Hypothesis Testing
BCOR 1020 Business Statistics
Inference about Population Parameters: Hypothesis Testing
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 11 Introduction to Hypothesis Testing.
Lecture Slides Elementary Statistics Twelfth Edition
Section 9.1 Introduction to Statistical Tests 9.1 / 1 Hypothesis testing is used to make decisions concerning the value of a parameter.
STA Lecture 261 STA 291 Lecture 26 Two types of errors in testing hypothesis. Connection between testing hypothesis and confidence intervals.
Hypothesis Testing: One Sample Cases. Outline: – The logic of hypothesis testing – The Five-Step Model – Hypothesis testing for single sample means (z.
Chapter 8 Introduction to Hypothesis Testing
LECTURE 19 THURSDAY, 14 April STA 291 Spring
Agresti/Franklin Statistics, 1 of 122 Chapter 8 Statistical inference: Significance Tests About Hypotheses Learn …. To use an inferential method called.
Confidence intervals are one of the two most common types of statistical inference. Use a confidence interval when your goal is to estimate a population.
LECTURE 27 TUESDAY, 1 December STA 291 Fall
Chapter 20 Testing hypotheses about proportions
Lecture 16 Dustin Lueker.  Charlie claims that the average commute of his coworkers is 15 miles. Stu believes it is greater than that so he decides to.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 20 Testing Hypotheses About Proportions.
LECTURE 18 THURSDAY, 9 April STA 291 Spring
CHAPTER 9 Testing a Claim
STA Lecture 251 STA 291 Lecture 25 Testing the hypothesis about Population Mean Inference about a Population Mean, or compare two population means.
Lecture 17 Dustin Lueker.  A way of statistically testing a hypothesis by comparing the data to values predicted by the hypothesis ◦ Data that fall far.
1 Chapter 8 Hypothesis Testing 8.2 Basics of Hypothesis Testing 8.3 Testing about a Proportion p 8.4 Testing about a Mean µ (σ known) 8.5 Testing about.
Lecture 18 Dustin Lueker.  A way of statistically testing a hypothesis by comparing the data to values predicted by the hypothesis ◦ Data that fall far.
Ch 10 – Intro To Inference 10.1: Estimating with Confidence 10.2 Tests of Significance 10.3 Making Sense of Statistical Significance 10.4 Inference as.
Lecture 17 Dustin Lueker.  A way of statistically testing a hypothesis by comparing the data to values predicted by the hypothesis ◦ Data that fall far.
CHAPTER 15: Tests of Significance The Basics ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture Presentation.
CHAPTER 9 Testing a Claim
Rejecting Chance – Testing Hypotheses in Research Thought Questions 1. Want to test a claim about the proportion of a population who have a certain trait.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
Introduction Suppose that a pharmaceutical company is concerned that the mean potency  of an antibiotic meet the minimum government potency standards.
Chapter 9 Day 2 Tests About a Population Proportion.
Statistical Techniques
AP Statistics Chapter 11 Notes. Significance Test & Hypothesis Significance test: a formal procedure for comparing observed data with a hypothesis whose.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Unit 5: Hypothesis Testing.
1 Definitions In statistics, a hypothesis is a claim or statement about a property of a population. A hypothesis test is a standard procedure for testing.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 9 Testing a Claim 9.2 Tests About a Population.
STA Lecture 231 STA 291 Lecture 23 Testing hypothesis about population proportion(s) Examples.
Today: Hypothesis testing. Example: Am I Cheating? If each of you pick a card from the four, and I make a guess of the card that you picked. What proportion.
Today: Hypothesis testing p-value Example: Paul the Octopus In 2008, Paul the Octopus predicted 8 World Cup games, and predicted them all correctly Is.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 9 Testing a Claim 9.1 Significance Tests:
CHAPTER 15: Tests of Significance The Basics ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture Presentation.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. 1 FINAL EXAMINATION STUDY MATERIAL III A ADDITIONAL READING MATERIAL – INTRO STATS 3 RD EDITION.
Chapter 9 Testing A Claim 9.1 SIGNIFICANT TESTS: THE BASICS OUTCOME: I WILL STATE THE NULL AND ALTERNATIVE HYPOTHESES FOR A SIGNIFICANCE TEST ABOUT A POPULATION.
© 2010 Pearson Prentice Hall. All rights reserved STA220: Formulating Hypotheses and Setting Up the Rejection Region.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 9 Testing a Claim 9.1 Significance Tests:
+ Homework 9.1:1-8, 21 & 22 Reading Guide 9.2 Section 9.1 Significance Tests: The Basics.
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
STA 291 Spring 2010 Lecture 18 Dustin Lueker.
Testing Hypotheses About Proportions
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
Chapter Nine Part 1 (Sections 9.1 & 9.2) Hypothesis Testing
Chapter 9: Hypothesis Tests Based on a Single Sample
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
STA 291 Spring 2008 Lecture 18 Dustin Lueker.
CHAPTER 9 Testing a Claim
STA 291 Summer 2008 Lecture 18 Dustin Lueker.
CHAPTER 9 Testing a Claim
Statistical Test A test of significance is a formal procedure for comparing observed data with a claim (also called a hypothesis) whose truth we want to.
CHAPTER 9 Testing a Claim
STA 291 Spring 2008 Lecture 17 Dustin Lueker.
Presentation transcript:

STA Lecture 221 !! DRAFT !! STA 291 Lecture 22 Chapter 11 Testing Hypothesis – Concepts of Hypothesis Testing

STA Lecture 222 Bonus Homework, due in the lab April 16-18: Essay “How would you test the ‘hot hand’ theory in basketball games?” (~ words / approximately one typed page)

STA Lecture 223 Significance Tests A significance test checks whether data agrees with a (null) hypothesis A hypothesis is a statement about a characteristic of a population parameter or parameters If the data is very unreasonable under the hypothesis, then we will reject the hypothesis Usually, we try to find evidence against the hypothesis

STA Lecture 224 Logical Procedure 1.State a (null) hypothesis that you would like to find evidence against 2.Get data and calculate a statistic (for example: sample proportion) 3.The hypothesis (and CLT) determines the sampling distribution of our statistic 4.If the calculated value in 2. is very unreasonable given 3 (almost impossible), then we conclude that the hypothesis was wrong

STA Lecture 225 Example 1 Somebody makes the claim that “Nicotine Patch and Zyban has same effect on quitting smoke” You don’t believe it. So you conduct the experiment and collect data: Patch: 244 subjects; 52 quit. Zyban: 244 subjects; 85 quit. How (un)likely is this under the hypothesis of no difference? The sampling distribution helps us quantify the (un)likeliness in terms of a probability (p-value)

Example 2 Mr. Basketball was an 82% free throw shooter last season. This season so far in 59 free throws he only hit 40. (null) Hypothesis: He is still an 82% shooter alternative hypothesis: his percentage has changed. (not 82% anymore) STA Lecture 226

Question: How unlikely are we going to see 52/244 verses 85/244 if indeed Patch and Zyban are equally effective? (Probability = ?) How unlikely for an 82% shooter to hit only 40 out of 59? ( Probability = ?) STA Lecture 227

A small probability imply very unlikely or impossible. (No clear cut, but Prob less than 0.01 is certainly small) A larger probability imply this is likely and no surprise. (again, no clear boundary, but prob. > 0.1 is certainly not small) STA Lecture 228

For the Basketball data, we actually got Probability = For the Patch vs. Zyban data, we actually got Probability = STA Lecture 229

Usually we pick an alpha level Suppose we pick alpha = 0.05, then Any probability below 0.05 is deemed “impossible” so this is evidence against the null hypothesis STA Lecture 2210

If the basketball data were 14 hits out of 20 shoots (14/20 = 0.7), the P-value would be This probability is not small. Usually we cut off ( that’s alpha level) at 0.05 or 0.01 for P-values STA Lecture 2211

STA Lecture 2212 Significance Test A significance test is a way of statistically testing a hypothesis by comparing the data to values predicted by the hypothesis Data that fall far from the predicted values provide evidence against the hypothesis

STA Lecture 2213 Elements of a Significance Test Assumptions (about population dist.) Hypotheses (about popu. Parameter) Test Statistic (based on a SRS.) P-value (a way of summarizing the strength of evidence.) Conclusion (reject, or not reject, that is the question)

STA Lecture 2214 Assumptions What type of data do we have? –Qualitative or quantitative? –Different types of data require different test procedures –If we are comparing 2 population means, then how the SD differ? What is the population distribution? –Is it normal? –Some tests require normal population distributions (t-test)

Assumptions-cont. Which sampling method has been used? –We usually assume Simple Random Sampling What is the sample size? –Some methods require a minimum sample size (like n >30) because of using CLT STA Lecture 2215

STA Lecture 2216 Assumptions in the Example1 What type of data do we have? –Qualitative with two categories: Either “quit smoke” or “not quit smoke” What is the population distribution? –It is Bernoulli type. It is definitely not normal since it can only take two values Which sampling method has been used? –We assume simple random sampling What is the sample size? –n=244

STA Lecture 2217 Hypotheses Hypotheses are statements about population parameter. The null hypothesis (H 0 ) is the hypothesis that we test (and try to find evidence against) The name null hypothesis refers to the fact that it often (not always) is a hypothesis of “no effect” (no effect of a medical treatment, no difference in characteristics of populations, etc.)

The alternative hypothesis (H 1 ) is a hypothesis that contradicts the null hypothesis When we reject the null hypothesis, we are in favor of the alternative hypothesis. Often, the alternative hypothesis is the actual research hypothesis that we would like to “prove” by finding evidence against the null hypothesis (proof by contradiction) STA Lecture 2218

STA Lecture 2219 Hypotheses in the Example 1 Null hypothesis (H 0 ): The percentage of quitting smoke with Patch and Zyban are the same H 0 : Prop(patch) = Prop(zyban) Alternative hypothesis (H 1 ): The two proportions differ

STA Lecture 2220 Hypotheses in the Example 2 Null hypothesis (H 0 ): The percentage of free throw for Mr. Basketball is still 82% H 0 : Prop = 0.82 Alternative hypothesis (H 1 ): The proportion differs from 0.82

STA Lecture 2221 Test Statistic The test statistic is a statistic that is calculated from the sample data Formula will be given for test statistic, but you need to chose the right one.

STA Lecture 2222 Test Statistic in the Example 2 Test statistic: Sample proportion, = 40/59 =

STA Lecture 2223 p-Value How unusual is the observed test statistic when the null hypothesis is assumed true? The p-value is the probability, assuming that H 0 is true, that the test statistic takes values at least as contradictory to H 0 as the value actually observed The smaller the p-value, the more strongly the data contradict H 0

STA Lecture 2224 p-Value in the Example (contd.) What would be the p-value if the sample proportion was 0.1? What if the sample proportion was 1?

STA Lecture 2225 Conclusion Sometimes, in addition to reporting the p- value, a formal decision is made about rejecting or not rejecting the null hypothesis Most studies require small p-values like p<.05 or p<.01 as significant evidence against the null hypothesis “The results are significant at the 5% level”

STA Lecture 2226 Conclusion in the Example We have calculated a p-value of.1 This is not significant at the 5% level So, we cannot reject the null hypothesis (at the 5% level) So, do we believe the claim that the proportion of UK students wearing sandals is truly 50%? (evidence is not strong enough to throw out null Hypothesis)

STA Lecture 2227 p-Values and Their Significance p-Value < 0.01: Highly Significant / “Overwhelming Evidence” 0.01 < p-Value < 0.05: Significant / “Strong Evidence” 0.05 < p-Value < 0.1: Not Significant / “Weak Evidence” p-Value > 0.1: Not Significant / “No Evidence”

STA Lecture 2228 Decisions and Types of Errors in Tests of Hypotheses Terminology: –The alpha-level (significance level) is a number such that one rejects the null hypothesis if the p-value is less than or equal to it. The most common alpha-levels are.05 and.01 –The choice of the alpha-level reflects how cautious the researcher wants to be –The significance level needs to be chosen before analyzing the data

STA Lecture 2229 Decisions and Types of Errors in Tests of Hypotheses More Terminology: –The rejection region is a range of values such that if the test statistic falls into that range, we decide to reject the null hypothesis in favor of the alternative hypothesis

STA Lecture 2230 Type I and Type II Errors Type I Error: The null hypothesis is rejected, even though it is true. Type II Error: The null hypothesis is not rejected, even though it is false.

STA Lecture 2231 Type I and Type II Errors Decision Reject Do not reject Condition of the null hypothesis True Type I error Correct False Correct Type II error

STA Lecture 2232 Type I and Type II Errors Terminology: –Alpha = Probability of a Type I error –Beta = Probability of a Type II error –Power = 1 – Probability of a Type II error The smaller the probability of Type I error, the larger the probability of Type II error and the smaller the power If you ask for very strong evidence to reject the null hypothesis, it is more likely that you fail to detect a real difference

STA Lecture 2233 Type I and Type II Errors In practice, alpha is specified, and the probability of Type II error could be calculated, but the calculations are usually difficult How to choose alpha? If the consequences of a Type I error are very serious, then alpha should be small. For example, you want to find evidence that someone is guilty of a crime In exploratory research, often a larger probability of Type I error is acceptable If the sample size increases, both error probabilities can decrease

STA Lecture 2234 Attendance Survey Question 23 On a 4”x6” index card –Please write down your name and section number –Today’s Question: