Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 12

Wednesday,16th March INSTRUCTOR STUDENT

CCCT,CHISOPANI SOMDEB CHAKRABORTY CHEWANG PINCHO BHUTIA

MACHINE LEARNING
PROJECT
ON MULTIPLE LINEAR
REGRESSION MODEL.
Table of
Contents
Page

I Problem 1

II Solution 2-6

III Data Visualization 7-9


I PROBLEM

Q. Create a regression prediction on selling price , based on year, km_driven , and owner using the
following dataset.

FIG : Database of car details from Car Dekho.

1
I SOLUTION

• We first import the required modules, libraries and packages.

• Then we read the dataset using pandas dataframe.

• Then we split the dataset into x and y where y is the dependent variable and x is the independent set of features.

2
I SOLUTION

• Then we check if all the values are in numeric format.

• Since 'owner' is of object type we need to convert it into a numeric value. Let's see what does the 'owner' column
contain.

3
I SOLUTION

• Since there are five types of values we can replace each one with simple numeric words in order to use word2number as
a tool for string to numeric conversion.

• Applying word to number on the newly substituted values.

• Checking if the strings got converted to numerical value.

4
I SOLUTION

• Now we split the dataset into training set and test set.

• Applying linear regression.

5
I SOLUTION

• Now we split the dataset into training set and test set.

• Applying linear regression.

6
I Data Visusalization

• Predicting the value with custom parameters.

• Plotting the graph (Year VS Selling Price)

7
I Data Visualization

• Plotting the graph (KM_Driven VS Selling Price)

8
I Data Visualization

• Plotting the graph (Owner VS Selling Price)

9
Thank you!

You might also like