Interpreting Opinion Polls Example1: (Confidence Interval for the population proportion): Suppose that the result of sampling yields the following: p=

Slides:



Advertisements
Similar presentations
Inferential Statistics
Advertisements

1 Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Type I and Type II Errors One-Tailed Tests About a Population Mean: Large-Sample.
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
Chapter 9 Hypothesis Testing
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and.
Hypothesis Testing: One Sample Mean or Proportion
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.
Statistics for Business and Economics
Fundamentals of Hypothesis Testing. Identify the Population Assume the population mean TV sets is 3. (Null Hypothesis) REJECT Compute the Sample Mean.
Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8-1 Lesson 8: One-Sample Tests of Hypothesis.
Lecture 2: Thu, Jan 16 Hypothesis Testing – Introduction (Ch 11)
One-Sample Tests of Hypothesis
Chapter 9 Hypothesis Testing.
Ch. 9 Fundamental of 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
©2006 Thomson/South-Western 1 Chapter 10 – Hypothesis Testing for the Mean of a Population Slides prepared by Jeff Heyl Lincoln University ©2006 Thomson/South-Western.
Tests of significance: The basics BPS chapter 15 © 2006 W.H. Freeman and Company.
Statistical Inference for Two Samples
Experimental Statistics - week 2
Unit 7b Statistical Inference - 2 Hypothesis Testing Using Data to Make Decisions FPP Chapters 27, 27, possibly 27 &/or 29 Z-tests for means Z-tests.
Week 9 Chapter 9 - Hypothesis Testing II: The Two-Sample Case.
© 2002 Thomson / South-Western Slide 9-1 Chapter 9 Hypothesis Testing with Single Samples.
Statistics for Managers Using Microsoft Excel
8 - 1 © 2003 Pearson Prentice Hall Chi-Square (  2 ) Test of Variance.
Fundamentals of Hypothesis Testing: One-Sample Tests
Section 9.1 Introduction to Statistical Tests 9.1 / 1 Hypothesis testing is used to make decisions concerning the value of a parameter.
1/2555 สมศักดิ์ ศิวดำรงพงศ์
4.1Introduction The field of statistical inference consist of those methods used to make decisions or to draw conclusions about a population. These methods.
Review of Statistical Inference Prepared by Vera Tabakova, East Carolina University ECON 4550 Econometrics Memorial University of Newfoundland.
6 - 1 © 2000 Prentice-Hall, Inc. A First Course in Business Statistics Inferences Based on a Single Sample: Tests of Hypothesis Chapter 6.
8 - 1 © 1998 Prentice-Hall, Inc. Chapter 8 Inferences Based on a Single Sample: Tests of Hypothesis.
More About Significance Tests
7 Elementary Statistics Hypothesis Testing. Introduction to Hypothesis Testing Section 7.1.
Business Statistics, 4e, by Ken Black. © 2003 John Wiley & Sons. 9-1 Business Statistics, 4e by Ken Black Chapter 9 Statistical Inference: Hypothesis Testing.
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.
Hypothesis testing Chapter 9. Introduction to Statistical Tests.
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
Statistical Methods 5.
8 - 1 © 2000 Prentice-Hall, Inc. Statistics for Business and Economics Inferences Based on a Single Sample: Tests of Hypothesis Chapter 8.
One-Sample Tests of Hypothesis Chapter 10 McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved.
Testing of Hypothesis Fundamentals of Hypothesis.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section Inference about Two Means: Independent Samples 11.3.
Hypothesis and Test Procedures A statistical test of hypothesis consist of : 1. The Null hypothesis, 2. The Alternative hypothesis, 3. The test statistic.
One-Sample Tests of Hypothesis. Hypothesis and Hypothesis Testing HYPOTHESIS A statement about the value of a population parameter developed for the purpose.
Business Statistics: Contemporary Decision Making, 3e, by Black. © 2001 South-Western/Thomson Learning 9-1 Business Statistics, 3e by Ken Black Chapter.
Lecture 16 Section 8.1 Objectives: Testing Statistical Hypotheses − Stating hypotheses statements − Type I and II errors − Conducting a hypothesis test.
Introduction Hypothesis testing for one mean Hypothesis testing for one proportion Hypothesis testing for two mean (difference) Hypothesis testing for.
Chapter 7 Inferences Based on a Single Sample: Tests of Hypotheses.
Introduction to Inferece BPS chapter 14 © 2010 W.H. Freeman and Company.
1 Chapter 9 Hypothesis Testing. 2 Chapter Outline  Developing Null and Alternative Hypothesis  Type I and Type II Errors  Population Mean: Known 
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
Slide Slide 1 Section 8-4 Testing a Claim About a Mean:  Known.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
Ex St 801 Statistical Methods Inference about a Single Population Mean.
Chapter 9: Testing Hypotheses Overview Research and null hypotheses One and two-tailed tests Type I and II Errors Testing the difference between two means.
One-Sample Hypothesis Tests Chapter99 Logic of Hypothesis Testing Statistical Hypothesis Testing Testing a Mean: Known Population Variance Testing a Mean:
© Copyright McGraw-Hill 2004
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
Understanding Basic Statistics Fourth Edition By Brase and Brase Prepared by: Lynn Smith Gloucester County College Chapter Nine Hypothesis Testing.
Power of a test. power The power of a test (against a specific alternative value) Is In practice, we carry out the test in hope of showing that the null.
1 Lecture 5: Section B Class Web page URL: Data used in some examples can be found in:
 What is Hypothesis Testing?  Testing for the population mean  One-tailed testing  Two-tailed testing  Tests Concerning Proportions  Types of Errors.
© 2010 Pearson Prentice Hall. All rights reserved Chapter Hypothesis Tests Regarding a Parameter 10.
Chapter 9 Hypothesis Testing Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze.
4-1 Statistical Inference Statistical inference is to make decisions or draw conclusions about a population using the information contained in a sample.
Chapter Nine Hypothesis Testing.
Chapter 9 Hypothesis Testing.
Business Statistics, 5th ed. by Ken Black
Presentation transcript:

Interpreting Opinion Polls Example1: (Confidence Interval for the population proportion): Suppose that the result of sampling yields the following: p= 0.4 ; n = 36. Use this information to construct a 98% CI for . Recall from, last week 98% CI for  is [ ]

Interpreting Opinion Polls Labour 45 points Conservatives 39 points Lib. Dems 15 points Other 1 point Margin of Error :  Typically, this means that population proportion of labour voters is between 42% and 48% (with 95% confidence)

Hypothesis Testing

x  Two competing Hypotheses  The Null Hypothesis (H0): The population mean (  =20 The Alternative Hypothesis (H1): The population mean (  =25

x  H0:  =20 H1:  = 25

x   H0:  =20 H1:  = 25 Benchmark Value p-value

Benchmark Value Type 2 Error: Not rejecting A false H0 Type 1 Error: Rejecting a correct H0 Area in black : Maximum Type2 error Area in red : Maximum Type1 error

Benchmark Value Maximum Type 1 Error Maximum Type 2 Error:

Benchmark Value Maximum Type 1 Error Maximum Type 2 Error

The Spirit of Hypothesis Testing H0 is the hypothesis that is challenged H0 is the established hypothesis

X o y Can we have intersecting indifference curves? a a ~ b, a ~ c; so b ~c a contradiction of the axiom more is better b c H0 : Yes H1 : No We work under the assumption that H0 is correct!

x   H0:  = 0 H1:  = 1

Significance Level (  The Maximum Type 1 Error = Significance Level

The smaller the p-value the more significant is the test p-value

Fizzy drink cans should have 330 ml of content on average. A consumer group has complained against a manufacturer that its contents are less then the stated amount. Use the following data to assess the complaint. (Assume a normal population) One-Tail and Two-Tail Tests

x  < 330  =330

x MEAN = 320 ;  = 10 ; n = 16 Step 1: Set up the hypotheses H0 :   H1 :   Step 2: Select statistic One-Tail Test

The statistic to be used is x MEAN = 320 Step3 : Identify the distribution of x MEAN x MEAN ~ Normal    16  x MEAN ~ Normal  16  Under H0

Step 4: Construct test statistic (z) z= {(x MEAN –  } = ( )/10/4 = -4 Step 5: Compare with critical value z C z C = > -4 z C = for a one-tailed test with significance level (  ) = 0.05

Step 6 : Draw conclusion The test is significant. Reject H0 at 5% and at 1% ( -4 < -2.33) Step 7: Interpret result z C = for a one-tailed test with significance level (  ) = 0.05 There is overwhelming evidence to support the claim !

A cereal manufacturer is concerned that the boxes of cereal not be under-filled or over-filled. Each box is supposed to contain 130 grams of cereal. A test is done to see whether the machines are putting an average of 130 grams into a single box. A random sample of 30 boxes is tested. The average weight is found out to be 128 grams and the sample standard deviation 10 grams. A Two-Tail Test

x  < 130  =130  >130

Set up the hypotheses to test whether the average number of grams per box is different from 130. Step 1 H0 :   H1 :   Two-Tail Test Perform the test at 10% level of significance.

Step3 : Identify the distribution of x MEAN x MEAN ~    30  x MEAN ~ Normal    30  (approx.) Under H0 Step 2: Select statistic The statistic to be used is x MEAN = 128

Step 4: Construct test statistic (z) z= {(x MEAN –  } = ( )/10/  = -1.1 Step 5: Compare with critical value z C z C =  for a two-tailed test with significance level (  ) = < 1.1

Explain which hypothesis you are rejecting and why. Do you think the decision to accept/reject the null hypothesis stays unchanged if the significance level is lowered to 5%? Explain carefully.

Step 6 : Draw conclusion The test is not significant. Do not reject H0 at 10% and of course not at 5% ( < -1.1) Step 7: Interpret result There is no cause for concern, given the data above.

A production process makes components whose strengths are normally distributed with mean 40kg and unknown variance. The process is modified and 12 components are selected at random with Mean strength kg and sample standard deviation kg. Is there any evidence that the modified Process makes stronger components?

Step 1 : Set up the hypotheses H0 :   H1 :   One-Tail Test Perform the test at 5% level of significance. Step 2: Select statistic The statistic to be used is x MEAN =

Step3 : Identify the distribution (x MEAN –  /s/  n has a t- distribution of 11 degrees of freedom Step 4: Construct test statistic (t) {(x MEAN –  }/s/  } = ( )/ / 

Step 5: Compare with critical value t C t C = for a one-tailed test with significance level (  ) = 0.05 and d.o.f. =11 t = 2.96 > Step 6 : Draw conclusion The test is significant. Reject H0 at 5% ( 2.96 > ) and at 1% (2.96 > 2.718) is the prob of type 1 error

Step 7: Interpret results There is overwhelming evidence that the modified process makes stronger components

100 ‘small’ firms and eighty ‘large’ firms were tested for their profitability. Large firms made a profit of 25p for every £1 of turnover with a standard deviation of 10p. Small firms made a profit of 20p for every £1 of turnover with a standard deviation of 5p. Test the hypothesis that size is related to profitability

x = large firm; y = small firm x MEAN = 25; s X = 10 n X =80 y MEAN = 20; s y = 5 ; n Y =100 Step 1 H0 :  x -  Y = 0 H1 :  x -  Y  Two-Tail Test Perform the test at 5% level of significance.

Step3 : Identify the distribution of x MEAN -y MEAN x MEAN -y MEAN ~ Normal  x  Y  X   80 +  Y   100  ~ Normal  s X   80 + s Y   100  (approx.) Under H0 Step 2: Select statistic The statistic to be used is x MEAN -y MEAN = = 5 ~ Normal  100   100  (approx.)

Step 4: Construct test statistic (z) z= {(x MEAN -y MEAN –(  x –  Y  } = (5-0)/  = 4.46 Step 5: Compare with critical value z C z C =  1.96 for a two-tailed test with significance level (  ) = < 4.46

Step 6 : Draw conclusion The test is significant. Reject H0 at 5% ( 1.96 < 4.46) or even at 1% Step 7: Interpret result There is overwhelming evidence that large firms are more profitable

x   Benchmark Value p-value  Prob (Type 1 error) = p- value = E-06

Sample size ‘large’ Hypothesis Testing with x MEAN  known  unknown Perform Z-test Replace s for  and perform Z-test

Sample size ‘small’ Normal Population  known  unknown Non-normal Population Parametric Test Not possible Perform Z-test Perform t-test. Replace s for 

Learning Objectives Understand the logic of hypothesis testing, and know how to establish null and alternate hypotheses. Understand Type I and Type II errors. Use large samples to test hypotheses about a single population mean and about the differences of two population means Use large samples to test hypotheses about a single population proportion and about the differences of two population proportions

Test hypotheses about a single population mean using small samples when  is unknown and the population is normally distributed.

Hypothesis Testing A process of testing hypotheses about parameters by setting up null and alternative hypotheses, gathering sample data, computing statistics from the samples, and using statistical techniques to reach conclusions about the hypotheses.

Null and Alternative Hypotheses The Null and Alternative Hypotheses are mutually exclusive. Only one of them can be true. The Null Hypothesis is assumed to be true. The burden of proof falls on the Alternative Hypothesis.

The Spirit of Hypothesis Testing H0 is the hypothesis that is challenged H0 is the established hypothesis

X o y Can we have intersecting indifference curves? a a ~ b, a ~ c; so b ~c a contradiction of the axiom more is better b c H 0 : Yes H 1 : No We work under the assumption that H 0 is correct!

Null and Alternative Hypotheses: Example A soft drink company is filling 12 oz. cans with cola. The company hopes that the cans are averaging 12 ounces.

Rejection and Non-rejection Regions  =12 oz Nonrejection Region Rejection Region Critical Value Rejection Region Critical Value

Type I and Type II Errors Type I Error –Rejecting a true null hypothesis –The probability of committing a Type I error is called , the level of significance. Type II Error –Failing to reject a false null hypothesis –The probability of committing a Type II error is called . –Power is the probability of rejecting a false null hypothesis, and equal to 1- 

x  H 0 :  =20 H 1 :  = 25 Two competing Hypotheses

x   H 0 :  =20 H1:  = 25 Benchmark Value p-value

Benchmark Value Type 2 Error: Not rejecting A false H0 Type 1 Error: Rejecting a correct H0 Area in black : Maximum Type2 error Area in red : Maximum Type1 error

Benchmark Value Maximum Type 1 Error Maximum Type 2 Error:

The smaller the p-value the more significant is the test p-value Significance Level (  The Maximum Type 1 Error = Significance Level

Decision Table for Hypothesis Testing ( () Null TrueNull False Fail to reject null Correct Decision Type II error   Reject nullType I error  Correct Decision (Power)

The smaller the p-value the more significant is the test p-value

Fizzy drink cans should have 330 ml of content on average. A consumer group has complained against a manufacturer that its contents are less then the stated amount. Use the following data to assess the complaint. (Assume a normal population) A One-Tail Test

x  < 330  =330

x MEAN = 320 ;  = 10 ; n = 16 Step 1: Set up the hypotheses H0 :   H1 :   Step 2: Select statistic One-Tail Test

The statistic to be used is x MEAN = 320 Step3 : Identify the distribution of x MEAN x MEAN ~ Normal    16  x MEAN ~ Normal  16  Under H0

Step 4: Construct test statistic (z) z= {(x MEAN –  } = ( )/10/4 = -4 Step 5: Compare with critical value z C z C = > -4 z C = for a one-tailed test with significance level (  ) = 0.05

Step 6 : Draw conclusion The test is significant. Reject H0 at 5% and at 1% ( -4 < -2.33) Step 7: Interpret result z C = for a one-tailed test with significance level (  ) = 0.05 There is overwhelming evidence to support the claim !

A cereal manufacturer is concerned that the boxes of cereal not be under-filled or over-filled. Each box is supposed to contain 130 grams of cereal. A test is done to see whether the machines are putting an average of 130 grams into a single box. A random sample of 30 boxes is tested. The average weight is found out to be 128 grams and the sample standard deviation 10 grams. A Two-Tail Test

x  < 130  =130  >130

Set up the hypotheses to test whether the average number of grams per box is different from 130. Step 1 H0 :   H1 :   Two-Tail Test Perform the test at 10% level of significance.

Step3 : Identify the distribution of x MEAN x MEAN ~    30  x MEAN ~ Normal    30  (approx.) Under H0 Step 2: Select statistic The statistic to be used is x MEAN = 128

Step 4: Construct test statistic (z) z= {(x MEAN –  } = ( )/10/  = -1.1 Step 5: Compare with critical value z C z C =  for a two-tailed test with significance level (  ) = < 1.1

Step 6 : Draw conclusion The test is not significant. Do not reject H0 at 10% and of course not at 5% ( < -1.1) Step 7: Interpret result There is no cause for concern, given the data above.

100 ‘small’ firms and eighty ‘large’ firms were tested for their profitability. Large firms made a profit of 25p for every £1 of turnover with a standard deviation of 10p. Small firms made a profit of 20p for every £1 of turnover with a standard deviation of 5p. Test the hypothesis that size is related to profitability

x = large firm; y = small firm x MEAN = 25; s X = 10 n X =80 y MEAN = 20; s y = 5 ; n Y =100 Step 1 H0 :  x -  Y = 0 H1 :  x -  Y  Two-Tail Test Perform the test at 5% level of significance.

Step3 : Identify the distribution of x MEAN -y MEAN x MEAN -y MEAN ~ Normal  x  Y  X   80 +  Y   100  ~ Normal  s X   80 + s Y   100  (approx.) Under H0 Step 2: Select statistic The statistic to be used is x MEAN -y MEAN = = 5 ~ Normal  100   100  (approx.)

Step 4: Construct test statistic (z) z= {(x MEAN -y MEAN –(  x –  Y  } = (5-0)/  = 4.46 Step 5: Compare with critical value z C z C =  1.96 for a two-tailed test with significance level (  ) = < 4.46

Step 6 : Draw conclusion The test is significant. Reject H0 at 5% ( 1.96 < 4.46) or even at 1% Step 7: Interpret result There is overwhelming evidence that large firms are more profitable

Example: Thirty-five percent of the consumers were dissatisfied with the Product when a new CEO was elected. Test of Proportion Five months later, 108 out of 360 were found out to be dissatisfied. Can we conclude (at 5%) that the newly elected CEO has significantly reduced the level of dissatisfaction amongst consumers?

Step 2: Select statistic The statistic to be used is p = 108/360 = 0.3 Step3 : Identify the distribution of p First we need to perform the validity check H0 :   H1 :   Step 1: Set up the hypotheses

Here n = 360 and  = 0.35 under H0. So the validity check is satisfied. This means that p ~ Normal(    360  where  2 =  X 0.65 = Step 4: Construct test statistic (z) z= {(p –0.35  )/360} = ( )/0.477/  -19.9

Step 5: Compare with critical value z C z C = < Step 6 : Draw conclusion The test is significant. Reject H0 Step 7: Interpret result Based on the analysis of data, we conclude that there is strong evidence that consumer dissatisfaction has been significantly reduced.

Example: 70 out of 90 large firms (L) and 100 of 110 small firms (S) were voted eco-friendly. Test the hypothesis that large firms are less eco friendly than small ones.. Step 1: Set up the hypotheses H0 :  S  L  H1 :  S  L  Test of Difference in Proportions

Step 2: Select statistic The statistic to be used is p S –p L where p L = 7/9 = 0.78; p S = 10/11 = 0.9 Step3 : Identify the distribution of p S –p L

First we need to perform the validity check Here n S = 110 and n L = 90 but  S and  L are unknown. So we perform the validity check by using the values of p S and p L for  S and  L respectively. The validity check is satisfied. This means that (p S - p L ) ~ Normal(  S  L  S   n S  L   n L 

Under H0, (  L  S ) = 0 Also,  S  =  S  S ) and  L  =  L  L ) Use  p = (n S p S + n L p L ) / (n S + n L ) for both  S and  L. Thus p = [(100/110) *110 + (70/90)*90]/200 = 0.85

Hence,  S     ) = Similarly,  L    ) = (p S - p L ) ~ Normal(    110   90  (p S - p L ) ~ Normal(   Step 4: Construct test statistic (z) z= {(p S - p L ) –0}/(0.059) = ( )/0.059  2

Step 5: Compare with critical value z C z C = < 2 Step 6 : Draw conclusion The test is significant. Reject H0 at 5% but not at 1% ( 2 < 2.33) Step 7: Interpret result Based on the analysis of data, we conclude that there is enough evidence that small forms are significantly more eco-friendly.

Two-tailed Test: Small Sample,  Unknown,  =.05 (Part 1) Weights in Pounds of a Sample of 20 Plates

Two-tailed Test: Small Sample,  Unknown,  =.05 (Part 2) Critical Values Rejection Regions

Two-tailed Test: Small Sample,  Unknown,  =.05 (Part 3) Critical Values Non Rejection Region Rejection Regions