This project explores the Ames Housing dataset and prepares the data for regression modeling. The notebook focuses on data loading, missing-value handling, preprocessing pipelines, and exploratory analysis.
The goal is to understand which features drive house prices and to prepare a clean, model-ready dataset. The work is based on 79 explanatory variables describing residential homes in Ames, Iowa.
Files in this repository:
train.csv- Training data with 1,460 rows and the targetSalePricetest.csv- Test data for predictionsample_submission.csv- Submission format templatedata_description.txt- Detailed field definitions for all features
Target variable:
SalePrice- Sale price of the property in dollars
Feature groups:
- Property characteristics (lot size, shape, building type)
- Area measurements (living area, basement, garage, porches)
- Quality ratings (overall, kitchen, basement, garage)
- Location and zoning (neighborhood, zoning class, proximity to features)
- Amenities (garage, pool, fence, fireplace, air conditioning)
The main analysis lives in Training.ipynb and follows this flow:
- Load the data and review basic structure.
- Separate target and features (
SalePricevs. predictors). - Identify numeric and categorical columns.
- Build preprocessing pipelines:
- Numeric: median imputation + standard scaling
- Categorical: most-frequent imputation + one-hot encoding
- Combine with
ColumnTransformerand transform the data. - Clean key missing values using domain-aware defaults:
- Pool, fence, alley, fireplace, garage, and basement indicators
- Masonry veneer type/area
LotFrontageimputed by neighborhood medianElectricalimputed by mode
- Perform EDA:
- Target distribution and skew
- Correlations with
SalePrice - Heatmap of top correlated features
- Scatter plots and box plots for key drivers
- Top numeric correlations with
SalePrice - Size and quality features (e.g.,
OverallQual,GrLivArea,TotalBsmtSF) - Neighborhood-level price differences
- Multicollinearity checks among numeric predictors
Python libraries used in the notebook:
- pandas
- numpy
- scikit-learn
- matplotlib
- seaborn
Install with:
pip install pandas numpy scikit-learn matplotlib seabornOpen and run the notebook:
jupyter notebook Training.ipynbOr run in VS Code with the Jupyter extension.
Training/
├── train.csv
├── test.csv
├── sample_submission.csv
├── data_description.txt
├── Training.ipynb
└── README.md
- This notebook prepares data for regression modeling but does not yet train or evaluate a model.
- The dataset is the same as Kaggle's "House Prices: Advanced Regression Techniques" competition.
Patrick Filima
Open for educational use.
Last updated: 2026-02-06