Skip to content

tomekceszke/car-price-prediction

Repository files navigation

TL;DR

Predict the prices of Passat B6 TDI basing on real offer

passat

Car price prediction

Want to buy or sell a car? What is adequate price?

Machine learning to the rescue!

This Python's script uses linear regression model to predict adequate price for a given car. As a data source (train&test) it uses real offers from Poland's biggest online vehicle marketplace.

  • Prediction method: Linear Regression
  • Framework: scikit-learn

To predict the best price you will need to specify 3 features:

  • year
  • mileage [km]
  • engine capacity [ccm]

Note

Written only for educational purposes.

Demo

prediction chart

Run

  1. Clone whole repository or download only this Python script
  2. Make sure that your environment contains all required libraries (numpy/scipy etc...)
  3. Prepare an URL that points to the offers of wanted vehicle's model ant put it in 'Settings' section
  4. Specify also parameters of cars_to_predict_price
  5. Run the script
  6. Have fun!

Linked resources

desmos chart