Car Price Prediction System

Desktop machine-learning app that estimates a car's price from brand, body, engine and size details, comparing 5 regression models, with charts and an estimate history.

  • Price: ₹1,499
  • Category: AI / ML
  • Technology: Python, Tkinter, scikit-learn, pandas, Matplotlib, SQLite
  • Includes: Source code + database
  • Suitable for: BCA / B.Sc CS, MCA / M.Sc CS, B.E / B.Tech CSE & IT

Project overview

Pricing a car depends on many factors together - brand, body style, engine, size, weight and fuel economy - which makes it a classic regression problem. This desktop application learns from a public car-price dataset of 205 cars with 24 attributes and trains five regression models: Ridge, K-Nearest Neighbours, Decision Tree, Random Forest and Gradient Boosting. They are compared by R-squared, mean absolute error and RMSE in a table, a bar chart and an actual-versus-predicted scatter plot (the best models reach an R-squared of about 0.85-0.95 on unseen cars). The best model is saved automatically and used on the Predict screen, where the user picks the brand, body style, engine type and enters the measurements (all validated) or loads a real sample car. The estimated price is shown with the model's typical error range, and every estimate is stored in a history that can be exported to CSV. The dataset explorer shows the records, price distribution, correlation heatmap and feature histograms. A trained model is included, so the demo works on day one.

Modules

  1. Login: Admin login with a salted password hash; the password can be changed from the Home screen.
  2. Home: Shows records, input fields, the price range, the active model and its R-squared.
  3. Dataset explorer: Browse the cars; price distribution, correlation heatmap and feature histograms.
  4. Train & Compare: Train 5 regression models in the background; R-squared, MAE and RMSE table; bar chart; actual-vs-predicted plot; CSV export.
  5. Predict: Validated 24-field form (brand, body, engine, size), sample-car loader, estimated price with error range.
  6. History: Every estimate saved with time and inputs; export to CSV or clear.

Requirements

  • Python 3.11
  • Internet once, to install the libraries (about 3 minutes)
  • Windows 10 / 11

How to run this project

  1. Install Python 3.11 from python.org and tick "Add python.exe to PATH" during setup.
  2. Extract the zip and open the project folder (STUDENT_GUIDE.md explains every step in simple words).
  3. Double-click `1_INSTALL.bat` once and wait until it says [OK] (about 3 minutes; it downloads the libraries into a private .venv folder).
  4. Double-click `2_RUN.bat` to start the project. If it does not start, double-click `CHECK_SETUP.bat` and read what it says.
  5. Log in with admin / admin123.
  6. Open Train & Compare and click Train: compare the 5 models and open the actual-vs-predicted plot. Open Predict, click 'Load a sample record' and Predict; change the brand or engine size and predict again.

More AI / ML projects