Randomization Tests PSU 016 11/2/14.

Slides:



Advertisements
Similar presentations
Introducing Hypothesis Tests
Advertisements

Lecture 3 Outline: Thurs, Sept 11 Chapters Probability model for 2-group randomized experiment Randomization test p-value Probability model for.
Hypothesis Testing A hypothesis is a claim or statement about a property of a population (in our case, about the mean or a proportion of the population)
Inference Sampling distributions Hypothesis testing.
Statistics: Unlocking the Power of Data Lock 5 Hypothesis Testing: p-value STAT 250 Dr. Kari Lock Morgan SECTION 4.2 Randomization distribution p-value.
Chapter 10 Section 2 Hypothesis Tests for a Population Mean
Section 4.4 Creating Randomization Distributions.
Statistics: Unlocking the Power of Data Lock 5 Hypothesis Testing: p-value STAT 101 Dr. Kari Lock Morgan 9/25/12 SECTION 4.2 Randomization distribution.
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.
Synthesis and Review 3/26/12 Multiple Comparisons Review of Concepts Review of Methods - Prezi Essential Synthesis 3 Professor Kari Lock Morgan Duke University.
Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007.
The Probability of a Type II Error and the Power of the Test
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 10 Comparing Two Populations or Groups 10.1.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 10 Comparing Two Populations or Groups 10.1.
Logic and Vocabulary of Hypothesis Tests Chapter 13.
Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Fri, Nov 12, 2004.
Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Wed, Nov 1, 2006.
Testing Hypotheses about a Population Proportion Lecture 31 Sections 9.1 – 9.3 Wed, Mar 22, 2006.
Education 793 Class Notes Inference and Hypothesis Testing Using the Normal Distribution 8 October 2003.
AGENDA Review In-Class Group Problems Review. Homework #3 Due on Thursday Do the first problem correctly Difference between what should happen over the.
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.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
Statistics: Unlocking the Power of Data Lock 5 Section 4.1 Introducing Hypothesis Tests.
9.3 Hypothesis Tests for Population Proportions
Chapter 9: Testing a Claim
CHAPTER 10 Comparing Two Populations or Groups
One-Sample Inference for Proportions
Testing Hypotheses about a Population Proportion
Introducing Hypothesis Tests
Chapter 9: Testing a Claim
Measuring Evidence with p-values
Business Statistics Topic 7
Chapter 9: Testing a Claim
Examples of testing the mean and the proportion with single samples
CHAPTER 10 Comparing Two Populations or Groups
Hypothesis Testing: Hypotheses
Overview and Basics of Hypothesis Testing
Two-sided p-values (1.4) and Theory-based approaches (1.5)
Hypothesis Tests for a Population Mean in Practice
Unit 6 - Comparing Two Populations or Groups
Introducing Hypothesis Tests
CHAPTER 10 Comparing Two Populations or Groups
Tests About a Population Proportion
Chapter 9: Testing a Claim
Testing Hypotheses about a Population Proportion
Chapter 9: Testing a Claim
Chapter 9: Testing a Claim
CHAPTER 10 Comparing Two Populations or Groups
CHAPTER 10 Comparing Two Populations or Groups
Chapter 9: Testing a Claim
STA 291 Summer 2008 Lecture 18 Dustin Lueker.
CHAPTER 10 Comparing Two Populations or Groups
Chapter 9: Testing a Claim
Chapter 9: Testing a Claim
CHAPTER 10 Comparing Two Populations or Groups
Chapter 9: Testing a Claim
Chapter 9: Significance Testing
Sampling Distributions
Testing Hypotheses about a Population Proportion
CHAPTER 10 Comparing Two Populations or Groups
Chapter 9: Testing a Claim
CHAPTER 10 Comparing Two Populations or Groups
Unit 5: Hypothesis Testing
CHAPTER 10 Comparing Two Populations or Groups
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 10 Comparing Two Populations or Groups
Testing Hypotheses about a Population Proportion
Presentation transcript:

Randomization Tests PSU 016 11/2/14

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

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 Let’s do our own study! Make your own Zener cards: In groups of two or three One person will shuffle the cards and attempt to telepathically communicate the symbol (no auditory or visual clues!). One person will identify (guess) the symbol Record whether or not correct each time Do this a total of 15 times Mark the proportion correct on the board

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? Because there are 5 cards, each person has a 1/5 chance of guessing correctly each time, if ESP does not exist. H0: p = 1/5 Ha: p > 1/5

Extrasensory Perception 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? More general: How do we determine when a sample statistic is far enough away from H0 to be statistically significant?

SIMULATE what would happen if H0 were true! Key Question How unusual is it to see a sample statistic as extreme as that observed, if H0 is true? How do we know how unusual a sample statistic would be if H0 were true? SIMULATE what would happen if H0 were true!

ESP: Simulate! We just need to set up a rigged system so that the outcome we want happens 1/5 of the time in the long run Then we use the rigged outcome to simulate outcomes that could happen just by chance. There are lots of ways to do something like this… what are your ideas?

www.lock5stat.com/statkey Lots of simulations! It’s completely valid to just simulate by hand, but we need LOTS (thousands) of them… We can use software to do the work for us www.lock5stat.com/statkey

ESP – Random Chance Are our results statistically significant? What can we conclude?

Randomization Distribution A randomization distribution is a collection of statistics from samples simulated assuming the null hypothesis is true

p-value The p-value is the chance of obtaining a sample statistic as extreme as (or more extreme than) the observed sample statistic, if the null hypothesis is true

Calculating a p-value What kinds of statistics would we get, just by random chance, if the null hypothesis were true? (randomization distribution) What proportion of these statistics are as extreme as our original sample statistic? (p-value)

Proportion as extreme as observed statistic ESP p-value Distribution of statistics that would be observed, just by random chance, if H0 true p-value = 0.247 Proportion as extreme as observed statistic p-value If you were guessing randomly, the chance of getting a sample proportion as high as 0.294 is 0.247. observed statistic

This idea works for any parameter! Randomization Test p-values can be calculated by randomization distributions: Create a randomization distribution by simulating statistics you would see, just by random chance, if H0 were true Find the p-value as the proportion of simulated statistics as extreme as the observed statistic This idea works for any parameter!

p-value and Ha H0:  = 0 Upper-tail Ha:  > 0 (Right Tail) 𝑥 =2 𝑥 =−1 Lower-tail (Left Tail) H0:  = 0 Ha:  ≠ 0 𝑥 =2 Two-tailed

Summary p-values can be calculated by randomization distributions: Create a randomization distribution by simulating statistics you would see, just by random chance, if H0 were true Find the p-value as the proportion of simulated statistics as extreme as the observed statistic p-values by randomization distributions will deliver the same results as those estimated using a theoretical reference distribution (Normal, t, etc) as long as the conditions for use are appropriate…

homework Randomization Test Assignment on Canvas (due on Canvas before next class) Keep up with Piazza Posts Post pictures for the “Get Involved” assignment Participate in World-in-Conversation