Chi 2 B
Chi 2 B
Example 1
An office block has 4 lifts. The following table gives the number of
passengers per lift for a certain time interval.
Lift Number 1 2 3 4 Total
Number of Passengers 25 40 15 36 116
Test the hypothesis that all four lifts are equally busy over a long
time. (Use α = 0.05)
1. H0 = The lifts are equally busy. (Null Hypothesis.)
2. H1 = The lifts are not equally busy. (Alternative hypothesis)
Solution
Expected value = 116
4 = 29 (i.e. assuming H0 true, lifts equally
busy)
Lift Number 1 2 3 4 Total
Observed frequency 25 40 15 36 116
Expected frequency 29 29 29 29 116
First we must calculate the χ2 statistic
Test for Goodness of fit
(oi − ei )2
Σ( ) ≈ χ2n−1 (1)
ei
Solution
1. H0 = All the numbers are equally likely. (Null Hypothesis.)
2. H1 = All the numbers are not equallly likely. (Alternative
hypothesis)
χ2 Statistic = 7 <16.92
So we accept the Null hypothesis Conclusion
Each Number is equally likely Since Statistic (7) < Tables (16.92)
Example 2
A random sample of 260 employees of a large multi-national
corporation participated in a survey and the employees were
classified by two characteristics, as shown in the table below.
Attitude to management Clerical Technician Sales Total
Satisfied 40 50 40 130
Dissatisfied 60 40 30 130
Total 100 90 70 260
Test the hypothesis that the two classifications are independent
(take α = 0.05). Give the degrees of freedom of the test statistic
and state your conclusion clearly.
Example
Expected value of clerical and satisfied 130×100
260 = 50
(oi − ei )2
Σ( ) ≈ χ2(c−1)(r −1) (7)
ei
Degress of freedom
=(no. of cols-1)(no. of rows-1)=(3-1)(2-1)=2