1 Pertemuan 09 Pengujian Hipotesis Proporsi dan Data Katagorik Matakuliah: A0392 – Statistik Ekonomi Tahun: 2006.

Slides:



Advertisements
Similar presentations
1 1 Slide © 2003 South-Western /Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Advertisements

1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Uji Kebaikan Suai (Uji Kecocokan) Pertemuan 23
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.
1 1 Slide Chapter 9 Hypothesis Tests Developing Null and Alternative Hypotheses Developing Null and Alternative Hypotheses Type I and Type II Errors Type.
1 1 Slide © 2009 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and Alternative Hypotheses Type I and Type II Errors Type I and Type II Errors.
1 1 Slide STATISTICS FOR BUSINESS AND ECONOMICS Seventh Edition AndersonSweeneyWilliams Slides Prepared by John Loucks © 1999 ITP/South-Western College.
Inference about the Difference Between the
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
1 1 Slide © 2009 Econ-2030-Applied Statistics-Dr. Tadesse. Chapter 11: Comparisons Involving Proportions and a Test of Independence n Inferences About.
1 1 Slide ©2009. Econ-2030-Applied Statistics (Dr. Tadesse) Chapter 9 Learning Objectives Population Mean:  Unknown Population Mean:  Unknown Population.
Chapter 9b One-Tailed Test about a Population Mean: Small-Sample Case (n < 30)One-Tailed Test about a Population Mean: Small-Sample Case (n < 30) Tests.
Pengujian Hipotesis Nilai Tengah Pertemuan 19 Matakuliah: I0134/Metode Statistika Tahun: 2007.
Pengujian Hipotesis Proporsi dan Beda Proporsi Pertemuan 21 Matakuliah: I0134/Metode Statistika Tahun: 2007.
1 Pertemuan 09 Pengujian Hipotesis 2 Matakuliah: I0272 – Statistik Probabilitas Tahun: 2005 Versi: Revisi.
1 1 Slide © 2006 Thomson/South-Western Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and Alternative Hypotheses.
1 Pertemuan 08 Pengujian Hipotesis 1 Matakuliah: I0272 – Statistik Probabilitas Tahun: 2005 Versi: Revisi.
1 1 Slide 統計學 Spring 2004 授課教師:統計系余清祥 日期: 2004 年 2 月 17 日 第一週:假設檢定.
Chapter 11a: Comparisons Involving Proportions and a Test of Independence Inference about the Difference between the Proportions of Two Populations Hypothesis.
1 1 Slide © 2014 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
1. State the null and alternative hypotheses. 2. Select a random sample and record observed frequency f i for the i th category ( k categories) Compute.
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
1 1 Slide © 2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Goodness of Fit Test for Proportions of Multinomial Population Chi-square distribution Hypotheses test/Goodness of fit test.
1 1 Slide © 2014 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
1 1 Slide © 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
1 1 Slide © 2005 Thomson/South-Western Chapter 9, Part B Hypothesis Tests Population Proportion Population Proportion Hypothesis Testing and Decision Making.
1 1 Slide © 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
1 1 Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University © 2002 South-Western/Thomson Learning.
1 1 Slide © 2004 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
1 1 Slide © 2005 Thomson/South-Western Chapter 12 Tests of Goodness of Fit and Independence n Goodness of Fit Test: A Multinomial Population Goodness of.
1 1 Slide © 2007 Thomson South-Western. All Rights Reserved OPIM 303-Lecture #7 Jose M. Cruz Assistant Professor.
1 1 Slide © 2007 Thomson South-Western. All Rights Reserved Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and.
1 1 Slide © 2003 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 Slide © 2006 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 In this case, each element of a population is assigned to one and only one of several classes or categories. Chapter 11 – Test of Independence - Hypothesis.
1 1 Slide Chapter 11 Comparisons Involving Proportions n Inference about the Difference Between the Proportions of Two Populations Proportions of Two Populations.
Chapter 8 Introduction to Hypothesis Testing ©. Chapter 8 - Chapter Outcomes After studying the material in this chapter, you should be able to: 4 Formulate.
1 1 Slide © 2005 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 Slide © 2009 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1/71 Statistics Tests of Goodness of Fit and Independence.
Chapter Outline Goodness of Fit test Test of Independence.
© Copyright McGraw-Hill 2004
Formulating the Hypothesis null hypothesis 4 The null hypothesis is a statement about the population value that will be tested. null hypothesis 4 The null.
1 1 Slide 統計學 Spring 2004 授課教師:統計系余清祥 日期: 2004 年 3 月 23 日 第六週:配適度與獨立性檢定.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1 Pertemuan 24 Uji Kebaikan Suai Matakuliah: I0134 – Metoda Statistika Tahun: 2005 Versi: Revisi.
1. State the null and alternative hypotheses. 2. Select a random sample and record observed frequency f i for the i th category ( k categories) Compute.
Hypothesis Testing Chapter Hypothesis Testing  Developing Null and Alternative Hypotheses  Type I and Type II Errors  One-Tailed Tests About.
Chapter 9 -Hypothesis Testing
Slides by JOHN LOUCKS St. Edward’s University.
Test of independence: Contingency Table
Chapter 11 – Test of Independence - Hypothesis Test for Proportions of a Multinomial Population In this case, each element of a population is assigned.
St. Edward’s University
Pertemuan 17 Pengujian Hipotesis
John Loucks St. Edward’s University . SLIDES . BY.
Statistics for Business and Economics (13e)
Econ 3790: Business and Economics Statistics
St. Edward’s University
Slides by JOHN LOUCKS St. Edward’s University.
CHI SQUARE TEST OF INDEPENDENCE
St. Edward’s University
Presentation transcript:

1 Pertemuan 09 Pengujian Hipotesis Proporsi dan Data Katagorik Matakuliah: A0392 – Statistik Ekonomi Tahun: 2006

2 Outline Materi : Uji hipotesis proporsi Uji hipotesis beda proporsi Uji kebebasan data katagorik

3 Summary of Test Statistics to be Used in a Hypothesis Test about a Population Mean n > 30 ? s known ? Popul. approx.normal ? s known ? Use s to estimate s Use s to estimate s Increase n to > 30 Yes Yes Yes Yes No No No No

4 A Summary of Forms for Null and Alternative Hypotheses about a Population Proportion The equality part of the hypotheses always appears in the null hypothesis. In general, a hypothesis test about the value of a population proportion p must take one of the following three forms (where p 0 is the hypothesized value of the population proportion). H 0 : p > p 0 H 0 : p < p 0 H 0 : p = p 0 H a : p p 0 H a : p p 0

5 Tests about a Population Proportion: Large-Sample Case (np > 5 and n(1 - p) > 5) Test Statistic where: Rejection Rule One-Tailed Two-Tailed H 0 : p  p  Reject H 0 if z > z  H 0 : p  p  Reject H 0 if z < -z  H 0 : p  p  Reject H 0 if |z| > z 

6 Example: NSC Two-Tailed Test about a Population Proportion: Large n For a Christmas and New Year’s week, the National Safety Council estimated that 500 people would be killed and 25,000 injured on the nation’s roads. The NSC claimed that 50% of the accidents would be caused by drunk driving. A sample of 120 accidents showed that 67 were caused by drunk driving. Use these data to test the NSC’s claim with  = 0.05.

7 Example: NSC Two-Tailed Test about a Population Proportion: Large n –Hypothesis H 0 : p =.5 H a : p.5 –Test Statistic

8 Example: NSC Two-Tailed Test about a Population Proportion: Large n –Rejection Rule Reject H 0 if z 1.96 –Conclusion Do not reject H 0. For z = 1.278, the p-value is.201. If we reject H 0, we exceed the maximum allowed risk of committing a Type I error (p-value >.050).

9 Hypothesis Testing and Decision Making In many decision-making situations the decision maker may want, and in some cases may be forced, to take action with both the conclusion do not reject H 0 and the conclusion reject H 0. In such situations, it is recommended that the hypothesis-testing procedure be extended to include consideration of making a Type II error.

10 Calculating the Probability of a Type II Error in Hypothesis Tests about a Population Mean 1. Formulate the null and alternative hypotheses. 2. Use the level of significance  to establish a rejection rule based on the test statistic. 3. Using the rejection rule, solve for the value of the sample mean that identifies the rejection region. 4. Use the results from step 3 to state the values of the sample mean that lead to the acceptance of H 0 ; this defines the acceptance region. 5. Using the sampling distribution of for any value of  from the alternative hypothesis, and the acceptance region from step 4, compute the probability that the sample mean will be in the acceptance region.

11 Example: Metro EMS (revisited) Calculating the Probability of a Type II Error 1. Hypotheses are: H 0 :  and H a :  2. Rejection rule is: Reject H 0 if z > Value of the sample mean that identifies the rejection region: 4. We will accept H 0 when x <

12 Example: Metro EMS (revisited) Calculating the Probability of a Type II Error 5. Probabilities that the sample mean will be in the acceptance region: Values of   1- 

13 Example: Metro EMS (revisited) Calculating the Probability of a Type II Error Observations about the preceding table: –When the true population mean  is close to the null hypothesis value of 12, there is a high probability that we will make a Type II error. –When the true population mean  is far above the null hypothesis value of 12, there is a low probability that we will make a Type II error.

14 Power of the Test The probability of correctly rejecting H 0 when it is false is called the power of the test. For any particular value of , the power is 1 – . We can show graphically the power associated with each value of  ; such a graph is called a power curve.

15 Determining the Sample Size for a Hypothesis Test About a Population Mean where z  = z value providing an area of  in the tail z  = z value providing an area of  in the tail  = population standard deviation  0 = value of the population mean in H 0  a = value of the population mean used for the Type II error Note: In a two-tailed hypothesis test, use z  /2 not z 

16 Relationship among , , and n Once two of the three values are known, the other can be computed. For a given level of significance , increasing the sample size n will reduce . For a given sample size n, decreasing  will increase , whereas increasing  will decrease .

17 Inferences About the Difference Between the Proportions of Two Populations Sampling Distribution of Interval Estimation of p 1 - p 2 Hypothesis Tests about p 1 - p 2

18 Expected Value Standard Deviation Distribution Form If the sample sizes are large (n 1 p 1, n 1 (1 - p 1 ), n 2 p 2, and n 2 (1 - p 2 ) are all greater than or equal to 5), the sampling distribution of can be approximated by a normal probability distribution. Sampling Distribution of

19 Interval Estimation of p 1 - p 2 Interval Estimate Point Estimator of

20 Example: MRA MRA (Market Research Associates) is conducting research to evaluate the effectiveness of a client’s new advertising campaign. Before the new campaign began, a telephone survey of 150 households in the test market area showed 60 households “aware” of the client’s product. The new campaign has been initiated with TV and newspaper advertisements running for three weeks. A survey conducted immediately after the new campaign showed 120 of 250 households “aware” of the client’s product. Does the data support the position that the advertising campaign has provided an increased awareness of the client’s product?

21 Example: MRA Point Estimator of the Difference Between the Proportions of Two Populations p 1 = proportion of the population of households “aware” of the product after the new campaign p 2 = proportion of the population of households “aware” of the product before the new campaign = sample proportion of households “aware” of the product after the new campaign = sample proportion of households “aware” of the product before the new campaign

22 Example: MRA Interval Estimate of p 1 - p 2 : Large-Sample Case For  =.05, z.025 = 1.96: (.0510) or -.02 to +.18 – Conclusion At a 95% confidence level, the interval estimate of the difference between the proportion of households aware of the client’s product before and after the new advertising campaign is -.02 to +.18.

23 Hypothesis Tests about p 1 - p 2 Hypotheses H 0 : p 1 - p 2 < 0 H a : p 1 - p 2 > 0 Test statistic Point Estimator of where p 1 = p 2 where:

24 Example: MRA Hypothesis Tests about p 1 - p 2 Can we conclude, using a.05 level of significance, that the proportion of households aware of the client’s product increased after the new advertising campaign? p 1 = proportion of the population of households “aware” of the product after the new campaign p 2 = proportion of the population of households “aware” of the product before the new campaign –Hypotheses H 0 : p 1 - p 2 < 0 H a : p 1 - p 2 > 0

25 Example: MRA Hypothesis Tests about p 1 - p 2 –Rejection Rule Reject H 0 if z > –Test Statistic –Conclusion Do not reject H 0.

26 Test of Independence: Contingency Tables 1. Set up the null and alternative hypotheses. 2. Select a random sample and record the observed frequency, f ij, for each cell of the contingency table. 3. Compute the expected frequency, e ij, for each cell.

27 Test of Independence: Contingency Tables 4. Compute the test statistic. 5. Reject H 0 if (where  is the significance level and with n rows and m columns there are (n - 1)(m - 1) degrees of freedom).

28 Example: Finger Lakes Homes (B) Contingency Table (Independence) Test Each home sold can be classified according to price and to style. Finger Lakes Homes’ manager would like to determine if the price of the home and the style of the home are independent variables. The number of homes sold for each model and price for the past two years is shown below. For convenience, the price of the home is listed as either $65,000 or less or more than $65,000. Price Colonial Ranch Split-Level A- Frame < $65, > $65,

29 n Contingency Table (Independence) Test Hypotheses Hypotheses H 0 : Price of the home is independent of the style of the home that is purchased H 0 : Price of the home is independent of the style of the home that is purchased H a : Price of the home is not independent of the H a : Price of the home is not independent of the style of the home that is purchased style of the home that is purchased Expected Frequencies Expected Frequencies Price Colonial Ranch Split-Level A-Frame Total Price Colonial Ranch Split-Level A-Frame Total < $99K > $99K Total Total Example: Finger Lakes Homes (B)

30 Contingency Table (Independence) Test –Test Statistic = = –Rejection Rule With  =.05 and (2 - 1)(4 - 1) = 3 d.f., Reject H 0 if  2 > 7.81 –Conclusion We reject H 0, the assumption that the price of the home is independent of the style of the home that is purchased. Example: Finger Lakes Homes (B)