CHAPTER 5 5.1 INTRODUCTORY CHI-SQUARE TEST Objectives:- Concerning with the methods of analyzing the categorical data In chi-square test, there are 2 methods.

Slides:



Advertisements
Similar presentations
Chapter 11 Other Chi-Squared Tests
Advertisements

15- 1 Chapter Fifteen McGraw-Hill/Irwin © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved.
Multinomial Experiments Goodness of Fit Tests We have just seen an example of comparing two proportions. For that analysis, we used the normal distribution.
The Analysis of Categorical Data and Goodness of Fit Tests
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
Chapter 11 Chi-Square Procedures 11.1 Chi-Square Goodness of Fit.
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
11-3 Contingency Tables In this section we consider contingency tables (or two-way frequency tables), which include frequency counts for categorical data.
Presentation 12 Chi-Square test.
Chapter 13 Chi-Square Tests. The chi-square test for Goodness of Fit allows us to determine whether a specified population distribution seems valid. The.
Cross Tabulation and Chi-Square Testing. Cross-Tabulation While a frequency distribution describes one variable at a time, a cross-tabulation describes.
GOODNESS OF FIT TEST & CONTINGENCY TABLE
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.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.7.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on Categorical Data 12.
For testing significance of patterns in qualitative data Test statistic is based on counts that represent the number of items that fall in each category.
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 Chi-Square Procedures 11.3 Chi-Square Test for Independence; Homogeneity of Proportions.
Multinomial Experiments Goodness of Fit Tests We have just seen an example of comparing two proportions. For that analysis, we used the normal distribution.
CHAPTER 5 INTRODUCTORY CHI-SQUARE TEST This chapter introduces a new probability distribution called the chi-square distribution. This chi-square distribution.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Other Chi-Square Tests
13.2 Chi-Square Test for Homogeneity & Independence AP Statistics.
Nonparametric Tests: Chi Square   Lesson 16. Parametric vs. Nonparametric Tests n Parametric hypothesis test about population parameter (  or  2.
CHI SQUARE TESTS.
HYPOTHESIS TESTING BETWEEN TWO OR MORE CATEGORICAL VARIABLES The Chi-Square Distribution and Test for Independence.
Chi Square Classifying yourself as studious or not. YesNoTotal Are they significantly different? YesNoTotal Read ahead Yes.
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.
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.
Slide 1 Copyright © 2004 Pearson Education, Inc..
Copyright © Cengage Learning. All rights reserved. Chi-Square and F Distributions 10.
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.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
Chapter 12 The Analysis of Categorical Data and Goodness of Fit Tests.
CHAPTER INTRODUCTORY CHI-SQUARE TEST Objectives:- Concerning with the methods of analyzing the categorical data In chi-square test, there are 3 methods.
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.
Statistics 300: Elementary Statistics Section 11-3.
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.
Irwin/McGraw-Hill © Andrew F. Siegel, 1997 and l Chapter 10 l Non-Parametric Statistics 10.1 The Chi-Square Tests: Goodness-of-fit Test.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
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.
Goodness-of-Fit and Contingency Tables Chapter 11.
Chi Square Test of Homogeneity. Are the different types of M&M’s distributed the same across the different colors? PlainPeanutPeanut Butter Crispy Brown7447.
Comparing Counts Chi Square Tests Independence.
Test of independence: Contingency Table
Non-Parametric Statistics
Chapter 12 Chi-Square Tests and Nonparametric Tests
Chi-Square hypothesis testing
Presentation 12 Chi-Square test.
5.1 INTRODUCTORY CHI-SQUARE TEST
Chapter 11 Chi-Square Tests.
Chapter Fifteen McGraw-Hill/Irwin
Chapter 11 Goodness-of-Fit and Contingency Tables
Consider this table: The Χ2 Test of Independence
Testing for Independence
Chapter 10 Analyzing the Association Between Categorical Variables
Contingency Tables: Independence and Homogeneity
Chapter 11 Chi-Square Tests.
Inference on Categorical Data
Analyzing the Association Between Categorical Variables
Inference for Two Way Tables
Chapter Outline Goodness of Fit test Test of Independence.
Chapter 11 Chi-Square Tests.
Presentation transcript:

CHAPTER INTRODUCTORY CHI-SQUARE TEST Objectives:- Concerning with the methods of analyzing the categorical data In chi-square test, there are 2 methods to be analyzed :  Independence Test To test if the variable is dependent to one another.  Homogeneity Test To test if there is a homogeneous relationship between the variables.

Definition of Chi Square A measure of differences between the observed and expected frequencies is supplied by the statistic chi square,. Characteristics of Chi Square Distribution:  It is not symmetric.  The shape of chi-square distribution depends upon the degreed of freedom.  As the number degreed of freedom increases, the chi square become symmetric.  The values chi square are nonnegative.

The Chi-Square Test for Homogeneity  The homogeneity test is used to determine whether several populations are similar or equal or homogeneous in some characteristics.  This test is applied to a single categorical variable from two different population

 The test procedure is appropriate when satisfy the below conditions : i.For each population, the sampling method is simple random sampling ii.Each population is at least 10 times as large as the sample iii.The variable under study is categorical iv.If sample data are displayed in contingency table (population x category levels), the expected value for each cell of the table is at least 5.

Two dimensional contingency table layout:  The above is contingency table ( r x c ) where r denotes as the number of categories of the row variable, c denotes as the number of categories of the column variable  is the observed frequency in cell i, j  be the total frequency for row category i  be the total frequency for column category j  be the grand total frequency for all cell ( i, j ) where Column Variable Category B 1 Category B 2 …Category B c Total Row Variable Category A 1 … Category A 2 … Category ……………… Category A r … Total…

Test procedure to run Chi-square test for homogeneity: 1. State the null hypothesis and alternative hypothesis Eg: 2. Determine: i. the level of significance, ii. The degree of freedom, where 3. Find the value of from the table of chi-square distribution Determine the rejection region: i.critical value approach; Reject ii. p – value approach;

4. Calculate the value of using the formula below: 5. Make decision

Example 5.2: Four machines manufacture cylindrical steel pins. The pins are subjected to a diameter specification. A pin may meet the specification or it may be too thin or too thick. Pins are sampled from each machine and the number of pins in each category is counted. Table below presents the results. Test at whether the categories of pins are similar for all machines. Too thinOKToo Thick Machine Machine Machine Machine

Solution: Construct a contingency table: Calculation of the expected frequency: Too thinOKToo ThickTotal Machine Machine Machine Machine Total

Testing procedure: From table of chi-square:

4.Using the observed and expected frequency in the contingency table, we calculate using the formula given:

Exercise 5.3: 200 female owners and 200 male owners of Proton cars selected at random and the color of their cars are noted. The following data shows the results: Use a 1% significance level to test whether the proportions of color preference are the same for female and male. Car Colour BlackDullBright GenderMale Female

Chi-Square Test for Independence  This test is applied to a single population which has categorical variables  To determine whether there is a significant association between the two variables.  Eg : In an election survey, voter might be classified by gender (female and male) and voting preferences (democrate,republican or independent). This test is used to determine whether gender is related to voting preferences.

 The test is appropriated if the following are met : 1.The sampling method is simple random sampling ii.Each population is at least 10 times as large as the sample iii.The variable under study is categorical iv.If sample data are displayed in contingency table (population x category levels), the expected value for each cell of the table is at least 5.

 Note: The procedure for the Chi-square test for independence is the same as the Chi-square test for homogeneity. The only different between these two test is at the determination of the null and alternative hypothesis. The rest of the procedure are the same for both tests. This theorem is useful in testing the following hypothesis:

Example 5.3: Insomnia is disease where a person finds it hard to sleep at night. A study is conducted to determine whether the two attributes, smoking habit and insomnia disease are dependent. The following data set was obtained. Use a 5% significance level to conduct the study. Insomnia YesNo HabitNon-smokers1070 Ex-smokers832 Smokers2238

Solution: From table of chi-square: Insomnia YesNoTotal HabitNon-smokers Ex-smokers83240 Smokers Total

4. Using the observed and expected frequency in the contingency table, we calculate using the formula given:

5.Conclusion

Exercise 5.4: A study is conducted to determine whether student’s academic performance are independent of their active in co-curricular activities. The following data set was obtained: Use a 5% significance level to conduct the study. Academic Performance LowFairGood Co-curricular Activities Inactive Active309060

Exercise 5.5: A total of n = 309 furniture defects were recorded and the defects were classified into four types: A,B,C,D. At the same time, each piece of furniture was identified by the production shift in which it was manufactured. Test at 5% significance level types of defects and furniture are independence. These counts are presented in table below: Shift Type of Defects 123 A B C D 13520