Chi Square Test
Chi Square Test
• A good fit indicates that the variation between the observed and
expected frequencies is due to fluctuations during sampling
Can we say that the variance of the distribution of weight of all students from which the above
sample of 10 students was drawn is equal to 20 kgs? Test this at 5 per cent and 1 per cent level
of significance
Problem 2
• A sample of 10 is drawn randomly from a certain population. The sum
of the squared deviations from the mean of the given sample is 50.
Test the hypothesis that the variance of the population is 5 at 5 per
cent level of significance.
CHI-SQUARE AS A NON-PARAMETRIC TEST
• Chi-square is an important non-parametric test and as such no rigid
assumptions are necessary in respect of the type of population.
• We require only the degrees of freedom (implicitly of course the size
of the sample) for using this test.
• As a non-parametric test, chi-square can be used (i) as a test of
goodness of fit and (ii) as a test of independence
1. test enables us to see how well does the assumed theoretical
distribution (such as Binomial distribution, Poisson distribution or
Normal distribution) fit to the observed data
2. test enables us to explain whether or not two attributes are
associated. For instance, we may be interested in knowing whether
a new medicine is effective in controlling fever or not, χ2 test will
helps us in deciding this issue.
Similarly, when chi-square is used as a non-
parametric test for testing the goodness of fit or
for testing the independence, the following
formula:
• Where Oij is the observed frequency of the cell in the ith row
and jth column,
Eij is the expected frequency of the cell in the ith row
and jth column.
STEPS INVOLVED IN APPLYING CHI-SQUARE TEST
Problem 1
• A die is thrown 132 times with following results