Hypothesis Testing.

Slides:



Advertisements
Similar presentations
Statistics.  Statistically significant– When the P-value falls below the alpha level, we say that the tests is “statistically significant” at the alpha.
Advertisements

Hypothesis Testing An introduction. Big picture Use a random sample to learn something about a larger population.
Inference Sampling distributions Hypothesis testing.
Differences Between Population Averages. Testing the Difference Is there a difference between two populations? Null Hypothesis: H 0 or Alternate Hypothesis:
Chapter 10 Section 2 Hypothesis Tests for a Population Mean
Testing Hypotheses About Proportions Chapter 20. Hypotheses Hypotheses are working models that we adopt temporarily. Our starting hypothesis is called.
STAT 135 LAB 14 TA: Dongmei Li. Hypothesis Testing Are the results of experimental data due to just random chance? Significance tests try to discover.
Section 9.1 ~ Fundamentals of Hypothesis Testing Introduction to Probability and Statistics Ms. Young.
Chapter 9 Hypothesis Tests. The logic behind a confidence interval is that if we build an interval around a sample value there is a high likelihood that.
Chapter 9 Hypothesis Testing Testing Hypothesis about µ, when the s.t of population is known.
Hypothesis Testing Steps of a Statistical Significance Test. 1. Assumptions Type of data, form of population, method of sampling, sample size.
Hypothesis Testing After 2 hours of frustration trying to fill out an IRS form, you are skeptical about the IRS claim that the form takes 15 minutes on.
Copyright ©2005 Brooks/Cole, a division of Thomson Learning, Inc. Rejecting Chance – Testing Hypotheses in Research Chapter 22.
Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007.
Hypothesis Tests In statistics a hypothesis is a statement that something is true. Selecting the population parameter being tested (mean, proportion, variance,
Chapter 8 Hypothesis testing 1. ▪Along with estimation, hypothesis testing is one of the major fields of statistical inference ▪In estimation, we: –don’t.
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
1 Power and Sample Size in Testing One Mean. 2 Type I & Type II Error Type I Error: reject the null hypothesis when it is true. The probability of a Type.
Section 10.3 Hypothesis Testing for Means (Large Samples) HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2008 by Hawkes Learning Systems/Quant.
STA Statistical Inference
Associate Professor Arthur Dryver, PhD School of Business Administration, NIDA url:
Lesson Significance Tests: The Basics. Vocabulary Hypothesis – a statement or claim regarding a characteristic of one or more populations Hypothesis.
Don’t forget HW due on Tuesday. Assignment is on web.
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.
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.
AP Statistics Chapter 20 Notes
Section 9.3 ~ Hypothesis Tests for Population Proportions Introduction to Probability and Statistics Ms. Young.
Significance Test A claim is made. Is the claim true? Is the claim false?
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.
10.1: Confidence Intervals Falls under the topic of “Inference.” Inference means we are attempting to answer the question, “How good is our answer?” Mathematically:
Correct decisions –The null hypothesis is true and it is accepted –The null hypothesis is false and it is rejected Incorrect decisions –Type I Error The.
Statistics 101 Chapter 10 Section 2. How to run a significance test Step 1: Identify the population of interest and the parameter you want to draw conclusions.
MATH 2400 Ch. 15 Notes.
Chapter 20 Testing Hypothesis about proportions
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.
Using Inference to MAKE DECISIONS The Type I and Type II Errors in Hypothesis Testing.
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.
BPS - 3rd Ed. Chapter 141 Tests of significance: the basics.
Unit 8 Section 8-3 – Day : P-Value Method for Hypothesis Testing  Instead of giving an α value, some statistical situations might alternatively.
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.
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
Logic and Vocabulary of Hypothesis Tests Chapter 13.
Welcome to MM570 Psychological Statistics
AP Statistics Section 11.1 B More on Significance Tests.
Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Fri, Nov 12, 2004.
Business Statistics for Managerial Decision Farideh Dehkordi-Vakil.
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.
AP Statistics Chapter 11 Notes. Significance Test & Hypothesis Significance test: a formal procedure for comparing observed data with a hypothesis whose.
Tests of Significance: Stating Hypothesis; Testing Population Mean.
Testing a Single Mean Module 16. Tests of Significance Confidence intervals are used to estimate a population parameter. Tests of Significance or Hypothesis.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
More about tests and intervals CHAPTER 21. Do not state your claim as the null hypothesis, instead make what you’re trying to prove the alternative. The.
SECTION 1 TEST OF A SINGLE PROPORTION
Chapter 9 Hypothesis Testing Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze.
Statistics 20 Testing Hypothesis and Proportions.
Comparing Two Proportions Chapter 21. In a two-sample problem, we want to compare two populations or the responses to two treatments based on two independent.
STA 291 Spring 2010 Lecture 18 Dustin Lueker.
Section 11.2: Carrying Out Significance Tests
Testing Hypotheses about Proportions
STA 291 Spring 2008 Lecture 18 Dustin Lueker.
STA 291 Summer 2008 Lecture 18 Dustin Lueker.
Chapter 9: Significance Testing
Section 11.1: Significance Tests: Basics
STA 291 Spring 2008 Lecture 17 Dustin Lueker.
Testing Hypotheses about a Population Proportion
Presentation transcript:

Hypothesis Testing

What is a Hypothesis? Claim Average Weekly Entertainment Spending is 55? How would you test that claim? Make it interesting, what if a add company will pay $1,000 to get a commerical message infront of the class if the Mojo is greater than 55, but they will only pay $500 if the Mojo level is less than 55. I make the claim that the Mojo level is 55, I'd like the $1,000. How could I convince the advertiser that is true? Sample, it will not equal true population value. It will be close, but how close will it be?

How to Test a Hypothesis Average Weekly Entertainment Spending 75.0 70.0 65.0 60.0 55.0 50.0 45.0 40.0 35.0 30.0 12 10 8 6 4 2 Std. Dev = 11.90 Mean = 49.8 N = 38.00

Hypothesis Testing Statistical hypothesis testing represents a formal, systematic approach to evaluating data, and deciding whether the results from an observed sample of data can be generalized to a larger population, or if instead the results might just be due to chance.

Who Likes Wallace and Gromit? Potential Hypothesis about the Wallace and Gromit (W&G): Males prefer W&G to Females

Who Likes Wallace and Gromit? Potential Hypothesis about the Wallace and Gromit (W&G): Males prefer W&G to Females Greeks prefer the W&G over independents

Who Likes Wallace and Gromit? Potential Hypothesis about the Wallace and Gromit (W&G): Males prefer W&G to Females Greeks prefer the W&G over independents If you have heard about W&G you will prefer them over people who have not heard of the W&G

Who Likes Wallace and Gromit? Potential Hypothesis about the Wallace and Gromit (W&G): Males prefer W&G to Females Greeks prefer the W&G over independents If you have heard about W&G you will prefer them over people who have not heard of the W&G If you have watched the W&G you will prefer them over people who have not watched the W&G

Who Likes Wallace and Gromit? Potential Hypothesis about the Wallace and Gromit (W&G): Males prefer W&G to Females Greeks prefer the W&G over independents If you have heard about W&G you will prefer them over people who have not heard of the W&G If you have watched the W&G you will prefer them over people who have not watched the W&G If you have lived outside the USA for more than 6 months you will prefer W&G over people who have lived in the USA

Who Likes Wallace and Gromit? Potential Hypothesis about the Wallace and Gromit (W&G): Males prefer W&G to Females Greeks prefer the W&G over independents If you have heard about W&G you will prefer them over people who have not heard of the W&G If you have watched the W&G you will prefer them over people who have not watched the W&G If you have lived outside the USA for more than 6 months you will prefer W&G over people who have lived in the USA A greater percentage of people who have lived outside of the USA have watched W&G previously

Checking out Wallace and Gromit

Wallace and Gromit Questionnaire Survey is Anonymous

Wallace and Gromit Questionnaire Survey is Anonymous Age Gender Member of a fraternity or sorority Ever lived out side of the USA for more than 6 months

Wallace and Gromit Questionnaire Survey is Anonymous Age Gender Member of a fraternity or sorority Ever lived out side of the USA for more than 6 months Ever heard of Wallace and Gromit Ever watched Wallace and Gromit If so, when was last time watched

Wallace and Gromit Questionnaire Survey is Anonymous Age Gender Ever lived out side of the USA for more than 6 months Member of a fraternity or sorority Ever heard of Wallace and Gromit Ever watched Wallace and Gromit If so, when was last time watched Rate on scale from 1 to 5 (1 = strongly disagree; 5 = strongly agree) Wallace and Gromit is clever comedy Wallace and Gromit is my kind of entertainment Would watch Wallace and Gromit again at home

Hypothesis Testing Structure 1. Business question: 2. Null hypothesis (H0): 3. Alternative hypothesis (Ha): 4. Test statistic: 5. Rejection region: 6. Observed test statistic: 7. p-value: 8. Statistical conclusion: 9. Business conclusion:

Example 1: Over a period of years, a toothpaste has received a mean customer satisfaction rating of 5.9 out of 7. Because of a change in suppliers, there is concern that customer satisfaction may have decreased. In a sample of 60 customers, the mean rating is found to be 5.60, with a standard deviation of 0.87.

Hypothesized Mean Hypothesized Mean

Toothpaste Example 1. Business question: 2. Null hypothesis (H0): 3. Alternative hypothesis (Ha): 4. Test statistic: 5. Rejection region:

Toothpaste Example 1. Business question: Has Customer Satisfaction Decreased? 2. Null hypothesis (H0): 3. Alternative hypothesis (Ha): 4. Test statistic: 5. Rejection region:

Toothpaste Example 1. Business question: Has Customer Satisfaction Decreased? 2. Null hypothesis (H0): Try to Prove Wrong! 3. Alternative hypothesis (Ha): 4. Test statistic: 5. Rejection region:

Toothpaste Example 1. Business question: Has Customer Satisfaction Changed? 2. Null hypothesis (H0): Try to Prove Wrong! m0 = m : True Mean equals the Hypothesized Mean 3. Alternative hypothesis (Ha): 4. Test statistic: 5. Rejection region:

Toothpaste Example 1. Business question: Has Customer Satisfaction Changed? 2. Null hypothesis (H0): Try to Prove Wrong! m0 = m : True Mean equals the Hypothesized Mean 5.9 = m : True Average Equals 5.9 3. Alternative hypothesis (Ha): 4. Test statistic: 5. Rejection region:

Toothpaste Example 1. Business question: Has Customer Satisfaction Changed? 2. Null hypothesis (H0): Try to Prove Wrong! m0 = m : True Mean equals the Hypothesized Mean 5.9 = m : True Average Equals 5.9 3. Alternative hypothesis (Ha): What We Really Think! 4. Test statistic: 5. Rejection region:

Toothpaste Example 1. Business question: Has Customer Satisfaction Changed? 2. Null hypothesis (H0): Try to Prove Wrong! m0 = m : True Mean equals the Hypothesized Mean 5.9 = m : True Average Equals 5.9 3. Alternative hypothesis (Ha): What We Really Think! m0  m : Something Has Changed 4. Test statistic: 5. Rejection region:

Toothpaste Example 1. Business question: Has Customer Satisfaction Changed? 2. Null hypothesis (H0): Try to Prove Wrong! m0 = m : True Mean equals the Hypothesized Mean 5.9 = m : True Average Equals 5.9 3. Alternative hypothesis (Ha): What We Really Think! m0  m : Something Has Changed True Average Not Equal to 5.9 4. Test statistic: 5. Rejection region:

Toothpaste Example 1. Business question: Has Customer Satisfaction Changed? 2. Null hypothesis (H0): Try to Prove Wrong! m0 = m : True Mean equals the Hypothesized Mean 5.9 = m : True Average Equals 5.9 3. Alternative hypothesis (Ha): What We Really Think! m0  m : Something Has Changed True Average Not Equal to 5.9 4. Test statistic:Test using a Z-score 5. Rejection region:

Toothpaste Example 1. Business question: Has Customer Satisfaction Changed? 2. Null hypothesis (H0): Try to Prove Wrong! m0 = m : True Mean equals the Hypothesized Mean 5.9 = m : True Average Equals 5.9 3. Alternative hypothesis (Ha): What We Really Think! m0  m : Something Has Changed True Average Not Equal to 5.9 4. Test statistic:Test using a Z-score 5. Rejection region: If Z-score,

Toothpaste Example 1. Business question: Has Customer Satisfaction Changed? 2. Null hypothesis (H0): Try to Prove Wrong! m0 = m : True Mean equals the Hypothesized Mean 5.9 = m : True Average Equals 5.9 3. Alternative hypothesis (Ha): What We Really Think! m0  m : Something Has Changed True Average Not Equal to 5.9 4. Test statistic:Test using a Z-score 5. Rejection region: If Z-score, based on m0,

Toothpaste Example 1. Business question: Has Customer Satisfaction Changed? 2. Null hypothesis (H0): Try to Prove Wrong! m0 = m : True Mean equals the Hypothesized Mean 5.9 = m : True Average Equals 5.9 3. Alternative hypothesis (Ha): What We Really Think! m0  m : Something Has Changed True Average Not Equal to 5.9 4. Test statistic:Test using a Z-score 5. Rejection region: If Z-score, based on m0, is unusual -- far away from 0, reject Null Hypothesis

Toothpaste Example The Z-score: Example 1: Over a period of years, a toothpaste has received a mean customer satisfaction rating of 5.90 out of 7. Because of a change in suppliers, there is concern that customer satisfaction may have decreased. In a sample of 60 customers, the mean rating is found to be 5.60, with a standard deviation of 0.87. The Z-score:

How Unusual is Z = -2.67? Hypothesized Mean

Toothpaste Example 5. Rejection region: Depends on Confidence Level 6. Observed test statistic: 7. p-value: 8. Statistical conclusion: 9. Business conclusion:

Toothpaste Example 5. Rejection region: Depends on Confidence Level 95% Confidence Level, if Z > 1.96 or Z < -1.96, Reject Null 6. Observed test statistic: 7. p-value: 8. Statistical conclusion: 9. Business conclusion:

95% Rejection Region Reject Accept Reject

Other Rejection Regions -1.645 1.645 Reject 99% Region Reject -2.57 2.57

Toothpaste Example 5. Rejection region: Depends on Confidence Level 95% Confidence Level, if Z > 1.96 or Z < -1.96, Reject Null 6. Observed test statistic: Already Calculated z = -2.67 7. p-value: 8. Statistical conclusion: 9. Business conclusion:

Toothpaste Example 5. Rejection region: Depends on Confidence Level 95% Confidence Level, if Z > 1.96 or Z < -1.96, Reject Null 6. Observed test statistic: Already Calculated z = -2.67 7. p-value: 8. Statistical conclusion: Reject Null Hypothesis 9. Business conclusion:

Toothpaste Example 5. Rejection region: Depends on Confidence Level 95% Confidence Level, if Z > 1.96 or Z < -1.96, Reject Null 6. Observed test statistic: Already Calculated z = -2.67 7. p-value: 8. Statistical conclusion: Reject Null Hypothesis 9. Business conclusion: Average Customer Satisfaction Has Changed In Particular, Decreased.

Toothpaste Example 5. Rejection region: Depends on Confidence Level 95% Confidence Level, if Z > 1.96 or Z < -1.96, Reject Null 6. Observed test statistic: Already Calculated z = -2.67 7. p-value: pr(z<-2.67 or z>2.67) 8. Statistical conclusion: Reject Null Hypothesis 9. Business conclusion: Average Customer Satisfaction Has Changed In Particular, Decreased

p-value The p-value is a measure of the evidence against H0; it is the probability of observing the test statistic z given that H0 is true.

p-value The p-value is a measure of the evidence against H0; it is the probability of observing the test statistic z given that H0 is true. Small p-value  (accept/reject) H0 Large p-value  (accept/reject) H0

p-value pr(z<-2.67) + pr(z>2.67) 2 x pr(z>2.67) = 2 x (0.0038) p-value = (0.0076)