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). 3. 3.Compute.

Slides:



Advertisements
Similar presentations
Chi Squared Tests. Introduction Two statistical techniques are presented. Both are used to analyze nominal data. –A goodness-of-fit test for a multinomial.
Advertisements

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.
1 1 Slide Mátgæði Kafli 11 í Newbold Snjólfur Ólafsson + Slides Prepared by John Loucks © 1999 ITP/South-Western College Publishing.
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 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.
Horng-Chyi HorngStatistics II127 Summary Table of Influence Procedures for a Single Sample (I) &4-8 (&8-6)
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.
Aaker, Kumar, Day Seventh Edition Instructor’s Presentation Slides
Chapter 11a: Comparisons Involving Proportions and a Test of Independence Inference about the Difference between the Proportions of Two Populations Hypothesis.
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.
Quiz 10  Goodness-of-fit test  Test of independence.
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Test of Independence.
Aaker, Kumar, Day Ninth Edition Instructor’s Presentation Slides
GOODNESS OF FIT TEST & CONTINGENCY TABLE
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.
Chapter 26: Comparing Counts AP Statistics. Comparing Counts In this chapter, we will be performing hypothesis tests on categorical data In previous chapters,
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.
Chapter 11: Applications of Chi-Square. Count or Frequency Data Many problems for which the data is categorized and the results shown by way of counts.
Chapter 11: Applications of Chi-Square. Chapter Goals Investigate two tests: multinomial experiment, and the contingency table. Compare experimental results.
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.
The Practice of Statistics Third Edition Chapter (13.1) 14.1: Chi-square Test for Goodness of Fit Copyright © 2008 by W. H. Freeman & Company Daniel S.
Non-parametric tests (chi-square test) Dr. Omar Al Jadaan Assistant Professor – Computer Science & Mathematics.
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.
Chapter Outline Goodness of Fit test Test of Independence.
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
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 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 &
Copyright © Cengage Learning. All rights reserved. 14 Goodness-of-Fit Tests and Categorical Data Analysis.
CHI SQUARE DISTRIBUTION. The Chi-Square (  2 ) Distribution The chi-square distribution is the probability distribution of the sum of several independent,
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
John Loucks St. Edward’s University . SLIDES . BY.
Goodness of Fit Tests The goal of χ2 goodness of fit tests is to test is the data comes from a certain distribution. There are various situations to which.
Statistics for Business and Economics (13e)
Econ 3790: Business and Economics Statistics
CHI SQUARE TEST OF INDEPENDENCE
Analyzing the Association Between Categorical Variables
Chapter Outline Goodness of Fit test Test of Independence.
St. Edward’s University
Presentation transcript:

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 expected frequency e i for the i th category: 4. Compute the value of the test statistic. if e i > 5, this has a chi-square distribution 5. Reject H 0 if df = k – 1 Goodness of Fit Test

Example: Finger Lakes Homes (A) Finger Lakes Homes manufactures four models of prefabricated homes, a two-story colonial, a log cabin, 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. Split- A- Model Colonial Log Level Frame # Sold The number of homes sold of each model for 100 sales over the past two years is shown below. k = 4

1/4.25 Hypotheses Goodness of Fit Test H 0 : p C = p L = p S = p A = H a : customers prefer a particular style e i = ( n )( p i ) i.e., there is at least one proportion much greater than.25 e 1 = (0.25)(100) = 25 Expected frequencies e 2 = (0.25)(100) = 25 e 3 = (0.25)(100) = 25 e 4 = (0.25)(100) = 25

Goodness of Fit Test  =.05 (column) Do Not Reject H 0 Reject H 0.05  2 At 5% significance, the assumption that there is no home style preference is rejected. df = 4 – 1 = 3 (row)  = 3

1. State the null and alternative hypotheses. 2. Select a random sample and record observed frequency f i for each cell of the contingency table Compute expected frequency e ij for each cell 4. Compute the test statistic. 5. Reject H 0 if df = ( m - 1)( k - 1) Independence Test if e i > 5, this has a chi-square distribution

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 $99,000 or less or more than $99,000. Each home sold by Finger Lakes Homes can be classified according to price and to style. Finger Lakes’ manager would like to determine if the price of the home and the style of the home are independent variables. Example: Finger Lakes Homes (B) Price Colonial Log Split-Level A-Frame > $99,000 < $99,000 k = 4 Independence Test m = 2

45 Price Colonial Log Split-Level A-Frame Total < $99K > $99K Total Price Colonial Log Split-Level A-Frame Total < $99K > $99K Total Expected Frequencies ( e i ) Observed Frequencies ( f i ) Independence Test

Compute test statistic Hypotheses 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 style of the home that is purchased Independence Test

 =.05 (column) Do Not Reject H 0 Reject H 0.05  2 At 5% significance, we reject the assumption that the price of the home is independent of the style of home that is purchased. df = (4 – 1)(2 – 1) = 3 (row)  = 3 Independence Test

1. Set up the null and alternative hypotheses. 3. Compute expected frequency of occurrences e i for each value of the Poisson random variable. 2. Select a random sample and a. Record observed frequencies b. Estimate mean number of occurrences  4. Compute the value of the test statistic. 5. Reject H 0 if df = k – p – 1 Goodness of Fit Test: Poisson Distribution

Example: Troy Parking Garage In studying the need for an additional entrance to a city parking garage, a consultant has recommended an analysis approach that is applicable only in situations where the number of cars entering during a specified time period follows a Poisson distribution. Goodness of Fit Test: Poisson Distribution A random sample of n = 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. # of Arrivals Frequency  otal Arrivals = 0(0) + 1(1) + 2(4) + 3(10) (1) = 600 Estimate of  = 600/100 = 6 Total one-minute intervals = n = = 100

x f ( x ) n∙ f ( x ) x f ( x ) n∙ f ( x ) For x = Goodness of Fit Test: Poisson Distribution The hypothesized probability of x cars arriving during the time period is

i f i e i f i - e i or 1 or or more Goodness of Fit Test: Poisson Distribution

With  = Do Not Reject H 0 Reject H 0.05  2 At 10% significance, there is no reason to doubt the assumption of a Poisson distribution. (column) and df = 7 (row) Goodness of Fit Test: Poisson Distribution

1. State the null and alternative hypotheses. 3. Compute e i for each interval. 2. Select a random sample and a. Compute the mean and standard deviation (p = 2). b. Define intervals so that e i > 5 is in the i th interval c. For each interval, record observed frequencies f i 4. Compute the value of the test statistic. 5. Reject H 0 if df = k – p – 1 if e i > 5, this has a chi-square distribution Goodness of Fit Test: Normal Distribution

Example: IQ Computers IQ Computers (one better than HP?) manufactures and sells a general purpose microcomputer. As part of a study to evaluate sales personnel, management wants to determine, at a 5% significance level, if the annual sales volume (number of units sold by a salesperson) follows a normal probability distribution. A simple random sample of 33 of the salespeople was taken and their numbers of units sold are below n = 33, x = 71.76, s = Goodness of Fit Test: Normal Distribution

z.z. k = 33/5 = equal intervals. To ensure the test statistic has a chi-square distribution, the normal distribution is divided into k intervals. Expected frequency: e i = 33/6 = 5.5 1/6 =.1667 The probability of being in each interval is equal to Goodness of Fit Test: Normal Distribution

= (1)(.1667) =.1667 z.z. – Find the z that corresponds to the red tail probability Goodness of Fit Test: Normal Distribution

=.3333 – z.z. Goodness of Fit Test: Normal Distribution Find the z that corresponds to the red tail probability = (2)(.1667)

= z.z. Goodness of Fit Test: Normal Distribution = (3)(.1667) Find the z that corresponds to the red tail probability

z.z. –.97 –.43 Goodness of Fit Test: Normal Distribution Find the remaining z values using symmetry

Convert the z’s to x’s x z.z –.97 –.43 Goodness of Fit Test: Normal Distribution Find the z that corresponds to the red tail probability

Observed and Expected Frequencies f i e i f i – e i (f i – e i ) 2 /e i Total LL UL ∞ Data Table   ∞ Goodness of Fit Test: Normal Distribution

 =.05 (column) Do Not Reject H 0 Reject H 0.05  2 At 5% significance, there is no reason to doubt the assumption that the population is normally distributed. df = 3 (row)  = 3 Goodness of Fit Test: Normal Distribution