π | 2 | 5 | 9 | 14 |
π | 2 | 4 | 6 | 8 |
The coefficient of determination is given by:
\[ R^2 = 1 - \frac{SS_{\text{residual}}}{SS_{\text{total}}} \]
\[ \bar{Y} = \frac{\sum Y_i}{n} = \frac{2 + 5 + 9 + 14}{4} \]
\[ = \frac{30}{4} = 7.5 \]
\[ SS_{\text{total}} = \sum (Y_i - \bar{Y})^2 \]
\[ SS_{\text{total}} = (2 - 7.5)^2 + (5 - 7.5)^2 + (9 - 7.5)^2 + (14 - 7.5)^2 \]
\[ = (-5.5)^2 + (-2.5)^2 + (1.5)^2 + (6.5)^2 \]
\[ = 30.25 + 6.25 + 2.25 + 42.25 = 81 \]
Using the regression equation:
\[ \hat{Y} = -2.5 + 2X \]
We compute:
\[ SS_{\text{residual}} = \sum (Y_i - \hat{Y}_i)^2 \]
\[ SS_{\text{residual}} = (2 - 1.5)^2 + (5 - 5.5)^2 + (9 - 9.5)^2 + (14 - 13.5)^2 \]
\[ = (0.5)^2 + (-0.5)^2 + (-0.5)^2 + (0.5)^2 \]
\[ = 0.25 + 0.25 + 0.25 + 0.25 = 1 \]
\[ R^2 = 1 - \frac{SS_{\text{residual}}}{SS_{\text{total}}} \]
\[ R^2 = 1 - \frac{1}{81} \]
\[ R^2 = 1 - 0.0123 = 0.9877 \approx 0.98 \]
The coefficient of determination is \( R^2 = 0.98 \).