Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8_card-1 Lesson 8, Additional Materials: Card demonstration of hypothesis tests.

Slides:



Advertisements
Similar presentations
Introduction to Hypothesis Testing
Advertisements

Anthony Greene1 Simple Hypothesis Testing Detecting Statistical Differences In The Simplest Case:  and  are both known I The Logic of Hypothesis Testing:
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)
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.
Likelihood ratio tests
Section 7.1 Hypothesis Testing: Hypothesis: Null Hypothesis (H 0 ): Alternative Hypothesis (H 1 ): a statistical analysis used to decide which of two competing.
Chapter 9 Hypothesis Testing Testing Hypothesis about µ, when the s.t of population is known.
Business Statistics - QBM117
Hypothesis Testing Steps of a Statistical Significance Test. 1. Assumptions Type of data, form of population, method of sampling, sample size.
Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8-1 Lesson 8: One-Sample Tests of Hypothesis.
Ka-fu Wong © 2003 Chap 8- 1 Dr. Ka-fu Wong ECON1003 Analysis of Economic Data.
8-2 Basics of Hypothesis Testing
© 2013 Pearson Education, Inc. Active Learning Lecture Slides For use with Classroom Response Systems Introductory Statistics: Exploring the World through.
BCOR 1020 Business Statistics Lecture 20 – April 3, 2008.
Irwin/McGraw-Hill © The McGraw-Hill Companies, Inc., 2000 LIND MASON MARCHAL 1-1 Chapter Eight Tests of Hypothesis Large Samples GOALS When you have completed.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
1 Dr. Jerrell T. Stracener EMIS 7370 STAT 5340 Probability and Statistics for Scientists and Engineers Department of Engineering Management, Information.
Presented by Mohammad Adil Khan
Sections 8-1 and 8-2 Review and Preview and Basics of Hypothesis Testing.
Chapter 8 Hypothesis Testing “Could these observations really have occurred by chance?” Shannon Sprott GEOG /3/2010.
Section 9.1 Introduction to Statistical Tests 9.1 / 1 Hypothesis testing is used to make decisions concerning the value of a parameter.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap th Lesson Introduction to Hypothesis Testing.
Overview Basics of Hypothesis Testing
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.
Hypothesis Testing for Proportions
Hypothesis testing Chapter 9. Introduction to Statistical Tests.
Ka-fu Wong © Dr. Ka-fu Wong ECON1003 Analysis of Economic Data.
Maximum Likelihood Estimator of Proportion Let {s 1,s 2,…,s n } be a set of independent outcomes from a Bernoulli experiment with unknown probability.
One-Sample Tests of Hypothesis Chapter 10 McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved.
1 Lecture note 4 Hypothesis Testing Significant Difference ©
CHAPTER 17: Tests of Significance: The Basics
Don’t cry because it is all over, smile because it happened.
Section 9.3 ~ Hypothesis Tests for Population Proportions Introduction to Probability and Statistics Ms. Young.
"Kind words can be short and easy to speak, but their echoes are truly endless“ - Mother Teresa.
One-Sample Tests of Hypothesis. Hypothesis and Hypothesis Testing HYPOTHESIS A statement about the value of a population parameter developed for the purpose.
Significance Test A claim is made. Is the claim true? Is the claim false?
Chapter 8 Introduction to Hypothesis Testing ©. Chapter 8 - Chapter Outcomes After studying the material in this chapter, you should be able to: 4 Formulate.
Hypothesis Testing State the hypotheses. Formulate an analysis plan. Analyze sample data. Interpret the results.
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.
9.1 – The Basics Ch 9 – Testing a Claim. Jack’s a candidate for mayor against 1 other person, so he must gain at least 50% of the votes. Based on a poll.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
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.
Unit 8 Section 8-1 & : Steps in Hypothesis Testing- Traditional Method  Hypothesis Testing – a decision making process for evaluating a claim.
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.
Copyright © 2011 Pearson Education, Inc. Putting Statistics to Work.
Logic and Vocabulary of Hypothesis Tests Chapter 13.
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.
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.
© 2013 Pearson Education, Inc. Active Learning Lecture Slides For use with Classroom Response Systems Introductory Statistics: Exploring the World through.
Ch. 26 Tests of significance Example: –Goal: Decide if a die is fair. –Procedure: Roll a die 100 times and count the number of dots. We observe 368 total.
1 Section 8.2 Basics of Hypothesis Testing Objective For a population parameter (p, µ, σ) we wish to test whether a predicted value is close to the actual.
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.
If we fail to reject the null when the null is false what type of error was made? Type II.
Chapter Ten McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved. One-Sample Tests of Hypothesis.
Section 9.1 First Day The idea of a significance test What is a p-value?
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
Slide Slide 1 Hypothesis Testing 8-1 Overview 8-2 Basics of Hypothesis Testing Chapter 8.
Ex St 801 Statistical Methods Part 2 Inference about a Single Population Mean (HYP)
Review and Preview and Basics of Hypothesis Testing
Hypothesis Tests for 1-Sample Proportion
Overview and Basics of Hypothesis Testing
Hypothesis Testing Summer 2017 Summer Institutes.
Chapter 9 Hypothesis Testing.
Chapter Review Problems
P-value Approach for Test Conclusion
Statistical Inference
One-Sample Tests of Hypothesis
Section 11.1: Significance Tests: Basics
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.
Presentation transcript:

Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8_card-1 Lesson 8, Additional Materials: Card demonstration of hypothesis tests

Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8_card -2 Card experiment We are going to perform an experiment on a deck of 52 cards. Count the actual number of red cards out of 10 trials (with replacement). What is the probability of getting a red card on any trial? Hypothesis: p=0.5 Expected value = 0.5 Standard deviation = (0.5*0.5) 1/2 = 0.5

Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8_card -3 Card experiment results (10 trials) TrialCard color (B/R)Proportion (#Red/#trial) 1B0 2B0 3B0 4B0 5B0 6B0 7B0 8B0 9B0 10B0

Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8_card -4 Hypothesis Hypothesis: p = 0.5 Alternative Hypothesis: p < 0.5 Experiment results: # of red cards in 10 trials = x P(X=x) =C(10,x) p x (1-p) n-x = C(10,x) (0.5) x (0.5) 10-x Xp(X) Is it possible for the deck of cards to be a standard deck of cards (i.e., p=0.5)? Not very probable. Reject the original hypothesis

Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8_card -5 Hypothesis Hypothesis: p=0.5 Alternative Hypothesis: p< 0.5 How many draws did it take before the class started feeling uncomfortable with the outcome? The probability that we do not get any red in a sequence of x trials is P(black) x = 0.5 x X p(X) Most of us were ready to reject the deck as fair after 4 to 5 draws. (some would say 4, the others would say 5) We had a good feel of how improbable the hypothesis was.

Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8_card -6 What is a Hypothesis? A Hypothesis is a statement about the value of a population parameter developed for the purpose of testing. Null Hypothesis H 0 : A statement about the value of a population parameter. The probability of getting red card on any trial is 0.5. The proportion of red cards in the deck is 0.5. Alternative Hypothesis H 1 : A statement that is accepted if the sample data provide evidence that the null hypothesis is false. The probability of getting red card on any trial is less than 0.5. The probability of getting red card on any trial is not 0.5.

Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8_card -7 Formulating hypotheses Shanghai, whose name means literally “above the sea”, may be submerged in water by Paul Brown, an environmental correspondent for the Guardian, claimed in Guangzhou in March that global warming will cause sea levels to rise, possibly submerging Shanghai and other coastal cities. Chen Manchun, a Chinese oceanographer, admitted that sea levels near Shanghai will have risen by as much as 60 centimetres by See, for example, “Experts dismiss claim Shanghai will drown,” By Yin Ping (China Daily), , Accessed

Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8_card -8 Formulating hypotheses Null hypothesis #1: The sea levels near Shanghai will remain unchanged in Alternative hypothesis #1: The sea levels near Shanghai will be higher in Null hypothesis #2: The sea levels near Shanghai will remain unchanged or lower in Alternative hypothesis #2: The sea levels near Shanghai will be higher in 2050.

Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8_card -9 What is the level of significance? Sometimes we may want to set the limits of what we will accept ahead of time. Let  denote such limit. Level of Significance (  ): The probability of rejecting the null hypothesis when it is actually true. If, under the null hypothesis, the probability of observing the sample is less than , the null is rejected. A pre-set  corresponds to a “critical value”.

Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8_card -10 What is a critical value?  corresponds to a “critical value”. Critical value: The dividing point between the region where the null hypothesis is rejected and the region where it is not rejected. How many draws of “blacks” did it take before the class started feeling uncomfortable with the outcome? Most of us were ready to reject the deck as fair after 4 to 5 draws. If we were ready to reject the deck as fair after 4 draws, the critical value is 4. The level of significance is about X p(X)

Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8_card -11 What is p-value of observing 0 reds in 10 draws? Hypothesis: p=0.5 Alternative Hypothesis: p< 0.5 Experiment results: (Number of red cards in 10 trials) / 10 = x P(X=x) =C(n,x) p x (1-p) n-x = C(10,x) (0.5) x (0.5) 10-x Xp(X) P-value is the probability of getting what we get. P-value = in our experiment.

Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8_card -12 p-Value in Hypothesis Testing A p-Value is the probability, assuming that the null hypothesis is true, of finding a value of the test statistic at least as extreme as the computed value for the test. If the p-Value is smaller than the significance level, H 0 is rejected. If the p-Value is larger than the significance level, H 0 is not rejected.

Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8_card -13 Reject or not reject Given a null hypothesis and alternative hypothesis, and the sample statistics, if the sample statistics is extreme (i.e., the chance of seeing this extreme or more extreme statistics is small), then we will reject the null and favor the alternative. If the sample statistics is not extreme, then we will not reject the null. Note that we do not say accept the null, because the evidence can be consistent with a range of null hypotheses. For example, the observation of 5 blacks and 5 reds from 10 draws will be consistent with the null of p=0.

Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8_card -14 Reject or not reject Note that we do not say accept the null, because the evidence can be consistent with a range of null hypotheses. For example, the observation of 5 blacks and 5 reds from 10 draws will be consistent with the null of p in the range of 0.3 to 0.7 P under null P(X  5)P(X  5)

Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8_card-15 - END - Additional materials Card demonstration of hypothesis tests