Professional Documents
Culture Documents
(Test of Independence)
• Pronounced as chi-square test
• It is a measure to study the divergence of
actual and expected frequencies
• It describes the magnitude of the
discrepancy between theory and
χ2 Defined
observation.
2
𝑂−𝐸
• χ2 = σ
𝐸
2. To draw inferences, this test is applied, specially testing the hypothesis but not useful
for estimation.
3. The test can be used between the entire set of observed and expected frequencies
2. Χ2 as a test of independence
• It can be used to find out whether one or more attributes are associated or not. For
ex. Coaching class and successful candidate.
• We can find out whether there are related or independent.
Steps
• A hypothesis is established along with the significance level
𝑅𝑇 𝑋 𝐶𝑇
• Calculate the expected frequencies as 𝐸 =
𝑁
• Take the difference between observed and expected frequencies and
obtain the squares of these differences i.e., 𝑂 − 𝐸 2
• Divide the values of 𝑂 − 𝐸 2 by the respective 𝐸
2
𝑂−𝐸
• And obtain the total of σ[ ]
𝐸
• Find the value of Χ2, from Χ2 table at certain level of significance,
usually 5% level.
• The value χ2 of can range from zero to infinity
•𝑣 =𝑛 −𝑘
3. σ𝑂 = σ𝐸 = 𝑁
Ex. 1
Out of sample of 120 persons in a village, 76 were administered a new
drug for preventing influenza and out of them 24 persons were attacked
by influenza. Out of those who were not administered the new drug, 12
persons were not affected by influenza.
A. Prepare 2 X 2 tables showing the actual and expected frequencies.
B. Use chi square test for finding out whether the new drug is effective or
not.
(The table value of Χ2 for 1 d.f. at 5% level of significance is 3.84)
Ex. 2
Test the hypothesis that drug has a significant effect. Use α = 0.05.