Answer:
1) [tex] \chi^2 = \frac{(30-25)^2}{25} +\frac{(20-25)^2}{25} =1 +1 =2[/tex]
2) [tex] df = c-1 = 2-1[/tex]
Where c represent the number of categories c=2
Step-by-step explanation:
Previous concepts
A chi-square goodness of fit test "determines if a sample data matches a population".
A chi-square test for independence "compares two variables in a contingency table to see if they are related. In a more general sense, it tests to see whether distributions of categorical variables differ from each another".
Assume the following dataset:
Tall =30 , Short =20
We need to conduct a chi square test in order to check the following hypothesis:
H0: The deviations from a 1:1 ratio (25 tall and 25 short) are due to chance.
H1: The deviations from a 1:1 ratio (25 tall and 25 short) are NOT due to chance.
Part 1
So then we know that the expected values would be 25 for each case
The statistic to check the hypothesis is given by:
[tex]\sum_{i=1}^n \frac{(O_i -E_i)^2}{E_i}[/tex]
And if we replace we got:
[tex] \chi^2 = \frac{(30-25)^2}{25} +\frac{(20-25)^2}{25} =1 +1 =2[/tex]
Part 2
For this case the degreed of freedom are given by:
[tex] df = c-1 = 2-1[/tex]
Where c represent the number of categories c=2
And we can calculate the p value given by:
[tex]p_v = P(\chi^2_{1} >2)=0.157[/tex]
And we can find the p value using the following excel code:
"=1-CHISQ.DIST(2,1,TRUE)"