STATISTICAL INFERENCE PART V

Slides:



Advertisements
Similar presentations
Testing a Claim about a Proportion Assumptions 1.The sample was a simple random sample 2.The conditions for a binomial distribution are satisfied 3.Both.
Advertisements

Inferential Statistics
Our goal is to assess the evidence provided by the data in favor of some claim about the population. Section 6.2Tests of Significance.
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
Chap 9-1 Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Basic Business Statistics 12 th Edition Chapter 9 Fundamentals of Hypothesis.
Chapter 9 Chapter 10 Chapter 11 Chapter 12
Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8-1 Lesson 8: One-Sample Tests of Hypothesis.
1/55 EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008 Chapter 10 Hypothesis Testing.
Lecture 4 Chapter 11 wrap-up
Chapter 8 Introduction to Hypothesis Testing
Lecture Inference for a population mean when the stdev is unknown; one more example 12.3 Testing a population variance 12.4 Testing a population.
Fall 2006 – Fundamentals of Business Statistics 1 Chapter 8 Introduction to Hypothesis Testing.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
BCOR 1020 Business Statistics Lecture 21 – April 8, 2008.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
Chapter 8: Inferences Based on a Single Sample: Tests of Hypotheses Statistics.
Inferences About Process Quality
BCOR 1020 Business Statistics Lecture 18 – March 20, 2008.
Chapter 9 Hypothesis Testing.
BCOR 1020 Business Statistics Lecture 20 – April 3, 2008.
Chapter 8 Introduction to Hypothesis Testing
Statistics for Managers Using Microsoft® Excel 5th Edition
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.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 8 Tests of Hypotheses Based on a Single Sample.
Statistical Inference for Two Samples
AM Recitation 2/10/11.
Experimental Statistics - week 2
1 Economics 173 Business Statistics Lectures 3 & 4 Summer, 2001 Professor J. Petry.
Chapter 10 Hypothesis Testing
Confidence Intervals and Hypothesis Testing - II
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Business Statistics,
Chapter 8 Inferences Based on a Single Sample: Tests of Hypothesis.
Fundamentals of Hypothesis Testing: One-Sample Tests
1/2555 สมศักดิ์ ศิวดำรงพงศ์
STAT 5372: Experimental Statistics Wayne Woodward Office: Office: 143 Heroy Phone: Phone: (214) URL: URL: faculty.smu.edu/waynew.
Chapter 9.3 (323) A Test of the Mean of a Normal Distribution: Population Variance Unknown Given a random sample of n observations from a normal population.
More About Significance Tests
Chapter 9 Hypothesis Testing: Single Population
STATISTICAL INFERENCE PART VII
Introduction to Hypothesis Testing: One Population Value Chapter 8 Handout.
One Sample Inf-1 If sample came from a normal distribution, t has a t-distribution with n-1 degrees of freedom. 1)Symmetric about 0. 2)Looks like a standard.
Statistical Inference
Testing of Hypothesis Fundamentals of Hypothesis.
Chapter 8 Introduction to Hypothesis Testing ©. Chapter 8 - Chapter Outcomes After studying the material in this chapter, you should be able to: 4 Formulate.
Large sample CI for μ Small sample CI for μ Large sample CI for p
1 Chapter 8 Hypothesis Testing 8.2 Basics of Hypothesis Testing 8.3 Testing about a Proportion p 8.4 Testing about a Mean µ (σ known) 8.5 Testing about.
Introduction to Inferece BPS chapter 14 © 2010 W.H. Freeman and Company.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 8-1 Chapter 8 Fundamentals of Hypothesis Testing: One-Sample Tests Statistics.
Lecture 9 Chap 9-1 Chapter 2b Fundamentals of Hypothesis Testing: One-Sample Tests.
Economics 173 Business Statistics Lecture 4 Fall, 2001 Professor J. Petry
Statistical Inference for the Mean Objectives: (Chapter 9, DeCoursey) -To understand the terms: Null Hypothesis, Rejection Region, and Type I and II errors.
Week111 The t distribution Suppose that a SRS of size n is drawn from a N(μ, σ) population. Then the one sample t statistic has a t distribution with n.
Fall 2002Biostat Statistical Inference - Confidence Intervals General (1 -  ) Confidence Intervals: a random interval that will include a fixed.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
STATISTICAL INFERENCE PART IV CONFIDENCE INTERVALS AND HYPOTHESIS TESTING 1.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
© 2004 Prentice-Hall, Inc.Chap 9-1 Basic Business Statistics (9 th Edition) Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests.
© Copyright McGraw-Hill 2004
Statistical Inference Drawing conclusions (“to infer”) about a population based upon data from a sample. Drawing conclusions (“to infer”) about a population.
Applied Quantitative Analysis and Practices LECTURE#14 By Dr. Osman Sadiq Paracha.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
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.
Chapter 12 Tests of Hypotheses Means 12.1 Tests of Hypotheses 12.2 Significance of Tests 12.3 Tests concerning Means 12.4 Tests concerning Means(unknown.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 9 Hypothesis Testing: Single.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
4-1 Statistical Inference Statistical inference is to make decisions or draw conclusions about a population using the information contained in a sample.
Chapter 8: Inferences Based on a Single Sample: Tests of Hypotheses
Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests
Presentation transcript:

STATISTICAL INFERENCE PART V HYPOTHESIS TESTING

Tests are based on the following principle: TESTS OF HYPOTHESIS H0 is False H0 is True Reject H0 Do not reject H0 Type I error P(Type I error) =  Correct Decision Type II error P(Type II error) =  1- 1- Tests are based on the following principle: Fix , minimize . ()=Power function of the test for all . = P(Reject H0)=P((x1,x2,…,xn)C)

POWER OF THE TEST AND P-VALUE = P(Reject H0|H0 is not true) p-value = Observed significance level = Probability of obtaining a test statistics at least as extreme as the one that you observed by chance, OR, the smallest level of significance at which the null hypothesis can be rejected OR the maximum value of  that you are willing to tolerate.

CALCULATION OF P-VALUE Determine the value of the test statistics, For One-Tailed Test: p-value= P(z > z0) if HA: >0 p-value= P(z < z0) if HA: <0 For Two-Tailed Test p=p-value = 2.P(z>z0) p=p-value = 2.P(z<-z0) p-value z0 p-value z0 p/2 p/2 -z0 z0

DECISION RULE BY USING P-VALUES REJECT H0 IF p-value <  DO NOT REJECT H0 IF p-value    p-value

Example Do the contents of bottles of catsup have a net weight below an advertised threshold of 16 ounces? To test this 25 bottles of catsup were selected. They gave a net sample mean weight of . It is known that the standard deviation is . We want to test this at significance levels 1% and 5%.

CALCULATIONS The z-score is: The p-value is the probability of getting a score worse than this (relative to the alternative hypothesis) i.e., Compare the p-value to the significance level. Since it is bigger than both 1% and 5%, we do not reject the null hypothesis.

P-value for this one-tailed Test The p-value for this test is 0.1056 Thus, do not reject H0 at 1% and 5% significance level. We do not have enough evidence to say that the contents of bottles of catsup have a net weight of less than 16 ounces. 0.1056 0.10 0.05 -1.25

Test of Hypothesis for the Population Mean ( unknown) For samples of size n drawn from a Normal Population, the test statistic: has a Student t-distribution with n1 degrees of freedom

EXAMPLE 5 measurements of the tar content of a certain kind of cigarette yielded 14.5, 14.2, 14.4, 14.3 and 14.6 mg per cigarette. Show the difference between the mean of this sample and the average tar content claimed by the manufacturer, =14.0, is significant at =0.05.

SOLUTION H0:  = 14.0 HA:   14.0 Decision Rule: Reject Ho if t<-t/2 or t> t/2.

CONCLUSION Reject H0 at  = 0.05. Difference is significant. 0.025 0.95 5.66 -2.766 2.766 Reject H0 Reject H0

P-value of This Test p-value = 2.P(t > 5.66) = 2(0.0024)=0.0048 Since p-value = 0.0048 <  = 0.05, reject H0. Minitab Output T-Test of the Mean Test of mu = 14.0000 vs mu not = 14.0000 Variable N Mean StDev SE Mean T P-Value C1 5 14.4000 0.1581 0.0707 5.66 0.0048

CONCLUSION USING THE CONFIDENCE INTERVALS MINITAB OUTPUT: Confidence Intervals Variable N Mean StDev SE Mean 95.0 % C.I. C1 5 14.4000 0.1581 0.0707 ( 14.2036, 14.5964) Since 14 is not in the interval, reject H0.

EXAMPLE Problem: At a certain production facility that assembles computer keyboards, the assembly time is known (from experience) to follow a normal distribution with mean (m) of 130 seconds and standard deviation (s) of 15 seconds. The production supervisor suspects that the average time to assemble the keyboards does not quite follow the specified value. To examine this problem, he measures the times for 100 assemblies and found that the sample mean assembly time ( ) is 126.8 seconds. Can the supervisor conclude at the 5% level of significance that the mean assembly time of 130 seconds is incorrect?

We want to prove that the time required to do the assembly is different from what experience dictates: The sample mean is The standard deviation is The standardized test statistic value is:

1- Two-Tail Hypothesis: H0: m130 HA: m 130  z Do not Reject H0  z=test statistic values (-z/2z<z/2 Reject H0 (z<-z/2 Type I Error Probability -z (z>z/2

.90 .9 Test Statistic:  2 z  -z  Z Z .90 Rejection Region

CONCLUSION Since –2.13<-1.96, it falls in the rejection region. Hence, we reject the null hypothesis that the time required to do the assembly is 130 seconds. The evidence suggests that the task now takes either more or less than 130 seconds.

DECISION RULE Reject Ho if z < -1.96 or z > 1.96. In terms of , reject H0 if 06

P-VALUE In our example, the p-value is So, since 0.0332 < 0.05, we reject the null.

Calculating the Probability of Type II Error Ho: m = 130 HA: m130 Suppose we would like to compute the probability of not rejecting H0 given that the null hypothesis is false (for instance m=135 instead of 130), i.e. b=P(not rejecting Ho|Ho is false). Assuming m=135 this statement becomes:

TESTING HYPOTHESIS ABOUT POPULATION PROPORTION, p ASSUMPTIONS: The experiment is binomial. The sample size is large enough. x: The number of success The sample proportion is approximately for large n (np  5 and nq  5 ).

HYPOTHESIS TEST FOR p H0: p = p0 HA: p  p0 Two-sided Test Test Statistic Rejecting Area H0: p = p0 HA: p  p0 Reject Ho if z < -z/2 or z > z/2. /2 z/2 - z/2 Do not reject H0 Reject H0 1- Reject H0

HYPOTHESIS TEST FOR p One-sided Tests Test Statistic Rejecting Area 1. H0: p= p0 HA: p > p0 Reject Ho if z > z. 2. H0: p = p0 HA: p < p0 Reject Ho if z < - z.  1- z Do not reject H0 Reject H0  1- -z Reject H0 Do not reject H0

EXAMPLE Mom’s Home Cokin’ claims that 70% of the customers are able to dine for less than $5. Mom wishes to test this claim at the 92% level of confidence. A random sample of 110 patrons revealed that 66 paid less than $5 for lunch. Ho: p = 0.70 HA: p  0.70

ANSWER x = 66, n = 110 and p = 0.70  = 0.08, z/2 = z0.04 = 1.75 Test Statistic:

CONCLUSION DECISION RULE: Reject H0 if z < -1.75 or z > 1.75. CONCLUSION: Reject H0 at  = 0.08. Mom’s claim is not true. -1.75 1.75 -2.289 /2

P-VALUE p-value = 2. P(z < -2.289) =2(0.011) = 0.022 The smallest value of  to reject H0 is 0.022. Since p-value = 0.022 <  = 0.08, reject H0. 0.011 -2.289

CONFIDENCE INTERVAL APPROACH Find the 92% CI for p. 92% CI for p: 0.52  p  0.68 Since is not in the above interval, reject H0. Mom has overestimated the percentage of customers that pay less than 5$ for a meal. What happens with wider confidence intervals? Exercise: Calculate the 95% and 99% CIs for p.

SAMPLING DISTRIBUTION OF s2 The statistic is chi-squared distributed with n-1 d.f. when the population random variable is normally distributed with variance 2.

CHI-SQUARE DISTRIBUTION  A 1 - A 2 2 f(2)

Inference about the Population Variance (s2) Test statistic which is chi-squared distributed with n - 1 degrees of freedom LCL = (n - 1) s2 2 1 - /2 /2 UCL = Confidence interval estimator:

Testing the Population Variance (s2) EXAMPLE Proctor and Gamble told its customers that the variance in the weights of its bottles of Pepto-Bismol is less than 1.2 ounces squared. As a marketing representative for P&G, you select 25 bottles and find a variance of 1.7. At the 10% level of significance, is P&G maintaining its pledge of product consistency? H0: 2 = 1.2 HA: 2 < 1.2

ANSWER n=25, s2=1.7, =0.10, Test Statistics: Decision Rule: Reject H0 if Conclusion: Because 2=34 > 15.6587, do not reject H0. We don’t have enough evidence that suggests the variability in product weights less than 1.2 ounces squared.

EXAMPLE A random sample of 22 observations from a normal population possessed a variance equal to 37.3. Find 90% CI for 2. 90% CI for 2: