1 Least Squares Regression 7장(최소자승법) Measured data Error Fitting a straight line to a set of paired observations: (x 1 , y 1 ), (x 2 , y 2 ),…,(x n , y n ). y=a 0 +a 1 x+e a 1 - slope a 0 - intercept e- error, or residual, between the model and the observations 곡선맞춤 (Curve fitting)
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
1
Linear RegressionLeast Squares Regression
7장(최소자승법)
Measured data Error
Fitting a straight line to a set of paired observations: (x1, y1), (x2, y2),…,(xn, yn).
y=a0+a1x+ea1- slopea0- intercepte- error, or residual, between the model and the observations
곡선맞춤 (Curve fitting)
2
3rd method :
Best strategy is to minimize the sum of the squares of
the residuals between the measured y and the y
calculated with the linear model:
• Yields a unique line for a given set of data.
n
i
n
i
iiii
n
i
ir xaayyyeS1 1
2
10
2
1
2 )()model,measured,(
by Lale Yurttas, Texas A&M University
3
List-Squares Fit of a Straight Line/
2
10
10
1
1
1
0
0
0)(2
0)(2
iiii
ii
iioir
ioi
o
r
xaxaxy
xaay
xxaaya
S
xaaya
S
xaya
xxn
yxyxna
yaxna
naa
ii
iiii
ii
10
221
10
00
Normal equations(정규방정식)
can be solved simultaneously
Mean values
n
i
iirxaayS
1
2
10)(
4
y = 0.8393x + 0.0714R² = 0.8683
-2
-1
0
1
2
3
4
5
6
7
0 2 4 6 8
yi
y-a_o-a1_xi
y-a_o-a1_xi
선형 (yi)
5
Polynomial Regression
(7.2 최소자승다항식)
• Some engineering data is poorly represented by a
straight line.
• For these cases a curve is better suited to fit the data.
• The least squares method can readily be extended to