⏳ Loading example…
📊
Multiple Reg.
Multiple Regression — Predict Exam Score from Study & Sleep Hours
Two-predictor OLS regression. Normal equations, β weights (b₁=3.39, b₂=2.57), R²=.973, F(2,7)=125.2.
📊 R² = .973, F(2,7) = 125.2, p < .001
Step-by-step solution
📊 14 · Multiple Linear Regression
Predict Exam Score from Study Hours + Sleep Hours
Multiple Regression
Research Question:
Can weekly study hours (X₁) and nightly sleep hours (X₂) together predict exam scores (Y) in a sample of 10 students?
| Student | X₁ (Study hrs) | X₂ (Sleep hrs) | Y (Score) | Ŷ | e = Y−Ŷ |
|---|---|---|---|---|---|
| 1 | 4 | 6 | 58 | 55.3 | 2.7 |
| 2 | 6 | 7 | 64 | 64.7 | −0.7 |
| 3 | 8 | 8 | 72 | 74.0 | −2.0 |
| 4 | 5 | 5 | 55 | 56.1 | −1.1 |
| 5 | 9 | 8 | 78 | 77.4 | 0.6 |
| 6 | 7 | 7 | 70 | 68.1 | 1.9 |
| 7 | 10 | 9 | 85 | 83.4 | 1.6 |
| 8 | 3 | 6 | 52 | 51.9 | 0.1 |
| 9 | 8 | 6 | 68 | 68.9 | −0.9 |
| 10 | 6 | 8 | 65 | 67.2 | −2.2 |
| x̄ | 6.6 | 7.0 | 66.7 |
OLS Normal Equations (2 predictors)
| Predictor | b | SE | t | p | 95% CI | β (std) |
|---|---|---|---|---|---|---|
| Intercept | 26.34 | 4.18 | 6.30 | <.001 | [17.1, 35.6] | — |
| Study Hours (X₁) | 3.39 | 0.41 | 8.27 | <.001 | [2.4, 4.4] | .74 |
| Sleep Hours (X₂) | 2.57 | 0.74 | 3.47 | .010 | [0.9, 4.2] | .32 |
R², Adjusted R², F
.973
R²
.965
Adj R²
125.2
F(2,7)
<.001
p
✅ The two-predictor model explains 97.3% of variance. Each extra study hour adds 3.39 points; each extra sleep hour adds 2.57 points.
APA-7
Multiple linear regression was used to predict exam scores from study hours and sleep hours. The overall model was statistically significant, F(2, 7) = 125.2, p < .001, R² = .973, adjusted R² = .965. Study hours (b = 3.39, SE = 0.41, β = .74, t(7) = 8.27, p < .001) and sleep hours (b = 2.57, SE = 0.74, β = .32, t(7) = 3.47, p = .010) were both significant predictors.