Highlights
Part
A. Begin to finalize your report by only including report/website quality output. By this, only include stylized output (do not use base R print). Include your code in your report using code_folding: hide. Avoid any package loading or other incidental inclusion of output in your report. This could mean using Stargazer to show regressions, and DT::datatable to show data. frames, and adding titles/labels to plots. Give all plots and tables appropriate captions. Write two to three-sentence introductions for the different sections of your report. Your report should introduce property assessment in Detroit, Michigan (as defined in part 2A), your two prediction models (from 2B and 2C), and a conclusion.
Feature engineering. You have now created two base models and evaluation metrics from last week. Investigate creating at least two new predictors and analyze if they improve your model(s).
Some possibilities:
C. Prediction. Create “out of sample” predictions for both models. By this, predict overassessment and assessment/ valuation for homes which did not sell for each model (2016 for B, 2019 for C). Note if you are having trouble with this step that you cannot use any information specific to the sale of a property for out-of-sample prediction. In other words, we use information on sale prices to determine the true value of homes but we do not know this information for homes that did not sell and if we want to make a prediction for these homes we cannot use sale price information as a predictor. A helpful data framework for this section would be to create a dataset of all properties in 2016/2019. You would then label all the properties which sold (leaving un-sold properties unlabeled) and creating your testing and training data by filtering only to properties which were labeled. After training, you can then augment your full dataset of labeled/ unlabeled data to get out of sample predictions.
D. Model Explanation. Each model type has different tools for explainability and we will discuss this more in class. Undertake this initial work knowing that we will gain more techniques for this later on. Complete one of the following.
Either (contextual explanation):
For the classification overassessment model, aggregate your predictions by census tract. Join in a census variable. Create a simple correlation plot and create a representation of the geographic variance in your predictions (this could be a leaflet map by census tract for example).
Or (machine learning explanation) For the regression assessment valuation model undertake an initial analysis of which factors your model identified as most important for valuation.
Hyperparameter Exploration for Classification
Mirroring Section 14.2.3, take your current workflow and use tune_bayes() to create a small tuning grid for your classification model. You will need to:
This Engineering has been solved by our PHD Experts at My Uni Paper.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.