GitHunt
DO

DoNguyenAnhTuan/Fuzzy-House-Pricing

House price prediction using fuzzy logic to handle uncertainty in real estate variables. Implemented in Jupyter Notebook.

# ๐Ÿก Fuzzy House Pricing

This project applies **Fuzzy Logic** to predict house prices based on uncertain or imprecise input variables such as location, area, and condition.

Fuzzy logic allows for reasoning with vague concepts like "large", "medium", or "near center" โ€” making it well-suited for complex, real-world decision-making like real estate valuation.

---

## ๐Ÿ’ก Why Fuzzy Logic?

- Traditional models rely on precise input (e.g., 120mยฒ = $150,000)
- Fuzzy logic works with **linguistic terms** (e.g., "medium area", "good condition")
- Human-like reasoning mimics expert appraisers

---

## ๐Ÿง  Model Components

- **Inputs**:
  - Distance to city center (km)
  - House area (mยฒ)
  - Condition score (0โ€“10)

- **Output**:
  - Predicted house price (in currency unit)

- **Tech stack**:
  - Python, NumPy, scikit-fuzzy
  - Visualizations with Matplotlib
  - Interactive development via Jupyter Notebook

---

## ๐Ÿ“Š Fuzzy Membership Functions

| Variable       | Linguistic Terms               |
|----------------|--------------------------------|
| Area           | Small, Medium, Large           |
| Distance       | Near, Moderate, Far            |
| Condition      | Poor, Average, Good            |
| Price (Output) | Cheap, Moderate, Expensive     |

---

## ๐Ÿš€ Run the Notebook

1. Clone the repo:
   ```bash
   git clone https://github.com/DoNguyenAnhTuan/Fuzzy-House-Pricing.git
   cd Fuzzy-House-Pricing
  1. Install dependencies:

    pip install -r requirements.txt
  2. Launch the notebook:

    jupyter notebook

๐Ÿ“Ž Sample Output

  • Input: 85mยฒ, 5km from center, condition = 7
  • Output: Moderately expensive

Fuzzy House Prediction Output


๐Ÿ“ฌ Author

Do Nguyen Anh Tuan
๐Ÿ“ MSc in IT @ Lac Hong University
๐Ÿ”— Portfolio Website
๐Ÿ™ GitHub

Contributors

Created June 11, 2025
Updated June 23, 2025