You are on page 1of 7
kup wi waned E(ax)= a EX) E(ZaXy) > Lajllx,) ZaXj= a 2X; 2aiXj * a, 2X; Derivation of 01S eshmattrs ZB ave values thal mininize SS deviations from the Line defined by aah 4 the data (X,Y) y wee doum SS deviahens 7 take denvative wrt. x6 (get hue cevivatives) sk derivatives equal tO 71 Dive for & B Seed: 2D CY, -0-Bx, * x shchastig, 2a can “think. of take devvatives normal 24ins aS ovmenparts YS. 5-2 (y, px) corm eS pi ist of Ky B.D -2x,(%,-a-bX;) ad +h ould, ae a ee og o * moe Mol H ectimator set equal to 0 (an also eet both sides by onstants) We Sometinus o FLED =0 ; write normal ee 4 4 ~&-BX.) = eqvarions BY ROK, bow Z XM PX) =0 { Solve frst normal equation for & A = 42y, -& -BHR2K;. 72 ¥ ee es so Y-R+*AK « &- VK 3 E = 4 é <= 5 3 cs g. = $ JB a >! Ky LY -® BK Mey subtract it from -tnt_Seemnd normal egn 4 Tx Oh x)= 4 LX; “<= BX) AOS a NS Tae he : Ee -—“Srmyalaction-—— pay Y-bX for B {collect ferms AZM CADPR IO) = 0 Sy TUN) BOER) = 0 BLK) BH Z(G R) = 0 -¥)_ | 2 so 8-H 2OGOU; AFG -¥) Lepetatn of. B 4B aoa ye WX, Gn 46; - o-pRe z) 2% > = 2OKER) (BG -R) GED) D(x; -k)* 6 2048) + ZK R)es-2) LOGY LOG>%)* so ED )= p+ 204 RI E(e-Z) LO) but Ele;-2)= 0 because Ele, 0 ¢ E(2)-0 ot PRT VBR = KepKae ~FR oo EG): xs ras > ECE) EGR “¢ = 2

You might also like