Assignment Gradebook ORION Downloadable eTextbook nt CALCULATOR MESSAGE MY INSTR
ID: 3064550 • Letter: A
Question
Assignment Gradebook ORION Downloadable eTextbook nt CALCULATOR MESSAGE MY INSTRUCTOR FULL SCREEN PRINTER VERSIO End of Section Problem 13.1 Use a computer to develop the equation of the regression model for the following data. Determine the predicted value of y for x-210 and X2 7. y X1 X2 12 174 3 18 281 9 31 189 4 28 202 8 52 149 9 47 188 12 38 215 5 23 148 9 36 167 8 17 135 5 (Round your answers to 2 decimal places.) The regression equation is: y The predicted value is: 9 Click if you would like to Show Work for this question: n Show Work LINK TO TEXT arch
Explanation / Answer
USING THE STATISTICAL SOFTWARE R ,
> y<-c(12,18,31,28,52,47,38,23,36,17)
> x1<-c(174,281,189,202,149,188,215,148,167,135)
> x2<-c(3,9,4,8,9,12,5,9,8,5)
> model<-lm(y~x1+x2)
> summary(model)
Call:
lm(formula = y ~ x1 + x2)
Residuals:
Min 1Q Median 3Q Max
-14.1166 -10.0453 -0.2528 8.1019 15.3137
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 23.65026 20.34525 1.162 0.283
x1 -0.06360 0.09878 -0.644 0.540
x2 2.54220 1.47844 1.720 0.129
Residual standard error: 12.41 on 7 degrees of freedom
Multiple R-squared: 0.3101, Adjusted R-squared: 0.1129
F-statistic: 1.573 on 2 and 7 DF, p-value: 0.2728
This can be interpreted to give the equation:
Y=23.65026 + (-0.06360 )X1 + 2.54220 X2
Now value can be predicted by plugging X1=210 and x2=7 which gives :
> Y=23.65026 + (-0.06360*210) + 2.54220*7
> Y
[1] 28.08966
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.