B. H0 : There is no association between race and the section of the apartment complex.
H A: There is an association between race and the section of the apartment complex.
Find the χ2 statistic
Solution
The formula for calculating χ2 statistic is given by ;
χ2∗ =∑(Oi−Ei)2/Ei, where Oi and Ei is the i^th observation and the i^th expected count
From the given data calculated the expected count using the formula; E = (row total *column total)/sample size
χ2 = 7.104439336,
χ2 = 7.104 (rounded to 3 decimal .places)
The P-value is;
Degrees of freedom = (2-1)*(2-1) = 1, χ2 = 7.1044
P-value from chi-square calculator is 0.007689