Professional Documents
Culture Documents
Anova Final
Anova Final
SSB_red_light = SSW_red_light =
Red Light Q1 3 2.5 1.791666667 0.1666666667
Red Light Q4 3 2
Red Light Q5 3 3
Red Light Q6 3 3
Red Light Q7 3 3
Red Light Q8 3 3
SSW_no_light =
No Light Q1 3 1.25 SSB_no_light = 1.069444444 0.2083333333
No Light Q2 3 2
No Light Q3 3 0
No Light Q4 3 1
No Light Q5 3 2
No Light Q6 3 1
No Light Q7 3 1
No Light Q8 3 1.666666667
SSB_orange_light = SSW_orange_light =
Orange Light Q1 3 0.25 0.7013888889 0.0694444444
Orange Light Q2 3 2
Orange Light Q5 3 1
Orange Light Q6 3 1
Orange Light Q8 3 1
Null hypothesis (H0): The means of the different light conditions for each question are equal.
Alternative hypothesis (Ha): The means of the different light conditions for at least one question are not
equal.
To test the hypotheses, we perform an F-test using the calculated values of SSB and SSW. The F-statistic
is calculated as:
The degrees of freedom for the numerator (dfn) is equal to the number of groups minus 1.
dfn = k - 1
The degrees of freedom for the denominator (dfd) is equal to the total number of observations minus
the number of groups.
dfd = N - k
In our case, we have three groups (Red Light, No Light, and Orange Light) and a total of 24 observations.
dfn = 3 - 1 = 2
dfd = 24 - 3 = 21
Next, we calculate the mean sum of squares between groups (MSB) and the mean sum of squares within
groups (MSW).
MSB_red_light = 1.791666667 / 2
MSW_red_light = 0.1666666667 / 21
For No Light:
MSB_no_light = 1.069444444 / 2
MSW_no_light = 0.2083333333 / 21
MSB_orange_light = 0.7013888889 / 2
MSW_orange_light = 0.0694444444 / 21
The critical F-value for α = 0.05 with dfn = 2 and dfd = 21 is approximately 3.49 (from the F-distribution
table).
If F_red_light > 3.49, we reject the null hypothesis for the Red Light group.
If F_no_light > 3.49, we reject the null hypothesis for the No Light group.
If F_orange_light > 3.49, we reject the null hypothesis for the Orange Light group.
Dichotomy
Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Total
Red Light 6 0 3 3 0 3 1 3 2 19
No Light 3 2 2 3 0 3 1 3 2 19
Orange Light 1 1 3 1 1 2 1 1 1 12
Total 10 3 8 7 1 8 3 7 5 50
Grand Mean (Xbar) 2 2 2.66 2.33 0.33 2.66 1.33 2.33 1.66 2
Total 88 29 -
7.10 3.36
Hypotheses:
H0 (Null Hypothesis): The means are equal for all light conditions and questions.
Ha (Alternative Hypothesis): At least one mean is different for the light conditions and questions.
Since the calculated F-statistic (7.10) is greater than the critical F-value (3.36) at a significance level of
α=0.05, we reject the null hypothesis. This means that there is evidence to suggest that at least one
mean is different among the light conditions and questions.