Respuesta :
Answer:
[tex]\chi^2 = \frac{(27-33.33)^2}{33.33}+\frac{(31-33.33)^2}{33.33}+\frac{(42-33.33)^2}{33.33}+\frac{(40-33.33)^2}{33.33}+\frac{(28-33.33)^2}{33.33}+\frac{(32-33.33)^2}{33.33} =5.860[/tex]
[tex]p_v = P(\chi^2_{5} >5.860)=0.32[/tex]
Since the p value is higher than the significance level assumed 0.05 we FAIL to reject the null hypothesis at 5% of significance, and we can conclude that we can assume that we have equally like results.
Step-by-step explanation:
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:
Number: 1, 2 , 3 , 4 , 5 ,6
Frequency: 27, 31, 42, 40, 28, 32
We need to conduct a chi square test in order to check the following hypothesis:
H0: The outcomes are equally likely.
H1: The outcomes are not equally likely.
The level of significance assumed for this case is [tex]\alpha=0.05[/tex]
The statistic to check the hypothesis is given by:
[tex]\chi^2 =\sum_{i=1}^n \frac{(O_i -E_i)^2}{E_i}[/tex]
The observed values are given:
[tex]O_{1}=27[/tex] [tex]O_{2}=31[/tex]
[tex]O_{3}=42[/tex] [tex]O_{4}=40[/tex]
[tex]O_{5}=28[/tex] [tex]O_{6}=32[/tex]
The expected values are given by:
[tex]E_{1} =\frac{1}{6}*200=33.33[/tex] [tex]E_{2} =\frac{1}{6}*200=33.33[/tex]
[tex]E_{3} =\frac{1}{6}*200=33.33[/tex] [tex]E_{4} =\frac{1}{6}*200=33.33[/tex]
[tex]E_{5} =\frac{1}{6}*200=33.33[/tex] [tex]E_{6} =\frac{1}{6}*200=33.33[/tex]
And now we can calculate the statistic:
[tex]\chi^2 = \frac{(27-33.33)^2}{33.33}+\frac{(31-33.33)^2}{33.33}+\frac{(42-33.33)^2}{33.33}+\frac{(40-33.33)^2}{33.33}+\frac{(28-33.33)^2}{33.33}+\frac{(32-33.33)^2}{33.33} =5.860[/tex]
Now we can calculate the degrees of freedom for the statistic given by:
[tex]df=Categories-1=6-1=5[/tex]
And we can calculate the p value given by:
[tex]p_v = P(\chi^2_{5} >5.860)=0.32[/tex]
And we can find the p value using the following excel code:
"=1-CHISQ.DIST(5.860,5,TRUE)"
Since the p value is higher than the significance level assumed 0.05 we FAIL to reject the null hypothesis at 5% of significance, and we can conclude that we can assume that we have equally like results.