Skip to content

Jridi1/car-price

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽ๏ธ Car Price Analysis & Prediction

This project focuses on analyzing a dataset of used cars and building a simple predictive model to estimate selling prices based on various car features.

The goal is to understand feature relationships, clean and preprocess the data, perform visual exploration, and implement a Linear Regression model to predict car prices.


๐Ÿ“‚ Project Structure

  • Car_Price_Analysis_Abderrahim.ipynb: Main Jupyter Notebook containing EDA, preprocessing, modeling, and evaluation
  • cars.csv: Dataset (not included here for licensing reasons)
  • README.md: Project documentation (this file)

๐Ÿ” Objectives

  • Explore key attributes affecting car prices (e.g. mileage, fuel type, power)
  • Detect and handle missing values
  • Engineer features and encode categorical data
  • Visualize relationships and correlations
  • Train and evaluate a Linear Regression model
  • Predict the price of a new car

๐Ÿ“ˆ Key Insights

  • Selling price is highly correlated with max_power and engine
  • Cars with more previous owners tend to sell for less
  • Outliers are present in price, mileage, and power โ€” identified via boxplots
  • Categorical variables such as fuel, transmission, and owner significantly influence pricing

โš™๏ธ Technologies Used

  • Languages: Python (Pandas, NumPy, Seaborn, Matplotlib)
  • Modeling: Scikit-learn (Linear Regression)
  • Notebook: Jupyter (.ipynb)

๐Ÿงช How to Run

  1. Clone this repository:

    git clone https://github.com/your-username/car-price-analysis.git
    cd car-price-analysis
  2. Install dependencies (optional):

    pip install pandas numpy matplotlib seaborn scikit-learn
  3. Launch the notebook:

    jupyter notebook Car_Price_Analysis_Abderrahim.ipynb
  4. Replace or add your own cars.csv dataset file in the same directory.


๐Ÿ”ฎ Prediction Example

The notebook ends with a sample prediction for a new car using this input format:

new_car = [[73000, 0, 0, 0, 1, 45, 2775, 86, 2, 9]]

This array represents a carโ€™s numerical features (e.g. mileage, fuel, transmission, power, age...).


๐Ÿ‘ค Author

Abderrahim Jridi
LinkedIn
Email: abderrahim.jridi@gmail.com


โ€œData is the new oil, but only if refined.โ€
Letโ€™s build better decisions with clean, structured, and intelligent data.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published