1) Let's start by making a table for that:
So now let' calculate the mean X bar , and Y bar:
Similarly for the average of y:
And now let's calculate the Standard Deviation for that sample Sx, and Sy:
And finally, let's calculate the correlation coefficient: One over n-1 times the Summation of the Standard deviations of the sample:
a) We can now start to write out the Least Squares Regression equation is as it follows calculating the slope
And the linear coefficient (y-intercept)
b) Since the number of hours of sleeping on average is given we can plug into y the number of hours to get x the score, Just like that:
3) Hence the answer is