The clean air act of 1970 was the beginning of the end for asbestos in homebuilding. By 1976, the U.S. Environmental Protection Agency (EPA) was given authority to restrict asbestos in paint. Homes built during and before this period are known to have materials with asbestos https://www.asbestos.com/mesothelioma-lawyer/legislation/ban/.
The state of Colorado has a large portion of their residential dwelling data that is missing the year built, and they would like you to create a predictive model that can classify if a house is built pre 1980. They would also like you to create a model that predicts (regression) the actual age of each home.
Colorado gave you home sales data for the city of Denver from 2013 on which to train your model. They said all the column names should be descriptive enough for your modeling and that they would like you to use the latest machine learning methods.
- Machine Learning Overview
- A visual introduction to machine learning
- Evaluation metrics
- Decision tree classification in Python
- Julia Silge on tidymodels using decision trees
Complete this project in R and Python as two standalone reports.
- Create 2-3 charts that evaluate potential relationships between the home variables and before1980.
- Can you build a classification model (before or after 1980) that has at least 90% accuracy for the state of Colorado to use (explain your model choice and which models you tried)?
- Will you justify your classification model by detailing the essential features in your model (a chart and a description are a must)?
- Can you describe the quality of your classification model using 2-3 evaluation metrics? You need to provide an interpretation of each evaluation metric when you provide the value.
Some variables are defined below.
variable | class | description |
---|---|---|
parcel | character | The parcel id |
nbhd | numeric | Neighborhood of the home |
abstrprd | numeric | No clue |
livearea | numeric | Square footage that is livable |
finbsmnt | numeric | Square footage finished in the basement |
basement | numeric | Total square footage of the basement |
yrbuilt | numeric | Year the home was built |
condition | character | Condition of the home (6 levels provided) |
quality | character | A letter ratting |
totunits | numeric | How many dwelling units in the building |
stories | numeric | The number of stories |
gartype | character | Details on the garage type |
nocars | numeric | size of the garage in cars |
xtraffic | logical | empty |
floorlvl | numeric | Mostly for apartments. What level the living unit is on |
numbdrm | numeric | Number of bedrooms |
numbaths | numeric | Number of bathrooms |
arcstyle | character | Type of home |
sprice | numeric | Selling price |
deduct | numeric | Deduction from the selling price |
netprice | numeric | Net price of home |
tasp | numeric | Tax assessed selling price |
smonth | numeric | Month sold |
syear | numeric | Year sold |
qualified | character | Q or U with 66 percent Q |
status | character | I or V with over 90 percent I |