1 1 Slide Mátgæði Kafli 11 í Newbold Snjólfur Ólafsson + Slides Prepared by John Loucks © 1999 ITP/South-Western College Publishing.

Slides:



Advertisements
Similar presentations
Chapter 16 Goodness-of-Fit Tests and Contingency Tables
Advertisements

McGraw-Hill/Irwin Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. Chi-Square Tests Chapter 12.
CHI-SQUARE(X2) DISTRIBUTION
Chi Squared Tests. Introduction Two statistical techniques are presented. Both are used to analyze nominal data. –A goodness-of-fit test for a multinomial.
1 1 Slide © 2003 South-Western /Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
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.
Chapter 12 Goodness-of-Fit Tests and Contingency Analysis
Uji Kebaikan Suai (Uji Kecocokan) Pertemuan 23
Inference about the Difference Between the
Statistical Inference for Frequency Data Chapter 16.
Discrete (Categorical) Data Analysis
1 1 Slide © 2009 Econ-2030-Applied Statistics-Dr. Tadesse. Chapter 11: Comparisons Involving Proportions and a Test of Independence n Inferences About.
Chapter Ten Comparing Proportions and Chi-Square Tests McGraw-Hill/Irwin Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
Chapter 14 Analysis of Categorical Data
Chapter Goals After completing this chapter, you should be able to:
1 Pertemuan 09 Pengujian Hipotesis Proporsi dan Data Katagorik Matakuliah: A0392 – Statistik Ekonomi Tahun: 2006.
Chapter 16 Chi Squared Tests.
1 Pertemuan 09 Pengujian Hipotesis 2 Matakuliah: I0272 – Statistik Probabilitas Tahun: 2005 Versi: Revisi.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 14 Goodness-of-Fit Tests and Categorical Data Analysis.
Chi-Square and F Distributions Chapter 11 Understandable Statistics Ninth Edition By Brase and Brase Prepared by Yixun Shi Bloomsburg University of Pennsylvania.
BCOR 1020 Business Statistics
Chapter 11a: Comparisons Involving Proportions and a Test of Independence Inference about the Difference between the Proportions of Two Populations Hypothesis.
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.
Chi-Square Tests and the F-Distribution
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 © 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 © 2005 Thomson/South-Western Chapter 12 Tests of Goodness of Fit and Independence n Goodness of Fit Test: A Multinomial Population Goodness of.
Chi-square test or c2 test
Chi-squared Tests. We want to test the “goodness of fit” of a particular theoretical distribution to an observed distribution. The procedure is: 1. Set.
A Course In Business Statistics 4th © 2006 Prentice-Hall, Inc. Chap 9-1 A Course In Business Statistics 4 th Edition Chapter 9 Estimation and Hypothesis.
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.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Learning Objectives Copyright © 2002 South-Western/Thomson Learning Statistical Testing of Differences CHAPTER fifteen.
© 2000 Prentice-Hall, Inc. Statistics The Chi-Square Test & The Analysis of Contingency Tables Chapter 13.
Introduction to Probability and Statistics Thirteenth Edition Chapter 13 Analysis of Categorical Data.
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.
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
Chapter Outline Goodness of Fit test Test of Independence.
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.
Chapter 14 – 1 Chi-Square Chi-Square as a Statistical Test Statistical Independence Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
1 Pertemuan 24 Uji Kebaikan Suai Matakuliah: I0134 – Metoda Statistika Tahun: 2005 Versi: Revisi.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 12 Tests of Goodness of Fit and Independence n Goodness of Fit Test: A Multinomial.
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.
Chapter 11: Categorical Data n Chi-square goodness of fit test allows us to examine a single distribution of a categorical variable in a population. n.
Class Seven Turn In: Chapter 18: 32, 34, 36 Chapter 19: 26, 34, 44 Quiz 3 For Class Eight: Chapter 20: 18, 20, 24 Chapter 22: 34, 36 Read Chapters 23 &
Chi-Två Test Kapitel 6. Introduction Two statistical techniques are presented, to analyze nominal data. –A goodness-of-fit test for the multinomial experiment.
Copyright © Cengage Learning. All rights reserved. 14 Goodness-of-Fit Tests and Categorical Data Analysis.
Comparing Observed Distributions A test comparing the distribution of counts for two or more groups on the same categorical variable is called a chi-square.
CHI SQUARE DISTRIBUTION. The Chi-Square (  2 ) Distribution The chi-square distribution is the probability distribution of the sum of several independent,
©2006 Thomson/South-Western 1 Chapter 12 – Analysis of Categorical Data Slides prepared by Jeff Heyl Lincoln University ©2006 Thomson/South-Western Concise.
Comparing Counts Chi Square Tests Independence.
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
Chi-square test or c2 test
John Loucks St. Edward’s University . SLIDES . BY.
Statistics for Business and Economics (13e)
Econ 3790: Business and Economics Statistics
CHI SQUARE TEST OF INDEPENDENCE
Goodness-of-Fit Tests and Contingency Tables
Chapter Outline Goodness of Fit test Test of Independence.
St. Edward’s University
Presentation transcript:

1 1 Slide Mátgæði Kafli 11 í Newbold Snjólfur Ólafsson + Slides Prepared by John Loucks © 1999 ITP/South-Western College Publishing

2 2 Slide Tests of Goodness of Fit and Independence Tests of Goodness of Fit and Independence n Goodness of Fit Test: A Multinomial Population n Tests of Independence: Contingency Tables n Goodness of Fit Test: Poisson and Normal Distributions

3 3 Slide Goodness of Fit Test: A Multinomial Population 1. Set up the null and alternative hypotheses. 2. Select a random sample and record the observed frequency, f i, for each of the k categories. 3. Assuming H 0 is true, compute the expected frequency, e i, in each category by multiplying the category probability by the sample size. 4. Compute the value of the test statistic. 5. Reject H 0 if (where  is the significance level and there are k - 1 degrees of freedom).

4 4 Slide Example: Finger Lakes Homes (A) n Multinomial Distribution Goodness of Fit Test Finger Lakes Homes manufactures four models of prefabricated homes, a two-story colonial, a ranch, a split-level, and an A-frame. To help in production planning, management would like to determine if previous customer purchases indicate that there is a preference in the style selected. The number of homes sold of each model for 100 sales over the past two years is shown below. Model Colonial Ranch Split-Level A-Frame # Sold

5 5 Slide Example: Finger Lakes Homes (A) n Multinomial Distribution Goodness of Fit Test Let p C = population proportion that purchase a colonial p R = population proportion that purchase a ranch p S = population proportion that purchase a split-level p A = population proportion that purchase an A-frame Hypotheses H 0 : p C = p R = p S = p A =.25 H a : The population proportions are not p C =.25, p R =.25, p S =.25, and p A =.25 p R =.25, p S =.25, and p A =.25

6 6 Slide Example: Finger Lakes Homes (A) n Multinomial Distribution Goodness of Fit Test Expected Frequencies e 1 =.25(100) = 25 e 2 =.25(100) = 25 e 1 =.25(100) = 25 e 2 =.25(100) = 25 e 3 =.25(100) = 25 e 4 =.25(100) = 25 e 3 =.25(100) = 25 e 4 =.25(100) = 25 Test Statistic = = = 10 = 10

7 7 Slide n Multinomial Distribution Goodness of Fit Test Rejection Rule With  =.05 and With  =.05 and k - 1 = = 3 degrees of k - 1 = = 3 degrees of freedom freedomConclusion We reject the assumption there is no home style We reject the assumption there is no home style preference, at the.05 level of significance. preference, at the.05 level of significance. 22 2 Do Not Reject H 0 Reject H 0 Example: Finger Lakes Homes (A)

8 8 Slide Tests 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. 4. Compute the value of 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).

9 9 Slide Example: Finger Lakes Homes (B) n Contingency Table 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. 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 Price Colonial Ranch Split-Level A-Frame < $65, < $65, > $65, > $65,

10 Slide n Contingency Table Test Hypotheses H 0 : Price of the home is independent of the style of H 0 : Price of the home is independent of the style of the home that is purchased 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 Price Colonial Ranch Split-Level A-Frame Total Price Colonial Ranch Split-Level A-Frame Total < $65K 16, ,25 8,25 55 > $65K 13,5 9 15,75 6,75 45 Total Total Example: Finger Lakes Homes (B)

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

12 Slide Goodness of Fit Test: Poisson Distribution 1. Set up the null and alternative hypotheses. 2. Select a random sample and a. Record the observed frequency, f i, for each of the k values of the Poisson random variable. k values of the Poisson random variable. b. Compute the mean number of occurrences, . 3. Compute the expected frequency of occurrences, e i, for each value of the Poisson random variable. 4. Compute the value of the test statistic. 5. Reject H 0 if (where  is the significance level and there are k - 2 degrees of freedom).

13 Slide Example: Troy Parking Garage n Poisson Distribution Goodness of Fit Test In studying the need for an additional entrance to a city parking garage, a consultant has recommended an approach that is applicable only in situations where the number of cars entering during a specified time period follows a Poisson distribution. In studying the need for an additional entrance to a city parking garage, a consultant has recommended an approach that is applicable only in situations where the number of cars entering during a specified time period follows a Poisson distribution. A random sample of 100 one-minute time intervals resulted in the customer arrivals listed below. A statistical test must be conducted to see if the assumption of a Poisson distribution is reasonable. A random sample of 100 one-minute time intervals resulted in the customer arrivals listed below. A statistical test must be conducted to see if the assumption of a Poisson distribution is reasonable. # Arrivals # Arrivals Frequency Frequency

14 Slide Example: Troy Parking Garage n Poisson Distribution Goodness of Fit Test Hypotheses H 0 : The number of cars entering the garage during a one-minute interval is Poisson distributed. H a : The number of cars entering the garage during a one-minute interval is not Poisson distributed. Estimate of Poisson Probability Function  otal Arrivals = 0(0) + 1(1) + 2(4) (1) = 600 Total Time Periods = 100 Estimate of  = 600/100 = 6

15 Slide Example: Troy Parking Garage n Poisson Distribution Goodness of Fit Test Expected Frequencies x f ( x ) xf ( x ) x f ( x ) xf ( x ) Total Total

16 Slide Example: Troy Parking Garage n Poisson Distribution Goodness of Fit Test Observed and Expected Frequencies i f i e i f i - e i i f i e i f i - e i 0 or 1 or or 1 or or more or more

17 Slide n Poisson Distribution Goodness of Fit Test Test Statistic Rejection Rule With  =.05 and k - p - 1 = = 7 d.f. With  =.05 and k - p - 1 = = 7 d.f. (where k = number of categories and p = number (where k = number of categories and p = number of population parameters estimated), of population parameters estimated), Reject H 0 if  2 > Reject H 0 if  2 > 14.07Conclusion We cannot reject H 0. There is no reason to question We cannot reject H 0. There is no reason to question the assumption of a Poisson distribution. the assumption of a Poisson distribution. Example: Troy Parking Garage

18 Slide Mátgæði fyrir normaldreifingu Tvær ólíkar leiðir. A. Nota  2 - próf eins og hér á undan. B. Reikna skekkingu og ferilris og nota Bowman- Shelton próf. Þið þurfið að vita um þessar leiðir og vita hvað skekking og ferilris segja, en þurfið ekki að reikna þetta.

19 Slide A.  2 - próf Meðaltal og staðalfrávik úrtaks notað í tilgátuprófi. H 0 : Þýðið er normaldreift með meðalgildi og staðalfrávik eins og í úrtaki. H 0 : Þýðið er normaldreift með meðalgildi og staðalfrávik eins og í úrtaki. H a : Svo er ekki. H a : Svo er ekki. Rauntöluásnum skipt í hafilega mörg bil, þ.a. væntanlegur fjöldi á bili, samkvæmt H0, sé meiri en 5. Reiknaðo.s.frv.

20 Slide B. Skekking og ferilris Skekking (skewness) mælir hve samhverf tíðnidreifing er (assymmetry of a frequency distribution). Ferilris (kurtosis) mælir hve tíðnidreifing rís hátt (flatness or peakedness of a frequency distribution)

21 Slide Í Bowman-Shelton prófi er skekking og ferilris reiknað fyrir úrtakið og athugað hvort það sé í nægilega góðu samræmi við skekkingu og ferilris fyrir normaldreifingu. Skekking og ferilris - framhald