1. Calculating R² for Study Hours vs Test Scores
Problem
Substitute each study hour into to find the predicted test score for each student.
Calculate residuals as the difference between observed and predicted scores for each student.
Square each residual and sum them to find the residual sum of squares.
Find the mean of all observed test scores.
Calculate the total sum of squares by summing the squared deviations of each score from the mean.
Apply the formula to find the coefficient of determination.
Answer:
This high value means that approximately 97.8% of the variation in test scores is explained by study hours. The regression model fits the data very well, showing that study hours are a strong predictor of test performance.