Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Tree models provide one way of handling locational considerations. In this assignment we use a standard regression model (OLS) to handle the non-locational variables and

Tree models provide one way of handling locational considerations. In this assignment we use a standard regression model (OLS) to handle the non-locational variables and see how much trees can explain the part that OLS cannot explain (the OLS residuals). This exercise reinforces standard regression as well as a machine learning technique. Instructions Take the running Louisiana real estate data class_data_state.mat and run an OLS regression with the dependent variable of logprice against the explanatory variables of log(Area), log(Income), BA, Age, and dummies for Sales Year. Take the residuals from this regression and compute the R-squared. Now use the tree model with explanatory variables of Lat and Lon to see how much this model can find signal in the OLS residuals. Specifically, what is the R-squared of the OLS residuals as you change the depth of the tree (or number of nodes)? Use a MATLAB livescript file and export it as a pdf. Include an annotation explaining each output and command

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Elementary Statisitcs

Authors: Barry Monk

2nd edition

1259345297, 978-0077836351, 77836359, 978-1259295911, 1259295915, 978-1259292484, 1259292487, 978-1259345296

More Books

Students also viewed these Mathematics questions