The graph and accompanying table shown here display 12 observations of a pair of variables (x, y). The variables x and y are positively correlated, with a correlation coefficient of r = 0.96. You estimate the slope of the least squares regression line, y = a + bx, for these data values to be b = 1.7. What is the y-intercept, a, of the least squares regression line? Round your answer to the nearest tenth. X-3,6,8,9,9,13,15,18,20,21,23,23 Y-9,17,15,15,18,24,29,36,43,39,46,35
> x<-c(3,6,8,9,9,13,15,18,20,21,23,23) > y<-c(9,17,15,15,18,24,29,36,43,39,46,55) > cor(x,y) [1] 0.9706552 > l<-lm(y~x) > l Call: lm(formula = y ~ x) Coefficients: (Intercept) x 0.1281 2.0504
so what does this mean?
This is the slope and y intercept of the regression line.
so would i have to put that into the Y=a+bx
Yes, just like I did when you posted the same question earlier.
3.61378 ?
The data set changed from your first posting of the question. > y<-c(9,17,15,15,18,24,29,36,43,39,46,35) > cor(x,y) [1] 0.9594526 > l<-lm(y~x) > l Call: lm(formula = y ~ x) Coefficients: (Intercept) x 3.163 1.715 You should at least understand the question instead of just asking for answers.
whats the y intercept
Join our real-time social learning platform and learn together with your friends!