Chapter 13 Goodness-of-Fit Tests and Contingency Analysis

Slides:



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

Chapter 11 Other Chi-Squared Tests
CHI-SQUARE(X2) DISTRIBUTION
Chapter 12 Goodness-of-Fit Tests and Contingency Analysis
Inference about the Difference Between the
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
Chapter 12 Chi-Square Tests and Nonparametric Tests
Chapter 14 Analysis of Categorical Data
Chapter 12 Chi-Square Tests and Nonparametric Tests
Chapter Goals After completing this chapter, you should be able to:
Crosstabs and Chi Squares Computer Applications in Psychology.
Previous Lecture: Analysis of Variance
Chapter 12 Chi-Square Tests and Nonparametric Tests
Chi-Square Tests and the F-Distribution
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 12-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics, A First Course 4 th Edition.
1 Measuring Association The contents in this chapter are from Chapter 19 of the textbook. The crimjust.sav data will be used. cjsrate: RATE JOB DONE: CJ.
Chapter 9: Non-parametric Tests n Parametric vs Non-parametric n Chi-Square –1 way –2 way.
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.
Other Chi-Square Tests
HYPOTHESIS TESTING BETWEEN TWO OR MORE CATEGORICAL VARIABLES The Chi-Square Distribution and Test for Independence.
Business Statistics: A First Course, 5e © 2009 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics: A First Course Fifth Edition.
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
Chap 11-1 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall Chapter 11 Chi-Square Tests Business Statistics: A First Course 6 th Edition.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 12-1 Chapter 12 Chi-Square Tests and Nonparametric Tests Statistics for Managers using.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests and Nonparametric Tests Statistics for.
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
Chapter Outline Goodness of Fit test Test of Independence.
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
11.2 Tests Using Contingency Tables When data can be tabulated in table form in terms of frequencies, several types of hypotheses can be tested by using.
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
ContentFurther guidance  Hypothesis testing involves making a conjecture (assumption) about some facet of our world, collecting data from a sample,
Chapter 14 – 1 Chi-Square Chi-Square as a Statistical Test Statistical Independence Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
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.
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.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Chapter 10 Chi-Square Tests and the F-Distribution
The Chi-square Statistic
Other Chi-Square Tests
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.
Chapter 12 Chi-Square Tests and Nonparametric Tests
Chapter 9: Non-parametric Tests
Presentation 12 Chi-Square test.
Chi-square test or c2 test
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Chapter 18 Chi-Square Tests
Chapter 11 Chi-Square Tests.
Chapter Fifteen McGraw-Hill/Irwin
John Loucks St. Edward’s University . SLIDES . BY.
Qualitative data – tests of association
1) A bicycle safety organization claims that fatal bicycle accidents are uniformly distributed throughout the week. The table shows the day of the week.
Chapter 11 Goodness-of-Fit and Contingency Tables
Statistics for Business and Economics (13e)
Elementary Statistics: Picturing The World
Inference on Categorical Data
Testing for Independence
Inferential Statistics and Probability a Holistic Approach
Econ 3790: Business and Economics Statistics
Inferential Statistics and Probability a Holistic Approach
Chapter 10 Analyzing the Association Between Categorical Variables
Chapter 13 Goodness-of-Fit Tests and Contingency Analysis
Chapter 10 Hypothesis Tests for One and Two Population Variances
Chapter 11 Chi-Square Tests.
Chapter 13 – Applications of the Chi-Square Statistic
Inference on Categorical Data
CHI SQUARE TEST OF INDEPENDENCE
Section 11-1 Review and Preview
Chapter Outline Goodness of Fit test Test of Independence.
Chapter 11 Chi-Square Tests.
Presentation transcript:

Chapter 13 Goodness-of-Fit Tests and Contingency Analysis Business Statistics: A Decision-Making Approach 6th Edition Chapter 13 Goodness-of-Fit Tests and Contingency Analysis Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Chapter Goals After completing this chapter, you should be able to: Use the chi-square goodness-of-fit test to determine whether data fits a specified distribution Set up a contingency analysis table and perform a chi-square test of independence Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Chi-Square Goodness-of-Fit Test Does sample data conform to a hypothesized distribution? Examples: Are technical support calls equal across all days of the week? (i.e., do calls follow a uniform distribution?) Do measurements from a production process follow a normal distribution? Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Chi-Square Goodness-of-Fit Test (continued) Are technical support calls equal across all days of the week? (i.e., do calls follow a uniform distribution?) Sample data for 10 days per day of week: Sum of calls for this day: Monday 290 Tuesday 250 Wednesday 238 Thursday 257 Friday 265 Saturday 230 Sunday 192  = 1722 Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Logic of Goodness-of-Fit Test If calls are uniformly distributed, the 1722 calls would be expected to be equally divided across the 7 days: Chi-Square Goodness-of-Fit Test: test to see if the sample results are consistent with the expected results Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Observed vs. Expected Frequencies oi Expected ei Monday Tuesday Wednesday Thursday Friday Saturday Sunday 290 250 238 257 265 230 192 246 TOTAL 1722 Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Chi-Square Test Statistic H0: The distribution of calls is uniform over days of the week HA: The distribution of calls is not uniform The test statistic is where: k = number of categories oi = observed cell frequency for category i ei = expected cell frequency for category i Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

The Rejection Region H0: The distribution of calls is uniform over days of the week HA: The distribution of calls is not uniform Reject H0 if  (with k – 1 degrees of freedom) 2 Do not reject H0 Reject H0 2 Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Chi-Square Test Statistic H0: The distribution of calls is uniform over days of the week HA: The distribution of calls is not uniform k – 1 = 6 (7 days of the week) so use 6 degrees of freedom: 2.05 = 12.5916  = .05 Conclusion: 2 = 23.05 > 2 = 12.5916 so reject H0 and conclude that the distribution is not uniform 2 Do not reject H0 Reject H0 2.05 = 12.5916 Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Normal Distribution Example Do measurements from a production process follow a normal distribution with μ = 50 and σ = 15? Process: Get sample data Group sample results into classes (cells) (Expected cell frequency must be at least 5 for each cell) Compare actual cell frequencies with expected cell frequencies Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Normal Distribution Example (continued) Sample data and values grouped into classes: 150 Sample Measurements 80 65 36 66 50 38 57 77 59 …etc… Class Frequency less than 30 10 30 but < 40 21 40 but < 50 33 50 but < 60 41 60 but < 70 26 70 but < 80 80 but < 90 7 90 or over 2 TOTAL 150 Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Normal Distribution Example (continued) What are the expected frequencies for these classes for a normal distribution with μ = 50 and σ = 15? Class Frequency Expected Frequency less than 30 10 30 but < 40 21 40 but < 50 33 ? 50 but < 60 41 60 but < 70 26 70 but < 80 80 but < 90 7 90 or over 2 TOTAL 150 Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Expected Frequencies Expected frequencies in a sample of size n=150, from a normal distribution with μ=50, σ=15 Example: Value P(X < value) Expected frequency less than 30 0.09121 13.68 30 but < 40 0.16128 24.19 40 but < 50 0.24751 37.13 50 but < 60 60 but < 70 70 but < 80 0.06846 10.27 80 but < 90 0.01892 2.84 90 or over 0.00383 0.57 TOTAL 1.00000 150.00 Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

The Test Statistic Reject H0 if The test statistic is Class Frequency (observed, oi) Expected Frequency, ei less than 30 10 13.68 30 but < 40 21 24.19 40 but < 50 33 37.13 50 but < 60 41 60 but < 70 26 70 but < 80 10.27 80 but < 90 7 2.84 90 or over 2 0.57 TOTAL 150 150.00 Reject H0 if (with k – 1 degrees of freedom) Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

The Rejection Region H0: The distribution of values is normal with μ = 50 and σ = 15 HA: The distribution of calls does not have this distribution 8 classes so use 7 d.f.: 2.05 = 14.0671 Conclusion: 2 = 12.097 < 2 = 14.0671 so do not reject H0 =.05 2 Do not reject H0 Reject H0 2.05 = 14.0671 Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Contingency Tables Contingency Tables Situations involving multiple population proportions Used to classify sample observations according to two or more characteristics Also called a crosstabulation table. Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Contingency Table Example Left-Handed vs. Gender Dominant Hand: Left vs. Right Gender: Male vs. Female H0: Hand preference is independent of gender HA: Hand preference is not independent of gender Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Contingency Table Example (continued) Sample results organized in a contingency table: Gender Hand Preference Left Right Female 12 108 120 Male 24 156 180 36 264 300 sample size = n = 300: 120 Females, 12 were left handed 180 Males, 24 were left handed Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Logic of the Test H0: Hand preference is independent of gender HA: Hand preference is not independent of gender If H0 is true, then the proportion of left-handed females should be the same as the proportion of left-handed males The two proportions above should be the same as the proportion of left-handed people overall Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Finding Expected Frequencies 120 Females, 12 were left handed 180 Males, 24 were left handed Overall: P(Left Handed) = 36/300 = .12 If independent, then P(Left Handed | Female) = P(Left Handed | Male) = .12 So we would expect 12% of the 120 females and 12% of the 180 males to be left handed… i.e., we would expect (120)(.12) = 14.4 females to be left handed (180)(.12) = 21.6 males to be left handed Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Expected Cell Frequencies (continued) Expected cell frequencies: Example: Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Observed v. Expected Frequencies Observed frequencies vs. expected frequencies: Gender Hand Preference Left Right Female Observed = 12 Expected = 14.4 Observed = 108 Expected = 105.6 120 Male Observed = 24 Expected = 21.6 Observed = 156 Expected = 158.4 180 36 264 300 Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

The Chi-Square Test Statistic The Chi-square contingency test statistic is: where: oij = observed frequency in cell (i, j) eij = expected frequency in cell (i, j) r = number of rows c = number of columns Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Observed v. Expected Frequencies Gender Hand Preference Left Right Female Observed = 12 Expected = 14.4 Observed = 108 Expected = 105.6 120 Male Observed = 24 Expected = 21.6 Observed = 156 Expected = 158.4 180 36 264 300 Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Contingency Analysis 2 Decision Rule: If 2 > 3.841, reject H0, otherwise, do not reject H0 Here, 2 = 0.6848 < 3.841, so we do not reject H0 and conclude that gender and hand preference are independent  = 0.05 2 2.05 = 3.841 Do not reject H0 Reject H0 Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.

Chapter Summary Used the chi-square goodness-of-fit test to determine whether data fits a specified distribution Example of a discrete distribution (uniform) Example of a continuous distribution (normal) Used contingency tables to perform a chi-square test of independence Compared observed cell frequencies to expected cell frequencies Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc.