Skip to content

Includes two separate notebooks analyzing predictors of MEDV (median home value) and NOX (nitric oxides concentration) using linear regression. Visual analysis includes correlation heatmaps, scatter plots, and regression summaries for the strongest predictor variables.

License

Notifications You must be signed in to change notification settings

lujunqueira/linear-regression-boston-housing

Repository files navigation

Predicting MEDV and NOX – Boston Housing Dataset

This project explores environmental and socioeconomic factors that influence two key variables in the Boston housing dataset:

  • MEDV — Median value of owner-occupied homes
  • NOX — Nitric oxide concentration (parts per 10 million)

Using correlation analysis and linear regression modeling, the notebooks identify the most influential features and evaluate model performance.

Contents

  • Predicting_MEDV.ipynb: Regression analysis is used to identify the best predictors of MEDV, including RM (average number of rooms) and LSTAT (lower-status population).
  • Predicting_NOX.ipynb: Regression analysis is used to identify the best predictors of NOX, focusing on AGE (older buildings) and DIS (distance to employment centers).
  • PDF exports are included for each notebook

Tools & Libraries

  • pandas, numpy
  • seaborn, matplotlib
  • statsmodels (OLS regression)

Key Insights

  • LSTAT and RM show the strongest relationships with MEDV
  • AGE and DIS have significant predictive power for NOX
  • All models are statistically significant with strong R² values

Data Source

Boston Housing Dataset (originally from UCI, accessible via data/boston.csv)

License

MIT License — see the LICENSE file for details.

About

Includes two separate notebooks analyzing predictors of MEDV (median home value) and NOX (nitric oxides concentration) using linear regression. Visual analysis includes correlation heatmaps, scatter plots, and regression summaries for the strongest predictor variables.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published