0% found this document useful (0 votes)
10 views11 pages

7.1.2. Linear Regression - Math

Uploaded by

ranjithias2003
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views11 pages

7.1.2. Linear Regression - Math

Uploaded by

ranjithias2003
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Siddhardhan

Linear Regression
- Mathematical
Understanding
Linear Regression

14

12 Y = mX + c
10

8 𝑑𝑦 X --> X value
Y value

m= Y --> Y value
𝑑𝑥
6
m --> Slope
4 c --> Intercept
c
2

0
0 1 2 3 4 5 6
X value
Linear Regression

X
Linear Regression

X
Linear Regression

X
Linear Regression

X
Linear Regression

X
Loss Function

Loss function measures how far an estimated value is from its true value.

It is helpful to determine which model performs better & which parameters


are better.

Loss =
Loss Function

Randomly assigned Parameters: m = 3; c = 2

x y ŷ
ŷ = 3X + 2 2 10 8
3 14 11
4 18 14
5 22 17
6 26 20

x
Loss Function

x y ŷ
2 10 8
3 14 11
Loss =
4 18 14
5 22 17
6 26 20

Loss = [ (10 - 8)2 + (14 - 11)2 + (18 - 14)2 + (22 - 17)2 + (26 - 20)2 ] / 5

Loss = [ 4 + 9 + 16 + 25 + 36] / 5

Loss = 18

Low Loss value → High Accuracy


Linear Regression

Y
Y = mX + c

Best Fit

You might also like