On the two potential model based on aic are ecost

Info icon This preview shows pages 3–9. Sign up to view the full content.

On the two potential model based on AIC are ecost, fsize, shelves features, brand and shelves:brand. 3a. > lm_frig<-lm(price ~ ecost + rsize + fsize + shelves + + shelfsqft+ features + brand) > Recidual<-lm_frig$residuals > fited<-lm_frig$fitted.values
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

> plot(fited,Recidual,col="blue", + pch=19,ylab="Residual",xlab = "Fitted_Values", + main = "Residual Vs Fitted_Values") > abline(0,0) Interpretation The above residual vs fitted_values shows it reasonable to assume a homoscedastic because there is no regular pat tern in the scattered plot. > plot(ecost,Recidual,col="blue", + pch=19,ylab="Residual",xlab = "ecost", + main = "Residual Vs ecost") > abline(0,0) Interpretation The above residual vs ecost shows it reasonable to assume a homoscedastic because there is no regular pattern in the scattered plot
Image of page 4
> plot(rsize,Recidual,col="blue", + pch=19,ylab="Residual",xlab = "rsize", + main = "Residual Vs rsize") > abline(0,0) Interpretation The above residual vs rsize shows it reasonable to assume a homoscedastic because there is no regular pattern in t he scattered plot. > plot(fsize,Recidual,col="blue", + pch=19,ylab="Residual",xlab = "fsize", + main = "Residual Vs fsize") > abline(0,0) Interpretation The above residual vs fsize shows it reasonable to assume a homoscedastic because there is no regular pattern in t he scattered plot > plot(shelves,Recidual,col="blue", + pch=19,ylab="Residual",xlab = "shelves", + main = "Residual Vs shelves") > abline(0,0)
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Interpretation The above residual vs shelves shows it reasonable to assume a homoscedastic because there is no regular pattern i n the scattered plot. > plot(shelfsqft,Recidual,col="blue", + pch=19,ylab="Residual",xlab = "shelfsqft", + main = "Residual Vs shelfsqft") > abline(0,0) Interpretation The above residual vs shelfsquft shows it reasonable to assume a homoscedastic because there is no regular patter n in the scattered plot > plot(features,Recidual,col="blue", + pch=19,ylab="Residual",xlab = "features", + main = "Residual Vs features") > abline(0,0) Interpretation The above residual vs features shows it reasonable to assume a homoscedastic because there is no regular pattern in the scattered plot
Image of page 6
> plot(brand,Recidual,col="yellow", + pch=19,ylab="Residual",xlab = "brand", + main = "Residual Vs brand",horizontal = TRUE) Interpretation Boxplot above shows that there is no outliers which is normally distributed. > hist(Recidual, col= "green", + xlab="Residual", main = "Histogram of Residual") The histogram above shows the residuals are left-skewed, which is problematic to make inference on this model.
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

> boxplot(Recidual, col= "green", horizontal = TRUE, + main= "Residual Boxplot", xlab="Residual") Interpretation The boxplot above shows that price are roughly normally distributed with no outliers.
Image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern