A beginner-friendly project to predict house prices based on various factors such as square footage, number of bedrooms, location, and more. This project walks through data exploration, visualization, linear regression, and gradient boosting to achieve high model accuracy.
data/ # Dataset used for training and testing
house_price_prediction.ipynb # Main Jupyter Notebook with all code
requirements.txt # Python dependencies
README.md # Project documentation
This dataset contains details of house listings including:
- Number of bedrooms and bathrooms
- Square footage (with and without basement)
- Waterfront presence
- Location via latitude and longitude
- Zipcode
- Year built and renovated
- Price of the house
Source: [Add dataset source or link here]
- First model used to understand relationships in data
- Achieved ~73% accuracy
- Powerful ensemble model using decision trees
- Achieved ~91.94% accuracy
- Most common house types by bedroom count
- Price vs. Living Area
- Price vs. Location (Latitude and Longitude)
- Influence of features like:
- Basement area
- Floors
- Condition
- Waterfront
Install dependencies using:
pip install -r requirements.txt- pandas
- numpy
- matplotlib
- seaborn
- scikit-learn
- Clone the repository
git clone https://github.com/Shreyas3108/house-price-prediction.git
cd house-price-prediction- Install dependencies
pip install -r requirements.txt- Run the Jupyter Notebook
jupyter notebook house_price_prediction.ipynbTo achieve over 85% prediction accuracy in estimating house prices using regression techniques.
✅ Final model using Gradient Boosting achieved 91.94% accuracy.
- Data cleaning and preprocessing
- Exploratory data analysis
- Feature engineering
- Linear Regression vs Gradient Boosting
- Model evaluation using
r2_score
Written by Shreyas Raghavan Originally published on Medium: [https://medium.com/data-science/create-a-model-to-predict-house-prices-using-python-d34fe8fad88f]
Feel free to fork this project, improve the model, or apply it to other real estate datasets!
For queries or collaborations, reach out on GitHub or comment on the Medium article.