Question
Question: A sample of boys and girls were asked to choose their favorite sport, with the following results: ...
A sample of boys and girls were asked to choose their favorite sport, with the following results:
| Football| Cricket| Hockey| Basketball
---|---|---|---|---
Boys| 86| 60| 44| 10
Girls| 40| 30| 25| 5
Find the value of χ2 statistics.
Solution
In this question, we are given data of boys’ and girls’ favorite sports. We have been asked to find the χ2. At first, calculate expected frequencies using the formula NTi×Tj. After this, subtract the expected frequency from the corresponding actual observation and square the difference. Then, divide the square by their corresponding expected frequency and add all of them. You will have the final answer.
Formula used: 1) Eij=NTi×Tj, where Eij=Expected frequency for i(th) row and j(th) column, Ti=Total of i(th) row, Tj=Total of j(th) column, N=Total cells in table.
2) χ2=Eij∑(Oij−Eij)2
Complete step-by-step solution:
We will start by finding the expected frequencies. We have to calculate the expected frequencies of each and every cell in the given table. But first we will find the total of each row and columns.
| Football| Cricket| Hockey| Basketball| Row total (Ti)
---|---|---|---|---|---
Boys| 86| 60| 44| 10| 200
Girls| 40| 30| 25| 5| 100
Column Total (Tj)| 126| 90| 69| 15| 300
Now, we will find the expected frequencies using the formula Eij=NTi×Tj.
Expected frequency for i=1 and j=1,
E11=300200×126=84
Expected frequency for i=1 and j=2,
E12=300200×90=60
Expected frequency for i=1 and j=3,
E13=300200×69=46
Expected frequency for i=1 and j=4,
E14=300200×15=10
Expected frequency for i=2 and j=1,
E21=300100×126=42
Expected frequency for i=2 and j=2,
E22=300100×90=30
Expected frequency for i=2 and j=3,
E23=300100×69=23
Expected frequency for i=2 and j=4,
E24=300100×15=5
The table of expected frequencies is below:
| Football| Cricket| Hockey| Basketball| Row total (Ti)
---|---|---|---|---|---
Boys| 84| 60| 46| 10| 200
Girls| 42| 30| 23| 5| 100
Column Total (Tj)| 126| 90| 69| 15| 300
Next step is to subtract the expected frequency from the corresponding actual observation and then we have to square the difference. The final square of the difference is divided by the expected frequency of that cell. Each cell’s final answer is added to each other.
It is done like below:
⇒84(86−84)2+60(60−60)2+46(44−46)2+10(10−10)2+42(40−42)2+30(30−30)2+23(25−23)2+5(5−5)2
On simplifying the above equation, we will get –
⇒844+0+464+0+424+0+234+0
Hence,
⇒0.048+0.087+0.095+0.174
On adding,
⇒χ2=0.404
The required value of χ2 is 0.404.
Note: We can observe that the expected frequency is a probability count that appears in contingency table calculations including the Chi-square test. Expected frequencies also used to calculate standardized residuals, where the expected count is subtracted from the observed count in the numerator. An observed frequency are counts made from experimental data. In other words, you actually observe the data happening and take measurements. An expected frequencies are counts calculated using probability theory.