Beruflich Dokumente
Kultur Dokumente
i 1
For the best fit, this error should be minimum.
Therefore, 0 and 0.
m b
n
2
n
Now,
m m i 1
( mx i b y i ) =
i 1 m
(mxi b y i ) 2
n
= 2.(mxi b y i ) (mxi b y i )
i 1 m
n n n n
= 2 (mxi b y i ) xi = 2m xi 2b xi y i xi = 0
2
(1)
i 1 i 1 i 1 i 1
n n
Similarly, 0 m xi nb y i (2)
b i 1 i 1
From (1) and (2),
n
n
n
i 1
x i yi
b i 1
n n n
2 m
xi xi y i xi
i 1 i 1 i 1
n n n n n n n
n xi y i y i xi y i xi x i xi y i
2
i 1 i 1 i 1 i 1
Example:
For the data points (1,2), (2,3), (3,4), (4,5)
n n
n 4, x
i 1
i 1 2 3 4 10 , y
i 1
i 2 3 4 5 14
n n
xi yi 1 2 2 3 3 4 4 5 40 , x 2
i 1 1 2 2 3 3 4 4 30
i 1 i 1