Skip to content

Repository files navigation


🏡 House Price Prediction using Linear Regression

🚀 Predict house prices based on land area using Machine Learning (Linear Regression)


📌 Overview

This project is a Machine Learning-based web application that predicts house prices using Linear Regression (Single Variable Model).

It takes land area (in sq.ft) as input and predicts the estimated price using a trained ML model.


✨ Features

  • 📊 Simple and clean dataset visualization
  • 🤖 Machine Learning model using Linear Regression
  • 🎯 Real-time price prediction
  • 🌐 Interactive web app built with Streamlit
  • 📈 Graphical representation (Area vs Price)
  • 📐 Mathematical validation using Y = mX + b

🧠 Tech Stack

  • Python
  • Pandas
  • Scikit-learn
  • Matplotlib
  • Streamlit

📂 Project Structure

house-price-prediction-linear-regression/
│
├── app.py
├── dataset.csv
├── requirements.txt
└── README.md

⚙️ Installation & Setup

1. Clone the Repository

git clone https://github.com/selvan-01/house-price-prediction-linear-regression.git
cd house-price-prediction-linear-regression

2. Install Dependencies

pip install -r requirements.txt

3. Run the Application

streamlit run app.py

📊 How It Works

The model follows the Linear Regression formula:

Y = mX + b

Where:

  • X → Area (sq.ft)
  • Y → Price
  • m → Coefficient (slope)
  • b → Intercept

🎯 Example

  • Input: 40000 sq.ft
  • Output: Predicted Price (₹)

🚀 Future Enhancements

  • Multi-variable prediction (Bedrooms, Location, etc.)
  • Location-based pricing
  • Advanced UI (Glassmorphism design)
  • Deployment (Streamlit Cloud / AWS)
  • Model evaluation metrics

💡 Learning Outcomes

  • Understanding Linear Regression
  • Data preprocessing and visualization
  • Building Machine Learning models
  • Creating interactive ML web applications

🤝 Contributing

Contributions are welcome. Feel free to fork this repository and improve it.


🔗 Links


⭐ Support

If you like this project, give it a star on GitHub.


💻 Built with passion for AI & Machine Learning

About

House price prediction using linear regression with a Streamlit web app for real-time estimation based on land area.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages