In: Statistics and Probability
APPLIED STATISTICS 2
PLEASE USE R, SHOW R CODE AND OUTPUT, with conclusion
Let x<-c(1,2,3,4,5,6,7,8), y<-c(4,6,3,7,8,3,9, 6.5). By vector operation (other method will get 0 point), find
a). the equation of regression line, that is, find a, b.
b). Find SSR, SSE
c). Find F-value
d). Find p-value
e). Make your decision, that is, answer the question, can we say y and x have linear relationship at alpha=0.05?.