Linear Regression
Linear regression analysis to predict housing prices and evaluate model improvements through outlier removal.
Overview
This project implemented linear regression models to predict housing prices using the classic Boston housing dataset. Beyond basic modeling, the analysis focused on improving model performance through systematic identification and removal of outliers and high leverage points. The comparative analysis demonstrated significant improvements in model quality as measured by F-statistics and AIC scores.
The challenge
Identifying meaningful outliers versus legitimate data points. Balancing model complexity with interpretability. Determining which observations had undue influence on regression coefficients.
The approach
Implemented multiple linear regression models using statsmodels and scikit-learn. Conducted systematic analysis comparing four model variations: with outliers, without outliers, without high leverage points, and without both outliers and high leverage points. Evaluated each model using F-statistics and AIC, demonstrating that the model without outliers and high leverage points achieved the best performance (F-statistic: 366.2, AIC: 3010).
Key features
- Comparative model evaluation
- Outlier detection and removal
- Leverage point analysis
- Residual diagnostics
- Model quality metrics analysis
Outcomes
- Developed multiple linear regression models with progressive improvements in predictive performance
- Demonstrated significant model enhancement through outlier and high leverage point removal (F-statistic: 244.2 → 366.2)
- Achieved substantial reduction in AIC scores (3233 → 3010) indicating better model quality
Technologies
More data projects
See all →AlgoGP
Describe a trading idea in plain English, get a Python strategy, and backtest it point-in-time with an AI copilot.
Threadline
Turns raw user-to-AI conversations into product intelligence: what users want, where the assistant falls short, and what to fix next.
VitalOS
Connects Fitbit, Apple Watch and Oura into one schema, with daily scores, grounded AI briefings and a web + mobile dashboard.