33% found this document useful (3 votes)
1K views

Car Price Prediction Using Machine Learning

This document describes a project to predict car prices using machine learning. It introduces artificial intelligence and machine learning concepts. The project aims to build a model that can predict car prices based on features like mileage, year, fuel consumption, and transmission by analyzing car data from CarDekho. It performs exploratory data analysis on the data and discusses preprocessing steps like label encoding. Finally, it trains a decision tree regression model on training data to predict car prices and test it on held-out test data.

Uploaded by

Shania Jone
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
33% found this document useful (3 votes)
1K views

Car Price Prediction Using Machine Learning

This document describes a project to predict car prices using machine learning. It introduces artificial intelligence and machine learning concepts. The project aims to build a model that can predict car prices based on features like mileage, year, fuel consumption, and transmission by analyzing car data from CarDekho. It performs exploratory data analysis on the data and discusses preprocessing steps like label encoding. Finally, it trains a decision tree regression model on training data to predict car prices and test it on held-out test data.

Uploaded by

Shania Jone
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Car Price

Prediction using
Machine Learning

I SHANIA JONE
11NT22CS186-T
Table of Contents
• Introduction to Artificial Intelligence

• Introduction to Machine Learning

• Abstract

• Problem Statement

• Implementation and Testing

• Results

2023
CAR PRICE PREDICTION 2
Introduction to Artificial Intelligence
 Artificial Intelligence (AI) refers to the development and deployment of computer
systems or machines that can perform tasks that typically require human
intelligence. It encompasses a broad range of techniques and approaches aimed at
enabling machines to learn, reason, perceive, and make decisions autonomously.

 AI systems are designed to analyze and interpret large amounts of data, recognize
patterns, and extract meaningful insights to solve complex problems. These
systems can adapt and improve their performance over time through a process
known as machine learning. They can also simulate human-like behaviors, such as
natural language processing, speech recognition, and computer vision.
Introduction to Machine Learning
 Machine Learning (ML) is a subset of artificial intelligence that focuses on developing
algorithms and models that enable computers to learn and make predictions or decisions
without being explicitly programmed. It is based on the idea that machines can learn
from data, identify patterns, and make informed decisions or predictions.

 The core principle of machine learning is to build mathematical models or algorithms


that automatically improve and adapt their performance as they are exposed to more
data. Instead of explicitly programming rules, machine learning systems learn from
examples and experiences. By analyzing large amounts of data, they can generalize
patterns, make predictions, or take actions based on new, unseen data.
Abstract
 Car price prediction is an essential task in the automotive industry, enabling buyers and
sellers to make informed decisions about the value of a vehicle. This paper aims to build
a machine learning model to predict cars' reasonable prices based on multiple aspects,
including vehicle mileage, year of manufacturing, fuel consumption, transmission and so
on. This model, if successful, could help people determine the price of car inputting
desired features .The data set for this problem statement has been taken from CarDekho
website.
Problem Statement
 This project aims to present a model of predicting the price of a car by inputting features
such as Model Name ,Owner ,Transmission and so on using Machine Learning
Model(ML Model).Throughout the project we will understand how certain features
affect the net-worth of a car in the automobile industry.

 The dataset contains 8 columns namely name , year , selling_price , owner ,


transmission, km_driven , fuel and seller_type.
Implementation and Testing
 Importing dataset and libraries

The head() returns the first n rows of a dataframe(default value is 5). The shape() returns number of
rows and columns of a dataframe .As of the above line of code, there are 4340 rows and 8 columns.
 Data Preprocessing-

Data Cleaning-Data cleaning, also known as data cleansing or data preprocessing, refers
to the process of identifying and correcting or removing errors, inconsistencies, and
inaccuracies in datasets.

Since there are no null values,no data cleaning is required.


 Usage of unique() and value_counts(): unique() method is used to get the unique values in a
dataframe column. The values are returned in order of appearance and are
unsorted.value_counts() returns a Series comprising counts of unique rows in the given
dataframe.
 Exploratory Data Analysis(EDA)-EDA involves examining and visualizing the data to
uncover its structure, distribution, and relationships between variables. It helps in
formulating hypotheses, detecting outliers, and determining the appropriate
preprocessing steps for further analysis.

 ScatterPlot-A scatter plot is a type of data visualization that displays the relationship
between two numerical features.
 Countplot- A countplot is a type of data visualization that displays the count of
occurrences of each category in a categorical variable. It provides a visual representation
of the frequency or distribution of categorical data.

 Boxplot- commonly used statistical visualization that displays the distribution of a


continuous variable through five summary statistics: minimum, first quartile (25th
percentile), median (50th percentile), third quartile (75th percentile), and maximum.
 Data Preparation for Modelling- In this project of Car Price Prediction ,I have used Label
Encoding.
Results
 Training a Car Price Prediction Model

Steps include:

Extracting features(X) and labels(Y) from Dataset .

X and Y have been split into x_train,x_test,y_train and y_test for training and testing data.
 Decision Tree Regressor- A decision tree regressor is a machine learning algorithm that
is used for regression tasks. It builds a decision tree model by recursively partitioning
the feature space based on the input variables to predict continuous target variables..
Thank you

2023 CAR PRICE PREDICTION 15

You might also like