Question
Homework. Secti 9.3 homework Save Score: 0 of 1 pt 8 of 10 (8 complete) HW...

Answers
We have to find the 95% prediction interval for y when x=5465.
We will use R software.
R software codes
>x=c(5789,5699,5608,5431,5200,5064,5007)
>y=c(9347,9117,9604,10016,10178,10172,10061)
>model=lm(y~x)
>newx=data.frame(x=5465)
>predict(model, newdata=newx, interval= 'prediction')
Data vectors x and y are created. lm() function is used to fit the equation of regression line. data.frame() function is used to include the new observation on x for which we want to obtain the prediction interval. predict() function is used to obtain prediction interval. Note that in R software 95% level is default hence there is no need to specify the level in predict() function.
R software output
95% prediction interval is interpreted as, we can be 95% confident that the for the value of x, the value of y lies in that interval. Observe the above output.
95% prediction interval is (9108.354, 10303.43) .
We can 95% confident that when the amount of oil produced is 5,465 barrels, the amount of oil imported will be between 9108.354 and 10303.43.
This answers your question. If you understood, please rate positively.
fit lwr upr 1 9705.891 9108.354 10303.43