Introduction to Hypothesis Testing: The Binomial Test

Slides:



Advertisements
Similar presentations
Statistics Hypothesis Testing.
Advertisements

Introduction to Hypothesis Testing
Lecture (11,12) Parameter Estimation of PDF and Fitting a Distribution Function.
Anthony Greene1 Simple Hypothesis Testing Detecting Statistical Differences In The Simplest Case:  and  are both known I The Logic of Hypothesis Testing:
Statistics.  Statistically significant– When the P-value falls below the alpha level, we say that the tests is “statistically significant” at the alpha.
Hypothesis Testing making decisions using sample data.
1 Hypothesis Testing Chapter 8 of Howell How do we know when we can generalize our research findings? External validity must be good must have statistical.
Review You run a t-test and get a result of t = 0.5. What is your conclusion? Reject the null hypothesis because t is bigger than expected by chance Reject.
Hypothesis Testing: One Sample Mean or Proportion
Cal State Northridge  320 Ainsworth Sampling Distributions and Hypothesis Testing.
Statistics for the Social Sciences Psychology 340 Fall 2006 Hypothesis testing.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 8-1 Business Statistics: A Decision-Making Approach 6 th Edition Chapter.
Hypothesis Tests for Means The context “Statistical significance” Hypothesis tests and confidence intervals The steps Hypothesis Test statistic Distribution.
Statistics for the Social Sciences Psychology 340 Spring 2005 Hypothesis testing.
Statistics for the Social Sciences Psychology 340 Fall 2006 Hypothesis testing.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 8-1 Chapter 8 Fundamentals of Hypothesis Testing: One-Sample Tests Statistics.
PY 427 Statistics 1Fall 2006 Kin Ching Kong, Ph.D Lecture 6 Chicago School of Professional Psychology.
PSY 307 – Statistics for the Behavioral Sciences
Chapter Ten Introduction to Hypothesis Testing. Copyright © Houghton Mifflin Company. All rights reserved.Chapter New Statistical Notation The.
Confidence Intervals and Hypothesis Testing - II
1 © Lecture note 3 Hypothesis Testing MAKE HYPOTHESIS ©
Introduction to Biostatistics and Bioinformatics
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 9 Hypothesis Testing: Single.
Sampling Distributions and Hypothesis Testing. 2 Major Points An example An example Sampling distribution Sampling distribution Hypothesis testing Hypothesis.
Chapter 8 Introduction to Hypothesis Testing
Let’s flip a coin. Making Data-Based Decisions We’re going to flip a coin 10 times. What results do you think we will get?
Week 8 Fundamentals of Hypothesis Testing: One-Sample Tests
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 7 Introduction to Hypothesis Testing. Lecture Goals After completing this lecture, you should be able to: Formulate null and alternative hypotheses.
Making decisions about distributions: Introduction to the Null Hypothesis 47:269: Research Methods I Dr. Leonard April 14, 2010.
Exam 1 Median: 74 Quartiles: 68, 84 Interquartile range: 16 Mean: 74.9 Standard deviation: 12.5 z = -1: 62.4 z = -1: 87.4 z = -1z = +1 Worst Question:
Hypothesis Testing A procedure for determining which of two (or more) mutually exclusive statements is more likely true We classify hypothesis tests in.
Statistical Inference Statistical Inference involves estimating a population parameter (mean) from a sample that is taken from the population. Inference.
Chap 8-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 8 Introduction to Hypothesis.
1 Chapter 8 Introduction to Hypothesis Testing. 2 Name of the game… Hypothesis testing Statistical method that uses sample data to evaluate a hypothesis.
Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall 9-1 σ σ.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
Hypothesis Testing. Outline of Today’s Discussion 1.Logic of Hypothesis Testing 2.Evaluating Hypotheses Please refrain from typing, surfing or printing.
Chapter 8: Introduction to Hypothesis Testing. Hypothesis Testing A hypothesis test is a statistical method that uses sample data to evaluate a hypothesis.
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.
6.2 Large Sample Significance Tests for a Mean “The reason students have trouble understanding hypothesis testing may be that they are trying to think.”
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.
Learning Objectives Describe the hypothesis testing process Distinguish the types of hypotheses Explain hypothesis testing errors Solve hypothesis testing.
+ Homework 9.1:1-8, 21 & 22 Reading Guide 9.2 Section 9.1 Significance Tests: The Basics.
Introduction to Hypothesis Testing: The Binomial Test
Hypothesis Testing.
Section Testing a Proportion
Unit 5: Hypothesis Testing
Review Ordering company jackets, different men’s and women’s styles, but HR only has database of employee heights. How to divide people so only 5% of.
Review You run a t-test and get a result of t = 0.5. What is your conclusion? Reject the null hypothesis because t is bigger than expected by chance Reject.
Hypothesis Tests Regarding a Parameter
Hypothesis Testing and Confidence Intervals (Part 1): Using the Standard Normal Lecture 8 Justin Kern October 10 and 12, 2017.
Introduction to Hypothesis Testing: The Binomial Test
CHAPTER 9 Testing a Claim
Chapter 8: Hypothesis Testing and Inferential Statistics
Hypothesis Testing: Hypotheses
Overview and Basics of Hypothesis Testing
Making Data-Based Decisions
CHAPTER 9 Testing a Claim
Daniela Stan Raicu School of CTI, DePaul University
CHAPTER 9 Testing a Claim
Significance Tests: The Basics
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
1 Chapter 8: Introduction to Hypothesis Testing. 2 Hypothesis Testing The general goal of a hypothesis test is to rule out chance (sampling error) as.
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
Introduction To Hypothesis Testing
Presentation transcript:

Introduction to Hypothesis Testing: The Binomial Test 10/1

ESP Your friend claims he can predict the future You flip a coin 5 times, and he’s right on 4 Is your friend psychic?

Two Hypotheses Hypothesis Psychic Luck Hypothesis testing A theory about how the world works Proposed as an explanation for data Posed as statement about population parameters Psychic Some ability to predict future Not perfect, but better than chance Luck Random chance Right half the time, wrong half the time Hypothesis testing A method that uses inferential statistics to decide which of two hypotheses the data support

Likelihood Likelihood Likelihood for f(correct) Probability distribution of a statistic, according to each hypothesis If result is likely according to a hypothesis, we say data “support” or “are consistent with” the hypothesis Likelihood for f(correct) Psychic: hard to say; how psychic? Luck: can work out exactly; 50/50 chance each time Population Sample Probability Inference Hypotheses Statistics Likelihood Support

Likelihood According to Luck Flip 1 2 3 4 5 Y N f(Y) likelihood 5 1/32 4 5/32 3 10/32 2 1

Binomial Distribution Binary data A set of two-choice outcomes, e.g. yes/no, right/wrong Binomial variable A statistic for binary samples Frequency of “yes” / “right” / etc. Binomial distribution Probability distribution for a binomial variable Gives probability for each possible value, from 0 to n A family of distributions Like Normal (need to specify mean and SD) n: number of observations (sample size) q: probability correct each time

Binomial Distribution Formula (optional): n = 20, q = .5 n = 5, q = .5 n = 20, q = .25 n = 20, q = .5 Frequency Frequency

Binomial Test Hypothesis testing for binomial statistics Null hypothesis Some fixed value for q, usually q = .5 Nothing interesting going on; blind chance (no ESP) Alternative hypothesis q equals something else One outcome more likely than expected by chance (ESP) Goal: Decide which hypothesis the data support Strategy Find likelihood distribution for f(Y) according to null hypothesis Compare actual result to this distribution If actual result is too extreme, reject null hypothesis and accept altenative hypothesis “Innocent until proven guilty” Believe null hypothesis unless compelling evidence to rule it out Only accept ESP if luck can’t explain the data

Testing for ESP Null hypothesis: Luck, q = .5 Alternative hypothesis: ESP, q > .5 Need to decide rules in advance If too extreme, abandon luck and accept ESP How unlikely before we will give up on Luck? Where to draw cutoff? Critical value: value our statistic must exceed to reject null hypothesis (Luck) Likelihood according to Luck: Binomial(n = 20, q = .5) Frequency Not at all unexpected Luck still a viable explanation Nearly impossible by luck alone

Another Example: Treatment Evaluation Do people tend to get better with some treatment? Less depression, higher WBC, better memory, etc. Measure who improves and who worsens Want more people better off than worse Sign test Ignore magnitude of change; just direction Same logic as other binomial tests Count number of patients improved Compare to probabilities according to chance

Structure of a Binomial Test Binary data Each patient is Better or Worse Each coin prediction is Correct or Incorrect Population parameter q Probability each patient will improve Probability each guess will be correct Null hypothesis, usually q = .5 No effect of treatment No ESP Better or worse equally likely Correct and incorrect equally likely Alternative hypothesis, here q > .5 Effective treatment; more people improve ESP; guess right more often than chance Work out likelihood according to null hypothesis Probability distribution for f(improve) Probability distribution for f(correct) Compare actual result to these probabilities If more improve than likely by chance, If more correct than likely by chance, accept treatment is useful abandon luck and accept ESP Need to decide critical value How many patients must improve? How many times correct? Frequency Probability

Errors Whatever the critical value, there will be errors All values 0 to n are possible under null hypothesis Even 20/20 happens once in 1,048,576 times Can only minimize how often errors occur Two kinds of errors: Type I error Null hypothesis is true, but we reject it Conclude a useless treatment is effective Type II error Null hypothesis is false, but we don’t reject it Don’t recognize when a treatment is effective

Critical Value and Error Rates Frequency Null Hypothesis (Bogus Treatments) Type I Errors Frequency ? Alternative Hypothesis (Effective Treatments) Type II Errors

Critical Value and Error Rates Increasing critical value reduces Type I error rate but increases Type II error rate (and vice versa) So, how do we decide critical value? Two principles Type I errors are more important to avoid Can’t figure out Type II error rate anyway Strategy Decide how many Type I errors are acceptable Choose critical value accordingly Frequency Null Hypothesis (Bogus Treatments) Type I Errors Frequency ? Alternative Hypothesis (Effective Treatments) Type II Errors

Controlling Type I Error Type I error rate Proportion of times, when null hypothesis is true, that we mistakenly reject it Fraction of bogus treatments that we conclude are effective Type I error rate equals total probability beyond the critical value, according to null hypothesis Strategy Decide what Type I error rate we want to allow Pick critical value accordingly Alpha level (a) Chosen Type I error rate Usually .05 in Psychology Determines critical value Frequency Null Hypothesis (Bogus Treatments) Type I Error Rate

Summary of Hypothesis Testing Determine Null and Alternative Hypotheses Competing possibilities about a population parameter Null is always precise; usually means “no effect” Find probability distribution of test statistic according to null hypothesis Likelihood of the statistic under that hypothesis Choose acceptable rate of Type I errors (a) Pick critical value of test statistic based on a Under Null, probability of a result past critical value equals a Compare actual result to critical value If more extreme, reject Null as unable to explain data Otherwise, stick with Null because it’s an adequate explanation Frequency Null Hypothesis (Bogus Treatments) Keep Null Reject Null Type I Error Rate (a)