logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Ellie StantonPhilosophy
(5/5)

556 Answers

Hire Me
expert
Praveen MehraniyaComputer science
(/5)

589 Answers

Hire Me
expert
Antonio SullivanHistory
(5/5)

938 Answers

Hire Me
expert
Alexx WardEconomics
(5/5)

529 Answers

Hire Me
R Programming
(5/5)

The detailed mark allocations are provided at the beginning of each question.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Instructions. Assignment 2 has a total of 40 marks and worths 40% of the final grade of TSTA602.  The detailed mark allocations are provided at the beginning of each question. Unless otherwise specified, please calculate your answer to two decimal places if approximation is needed. This assignment is due at 5pm on Friday, 28th May 2021 (Week 9). Please submit your assignment before the deadline, no late submission will be accepted unless a pre-approval from Lecturer is obtained. The assignment must be submittded via Moodle in a pdf format with the file name ’firstname surname studentID.pdf’. Any assignment submitted through email (without pre-approval) will not be marked. Although this is an individual as- signment, you are encouraged to discuss the assignment with your peers, but must write down your own solution. Penalties will apply if two solutions have a high similarity.

Scenario. 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 cost of property). Following the procedures below to analyse the dataset ’assign2 data.csv’ by using Rstudio. Please only include relevant outputs from Rstudio in your solution and attach the R codes as appendice (2 marks for attach R codes).

(a). (3 marks) Import the data into Rstudio, draw two scatter plots: apart price versus rent and apart price versus cost.

(b). (4 marks) 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). (8 marks) Written down the p-values from the output of your R codes. Com- ment 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). (6 marks) Produce residual plots for each model in (b), comment on each plot.

(e). (4 marks) Produce normal qq plots for each model in (b), and comment on each plot. 

(f). (3 marks) Fit the following linear model:

Model 3: apart price = d0 + d1rent + d2cost Write down the equation of the model with correct coefficients.

(g). (6 marks) Written down the p-values from the output of your R codes. Com-

ment 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). (2 marks) Compare Model 1 and Model 3, explain which one is better.

(i). (2 marks) Given rent = 900 and cost = 650, predict prices under Model 1 and Model 3.

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme