Applied Quantitative Analysis and Practices LECTURE#14 By Dr. Osman Sadiq Paracha.

Slides:



Advertisements
Similar presentations
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)
Advertisements

Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
Chapter 10 Section 2 Hypothesis Tests for a Population Mean
Chap 9-1 Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Basic Business Statistics 12 th Edition Chapter 9 Fundamentals of Hypothesis.
© 2001 Prentice-Hall, Inc.Chap 9-1 BA 201 Lecture 15 Test for Population Mean Known.
Fundamentals of Hypothesis Testing. Identify the Population Assume the population mean TV sets is 3. (Null Hypothesis) REJECT Compute the Sample Mean.
1/55 EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008 Chapter 10 Hypothesis Testing.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
Chapter 8 Introduction to Hypothesis Testing
Statistics for Managers Using Microsoft Excel, 5e © 2008 Pearson Prentice-Hall, Inc.Chap 9-1 Statistics for Managers Using Microsoft® Excel 5th Edition.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 8-1 Business Statistics: A Decision-Making Approach 6 th Edition Chapter.
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.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
9-1 Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall Statistics for Managers using Microsoft Excel 6 th Edition Chapter 9 Fundamentals.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 8-1 Chapter 8 Fundamentals of Hypothesis Testing: One-Sample Tests Statistics.
Chapter 9 Hypothesis Testing.
Ch. 9 Fundamental of Hypothesis Testing
Chapter 8 Introduction to Hypothesis Testing
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 8-1 TUTORIAL 6 Chapter 10 Hypothesis Testing.
© 1999 Prentice-Hall, Inc. Chap Chapter Topics Hypothesis Testing Methodology Z Test for the Mean (  Known) p-Value Approach to Hypothesis Testing.
Statistics for Managers Using Microsoft® Excel 5th Edition
Chapter 10 Hypothesis Testing
Confidence Intervals and Hypothesis Testing - II
CHAPTER 2 Statistical Inference 2.1 Estimation  Confidence Interval Estimation for Mean and Proportion  Determining Sample Size 2.2 Hypothesis Testing:
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 Hypothesis Testing (假设检验)
Fundamentals of Hypothesis Testing: One-Sample Tests
Claims about a Population Mean when σ is Known Objective: test a claim.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap th Lesson Introduction to Hypothesis Testing.
Week 8 Fundamentals of Hypothesis Testing: One-Sample Tests
Chapter 9 Hypothesis Testing: Single Population
Chapter 10 Hypothesis Testing
Fundamentals of Hypothesis Testing: One-Sample Tests İŞL 276.
1 Introduction to Hypothesis Testing. 2 What is a Hypothesis? A hypothesis is a claim A hypothesis is a claim (assumption) about a population parameter:
Lecture 7 Introduction to Hypothesis Testing. Lecture Goals After completing this lecture, you should be able to: Formulate null and alternative hypotheses.
Section 9.2 Testing the Mean  9.2 / 1. Testing the Mean  When  is Known Let x be the appropriate random variable. Obtain a simple random sample (of.
Introduction to Hypothesis Testing: One Population Value Chapter 8 Handout.
Statistical Inference
STEP BY STEP Critical Value Approach to Hypothesis Testing 1- State H o and H 1 2- Choose level of significance, α Choose the sample size, n 3- Determine.
Testing of Hypothesis Fundamentals of Hypothesis.
Topic 8 Hypothesis Testing Mathematics & Statistics Statistics.
Copyright ©2011 Pearson Education 9-1 Statistics for Managers using Microsoft Excel 6 th Global Edition Chapter 9 Fundamentals of Hypothesis Testing: One-Sample.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 8-1 Chapter 8 Fundamentals of Hypothesis Testing: One-Sample Tests Statistics.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
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.
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
Slide Slide 1 Section 8-4 Testing a Claim About a Mean:  Known.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Business Statistics,
Applied Quantitative Analysis and Practices LECTURE#25 By Dr. Osman Sadiq Paracha.
Hypothesis Testing Errors. Hypothesis Testing Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean.
STEP BY STEP Critical Value Approach to Hypothesis Testing 1- State H o and H 1 2- Choose level of significance, α Choose the sample size, n 3- Determine.
© Copyright McGraw-Hill 2004
Chapter 8 Hypothesis Testing (假设检验)
Understanding Basic Statistics Fourth Edition By Brase and Brase Prepared by: Lynn Smith Gloucester County College Chapter Nine Hypothesis Testing.
STEP BY STEP Critical Value Approach to Hypothesis Testing 1- State H o and H 1 2- Choose level of significance, α Choose the sample size, n 3- Determine.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 9 Hypothesis Testing: Single.
4-1 Statistical Inference Statistical inference is to make decisions or draw conclusions about a population using the information contained in a sample.
Chap 9-1 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall Business Statistics: A First Course 6 th Edition Chapter 9 Fundamentals of.
Conceptual Foundations © 2008 Pearson Education Australia Lecture slides for this course are based on teaching materials provided/referred by: (1) Statistics.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests
Statistics for Managers Using Microsoft® Excel 5th Edition
Chapters 20, 21 Hypothesis Testing-- Determining if a Result is Different from Expected.
Fundamentals of Hypothesis Testing: One-Sample Tests
Hypothesis Tests for a Population Mean in Practice
Chapter 9 Hypothesis Testing: Single Population
Presentation transcript:

Applied Quantitative Analysis and Practices LECTURE#14 By Dr. Osman Sadiq Paracha

Previous Lecture Summary Building Statistical Models Model Formulating Process Hypothesis Testing Types of Hypothesis Critical values role Type I and Type II Errors Hypothesis test for the mean

Possible Errors in Hypothesis Test Decision Making Possible Hypothesis Test Outcomes Actual Situation DecisionH 0 TrueH 0 False Do Not Reject H 0 No Error Probability 1 - α Type II Error Probability β Reject H 0 Type I Error Probability α No Error Power 1 - β (continued)

Hypothesis Tests for the Mean  Known  Unknown Hypothesis Tests for  (Z test) (t test)

6 Steps in Hypothesis Testing 1. State the null hypothesis, H 0 and the alternative hypothesis, H 1 2. Choose the level of significance, , and the sample size, n 3. Determine the appropriate test statistic and sampling distribution 4. Determine the critical values that divide the rejection and nonrejection regions

6 Steps in Hypothesis Testing 5. Collect data and compute the value of the test statistic 6. Make the statistical decision and state the managerial conclusion. If the test statistic falls into the nonrejection region, do not reject the null hypothesis H 0. If the test statistic falls into the rejection region, reject the null hypothesis. Express the managerial conclusion in the context of the problem (continued)

Hypothesis Testing Example Test the claim that the true mean diameter of a manufactured bolt is 30mm. (Assume σ = 0.8) 1. State the appropriate null and alternative hypotheses H 0 : μ = 30 H 1 : μ ≠ 30 (This is a two-tail test) 2. Specify the desired level of significance and the sample size Suppose that  = 0.05 and n = 100 are chosen for this test

Hypothesis Testing Example 3. Determine the appropriate technique σ is assumed known so this is a Z test. 4. Determine the critical values For  = 0.05 the critical Z values are ± Collect the data and compute the test statistic Suppose the sample results are n = 100, X = (σ = 0.8 is assumed known) So the test statistic is: (continued)

Reject H 0 Do not reject H 0 6. Is the test statistic in the rejection region?  /2 = Z α/2 = Reject H 0 if Z STAT 1.96; otherwise do not reject H 0 Hypothesis Testing Example (continued)  /2 = Reject H 0 +Z α/2 = Here, Z STAT = -2.0 < -1.96, so the test statistic is in the rejection region

6 (continued). Reach a decision and interpret the result -2.0 Since Z STAT = -2.0 < -1.96, reject the null hypothesis and conclude there is sufficient evidence that the mean diameter of a manufactured bolt is not equal to 30 Hypothesis Testing Example (continued) Reject H 0 Do not reject H 0  = 0.05/2 -Z α/2 =  = 0.05/2 Reject H 0 +Z α/2 = +1.96

p-Value Approach to Testing p-value: Probability of obtaining a test statistic equal to or more extreme than the observed sample value given H 0 is true The p-value is also called the observed level of significance It is the smallest value of  for which H 0 can be rejected

p-Value Approach to Testing: Interpreting the p-value Compare the p-value with  If p-value < , reject H 0 If p-value  , do not reject H 0 Remember If the p-value is low then H 0 must go

The 5 Step p-value approach to Hypothesis Testing 1.State the null hypothesis, H 0 and the alternative hypothesis, H 1 2.Choose the level of significance, , and the sample size, n 3.Determine the appropriate test statistic and sampling distribution 4.Collect data and compute the value of the test statistic and the p-value 5.Make the statistical decision and state the managerial conclusion. If the p-value is < α then reject H 0, otherwise do not reject H 0. State the managerial conclusion in the context of the problem

p-value Hypothesis Testing Example Test the claim that the true mean diameter of a manufactured bolt is 30mm. (Assume σ = 0.8) 1. State the appropriate null and alternative hypotheses H 0 : μ = 30 H 1 : μ ≠ 30 (This is a two-tail test) 2. Specify the desired level of significance and the sample size Suppose that  = 0.05 and n = 100 are chosen for this test

p-value Hypothesis Testing Example 3. Determine the appropriate technique σ is assumed known so this is a Z test. 4. Collect the data, compute the test statistic and the p-value Suppose the sample results are n = 100, X = (σ = 0.8 is assumed known) So the test statistic is: (continued)

p-Value Hypothesis Testing Example: Calculating the p-value 4. (continued) Calculate the p-value. How likely is it to get a Z STAT of -2 (or something further from the mean (0), in either direction) if H 0 is true? p-value = = P(Z < -2.0) = Z 2.0 P(Z > 2.0) = (continued)

5. Is the p-value < α? Since p-value = < α = 0.05 Reject H 0 5. (continued) State the managerial conclusion in the context of the situation. There is sufficient evidence to conclude the average diameter of a manufactured bolt is not equal to 30mm. p-value Hypothesis Testing Example (continued)

Connection Between Two Tail Tests and Confidence Intervals For X = 29.84, σ = 0.8 and n = 100, the 95% confidence interval is: ≤ μ ≤ Since this interval does not contain the hypothesized mean (30), we reject the null hypothesis at  = 0.05

Do You Ever Truly Know σ? Probably not! In virtually all real world business situations, σ is not known. If there is a situation where σ is known then µ is also known (since to calculate σ you need to know µ.) If you truly know µ there would be no need to gather a sample to estimate it.

Hypothesis Testing: σ Unknown If the population standard deviation is unknown, you instead use the sample standard deviation S. Because of this change, you use the t distribution instead of the Z distribution to test the null hypothesis about the mean. When using the t distribution you must assume the population you are sampling from follows a normal distribution. All other steps, concepts, and conclusions are the same.

t Test of Hypothesis for the Mean (σ Unknown) Convert sample statistic ( ) to a t STAT test statistic X The test statistic is: Hypothesis Tests for  σ Knownσ Unknown  Known  Unknown (Z test) (t test) The test statistic is: Hypothesis Tests for  σ Knownσ Unknown  Known  Unknown (Z test) (t test) The test statistic is: Hypothesis Tests for  σ Knownσ Unknown  Known  Unknown (Z test) (t test)

Example: Two-Tail Test (  Unknown) The average cost of a hotel room in New York is said to be $168 per night. To determine if this is true, a random sample of 25 hotels is taken and resulted in an X of $ and an S of $ Test the appropriate hypotheses at  = (Assume the population distribution is normal) H 0 : μ  = 168 H 1 : μ  168

 = 0.05 n = 25, df = 25-1=24  is unknown, so use a t statistic Critical Value: ±t 24,0.025 = ± Example Solution: Two-Tail t Test Do not reject H 0 : insufficient evidence that true mean cost is different from $168 Reject H 0  /2=.025 -t 24,0.025 Do not reject H 0 0  /2= H 0 : μ  = 168 H 1 : μ  168 t 24,0.025

To Use the t-test Must Assume the Population Is Normal As long as the sample size is not very small and the population is not very skewed, the t-test can be used. To evaluate the normality assumption can use: How closely sample statistics match the normal distribution’s theoretical properties. A histogram or stem-and-leaf display or boxplot or a normal probability plot..

Measurement Error Measurement error The discrepancy between the actual value we’re trying to measure, and the number we use to represent that value. Example: You (in reality) weigh 80 kg. You stand on your bathroom scales and they say 83 kg. The measurement error is 3 kg.

Lecture Summary Steps in Hypothesis testing Hypothesis testing example (For Z test) P-value importance and application Hypothesis Testing example (For t test)