程序代写代做代考 Background

Background
MGMTMSA 403: Optimization
Assignment 3: Predicting Airbnb Prices
The file AirbnbTrain.csv contains data on 1700 Airbnb listings in Hollywood, CA. The dataset contains features such as the location (by latitude and longitude), number of guests accomodated, number of beds, and other variables. The dataset also contains the price per night of each Airbnb listing. Your assignment will be to formulate an optimization model to predict the price of Airbnb listings using this dataset.
Note: Given a set of model coefficients β1, β2, . . . , βd, the average prediction error of the model β for a data set (xi,yi), i = 1,…,n is given by
Questions
1!n”!d ” Error = n “yi − βjxij”
i=1 j=1
1. Model 1. Formulate the least absolute deviations regression problem as a linear program. Solve the linear program using the data given in the file AirbnbTrain.csv. What is the prediction error, in $/night, of your model on the test set (provided in AirbnbTest.csv)?
2. Model 2. Suppose that to improve interpretability, you wish to build a model that predicts Airbnb prices using only the three most important variables. Modify Model 1 by including a constraint that allows at most three variables to have non-zero coefficients.
a) List the names and coefficients of the three variables selected by the optimization model. b) What is the new prediction error, in $/night, of Model 2?
3. Model 3. Suppose now you wish to build a model that predicts Airbnb listing price using only three variables, where one of the variables is the number of beds.
a) List the names and coefficients of the two other variables selected by the optimization model.
b) Which variable was in Model 2 but is no longer in Model 3? Briefly explain in 1-2 sentences why this variable might have been dropped.
c) What is the new prediction error, in $/night, of Model 3?
1