10.07.2015 Views

Multiple Linear Regression

Multiple Linear Regression

Multiple Linear Regression

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

predict(trees.lm, newdata = new, interval = "confidence")fit lwr upr1 8.264937 5.77240 10.757472 21.731594 20.11110 23.352083 30.379205 26.90964 33.84877Prediction intervals are given by> predict(trees.lm, newdata = new, interval = "prediction")fit lwr upr1 8.264937 -0.06814444 16.598022 21.731594 13.61657775 29.846613 30.379205 21.70364103 39.05477As before, the interval type is decided by the interval argument and the default confidencelevel is 95% (which can be changed with the level argument).Using the trees data,1. A 95% confidence interval for the mean Volume of a tree of Girth 9.1 in and Height 69 ftis given by [5.8, 10.8]. so with 95% confidence the mean Volume lies somewhere between5.8 cubic feet and 10.8 cubic feet.2. A 95% prediction interval for the Volume of a hypothetical tree of Girth 12.5 in and Height87 ft is given by [26.9, 33.8], so with 95% confidence the hypothetical Volume of a tree ofGirth 12.5 in and Height 87 ft would lie somewhere between 26.9 cubic feet and 33.8 feet.3 Model Utility and Inference3.1 <strong>Multiple</strong> Coefficient of DeterminationThe error sum of squares S S E can be conveniently written in MLR asS S E = Y T (I − H)Y. (31)The ANOVA decomposition saysS S TO =Y T (I − 1 n J )Y (32)10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!