π Estimate used car prices in Tunisia using a Multiple Linear Regression model trained on 60,000+ synthetic listings (23 brands, 89% accuracy). Interactive Streamlit app with real-time predictions.
# π Tunisia Car Price Predictor
Estimate used car prices in Tunisia using Machine Learning. Interactive Streamlit app with real-time predictions and market insights.
**Live App:**
carvaluationtunisia.streamlβ¦
---
## β¨ Key Features
- β
**High Accuracy**: RΒ² = 89.91% | MAE = 3,876 TND
- π― **3-Page Interactive App**: Predict Price β’ Market Insights β’ About Model
- π° **Real-time Predictions**: Instant price estimates
- π **Market Dashboard**: 4 interactive charts showing pricing trends
- π¦ **60,000+ Dataset**: Synthetic but realistic car listings
- π€ **Linear Regression Model**: scikit-learn with feature transparency
---
## π¬ Demo Video
**Watch the app in action:**
---
## π Quick Start
### Online (Easiest)
Visit:
carvaluationtunisia.streamlβ¦
### Local Setup
```pwsh
# Clone & setup
git clone
github.com
cd Car_Valuation_Tunisia
# Create environment
python -m venv .venv
./.venv/Scripts/Activate.ps1
# Install & run
pip install -r requirements.txt
streamlit run app/Predict_Price.py
```
Then open
localhost
---
## π Project Structure
```
Car_Valuation_Tunisia/
βββ app/
β βββ Predict_Price.py # Main page - Price prediction
β βββ pages/
β βββ 1_Market_Insights.py # Dashboard with 4 charts
β βββ 2_About_Model.py # Model documentation
βββ data/raw/
β βββ tunisia_cars_dataset.csv # 60,000+ listings
βββ models/
β βββ linear_regression_tunisia_cars.pkl
βββ notebooks/
β βββ Tunisia_Cars_Price_Prediction.ipynb
βββ requirements.txt
βββ README.md
```
---
## π How to Use
### 1. Predict Price
- Enter car details (brand, year, mileage, etc.)
- Click "Predict Price"
- Get instant estimate with confidence range
### 2. Market Insights
- **Chart 1**: Price distribution by category
- **Chart 2**: Depreciation trends (year vs price)
- **Chart 3**: Market price distribution
- **Chart 4**: Top features affecting price
### 3. About Model β¦