Least-Squares Methods For System Identification
Least-Squares Methods For System Identification
Least-Squares Methods For System Identification
System Identification
The problem of determining a mathematical
model for an unknown system by observing its
input-output data pairs is generally referred to
as system identification
Linear Regression
x
y=x-3
3
Spring Data
Experiment
1
2
Force(newtons)
1.1
1.9
Length(inches)
1.5
2.1
3
4
5
3.2
4.4
5.9
2.5
3.3
4.1
6
7
7.4
9.2
4.6
5.0
Determine the class of models within which the search for the
most suitable model is conducted. y = f(u; ) where u is the input
vector and is the parameter vector.
Example:
Linear
y= 0 + 1u1,
Second-order polynomial
1u 1
2u1
y=
= -3
=1
Page 1
9/18/2001
Parameter Identification
training
data
Target System
to be Identified
yi
yi - yi
Mathematical Model yi
f(u; )
Identification
Techniques
Optimize parameters
feedback
Conduct validation tests (Are they satisfactory?)
no
yes
Done
Least-squares: Error
linear models
models that have linear parameters
y=
1u1
2u 1
Expected
Error 0
+1
-2
+3
Error2 0
10
it is
A=
1 1.1
1 1.9
y=
1
2
1.5
2.1
A-1 =
2.375
-1.25
-1.375
1.25
-1.375
1.25
1.5
2.1
f2(u1)
A=
u1
=
f1(u2)
f2(u2)
= A-1 y =
y1
y=
u2
2.375
-1.25
.675
.75
y2
11
12
y = .675 + .75x
Page 2
9/18/2001
Least-squares: Matlab
Least-squared: m > n
1.1
1.9
ans = 1.5
2.1
13
+e=y
>>inv(A) * y
f1(u1)
fn(u1)
ans = 0.675
0.750
f1(um)
fn(um)
e1
+
n
y1
=
em
ym
14
Spring Example
(AT
A)-1
ATy
- Hookes law
length = k0 + k1 force
15
16
Spring Example
+e=y
1
1
1
1
1
1
1
k
k1
1.1
1.9
3.2
4.4
5.9
7.4
9.2
k0
k1
e1
e2
e3
e4
e5
e6
e7
1.5
2.1
2.5
= 3.3
4.1
4.6
5.0
1.20
0.44
17
18
Page 3
9/18/2001
Regression is easy...
or maybe it isnt?
6 0
5 5
5 0
5 0
4 5
4 0
4 0
3 5
3 0
3 0
2 5
2 0
2 0
1 5
1 0
1 0
5
0
0
20 0
4 00
60 0
8 00
1 00 0
12 00
1 40 0
16 0 0
2 0 0
4 0 0
6 0 0
8 0 0
1 0 0 0
1 2 0 0
1 4 0 0
1 6 0 0
1 8 0 0
1 80 0
19
20
Memory models
Memory models
+3
+2
+1
0
-1
-2
-3
Expected
= .5
21
22
Page 4