Question
You, as a property investor, are interested in understanding which factor (or factors) drives the prices of investment properties. A dataset is collected which contains
You, as a property investor, are interested in understanding which factor (or factors) drives the prices of investment properties. A dataset is collected which contains the prices (in thousand dollars, as denoted by apart price) for 50 one-bedroom apartments in city X, their corresponding rents per week (in dollars, as denoted by rent) and the costs to hold each of these properties per week (in dollars, as denoted by the cost of property). Following the procedures below to analyze the dataset ’assign2 data.csv’ by using Rstudio. Only include relevant outputs from Rstudio in your solution and attach the R codes as appendices.
(a). Import the data into Rstudio, draw two scatter plots: apart price versus rent and apart price versus cost.
(b). Fit the following two linear models:
Model 1: apart price = b0 + b1 × rent
Model 2: apart price = c0 + c1 × cost
Write down the equations of the two models with correct coefficients.
(c). Comment on the significance of all coefficients obtained from (b) based on the p-values (from the outputs of Rtudio). The significance level is 0.05.
(d). Produce residual plots for each model in (b), comment on each plot.
(e). Produce normal qq plots for each model in (b), and comment on each plot.
(f). Fit the following linear model:
Model3: apart price=d0+d1rent+d2cost Write down the equation of the model with correct coefficients.
(g). Comment on the significance of all coefficients obtained from (f) based on the p-values (from the outputs of Rtudio). The significance level is 0.05.
(h). Compare Model 1 and Model 3, explain which one is better.
(i). Given rent = 810 and cost = 800, predict the prices under Model
Step by Step Solution
3.52 Rating (172 Votes )
There are 3 Steps involved in it
Step: 1
R Code datareadcsvfilechooseattachdataplotapartpricerent main Scatter plot of apartment price and the rentplotapartpricecostofproperty main Scatter pl...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started