In the solutions below, we focus on the answers to specific content questions. For code and data manipulations please see the corresponding R script at the course git repo.
In this question, we use the 2015 RECS data to answer questions about home heating behavior.
The national average home temperature at night, in winter, among homes that use space heating is 68.1 (95% CI, 67.9-68.3) °F.
In this question, we analyze (computer) mouse tracking experiments to show that “atypical” examples of various animal species are associated with more curvature on the path to the correct reponse. These curvature measures are a proxy for indecision or cognitive burden.
We analyze these data using linear mixed models with condition (typical vs atypical) as the sole covariate and random intercepts for subject and examplar to account for the repeated measurs nature of the data. Subject level (random) intercepts help to account for subject-to-subject differences in curvature irrespective of condition. Similarly, exmemplar (random) intercepts help to account for the fact that exemplars are repeated across subjects.
Based on the results below, in this experiment the atypcial condition had the largest effect on the average absolute deviation measure which was nearly twice as large, on average, in the atypical condition. However, comparing confidence intervals for the relative effects of condition on each curvature measure, the only statistically meaningful difference is between average absolute deviation and total distance.
measure | Relative Effect | Subject | Exemplar | Error |
---|---|---|---|---|
Total Distance | 1.18 (1.09-1.27) | 0.10 (0.07-0.12) | 0.07 (0.04-0.10) | 0.31 (0.29-0.32) |
Maximum Absolute Deviation | 1.67 (1.32-2.10) | 0.37 (0.27-0.47) | 0.19 (0.09-0.29) | 1.07 (1.03-1.12) |
Average Absolute Deviation | 1.92 (1.47-2.50) | 0.50 (0.39-0.63) | 0.22 (0.10-0.34) | 1.25 (1.20-1.31) |
AUC | 1.42 (1.15-1.75) | 0.33 (0.22-0.44) | 0.14 (0.00-0.24) | 1.23 (1.17-1.28) |