Stat t09 Sol
Stat t09 Sol
Structured Questions
1. There is a study on the sleeping duration and the levels of happiness of healthy
children. Samples of children are interviewed and the time they spent on sleep at
night and their levels of happiness are recorded. The contingency table below
shows the number of children with different sleeping durations and happiness
levels. You want to test the relationship between the two variables at 𝛼 = 0.01
using 𝜒 2 -test.
Happiness levels
Sleeping Duration Depressed Sad Content Happy
Less than 6 hours 16 20 10 5
6 to 8 hours 30 26 29 20
8 to 10 hours 40 32 60 51
More than 10 hours 17 28 30 24
[Solution]
Decision rule: Reject the null hypothesis if the test statistic value is greater than or
equal to 21.666.
The 𝜒 2 -test statistic value is found using the following table:
Less than 6 hours (16, 11.99, (20, 12.34, (10, 15.02, (5, 11.64, 51
1.34) 4.75) 1.68) 3.79)
6 to 8 hours (30, 24.69, (26, 25.41, (29, 30.92, (20, 23.97, 105
1.14) 0.01) 0.12) 0.66)
8 to 10 hours (40, 43.03, (32, 44.29, (60, 53.9, (51, 41.78, 183
0.21) 3.41) 0.69) 2.03)
More than 10 hours (17, 23.28, (28, 23.96, (30, 29.16, (24, 22.6, 99
1.69) 0.68) 0.02) 0.09)
Total 103 106 129 100 438
(𝑂 − 𝐸)2
𝜒2 = ∑ = 1.34 + 4.75 + 1.68 + ⋯ + 0.09 = 22.327
𝐸
Since the test statistic value (22.327) is greater than the critical value (21.666), we
reject the null hypothesis at the 1% significance level.
We have very strong evidence to support the claim that there is an association between
sleeping duration and the levels of happiness of healthy children.
It is observed that children who sleep less than 6 hours at night are more likely to feel
sad but less likely to feel happy. For children who sleep 8 to 10 hours at night, they
are more likely to feel happy, but less likely to feel sad.
2
2. A researcher wishes to try three different techniques to lower the stress level of
individuals diagnosed with hypertension. The subjects are randomly assigned to
three groups; the first group takes medication, the second group exercises, and
the third group follows a special diet. After four weeks, the reduction in each
person’s stress level is recorded. The data are shown below.
Complete the ANOVA table. At 𝛼 = 0.05, test the claim that, among the three
mean reduction in stress level, at least one of them is different from the
others.
[Solution]
𝐻0 : 𝜇1 = 𝜇2 = 𝜇3
𝐻1 : Not all population means are identical
Since the p-value (0.003831) is less than 𝛼 (0.05), we reject the null hypothesis at
the 5% significance level.
3
We have very strong evidence to support the claim that for the mean reduction in
stress level by medication, exercises and diet, at least one of them is different from the
others.
4
SPSS Lab Exercise
[Solution]
A summary of results
𝐻0 : There is no association between the income and the happiness levels
𝐻1 : There is such an association
In the crosstabulation table, the following cells have standardized residuals greater
than or equal to 2, or less than or equal to –2:
Item Income group Happiness level Standardized residual
(i) Low Unhappy 2.0
(ii) High Unhappy -2.1
(iii) High Happy 2.3
In your report
There is a strong association between the income and the happiness levels, as
determined by the Pearson Chi-square Test (𝜒 2 (4, 90) = 17.426, p = .002). It is
found that people with low income are more likely to feel unhappy. People with high
income are less likely to feel unhappy but more likely to feel happy.
5
4. The SPSS file, STAT_T09_SPSS_ANOVA.sav, records the scores of a statistic
test of students from Class A, Class B and Class C. Use SPSS to perform the
ANOVA test and see if there is a significant difference in the test scores of
students in these three classes.
[Solution]
A summary of results
𝐻0 : 𝜇1 = 𝜇2 = 𝜇3
𝐻1 : Not all population means are identical
𝐹 df P-value of the test Decision (𝛼 = 0.05)
11.964 𝑑𝑓1 = 2 0.000023 Reject 𝐻0
𝑑𝑓2 = 95
In your report
There was a statistically significant difference in the test scores among groups of
students in Class A, Class B and Class C, as determined by one-way ANOVA (F(2,95)
= 11.964, p < .001). A Bonferroni post hoc test revealed that the test scores of Class B
students (M = 75.93, SD = 5.47) was statistically higher than that of Class A students
(M = 69.08, SD = 6.079, p < .001) and Class C students (M = 71.29, SD = 5.896, p
=.003). There was no statistically significant difference in the test scores of Class A
and Class C students. (p =.462).