Linear Regression Machine Learning Model
Linear Regression Machine Learning Model
erperi pofot Pt
bet be
dffference
Of
Qnd
actual
brw
the
preducted line
4akes
QS
y-
Y- I9rerept.
QxiS
nodei)
dependen
take ffnd
the Straght
pofot the
weigbtWhich the
which baued erence
(Superviged 3Point
the
prfce. preducted of Y: ot
+B1
Bo
ore
prite diff equation
metingmovement
knon
preduct mode saary dataue,
training
the
: 98
EDUA
mode (oe
ft
Best ) totercupt
'poin
AAua hoCx
nd wetght ’ ’experienre
that
REGRESSIN Kesidua is untt
featue
nd precictpreduct rror
actual
pofo SIoPe
pofnt
X=0
Crear
hegst ’ the
wben
One
Rndependent
LiNEAR e SUh that )hat
witb
auInput mPopmum
in betwen 1ntercept:
)
Tercept
SiMpLE Baed
) elope
)
líne
Gf
)
Sundaram
order best need -0
change and
funcHon
Resdu lerrors
prec°cteq Actua
Ie need minimize +he CoSt funcHon
bet ft Ifne
qer
2.
3 3
Iwhen
ho (x) 0t 0rC3) - 1S
JCO)
Repea the
Slope
converqence
decidu
earmfng
+he Convergence Speed
rate
tve
S\ope
q is ery +Pme to
globou
1f iS very larqe Jump bere
there wont
qlobal miotma.
Sundaram) be FORaroun
EDUCAO-001
USE
fos Smar
Gep9.
MulTIPe LINEAR REGRESSIO
VariabËe and One
moo
indeperdunt
dependunt Variable.
XI X2
Sixe or príce
size of Toom
Try to ffnd bet fit plane
Slope Or oeffiiet
tnjerrept
pofre
O2)
Gradient descen Curve
GlobaJ mfoimo
potYN6 MI9L REGReSSloN
Non- iner TelaHONsbip -beroeen independunt and
dependnt Varioble
(fnear reraton
Non-foear rHoship
Polynornia deqree
Sundara) FOR EDUCATIONAL USE
MuTIpLE PorYNOMI9L REGeESS |OH
feature One depencunt
featue
) Assumpton
Linear
relationsbip
istribted
normauy
mutt aollinearity
X2
POlynomiy deqree
.".
(eest ft (foe)
-- -- CAvg of Y)
R-Suared S9 peS
X TOtCU
Vau e
Sundaram) FOR EDUCATIONAL USE
î9
which
eraute
featue
add
price
P4 pice.
Gender
accureuy ber
num P=2 P=3
not
the
Podupendan
Locarion
datapojnt
CI-R2)CN-1)
dhe with
cmetri FOR
EDUCA
USE
wheh the
Correlated 63. 86.
Pnerea
ng: 13.
pnereaufng Cye
Of of
but
Number
umbe
Pocreauing
feature
higbly houe
added
feature
SQUARED
fnereau
y
featue 16aHOO
R-SquQre Gendu djusted
p
trdependent R2 model
R- Size
Of
boue iS
Ike
ep P
Adjuted
ADJ Example:
USTED feature
-pendent
not the
88Y.
goy.
6S
Sundaram
TYPES of COST FuCTIO
yiActual yi ’ predicted
’ Conver ferctfon
MSE ha ConveX funcfon
Gtobou mPoma
Otierg
yu to t er bet ft 1fne
get
ghifted "
n
h (yi-yy
yi Actual yi precicted
’ Conrer furcfon
MSe Convex funion
Giobau moina
Ouerg
yu to Ot er bet f t 1ne
ghifted "
get
4dvantage: robwt to
Sme sit
pisadvtaq: } Convergence +akes Hne
nptex
3) RMSE CROOt Meon Sguared Error )
RMSe = MSE