Peter Carter.
← All work

Used Car Price Prediction Model.

A machine learning model that predicts what a used car is worth.

Predicted versus actual used car prices on the test set
Predicted vs. actual price on the test set, on log axes. Points on the dashed line are perfect predictions.

What it is

A machine learning model looks at the different features of a car (color, make, model, etc) and uses available pricing data to predict what a similar car should be worth. The model is trained on a Kaggle used car price dataset.

How it works

We used a CatBoost gradient boosted regressor for its native handling of categorical variables. Engineered features like miles per year were added and the model was tested on data withheld from the training set.

Results and Next Steps

Predictions track prices fairly accurately. However, there is overfitting and a few outliers skew the data. The model misses on a few exotic car entries, with the most expensive being a Maserati priced at ~$3,000,000. We are going to experiment with other options for the model, such as XGBoost. We also plan to create a small interface surrounding this so a user can input details about their own car and recieve pricing information.

CatBoost feature importance
Feature importance
Distribution of prediction errors on the test set
Prediction errors on the test set, clipped at ±$50k.
Previous project
Accessible Periodic Table
Next project
Custom EEG Visualizer