Академический Документы
Профессиональный Документы
Культура Документы
Frequency analysis
Correlation analysis
Part IV
Frequency analysis. Correlation analysis
Frequency analysis
Correlation analysis
Table of contents
Frequency analysis
Correlation analysis
Frequency analysis
Correlation analysis
Classification
Frequency analysis
Correlation analysis
Frequency analysis
Correlation analysis
Frequency analysis
By walking through a grid of frequencies , and measuring the gains
k () and phase shifts (), a Bode diagram for the system is
experimentally created:
Frequency analysis
Correlation analysis
Table of contents
Frequency analysis
Correlation analysis
Analytical development
A practical algorithm. FIR model
Accuracy guarantee
Frequency analysis
Correlation analysis
Context
Frequency analysis
Correlation analysis
Classification
Frequency analysis
Correlation analysis
Frequency analysis
Correlation analysis
k 0
Frequency analysis
Correlation analysis
Convolution
The (disturbance-free) response to an arbitrary signal u(k ) is the
convolution of the input and the impulse response:
y (k ) =
h(j)u(k j)
j=0
k
X
j=0
yj (k ) =
k
X
j=0
u(j)h(k j) =
k
X
j=0
h(j)u(k j) =
h(j)u(k j)
j=0
Frequency analysis
Correlation analysis
Impulse-response model
y (k ) =
h(j)u(k j) + v (k)
j=0
Frequency analysis
Correlation analysis
Assumptions
Assumptions
1
2
Recall:
Independence of random variables.
Stationary stochastic process: constant mean at every time step,
covariance only depends on difference between time steps and
not on absolute time.
Frequency analysis
Correlation analysis
Covariance functions
Frequency analysis
Correlation analysis
X
=E
h(j)u(k + j) u(k)
j=0
X
j=0
h(j)ru ( j)
j=0
The errors coming from the disturbance are dealt with later, using
linear regression.
Frequency analysis
Correlation analysis
ryu (1) =
X
j=0
h(j)ru (j)
h(j)ru (1 j)
j=0
...
we obtain (in principle) an infinite system of linear equations:
Coefficients ru ( ), ryu ( ).
Unknowns h(0), h(1), . . . , solution of the system.
Next, a practical algorithm working with finite data is given.
Frequency analysis
Correlation analysis
Table of contents
Frequency analysis
Correlation analysis
Analytical development
A practical algorithm. FIR model
Accuracy guarantee
Frequency analysis
Correlation analysis
ru ( ) = E {u(k + )u(k)}
mean{u(k + )u(k )}k=1,...,N
=: b
ru ( ),
0
and b
ru ( ) = b
ru ( ), due to u being a stationary process.
ryu ( ) = E {y(k + )u(k)}
mean{y (k + )u(k )}k=1,...,N
=: b
ryu ( ),
0
Note: to allow negative in b
ryu , the range of k would need to be
1 min{, 0}, . . . , N max{, 0}.
Frequency analysis
Correlation analysis
M1
X
h(j)u(k j) + v (k)
j=0
M1
X
h(j)ru ( j)
j=0
Frequency analysis
Correlation analysis
Linear system
Using b
ryu , b
ru estimated from data, write the truncated equations for
= 0, . . . , T 1:
b
ryu (0) =
M1
X
h(j)b
ru (j)
j=0
b
ryu (1) =
M1
X
h(j)b
ru (1 j)
j=0
...
b
ryu (T 1) =
M1
X
h(j)b
ru (T 1 j)
j=0
Frequency analysis
Correlation analysis
In matrix form:
b
b
b
ryu (0)
ru (0)
ru (1)
...
ryu (1) b
b
r
(1)
r
(0)
.
..
u
=
..
..
.
.
b
ru (T 1) b
ru (T 2) . . .
ryu (T 1)
b
ru (M 1)
h(0)
b
ru (M 2)
h(1)
..
.
b
ru (T M)
h(M 1)
Frequency analysis
Correlation analysis
Table of contents
Frequency analysis
Correlation analysis
Analytical development
A practical algorithm. FIR model
Accuracy guarantee
Frequency analysis
Correlation analysis
Assumptions
3
Then ru ( ) =P
0 whenever 6= 0 (since white noise is uncorrelated),
b
ryu ( )
b
ru (0)
Frequency analysis
Correlation analysis
Simplified guarantee
Theorem
In the white-noise case, as the number of data points N grows to
b ) converge to the true values h( ).
infinity, the estimates h(
Remark: This type of property, where the true solution is obtained in
the limit of infinite data, is called consistency.
Frequency analysis
Correlation analysis
Table of contents
Frequency analysis
Correlation analysis
Frequency analysis
Correlation analysis
Experimental data
Consider we are given the following, separate, identification and
validation data sets.
plot(id); and plot(val);
Note the identification input is white noise, while the validation input is
not. There are 2000 samples in the identification data.
Frequency analysis
Correlation analysis
Identification data.
FIR length M, here it is set to 40.
Third argument 0 means no input whitening is performed.
Frequency analysis
Correlation analysis
Frequency analysis
Correlation analysis
Frequency analysis
Correlation analysis
Frequency analysis
Correlation analysis
Frequency analysis
Correlation analysis
Frequency analysis
Correlation analysis