Skip to content

Ishuz-data-Git/House-Price-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

🏡 House Price Prediction (Beginner → Intermediate Project)

This project predicts house prices using Machine Learning (Linear Regression and Random Forest).
It demonstrates a complete Data Science workflow — from data analysis to model evaluation.


🎯 Project Objective

To build a predictive model that estimates house prices based on features like:

  • Area (sq. ft)
  • Number of Bedrooms
  • Number of Bathrooms
  • City
  • Furnishing type
  • Parking availability

🧩 Steps Covered

  1. Importing Libraries – Pandas, NumPy, Matplotlib, Seaborn, Scikit-learn
  2. Data Creation/Loading – Sample dataset with features
  3. Data Cleaning & Understandinginfo(), describe(), missing values
  4. EDA (Exploratory Data Analysis) – Heatmap, Pairplot, Scatterplots
  5. Data Splitting – Train & Test sets
  6. Feature Scaling – StandardScaler
  7. Model Training – Linear Regression & Random Forest
  8. Model Evaluation – R² Score, MSE, RMSE comparison
  9. Feature Importance – Which features influence price most
  10. Model Saving – Export trained model using joblib

📈 Results Summary

Model R² Score MSE
Linear Regression 0.9538 275,793,442
Random Forest 0.9834 98,688,840

Random Forest performed best
🎯 Top Features: area, bedrooms

🧠 Learning Outcomes

  • Understanding regression algorithms
  • Data preprocessing and scaling
  • Model evaluation metrics (R², MSE)
  • Comparing ML models
  • Visualizing feature importance

⚙️ Tech Stack

  • Python 🐍
  • Pandas, NumPy
  • Matplotlib, Seaborn
  • Scikit-learn
  • Joblib

▶️ How to Run

  1. Clone this repo
    git clone https://github.com/<your-username>/House-Price-Prediction.git
    

📊 Feature Importance (Example Output)

About

Beginner-to-Intermediate ML project predicting house prices using Linear Regression & Random Forest

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published