Professional Documents
Culture Documents
Applied Linear Algebra Project: Mid-Sem Presentation
Applied Linear Algebra Project: Mid-Sem Presentation
Applied Linear Algebra Project: Mid-Sem Presentation
Mid-Sem Presentation
Khush Soni
Divyashree Jadeja
Aadya Chinubhai
Topic :
Using Ordinary Least Squares to predict
prices of used Cars.
Background:
10/28/2021 | 2
Motivation
We were always interested in Machine Learning and AI. We were always fascinated on How does
AI work?
Before going into complex AI research projects, it was important to master basic Machine
Also, since we can’t use any ready libraries like scikit-learn or Tensorflow , this project would
Also, this was the perfect project to give a Teamwork experience and mimic real life situations
Our challenge is to determine the value of m and c, that provides the minimum
error for the given the dataset. the Least Squares method will help us in that.
10/28/2021 | 6
Values of m and c changes as position of regression line changes.
Finding the Error:
We need to find the error first and than we will try to minimize error. So that we can fit line
such that it is at least distance from each point.
Calculation error means calculating difference between actual value and prediction value.
we will be using the Quadratic Loss Function to calculate the error. for the points below the
regression line y — p value of error is negative. We square this value so we do not get any negative
value.
After finding loss function we need to minimize it. That is done by finding the
partial derivative of L(x) and equating it to 0 and then finding an expression
for m and c.
Here,
x̅ = the mean of all the values in the input X
ȳ = the mean of all the values in the desired output Y
Contributions:
Divyashree Jadeja :
Dataset Cleaning
Khush Soni
Making ML model in python, background.
Aadya Chinubhai
Helping in building
Making ML Model Model and then
Dataset Cleaning
using Numpy testing it to get
accurate output.
In data cleaning, We remove unnecessary components from the dataset so that the model is more precise. Example :
Car prices depend only on some factors so we remove the unnecessary factors so that they don’t affect the model.
Also, We can only feed numbers to the model. So, converting words to numbers is also done in this step.