I have this question on homework.
I think I have to put x and y into some mathematical model?
Is anyone have some idea how I do this?
Suppose that we observe the following data:
x y
1 2
2 5
3 5
4 8
5 9
a) Calculate the correlation between x and y.
b) Do a linear regression where x explains y and calculate the slope and the intercept.
c) Are the correlation coefficient and the slope related? If yes, how?
d) What would be your best prediction of y for x = 6?
Thanks for any kind of help! =)
I think I have to put x and y into some mathematical model?
Is anyone have some idea how I do this?
Suppose that we observe the following data:
x y
1 2
2 5
3 5
4 8
5 9
a) Calculate the correlation between x and y.
b) Do a linear regression where x explains y and calculate the slope and the intercept.
c) Are the correlation coefficient and the slope related? If yes, how?
d) What would be your best prediction of y for x = 6?
Thanks for any kind of help! =)