Professional Documents
Culture Documents
P5 Stochastic Processes 2024.05.29
P5 Stochastic Processes 2024.05.29
P5 Stochastic Processes 2024.05.29
V. Stochastic processes
• Definitions
• Stationary processes
• Spectral density function
APPLIED STATISTICS AND • Ergodicity of stochastic processes
EXPERIMENTAL DESIGN • Stochastic Data Processing Systems
STOCHASTIC PROCESSES
1 2
Definitions Definitions
X (t, )
• Stochastic processes • The set of {k} and the time index t can be continuous
• Let denote the random or discrete (countably infinite or finite) as well.
X (t, n )
outcome of an experiment.
• For fixed i S (the set of all experimental outcomes),
To every such outcome X (t, k )
X(t, i) is a specific time function.
suppose a waveform X(t, )
• For fixed t, X1=X(t1, i) is a random variable. The
is assigned. X (t, 2 )
ensemble of all such realizations X(t, ) over time
• The collection of such X (t, 1 ) represents the stochastic process X(t).
waveforms form a t
0
stochastic process. t1 t2
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
3 4
Definitions Definitions
5 6
1
6/7/2024
Definitions Definitions
• For t = t1 and t = t2, • Similarly fx(x1, ..., xn, t1, ..., tn) represents the nth order
• X(t) represents two different random variables X1 = X(t1) and density function of the process X(t).
X2 = X(t2) respectively. • Complete specification of the stochastic process X(t)
• Their joint distribution is given by requires the knowledge of fx(x1, ..., xn, t1, ..., tn) for all ti, i =
1, ..., n and for all n. (an almost impossible task in reality).
FX ( x1 , x2 , t1 , t2 ) = P{ X (t1 ) x1 , X (t2 ) x2 }
• Their joint density function is:
2 FX ( x1 , x2 , t1 , t2 )
f X ( x1 , x2 , t1 , t2 ) =
x1 x2
• And represents the second-order density function of the
process X(t).
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
7 8
Definitions Definitions
• (t) represents the mean value of a process X(t). In general, the mean (Average instantaneous power)
of a process can depend on the time index t.
• 3. Rxx(t1, t2) represents a nonnegative definite function, i.e., for
• Autocorrelation function of a process X(t) is defined as any set of constants {ai}ni=1
RXX (t1 , t2 ) = E{ X (t1 ) X (t2 )} = x1 x2 f X ( x1 , x2 , t1 , t2 )dx1dx2
* * n n
ai a*j R XX
(ti , t j ) 0.
i =1 j =1
• It represents the interrelationship between the random variables X1 = • This equation follows by noticing that: E{|Y|2}0 and
X(t1) and X2 = X(t2) generated from the process X(t). n
Y = ai X (ti ).
i =1
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
9 10
11 12
2
6/7/2024
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
13 14
• Second order strict sense stochastic process • The autocorrelation function is given by
• From definition, we have:
RXX (t1 , t2 ) = E{ X (t1 ) X * (t2 )}
f X ( x1 , x2 , t1 , t 2 ) f X ( x1 , x2 , t1 + c, t 2 + c) = x1 x2* f X ( x1 , x2 , = t1 − t2 )dx1dx2
• for any c. If c is choosen so as c = -t2, we get
= RXX (t1 − t2 ) = RXX ( ) = RXX ( − ), (2)
*
f X ( x1 , x2 , t1 , t 2 ) f X ( x1 , x2 , t1 − t 2 )
• The autocorrelation function of a second order strict-
• The second order density function of a strict sense sense stationary process depends only on the difference
stationary process depends only on the difference of of the time indices t2-t1=
the time indices t1-t2=.
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
15 16
• Examples:
• Wide sense stationarity • Consider a time series {Yt} where
• A process X(t) is said to be Wide-Sense Stationary if: Yt=et
E{ X (t )} = and E{ X (t1 ) X * (t2 )} = R XX (t1 − t2 ),
and eti.i.d.(0,2). Is the process stationary?
• Since these equations follow from (1) and (2), strict-sense
stationarity always implies wide-sense stationarity.
• In general, the converse is not true
• Exception: the Gaussian process (normal process).
• This follows, since if X(t) is a Gaussian process, then by definition
X1=X(t1), ..., Xn=X(tn) are jointly Gaussian random variables for any
t1,..., tn whose joint characteristic function is given by
n n
j ( tk )k − C XX
( ti , tk )i k / 2
(1 , 2 , , n ) = e
X
k =1 l ,k
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
18
17 18
3
6/7/2024
• Examples: • Examples:
• MOVING AVERAGE: Suppose that {Yt} is • RANDOM WALK
constructed as e +e Yt = e1 + e2 + + et
Yt = t t −1
2 where eti.i.d.(0,2). Is the process {Yt}
and eti.i.d.(0,2). Is the process {Yt} stationary? stationary?
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
19 20
19 20
Examples: • Examples:
• Suppose that time series has the form
Yt = a + bt + et where eti.i.d.(0,2). Is thet process {Yt}
stationary?
Yt = (− 1) et
where a and b are constants and {et} is a weakly
stationary process with mean 0 and
autocovariance function k.
• Is {Yt} stationary?
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
21 22
21 22
23 24
4
6/7/2024
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
25 26
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
27 28
• The area under Sxx() represents the total power of the process • If X(t) is a real w.s.s process, then
X(t), and hence Sxx() truly represents the power spectrum.
RXX ( ) = RXX ( − )
• So that +
S XX ( ) S XX ( ) represents the power S XX ( ) = − RXX ( )e − j d
in the band ( , + )
+
= − RXX ( ) cos d
+ = 2 0 RXX ( ) cos d = S XX ( − ) 0
• The nonnegative-definiteness
0
property of the auto-correlation
function translates into the “nonnegative” property for its • The power spectrum is an even function, (in addition to
Fourier transform (power spectrum). being real and nonnegative).
29 30
5
6/7/2024
• Fourier Expansion
• A process x(t) is MS periodic with period T if • Karhunen-Loeve Expansion
E{lx{t + T) - x(t)|2} = 0 for all t. • In general case:
∞
• A WSS process is MS periodic if its autocorrelation
𝑥ො 𝑡 = 𝑐𝑛 𝜑𝑛 (𝑡) 0<𝑡<𝑇
R() is periodic with period T = 2/0.
• Expanding R() into Fourier series: 𝑛=1
• 𝑅 𝜏 = σ∞ 𝑛=−∞ 𝛾𝑛 𝑒
𝑗𝑛𝜔0 𝜏 𝛾𝑛 = 𝑇1 0𝑇 𝑅 𝜏 𝑒 −𝑗𝑛𝜔0𝑑𝜏
• For WSS periodic process x(t) with period T, form the sum:
𝑥ො 𝑡 = σ∞𝑛=−∞ 𝑐𝑛 𝑒
𝑗𝑛𝜔0 𝑡
𝑐𝑛 = 𝑇1 0𝑇 𝑥 𝑡 𝑒 −𝑗𝑛𝜔0𝑡𝑑𝑡
• This sum equal x(t) in the MS sense: E{lx{t) - 𝑥ො (t)|2} = 0 for all
t
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
31 32
33 34
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
35 36
6
6/7/2024
(t)=x(t+)x(t) iff
• The mean of the process (t) is given by
1
2T
E{(t)}=E{x(t+)x(t)} = R() lim
T → T 1 - 2T [ R
0
( ) − R 2 ( )]d = 0
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
37 38
39 40
iff
1
2T
T → T
[ F ( x, x; ) − F ( x)]d = 0
2
lim 1 -
0
2T
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
41 42
7
6/7/2024
Stochastic Data Processing System Models LTI systems with stochastic input
43 44
LTI systems with stochastic input 4.1 Systems with stochastic inputs
• Scope: Response of the deterministics systems under an
actions of stochastic processes • Memoryless systems
Deterministic systems • Response of memoryless systems
• Y(t) = g[X(t)]
• First order distribution and density: FY(y,; t) và fY(y; t) in relation
Systems with memory with FX(x; t), fX(x; t):
Memoryless systems
Y (t ) = g [ X (t )] FY ( y ) = P (Y ( ) y ) = P (g ( X ( )) y ) = P (X ( ) g −1 ( −, y ]).
Time varying systems Time Invariant Linear systems • Expectation:
systems
+
Y (t ) = − h (t − ) X ( )d Y (t ) = L[ X (t )]
X (t ) h (t ) Y (t )
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
45 46
4.1 Systems with stochastic inputs 4.1 Systems with stochastic inputs
Memoryless Systems:
The output Y(t) in this case depends only on the present value of the
input X(t). i.e.,
• Second order ststistics: Y (t ) = g{ X (t )}
• Second order density fY(y1, y2; t1, t2 of Y(t) can be Strict-sense Strict-sense
determined in term of fX(x1, x2; t1, t2) stationary input Memoryless
stationary output.
system
• Autocorrelation: E{Y(t1)Y(t2)}:
E{Y (t1 )Y (t 2 )} = g(x )g(x ) f
− −
1 2 X ( x1 , x2 ; t1 , t 2 )dx1dx2
Need not be
Wide-sense Memoryless
• n order statistics: n order density function of Y(t) stationary input system
stationary in
any sense.
fY(y1, y2, …yn; t1, t2, …, tn)
Y(t) stationary,but
(t1) = g(X(t1)), …, Y(tn) = g(X(tn)). X(t) stationary
Memoryless not Gaussian with
Gaussian with
system R XY ( ) = R XX ( ).
RXX ( )
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
48
47 48
8
6/7/2024
4.1 Systems with stochastic inputs 4.1 Systems with stochastic inputs
Linear Systems: L[] represents a linear system if
L{a1 X (t1 ) + a 2 X (t2 )} = a1 L{ X (t1 )} + a 2 L{ X (t2 )}.
• COnsider the memoryless system
Let Y (t ) = L{ X (t )}
1, x0
g ( x) = represent the output of a linear system.
− 1, x0 Time-Invariant System: L[] represents a time-invariant system if
Y (t ) = L{ X (t )} L{ X (t − t0 )} = Y (t − t0 )
i.e., shift in the input results in the same shift in the output also.
If L[] satisfies both equations, then it corresponds to
a linear time-invariant (LTI) system.
LTI systems can be uniquely represented in terms of their output
h (t ) to
Impulse
a delta function response of
(t ) LTI h (t ) the system
t
Impulse Impulse
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology response
50
49 50
51
51 52
4.1 Systems with stochastic inputs 4.1 Systems with stochastic inputs
• If X(t) - wide sense stationary (t ) =
• Autocorrelation of output +
X X
(t ) =
Y X − h( )d = X
c, a constant.
RYY (t1 , t 2 ) = E{Y (t1 )Y (t 2 )} *
53 54
9
6/7/2024
4.1 Systems with stochastic inputs 4.1 Systems with stochastic inputs
The output process is also wide-sense stationary.
X (t ) This gives rise to the following representation
Y (t )
wide-sense
LTI system wide-sense • Theorem:
stationary process
h(t) stationary process. • For linear systems:
E{L[X(t)]} = L[E{X(t)}]
(a)
X (t ) Y (t )
strict-sense LTI system strict-sense
stationary process h(t) stationary process
(b)
X (t ) Y (t )
Gaussian process
Gaussian
Linear system (also stationary)
process (also
stationary)
(c)
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
55
55 56
4.1 Systems with stochastic inputs 4.1 Systems with stochastic inputs
LTI Colored noise
White noise
• White noise W(t) h(t) N (t ) = h (t ) W (t )
• W(t) is said to be a white noise process if
RWW (t1 , t 2 ) = q (t1 ) (t1 − t 2 ), • For w.s.s. white noise input W(t), we have
+
• E[W(t1) W*(t2)] = 0 unless t1 = t2 E [ N (t )] = W − h( )d , a constant
• W(t) is said to be wide-sense stationary (w.s.s) white noise
if
Rnn ( ) = q ( ) h (− ) h( ) = qh* (− ) h( ) = q ( )
*
57 58
4.2 Discrete Time Stochastic Processes 4.2 Discrete Time Stochastic Processes
• Definition • Stationarity
• A discrete time stochastic process Xn = X(nT) is a • Strict sense stationarity and wide-sense stationarity
sequence of random variables. definitions apply here also.
• The mean, autocorrelation and auto-covariance • X(nT) is wide sense stationary if :
functions of a discrete-time process are: E{ X (nT )} = , a constant
E [ X {( k + n )T } X * {( k )T }] = R( n ) = rn = r−*n
n = E{ X (nT )} • R(n1, n2) = R(n1 – n2) = R*(n2 – n1)
r* r* r* r
n n −1 1 0
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
59 60
10
6/7/2024
k =0
61 62
4.3. Auto
Regressive Moving 4.3. Auto
Regressive Moving
Average (ARMA) Processes Average (ARMA) Processes
• Transfer function has p poles and q zeros
• The output undergoes regression over p of its previous • Autoregressive process AR(1)
values and at the same time a moving average based on • An AR(1) process has the form:
W(n), W(n-1) ..., W(n-q) of the input over (q + 1) values is X ( n ) = aX ( n − 1) + W ( n )
added to it (ARMA(p, q)) • The corresponding system transfer
:
1
• The input {W(n)} represents a sequence of uncorrelated H ( z) = −1
= a n z −n
random variables of zero mean = 0 and constant 1 − az n =0
variance 2w so that RWW (n) = W2 (n). • if |a| < 1 - stable system.
◼ If {W(n)} )} is normally distributed then the output {X(n also • System impulse response: h(n ) = a n , | a | 1
represents a strict-sense stationary normal process. • Output autocorrelation:
If q = 0, AR(p) – all-pole process. a |n|
RXX (n) = W2 (n) {a − n } {a n } = W2 a |n|+ k a k = W2
◼
◼ if p = 0, represent MA(q) process k =0 1− a2
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
63 64
4.3. Auto
Regressive Moving 4.3. Auto
Regressive Moving
Average (ARMA) Processes Average (ARMA) Processes
• Tự tương quan chuẩn hóa của đầu ra: • the effect of superimposing an error sequence on
R XX ( n )
(n) =
= a |n| , | n | 0. an AR(1) model AR(1)
R XX (0)
X
X (0) = Y (0) = 1
• Trường hợp quá trình X(t) kết hợp với nhiễu V(t):
• V(t) là chuỗi ngẫu nhiên không tương quan với giá trị trung X (k ) Y (k )
bình 0 và tự tương quan V2.
• Y(t) = X(t) + V(t)
n
a | n| 0 k
RYY (n) = RXX (n) + RVV (n) = RXX (n) + V2 (n) = W2 + V2 (n)
1− a2
RYY ( n ) 1 n=0 2
(n) = = c= 2 W
1.
Y
RYY (0) c a |n| n = 1, 2, + 2 (1 − a 2 )
W V
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
65 66
11
6/7/2024
4.3. Auto
Regressive Moving
4.3. Auto
Regressive Moving
Average (ARMA) Processes Average (ARMA) Processes
• Autoregressive AR(2) • Autocorrelation of output process
X (n) = a1 X (n − 1) + a2 X (n − 2) + W (n) • Autocorrelation:
• Transfer function RXX (n) = E{ X (n + m) X * (m)}
1 b1 b2
H ( z ) = h( n) z − n = = + = E{[ a1 X (n + m − 1) + a2 X (n + m − 2)] X * (m)}
n =0 1 − a1 z −1 − a2 z − 2 1 − 1 z −1 1 − 2 z −1
h(0) = 1, h(1) = a1 , h(n) = a1h(n − 1) + a2 h(n − 2), n 2 + E{W (n + m) X * (m)}
• with 1, 2 - poles of the system, the impulse response:
= a1 RXX (n − 1) + a2 RXX (n − 2)
• Và các hệ thức: h(n) = b11n + b2 n2 , n 0
• Correlation coefficient:
b1 + b2 = 1, b11 + b2 2 = a1. 1 + 2 = a1 , 12 = −a 2 , RXX ( n )
(n) =
X
= a1 X ( n − 1) + a2 X ( n − 2).
• H(z) stable follows | 1 | 1, | 2 | 1. RXX (0)
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
67 68
4.3. Auto
Regressive Moving 4.3. Auto
Regressive Moving
Average (ARMA) Processes Average (ARMA) Processes
• Autocorrelation • Moving average process
q
RXX (n) = RWW (n) h* (− n) h(n) = W2 h* (− n) h(n) X(n) = å bkW (n - k),
k=0
= W2 h* (n + k ) h(k )
k =0 • q zeros; without poles;
| b |2 (1* ) n b1*b2 (1* ) n b1b2* (*2 ) n | b2 |2 (*2 ) n • Non-regressive systems;
= W2 1 + + +
1− | 1 |
2
1 − 1*2 1 − 1*2 1− | 2 |2 • Impulse response and transfer function:
¥
R ( n) n n H ( z ) = å h ( k ) z - k =b0 + b1 z -1 + b2 z -2 + + bq z -q
X (n) = XX = c11* + c2 *2 k =0
RXX (0)
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
69 70
4.3. Auto
Regressive Moving
Average (ARMA) Processes
• ARIMA processes (Autoregressive Integrated moving
average)
• For modeling time series
• To convert non-stationary series into stationary series.
• Consider ARMA processes: W – white noise Thank you for
p q
X ( n𝑝) = − a k X ( n − k ) + your attentions!
𝑞 bkW ( n − k ),
k =1 k =0
(1 + 𝐷 𝑖 ) 𝑋 𝑛 = (𝑏0 + 𝐷 𝑘 )𝑊(𝑛)
𝑖=1 𝑘=1
• Di – delay operator, or lag operator
• An ARIMA(p’,d,q) process is a particular case of an ARMA(p,q)
process having the autoregressive polynomial with d unit roots
and p’ = p-d .
TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG
School of Information and Communication Technology School of Information and Communication Technology
71 72
12
6/7/2024
73
13