Chi-Square Test of Association: Independence. Testing Procedure: Step-1
Chi-Square Test of Association: Independence. Testing Procedure: Step-1
Chi-Square Test of Association: Independence. Testing Procedure: Step-1
An important application of a chi-square test involves using sample data to test the
independence of two categorical variables. For this test we take one sample from a population
and record the observations for two categorical variables.
We will summarize the data by counting the number of responses for each combination of a
category for variable 1 and a category for variable 2. The null hypothesis for this test is that the
two categorical variables are independent. Thus, this test is referred to as a test of
Independence.
Testing Procedure:
Step-1
Step-2
Step-3
Test Statistic
(𝒐𝒊 −𝒆𝒊 )^𝟐
Chi-square test = 𝝌𝟐 = ∑
𝒆𝒊
with df = (r-1)(c-1)
Step-4
Computation:
Step-5
Critical Region:
𝝌𝟐 ≥ 𝝌𝟐𝜶, 𝒅𝒇
Step-6
Conclusion:
Example:
A Bloomburg businessweek subsciber study asked. In the past 12 months, when traveling for
business, what type of airline ticket did you purchase most often?. A second question asked if
the type of airline ticket purchased most ofen was for domestic or international travel. Sample
data obtained are shown in the following table.
Type of Flight
Type of Ticket Domestic International Total
First Class 29 22 51
Business Class 95 121 216
Economy Class 518 135 653
Total 642 278 920
Using alpha 5% level of significance, is the type of ticket purchased independent for the type of
flight? What is your conclusion.
Solution:
Step-2
Step-3
Test Statistic
(𝒐𝒊 −𝒆𝒊 )^𝟐
Chi-square test = 𝝌𝟐 = ∑
𝒆𝒊
with df = (r-1)(c-1)
Step-4
Computation:
Type of Flight
Type of Ticket Domestic International Total
First Class 29 22 (278*51)/920= 51
(642*51)/920=35.58 15.41
Business Class 95 121 216
(642*216)/920=150.73 (278*216)/920=65.27
Economy Class 518 135( 278*653)/920= 653
(642*653)/920=455.68 197.32
Total 642 278 920
𝝌𝟐 = 𝟏𝟎𝟎. 𝟒𝟑𝟎𝟒
Step-5
Critical Region
𝝌𝟐 ≥ 𝝌𝟐𝟎.𝟎𝟓, 𝟐
𝝌𝟐 ≥ 𝟓. 𝟗𝟗𝟏
Conclusion:
Since calculated value falls in rejection region so we reject Ho. It may concluded that there is
association between type of ticket most often used with type of flight.