Key findings
- p-value backward elimination and VIF were used to handle multicollinearity.
- GridSearchCV tuned the hyperparameters.
- Residual plots and actual-vs-predicted plots check each model's fit.
How it works
- log1p/expm1 target transform for the skewed sale price.
- StandardScaler is fit on training data only, so nothing leaks from the test set.
- Includes a workaround for a pandas 2.x / statsmodels constant bug.
- Companion Medium article: "The Line of Best Fit Is a Lie — It's Actually a Choice" (OLS vs MAE).
Code and write-ups
- GitHub repository
- TODO: link related Medium / Blogger article URLs