AI Lec5
AI Lec5
CS-451
Here, we fit a curve / line to the data points, in such a manner that
the differences between the distances of data points from the curve
or line is minimized.
1. Linear Regression
• It is one of the most widely known modelling technique.
Y=a + b*X + e
Similar to equation of line: y = mx+b
m = 9.5
b = -20
y = mx+b
1. Linear Regression
Example: Find the final score of the team in the T20 match where scores of 15
overs are given
m = 9.5
b = -20
For
x = 5 , y = 27.5
x = 10, y = 75
x = 15, y = 122.5
x = 20, y = 170
1. Linear Regression
Cost Function
It is a function that measures the performance of a Machine Learning model for
given data. Cost Function quantifies the error between predicted values and
expected values and presents it in the form of a single real number.
1. Linear Regression
Cost Function Example
https://medium.com/@lachlanmiller_52885/understanding-and-calculating-the-cost-fun
ction-for-linear-regression-39b8a3519fcb
1. Linear Regression
Cost Function Example