Introducing Hypothesis Tests

Slides:



Advertisements
Similar presentations
Introducing Hypothesis Tests
Advertisements

Hypothesis Testing: Intervals and Tests
Hypothesis Testing making decisions using sample data.
Hypothesis Testing I 2/8/12 More on bootstrapping Random chance
Hypothesis Testing: Hypotheses
Introducing Inference with Simulation Methods; Implementation at Duke University Kari Lock Morgan Department of Statistical Science, Duke University
Statistics: Unlocking the Power of Data Lock 5 Hypothesis Testing: Hypotheses STAT 101 Dr. Kari Lock Morgan SECTION 4.1 Statistical test Null and alternative.
Randomization Tests Dr. Kari Lock Morgan PSU /5/14.
Statistics: Unlocking the Power of Data Lock 5 Synthesis STAT 250 Dr. Kari Lock Morgan SECTIONS 4.4, 4.5 Connecting bootstrapping and randomization (4.4)
Hypothesis Testing: p-value
Statistics: Unlocking the Power of Data Lock 5 Afternoon Session Using Lock5 Statistics: Unlocking the Power of Data Patti Frazer Lock University of Kentucky.
Introducing Inference with Simulation Methods; Implementation at Duke University Kari Lock Morgan Department of Statistical Science, Duke University
AP Statistics Section 11.1 A Basics of Significance Tests
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Unit 5: Hypothesis Testing.
Statistics: Unlocking the Power of Data Lock 5 Bootstrap Intervals Dr. Kari Lock Morgan PSU /12/14.
Hypothesis Testing with One Sample Chapter 7. § 7.1 Introduction to Hypothesis Testing.
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
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
1 CHAPTER 4 CHAPTER 4 WHAT IS A CONFIDENCE INTERVAL? WHAT IS A CONFIDENCE INTERVAL? confidence interval A confidence interval estimates a population parameter.
AP Statistics Section 11.1 B More on Significance Tests.
Statistics: Unlocking the Power of Data Lock 5 Hypothesis Testing: Hypotheses STAT 250 Dr. Kari Lock Morgan SECTION 4.1 Hypothesis test Null and alternative.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 10 Comparing Two Groups Section 10.1 Categorical Response: Comparing Two Proportions.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Unit 5: Hypothesis Testing.
Tests of Significance: Stating Hypothesis; Testing Population Mean.
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.
Uncertainty and confidence Although the sample mean,, is a unique number for any particular sample, if you pick a different sample you will probably get.
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.
Slide 20-1 Copyright © 2004 Pearson Education, Inc.
Statistics: Unlocking the Power of Data Lock 5 Hypothesis Testing: p-value STAT 250 Dr. Kari Lock Morgan SECTION 4.2 p-value.
Statistics: Unlocking the Power of Data Lock 5 Section 4.1 Introducing Hypothesis Tests.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. 1 FINAL EXAMINATION STUDY MATERIAL III A ADDITIONAL READING MATERIAL – INTRO STATS 3 RD EDITION.
+ Homework 9.1:1-8, 21 & 22 Reading Guide 9.2 Section 9.1 Significance Tests: The Basics.
Hypothesis Testing: One-Sample Inference
CHAPTER 9 Testing a Claim
Randomization Tests PSU /2/14.
Unit 5: Hypothesis Testing
Testing Hypotheses about Proportions
CHAPTER 9 Testing a Claim
Warm Up Check your understanding p. 541
Measuring Evidence with p-values
Testing Hypotheses About Proportions
Hypothesis Testing and Confidence Intervals (Part 1): Using the Standard Normal Lecture 8 Justin Kern October 10 and 12, 2017.
Statistical inference: distribution, hypothesis testing
CHAPTER 9 Testing a Claim
Section 4.5 Making Connections.
CONCEPTS OF HYPOTHESIS TESTING
Week 11 Chapter 17. Testing Hypotheses about Proportions
AP Stats Check In Where we’ve been…
Introduction to Inference
Two-sided p-values (1.4) and Theory-based approaches (1.5)
CHAPTER 9 Testing a Claim
Introduction to Inference
Chapter 9: testing a claim
CHAPTER 9 Testing a Claim
Introducing Hypothesis Tests
CHAPTER 9 Testing a Claim
Significance Tests: The Basics
Section 9.1 Significance Tests: The Basics
Significance Tests: The Basics
Testing Hypotheses About Proportions
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
Chapter 9: Significance Testing
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
Presentation transcript:

Introducing Hypothesis Tests Section 4.1 Introducing Hypothesis Tests

Review A 99% confidence interval is wider than a 95% confidence interval narrower than a 95% confidence interval the same width as a 95% confidence interval A 99% CI contains the middle 99% of bootstrap statistics, while a 95% CI contains only the middle 95%. To be more confident that the interval contains the truth, a 99% interval has to contain more values than a 95% interval. If a lot of people miss this, consider opening StatKey or drawing a bootstrap distribution on the board and comparing the middle 99% to the middle 95%

Extrasensory Perception Is there such a thing as extrasensory perception (ESP) or a “sixth sense”? Do you believe in ESP? Yes No

Extrasensory Perception

Extrasensory Perception One way to test for ESP is with Zener cards: Subjects draw a card at random and telepathically communicate this to someone who then guesses the symbol

Extrasensory Perception There are five cards with five different symbols If there is no such thing as ESP, what proportion of guesses should be correct? p = 0 p = 1/4 p = 1/5 p = 1/2 Because there are 5 cards, each person has a 1/5 chance of guessing correctly each time, if ESP does not exist.

Extrasensory Perception As we’ve learned, statistics vary from sample to sample Even if the population proportion is 1/5, not every sample proportion will be exactly 1/5 How do we determine when a sample proportion is far enough above 1/5 to provide evidence of ESP?

Statistical Test A statistical test is used to determine whether results from a sample are convincing enough to allow us to conclude something about the population. In the ESP experiment, we want to use sample data to determine whether the population proportion of correct guesses is really higher than 1/5

Statistical Evidence Let 𝑝 denote the sample proportion of correct guesses in an ESP experiment Which of these sample statistics would give the strongest evidence for ESP? 𝑝 =0 𝑝 =1/5 𝑝 = 1/2 𝑝 = 3/4 3/4 is the highest, so provides the strongest evidence of ESP.

Extrasensory Perception Let’s create our own sample proportion! Randomly choose a letter from A B C D E, and write it down (don’t show anyone!) Find a partner, telepathically communicate your letter (no auditory or visual clues!), and have them guess your letter. Switch roles. Did you guess correctly? Yes No

Extrasensory Perception What is the sample proportion for our class? This provides Next class, we’ll learn how to quantify this evidence! Strong evidence for ESP Weak evidence for ESP No evidence for ESP Not sure

Statistical Hypotheses Statistical tests are framed formally in terms of two competing hypotheses: Null Hypothesis (H0): Claim that there is no effect or difference. Alternative Hypothesis (Ha): Claim for which we seek evidence.

Statistical Hypotheses Competing claims about a population Ho: Null hypothesis Ha: Alternative hypothesis The alternative hypothesis is established by observing evidence (data) that contradicts the null hypothesis and supports the alternative hypothesis

ESP Hypotheses For the ESP experiment: H0: ESP does not exist Ha: ESP exists Translate into parameters: Ho: p = 1/5 Ha: p > 1/5 No “effect” or no “difference” Claim we seek “evidence” for

Hypothesis Helpful Hints Hypotheses are always about population parameters, not sample statistics The null hypothesis always contains an equality The alternative hypothesis always contains an inequality (<, >, ≠) The type of inequality in the alternative comes from the wording of the question of interest

Sleep versus Caffeine 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 Is sleep or caffeine better for memory? 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.

Sleep versus Caffeine What is the parameter of interest in the sleep versus caffeine experiment? Proportion Difference in proportions Mean Difference in means Correlation The response variable (number of words recalled) is quantitative and the explanatory variable (sleep or caffeine) is categorical, so we are interested in a difference in means.

Sleep versus Caffeine H0: s ≠ c, Ha: s = c Let s and c be the mean number of words recalled after sleeping and after caffeine. Is there a difference in average word recall between sleep and caffeine? What are the null and alternative hypotheses? H0: s ≠ c, Ha: s = c H0: s = c, Ha: s ≠ c H0: s ≠ c, Ha: s > c H0: s = c, Ha: s > c H0: s = c, Ha: s < c The null hypotheses is “no difference,” or that the means are equal. The alternative hypothesis is that there is a difference.

Difference in Hypotheses Note: the following two sets of hypotheses are equivalent, and can be used interchangeably: H0: 1 = 2 Ha: 1 ≠ 2 H0: 1 – 2 = 0 Ha: 1 – 2 ≠ 0

Hypotheses Take a minute to write down the hypotheses for each of the following situations: Does the proportion of people who support gun control differ between males and females? Is the average hours of sleep per night for college students less than 7?

Hypotheses Take a minute to write down the hypotheses for each of the following situations: Does the proportion of people who support gun control differ between males and females? Is the average hours of sleep per night for college students less than 7? H0: pf = pm Ha: pf ≠ pm pf: proportion of females who support gun control pm: proportion of males who support gun control H0:  =7 Ha:  < 7 : average hours of sleep per night for college students

Your Own Hypotheses Come up with a situation where you want to establish a claim based on data What parameter(s) are you interested in? What would the null and alternative hypotheses be? What type of data would lead you to believe the null hypothesis is probably not true?

Evidence The goal of a hypothesis test is to determine whether the sample data provide enough evidence to refute the null hypothesis in favor of the alternative hypothesis.

ESP Evidence H0: p = 1/5 = 0.2 Ha: p > 1/5 Which 𝑝 would give the strongest evidence against H0 and in favor of Ha? 𝑝 =0 𝑝 =1/6 𝑝 =1/5 𝑝 = 1/4 𝑝 = 1/2 1/2 is the farthest above 1/5, so is the strongest evidence against H0: p = 1/5 and in favor of Ha: p > 1/5

ESP Evidence How high does 𝑝 ℎ𝑎𝑣𝑒 𝑡𝑜 𝑏𝑒 𝑡𝑜 𝑠𝑎𝑦 𝐸𝑆𝑃 𝑒𝑥𝑖𝑠𝑡𝑠??? 𝑝 = 1/3 H0: p = 1/5 Ha: p > 1/5 Discuss the following in terms of evidence against H0 and in favor of Ha: 𝑝 =1/6 No evidence against H0 or in favor of Ha 𝑝 =1/5 𝑝 = 1/4 Some evidence against H0 or in favor of Ha (enough??) 𝑝 = 1/3 Stronger evidence against H0 or in favor of Ha (enough??) How high does 𝑝 ℎ𝑎𝑣𝑒 𝑡𝑜 𝑏𝑒 𝑡𝑜 𝑠𝑎𝑦 𝐸𝑆𝑃 𝑒𝑥𝑖𝑠𝑡𝑠???

Coming Attractions! How do we measure strength of evidence against H0 and in favor of Ha? Next class! How do we know whether we have enough evidence to reject H0 in favor of Ha? The following class!

Summary Statistical tests use data from a sample to assess a claim about a population Statistical tests are usually formalized with competing hypotheses: Null hypothesis (H0): no effect or no difference Alternative hypothesis (Ha): what we seek evidence for A hypothesis test examines whether sample data provide enough evidence to refute the null hypothesis and support the alternative hypothesis.