SP5 Stoch Processes
SP5 Stoch Processes
1
From scalar, to stochastic processes
X(s) = X
S
X
Y
X
X(t, s) = X(t)
X
X(t, s) = X(t)
}
The ensemble
{z
|
From R. D. Yates & D. j. Goodman, ”Probability and stochastic
processes”, 3rd ed.
X(t) Y (t)
linear system (LTI)
h(n), h(t)
6
Why stochastic processes? Remember
Lecture 1
X(t) Y (t)
linear system (LTI)
h(n), h(t)
7
Notation
amplitude of x(t, s).
continuous discrete
8
Speech signals, weather, stock market
9
Example speech
• Experiment ’s’:
x(t, s1 )
x(t, s2 )
x(t, s3 )
t
x(t, s2 )
x(t, s3 )
12
Random Telegraph Signal
x(t, s1 )
t
x(t, s2 )
x(t, s3 )
t
13
Binary bit pattern
14
Handwritten digits
15
Description of a random process
x(t, s1 )
x(t, s2 )
x(t, s3 )
X(t1 ) X(t2 )
[X(t1 ), ..., X(tk ), ...]T ! fXt1 ,Xt2 ,...,Xtk ,... (xt1 , xt2 , ..., xtk , ...)
17
Description of a random process - example
• fX(t) (x)?
• First calculate CDF FX(t) (x)
dFX(t) (x)
• Then calculate the pdf fX(t) (x) = dx
18
Description of a random process - example
• FX(t) (x) = P [X(t) x] = P [R |cos(2⇡f t)| x] =
P [R x/| cos(2⇡f t)|]
R x/| cos(2⇡f t)| x
= 0 fR (r)dr = 1 e 10| cos(2⇡f t)|
• When cos(2⇡f t) 6= 0
⇢
0 x0
FX(t) (x) = x
1 e 10| cos(2⇡f t)| x 0.
• When cos(2⇡f t) 6= 0
(
dFX(t) (x) 0 x0
fX(t) (x) = = 1
x
dx 10| cos(2⇡f t)| e x 0.
10| cos(2⇡f t)|
19
• When cos(2⇡f t) = 0, X(t) = 0 and fX(t) (x) = (x).
Notice that…
[X(t1 ), ..., X(tk ), ...]T ! fXt1 ,Xt2 ,...,Xtk ,... (xt1 , xt2 , ..., xtk , ...)
resembles a vector random variable
22
Bernoulli Process (time discrete)
One realisation of a Bernoulli process (e.g., a packet is present or
not)
can be rewritten as
⇢
pxk (1 p)1 xk
xk = 0, 1
PXk (xk ) =
0 otherwise
i=1
25
Gaussian Process
Gaussian processes occur quite often in nature (remember the central
limit theorem!)
The pdf?
x(t, s1 )
x(t, s2 )
x(t, s3 ) 26
Gaussian Process
27
Characterization of Stochastic Processes
Remember from lecture 1:
• pdf/pmf specifies the complete probability model
• In practice the pdf/pmf is often unknown. We therefore often
use parameters that characterize the behaviour of the RVs:
x(t, s1 )
x(t, s2 )
x(t, s3 )
X(t1 ) X(t2 )
X(t) = A sin(!t + )
•
Z 2⇡ Z 2⇡
1
E[sin(!t+ )] = sin(!t+ )f ( )d = sin(!t+ )d = 0
0 2⇡ 0
Z 1 Z 1
1
E[A] = afA (a)da = ada = 0
1 2 1
31
Another Example 1
⇢ ⇢
0 t<0 1 0x1
X(t) = fAt (x) =
At t t 0 0 otherwise
32
Another Example 1
⇢ ⇢
0 t<0 1 0x1
X(t) = fAt (x) =
At t t 0 0 otherwise
33
Another Example 2
Assume that the amplitude is still a random variable, but it does
NOT depend on time t:
⇢ ⇢
0 t<0 1 0x1
X(t) = fA (x) =
At t 0 0 otherwise
34
Autocovariance
⌧
x(t, s1 )
x(t, s2 )
x(t, s3 )
x(t, s1 )
x(t, s2 )
x(t, s3 )
RX (t, ⌧ ) = E [X(t)X(t + ⌧ )]
38
The Autocorrelation Function
Notice that exact formulation of the autocorrelation depends on
whether time and amplitudes are discrete or continuous:
Z Z
RX (t, ⌧ ) = E[X(t)X(t + ⌧ )] = xyfX(t)X(t+⌧ ) (x, y)dxdy
Z Z
RX (n, k) = E[X(n)X(n+k)] = E[Xn Xn+k ] = xyfXn Xn+k (x, y)dxdy
XX
RX (n, k) = E[Xn Xn+k ] = P [Xn = x, Xn+k = y]
x y
XX
RX (n, k) = E[X(t)X(t+⌧ )] = P [X(t) = x, X(t+⌧ ) = y]
x y
39
Remember: Example sinusoidal process
X(t) = A sin(!t + )
43
Remember: Another Example 1
⇢ ⇢
0 t<0 1 0x1
X(t) = fAt (x) =
At t t 0 0 otherwise
RX (t, ⌧ ) = E[X(t)X(t + ⌧ )]
= E[At tAt+⌧ (t + ⌧ )]
= t(t + ⌧ )E[At At+⌧ ]
t(t + ⌧ )
= t(t + ⌧ )E[At ]E[At+⌧ ] =
4
2
RX (t, ⌧ = 0) = t2 E[A2t ] = t3
44
Pictures of the Autocorrelation function
t(t + ⌧ )
RX (t, ⌧ ) =
4
• RX (t, ⌧ ) is thus a
function of two variables.
• This RX (t, ⌧ ) looks
a bit strange...It will
turn out that this X(t)
is in fact non-stationary.
45
Uncorrelated processes
Stationary processes
Wide-sense stationary processes
46
Uncorrelated and orthogonal processes
If all pairs X(t), X(t + ⌧ ) are uncorrelated, i.e.,
⇢
var(t) 8 t and ⌧ = 0
CX (t, ⌧ ) =
0 8 t and ⌧ 6= 0
47
Stationary Process
A stochastic process is stationary if and only if every joint-pdf is shift
invariant:
fX(t1 ),X(t2 ),...,X(tk ) (x1 , x2 , ..., xk ) = fX(t1 + t),X(t2 + t),...,X(tk + t) (x1 , x2 , ..., xk )
• Consequence I
48
Stationary Process
• Consequence II
– The 2D joint-pdf is shift invariant
= fX(0),X(t2 t1 ) (x1 , x2 )
49
Stationary Process
Example of stationary processes
• iid process
• Bernoulli process
• Poisson process
– Expected value
– Autocorrelation function
• If only the Expected value and the autocorrelation function
satisfy the property of stationarity, we call this process wide
sense stationary (WSS).
– Hence, we dont know anything about other properties of
51
the process!
Wide-Sense Stationary (WSS) Processes
• A process is wide-sense stationary, if and only if
– The expected value E[X(t)] does not depend on time:
E[X(t)] = c.
– The autocorrelation function does only depend on the
time di↵erence ⌧ and not the actual time:
RX (t, ⌧ ) = RX (⌧ )
or
RX (n, k) = RX (k)
RX (0) 0
RX (⌧ ) = RX ( ⌧ )
RX (0) |RX (⌧ )|
Example
1
RX (t, ⌧ ) = 6 cos(!⌧ )
53
Notice
54
Cross correlation for Stochastic Processes
In addition to the autocorrelation function, we can also define the
cross-correlation between two stochastic processes:
RXY (⌧ ) = RY X ( ⌧ ).
55
Yn = 1n Xn
57