As an intern with the local home builder's association, you have been asked to analyze the state
Question:
The NewDataToPredict worksheet contains information on homes currently for sale.
a. Consider the Pre-Crisis worksheet data. Partition the data into training (50 percent), validation (30 percent), and test (20 percent) sets. Predict the sale price using k-nearest neighbors with up to k = 20. Use Price as the output variable and all the other variables as input variables. In Step 2 of XLMiner's k-Nearest Neighbors Prediction procedure, be sure to Normalize input data and to Score on best k between 1 and specified value. Check the box next to In worksheet in the Score new data area. In the Match variables in the new range dialog box, (1) specify the NewDataToPredict worksheet in the Worksheet: field, (2) enter the cell range A1:P2001 in the Data range: field, and (3) click Match variable(s) with same name(s). Completing the procedure will result in a KNNP_NewScore worksheet that will contain the predicted sales price for each home in NewDataToPredict.
i. What value of k minimizes the root mean squared error (RMSE) on the validation data? ii. What is the RMSE on the validation data and test data? iii. What is the average error on the validation data and test data? What does this suggest?
b. Repeat part a with the Post-Crisis worksheet data.
c. The KNNP_NewScore1 and KNNP_NewScore2 worksheets contain the sales price predictions for the 2000 homes in the NewDataToPredict using the precrisis and postcrisis data, respectively. For each of these 2000 homes, compare the two predictions by computing the percentage change in predicted price between the precrisis and postcrisis models. Let percentage change = (postcrisis predicted price 2 precrisis predicted price)/precrisis predicted price. Summarize these percentage changes with a histogram. What is the average percentage change in predicted price between the precrisis and postcrisis model?
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Essentials Of Business Analytics
ISBN: 611
1st Edition
Authors: Jeffrey Camm, James Cochran, Michael Fry, Jeffrey Ohlmann, David Anderson, Dennis Sweeney, Thomas Williams
Question Posted: