Professional Documents
Culture Documents
0.6
0.4
0.2
-0.2
Input
- System- Output
0 2 4 6 8 10 12 14 16 18 20
Control Measurem.
Input Process Output
1
-1
-2
-3
0 10 20 30 40 50 60 70 80 90 100
Reduction by a disturbance source
Local controller
Disturbance
F(t1) x(t,2)
x(t,3)
1
x(t,4)
t
t1
Stochastic disturbance models
The distribution function of the stochastic process is
defined as follows (P is probability)
l
F ( 1 , 2 , , n ; t1 , t 2 , , t n ) P x (t1 ) 1 , x (t 2 ) 2 , , x (t n ) n q
The mean value or expected value of x is defined as
z
m( t ) x ( t ) x ( t ) E {x ( t )} dF ( ; t )
and variance
2
x
2
(t ) var{x(t )} E{( x(t ) m(t )) } E x(t ) E{x(t )}
2
( m(t )) 2 dF ( ; t )
Stochastic disturbance models
Sometimes the derivative of F, the density function p
z
is used.
p( x ) dx 1
P is scaled as
z
var{ x } E {( x E { x }) 2 } ( x E { x }) 2 p ( x ) dx
Without comp. 0 0
(right., upper)
-2 -0.01
with compens.
(right,down). -4
0 200 400 600 800 1000
-0.02
0 200 400 600 800 1000
Stochastic disturbance models, example
Histograms for control (up.), disturbance (middle.) and
output (down.), (to the right:compensated, to the left: no
compensation)
About the same
6000 6000
control
4000 (statictically the 4000
2000
same), but 2000
different results
0
-200 -100 0 100 200
follow. 0
-200 -100 0 100 200
0000
6000 800
8000
600
4000 6000
400 4000
2000
200 2000
0
0 0 -0.04 -0.02 0 0.02 0.04
-1 -0.5 0 0.5 1 -5 0 5
Stochastic disturbance models
Calculation rules for mean value and variance
(a is constant, x and y are stochastic variables)
E {ax} aE {x}
E {x y} E {x} E { y}
E {a} a
var{ax} a 2 var{x}
var{a} 0
If x and y are independent, then
E {xy} E {x} E { y}
var{x y} var{x} var{ y}
Stochastic disturbance models
The definitions for mean value and variance can be
extended to vector variables
m (t ) E {x( t )}
m
var{x(t )} E (x(t ) m (t ))( x(t ) m (t )) T r
E m(x(t ) E {x(t )})( x( t ) E {x( t )}) r
T
z
1
xx ( )
2
r
k
xx ( k )e ik
rxx ( k ) e ik xx ( ) d
Cross-spectral density
z
1
xy ( )
2 k
rxy ( k ) e ik rxy ( k )
e ik xy ( ) d
Stochastic disturbance models
From the definition it is immediate that variance is in fact
autocovariance when t is 0.
rxx (0) cov{x(t ), x(t )} E {(x( t ) m ( t ))( x( t ) m ( t )) T } var{x( t )}
z
2
2 xx ( )d
1
0
The ARMAX model
The filter gives a good picture of the coloured noise it
generates. Let e(k) be zero-mean white noise. The
following model classes are considered
MA-process (moving average)
c h
y ( k ) e( k ) b1e( k 1) bn e( k n) 1 b1q 1 bn q n e( k )
AR-process (autoregressive)
y(k) a1y(k 1) an y(k n) e(k)
c h
y(k) a1y(k 1) an y(k n) 1 a1q1 anqn y(k) e(k)
The ARMAX model
ARMA-process (autoregressive moving average)
y( k ) a1 y( k 1) an y( k n) e( k ) b1e( k 1) bn e( k n)
c1 a q
1
1
h c h
an q n y( k ) 1 b1q 1 bn q n e( k )
ARMAX-process (autoregressive moving average with
exogenous variable)
y ( k ) a1 y ( k 1) an y ( k n) b0u( k d ) b1e( k d 1)
bm e( k d m) e( k ) b1e( k 1) bn e( k n)
c1 a q
1
1
h c h
an q n y ( k ) b0 b1q 1 bm q m u( k d )
c h
1 c1q 1 cn q n e( k )
The ARMAX model
Several modifications of the ARMAX-structure exist. ARX-
processes are ordinary difference equations without noise,
which have been discussed in previous chapters. ARIMAX
is an ARMAX-process with integration (autoregressive
integrating moving average with exogenous variable) and
NARMAX is a non-linear ARMAX (nonlinear autoregressive
moving average with exogenous variable).
Stochastic difference equations
Consider the representation x( k 1) x( k ) v ( k )
v(k) is an independent zero-mean random variable with the
covariance R1 (does not correlate with x nor with itself at
any time instant). v(k) is therefore white noise. Suppose
that the initial state has the mean m0 and covariance R0.
Consider the behaviour of m(k) as a function of time.
m ( k ) E {x( k )}
Take expectations from both sides
E{x(k 1)} E{x(k ) v(k )} E{x(k )} E{v(k )} E{x(k )} 0
m(k 1) m(k ), m(0) m0
Stochastic difference equations
The mean value behaves exactly according to system
dynamics.
As for the covariance function, use a new variable
~
x ( k ) x( k ) m ( k )
For the state covariance P(k)
P ( k ) cov{x( k ), x( k )} E {~
x(k )~
x T ( k )}
Calculate the square of x(k+1) for the covariance matrix
~ ~ b
~ gb
~
x ( k 1) x ( k 1) x ( k ) v ( k ) x ( k ) v ( k )
T T
g
b
~x (k ) v(k ) ~ gc
x T ( k ) T v T ( k ) h
~
x(k )~x T ( k ) T ~ x (k )v T (k ) v(k )~
x T ( k ) T v ( k ) v T ( k )
Stochastic difference equations
Take the expectations from both sides
E {~
x ( k 1) ~
x T ( k 1)} E { ~
x(k )~
x T ( k ) T } E { ~
x ( k ) v T ( k )}
E {v ( k ) ~
x T ( k ) T } E {v ( k ) v T ( k )}
P ( k 1) P ( k ) T 0 0 R 1 P ( k ) T R 1
A dynamic equation for the covariance is obtained
P ( k 1) P ( k ) T R 1 , P (0) R 0
Consider the state autocovariance for different values of t .
For example, if t has the value 1:
rxx ( k 1, k ) E {~
x ( k 1) ~ mb
x T ( k )} E ~
x (k ) v(k ) ~ g
x T (k ) r
m
E ~
x(k )~
x T (k ) v(k )~ r
x T ( k ) P( k ) 0 P( k )
Stochastic difference equations
By repeating for any value of t
rxx ( k , k ) P ( k ) , 0
If the output equation is y(k) = Cx(k), it follows
R|m (k ) Cm( k )
y
S|r ( k , k ) Cr
yy xx ( k , k ) C T
Tr ( k , k ) Cr
yx xx (k , k )
Summarizing the results
Stochastic difference equations
For the process RSx( k 1) x( k ) v( k )
Ty(k ) Cx( k )
Mean value: RSm( k 1) m( k ), m(0) m 0
Tm ( k ) Cm( k )
y
R|r (k , k ) P(k ) , 0
xx
Covariance: |Sr (k , k ) Cr (k , k )C
yy xx
T
yx||r (k , k ) Cr (k , k )
xx
P ( k 1) a 2 P ( k ) r1 , P ( k 0 ) r0
1 a 2 ( k k0 )
2 ( k k0 )
For the covariance : P( k ) a r0 r1
1 a 2
R|S
a l k P( k ) l k
rx (l , k ) k l
|T
a P(l ) l k
Stochastic difference equations, example
Assume that the process is stable (|a| < 1) and it has been
running a long period of time (k0 -). Then it follows
1 r1a
m( k ) 0 , P ( k ) r , rx (l , k ) rx ( )
1 a 2 1
1 a2
Assume that additional independent zero-mean white noise
e(k) with covariance r2 is added to the output. The output
covariance then becomes
R| r1
r2 0
y ( k ) x ( k ) e( k )
S|
ry ( ) 1 a
2
r1a
|T 1 a 2
0
Stochastic difference equations, example
The Fourier-transformation (do it!) gives the autospectral
density of the signal
y ( )
FG
1 r1 1 r1 IJ FG IJ
H i i
2 (e a )( e a )
r2
K
2 1 a 2a cos
2
r2
H K
Now the covariance and spectral density can be plotted ( a
= 0.5) 2 0.8
1.8
Upper curve
0.7
1.6
0.6
with
1.4
0.5
1.2
measurement
1 0.4
0.8 0.3
noise and
0.6
0.2
0.4
0.1
lower without
0.2
0 0
-2 -1 0 1
-20 -15 -10 -5 0 5 10 15 20 10 10 10 10
Stochastic I/O-models
I/O-disturbance model gives coloured noise, when white
noise is filtered through a dynamic system. The signal u(k)
has the mean m(k) and covariance ru.
u(k) y(k)
H(z)
n0 l 0
h(n)E{u(k n)u (k l )}h (l ) h(n)ru ( l n)hT (l )
T T
n0 l 0 n0 l 0
n0 n0
Stochastic I/O-models
By using spectral densities simpler forms are obtained
1
y ( ) yy ( )
2
ry (n)
e in
n
1
2
n
e in
h ( k
k 0 l 0
) ru ( n l k )h T
(l )
1
2
k 0 n l 0
e ik
h ( k ) e i ( n l k )
ru ( n l k ) e il T
h (l )
1
e ik
h( k ) e in
ru (n) eil h T ( l )
k 0 2 n l 0
Stochastic I/O-models
For the pulse transfer function and weighting function
H ( z ) z k h( k )
k 0
Mean: my H (1)mu
r1 r1
1 i 1 i
2 (1 a 2a ( 2 e 2 e ) 2 (1 a 2 2a cos )
2
Stochastic I/O-models, example
Because x(k) and e(k) are independent, their spectral
densities can be summed
y ( k ) x ( k ) e( k )
r1 r2
y ( ) x ( ) e ( )
2 (1 a 2 2a cos ) 2
1 r1
r2
2 (1 a 2
2 a cos )
The same result is obtained as previously with the state-
space approach.
Spectral factorization
Now consider a given output spectral density and develop a
filter, by which it is generated using white noise as input.
Move back to z-domain by the transformation z ei
By the formula for the spectral density the function in z-
domain is 1
F ( z) H ( z ) H ( z 1 )
2
If zi is a zero of H(z), then zi-1 is the zero of H(z-1). The
same holds for the poles, so that the zeros and poles of F
are mapped symmetrically from outside to inside of the unit
circle.
Spectral factorization
Based on this it is straightforward to find H, which
corresponds to the given spectral density. First the poles
and zeros of F are determined. They always exist as pairs,
which multiply to the value 1.
zi z j 1 pi p j 1
H ( z) K
(z z )
i
(z p )j
Example
Earlier, the process discussed was
r1 r2
y ( ) x ( ) e ( )
2 (1 a 2 2a cos ) 2
1 r1
2
r
2 (1 a 2 2a cos )
z 0 : 2 (1 b 2 ) r1 r2 (1 a 2 )
z1 : 2b r2 a we get (after calculations)
b
r1 r2 (1 a 2 ) r r (1 a) r r (1 a)
1 2
2
1 2
2
2ar2
z b
H ( z)
za
Example
That corresponds the process
y (k 1) ay (k ) e(k 1) be(k )