Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
15 views9 pages

Formulation Linear Regression

The document discusses linear regression, focusing on methods to find distances and errors in predictions. It highlights the importance of closed and non-closed form solutions, as well as error functions and their impact on model performance. Additionally, it mentions the significance of data points and error metrics in evaluating regression models.
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)
15 views9 pages

Formulation Linear Regression

The document discusses linear regression, focusing on methods to find distances and errors in predictions. It highlights the importance of closed and non-closed form solutions, as well as error functions and their impact on model performance. Additionally, it mentions the significance of data points and error metrics in evaluating regression models.
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/ 9

Lnean Regresi on

2. Hoo to fnd
dzmtb,

m?

Con
2 dffeent
m and
:closed form holut
form.
Non -close d
L
closed Form pistanee.
Solu ti
4omi'n'

dstance
pereenta
Caneelat' a
’ Avoid
0se Squae dil fes

dteyentt gt ,

trror fune tin

Ackual pont
fo to ind he
>Distane e
,wtn Resptet

Eror, hotge

Point
Predct

we ue isde
wby dont we

Cre r tunc t
4unctm

Lbest
balue
d
t

dstance
tror
data paint

y eis Reprened Paclage


nd

Snd predie hed


9
Shude

Distan tance be huwen packoges


Relpreset errer.
Can be
This di'Herece
Key brror
feti cudd yi-y)
Paeloge in Piont
Actol Oata loy mgdel

Total

Error
Averag
be m'
Error muyt

M, b

mitb.

Sulbshitutg 9i by
a.
and can bo uriHen 2

ob)
Cntants

mand b, He values
ehangeError.
wrll also e f f e t he
Error,

Choginb
diereyng9
nereoing n m
in m
b

in

ECmb) mandS

Hndino Such values


ttot possilbe Choes
Ownile clogeye
te thc Uale b0.

s(m) Cyi-mxi
heometc
jntutian

m z lo

M =2

m 6
Sinerto.

mz

Snd can be

b lo
plet
Ssay
Relatsip beteln
2D
2D

>.E

miaimandnâkaa

20

m
(

-mci -b) -)
2(y
mj -b)

mxi-b)

de diulde by -2,
mDeib) o

S ( y ' - m i b )

studets
Noo diide
Paclage
m
n

mlan
Cech

Can
myc mea
bihave

Con

b+ b btb.

Such as
y-mzi-b6

b.

b
-
mi

Substuting
te
m Pectt
- m .

EE Eli-mxi- +

Jm

mz)/-it )
-mzi- i t
2 (y yi t+
mxi)
/ei
-nmai-
-2(4i
trm be Sde

divide
m i ) i

mi)(i-x.
=[ty-jmi-)) (mi-o

31
il.
(y'-9)6i-)
(xi-)4

bm lyi-9)(xi-)
b-mxi

Class mersRi
def_init (self)!
Selt.m one
elfh none

defft Cself, trainy yfran):


Pass
dpfFPrditt (sellx-t)
Pass

fnpord Pandas SPd


Pd tea
nead

You might also like