Machine Learning
Car-Auction Lemon Detection
Predict which auctioned used cars are bad buys, walking the classical toolkit from a linear baseline up to gradient-boosted trees.
Data — ~73k used-car auction records, 34 features, ~12% bad buys, split in time.
Gradient-boosted trees reached 0.44 Gini on the locked future test set — well ahead of a single hand-built tree (0.36)
Context
A tabular prediction problem with real stakes — flagging bad used-car purchases at auction — used as a testbed for the full classical toolkit, from a simple baseline to modern boosting.
Approach
- Started from a regularized linear baseline, then implemented and studied tree methods — decision trees, bagging, and gradient boosting — before benchmarking them against production libraries.
- Engineered features from ratios and group-level statistics, and handled the class imbalance deliberately.
- Validated in time (past → present → future) and watched the train/validation/test gap to catch overfitting honestly.
Result
Boosted trees clearly beat the linear baseline on ranking quality, with early stopping keeping the strongest model from overfitting. The gains were real but measured — and reported as such.
What it demonstrates
A dependable end-to-end supervised-learning workflow: correct time-aware validation, feature engineering, and a clear-eyed read of when a fancier model is actually worth it.