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-
Install dependencies:
pip install -r requirements.txt
-
Launch the notebook:
jupyter notebook
๐ Sample Output
- Input: 85mยฒ, 5km from center, condition = 7
- Output: Moderately expensive
๐ฌ Author
Do Nguyen Anh Tuan
๐ MSc in IT @ Lac Hong University
๐ Portfolio Website
๐ GitHub
On this page
Contributors
Created June 11, 2025
Updated June 23, 2025
