Random Process
Random Process
CONTENTS:
•STATIONARITY
•RENEWAL PROCESS
•MARKOV CHAIN
•TRANSITION PROBILITIES
CLASSIFICATION OF RANDOM PROCESS
RANDOM PROCESS:
A random process is a collection of random variables {X(s,t)}
that are functions of a real variable, namely time ‘t’ where sєS
and t єT.
• Concepts of deterministic and random processe
stationarity, ergodicity
• Basic properties of a single random process
mean, standard deviation, auto-correlation, spectral density
• joint properties of two or more random processes
correlation, covariance, cross spectral density, simple input-
output relations
Random processes - Basic concepts
• Deterministic random processes :
• both continuous functions of time (usually), mathematical concepts
• deterministic processes :
physical process is represented by explicit mathematical relation
• Example :
response of a single mass-spring-damper in free vibration in
laboratory
• Random processes :
result of a large number of separate causes. Described in probabilistic
terms and by properties which are averages
Random processes - basic concepts
• random processes :
fX(x)
x(t)
time, t
• Ergodic process :
stationary process in which averages from a single record are the same
as those obtained from averaging over the ensemble
x(t)
x
time, t T
1 T
T 0
x Lim x(t)dt
T
• The mean value,x , is the height of the rectangular area having the
same area as that under the function x(t)
• Can also be defined as the first moment of the p.d.f. (ref. Lecture 3)
Random processes - basic concepts
• Mean square value, variance, standard deviation :
x
x(t)
x
time, t T
1 T 2
T 0
mean square value, x Lim
2
x (t)dt
T
variance,
σ 2x x(t) x
2 1 T
T T 0
Lim x(t) - x 2
dt
(average of the square of the deviation of x(t) from the mean value,x)
• Autocorrelation :
x(t)
time, t T
• The autocorrelation, or autocovariance, describes the general
dependency of x(t) with its value at a short time later, x(t+)
x ( ) Lim
1 T
T T 0
x(t) - x . x(t τ) - x dt
R()
0
Time lag,
1
T1 R( )d
0
R()
0
Time lag,
• The area under the normalized autocorrelation function for the
fluctuating wind velocity measured at a point is a measure of the average
time scale of the eddies being carried passed the measurement point,
say T1
• If we assume that the eddies are being swept passed at the mean
velocity, U.T1 is a measure of the average length scale of the eddies
• Spectral density :
Sx(n)
frequency, n
• Spectral density :
Where XT(n) is the Fourier Transform of the process x(t) taken over the
time interval -T/2<t<+T/2
• Spectral density :
Basic relationship (3) :
-
Sx (n) 2 x ( )e i 2n dτ
Inverse relationship :
i 2n
0
ρ x ( ) Re al Sx (n)e 0
dn Sx (n)cos(2n )dn
x
time, t T
y(t)
y
time, t T
• Covariance :
• The covariance is the cross correlation function with the time delay, ,
set to zero
1 T
c xy (0) x(t). y(t) Lim x(t) - x . y(t) - y dt
T T 0
Note that here x'(t) and y'(t) are used to denote the
fluctuating parts of x(t) and y(t) (mean parts subtracted)
• Correlation coefficient :
• Correlation - application :
• The fluctuating wind loading of a tower depends on the correlation
coefficient between wind velocities and hence wind loads, at various heights
z2
z1
The cross spectral density is twice the Fourier Transform of the cross-
correlation function for the processes x(t) and y(t)
If x(t) and y(t) are local fluctuating forces acting at different parts
of the structure, xy(n1) describes how well the forces are
correlated (‘synchronized’) at the structural natural frequency, n1
Random processes - basic concepts
• Input - output relationships :
Input x(t) Output y(t)
Linear system
There are many cases in which it is of interest to know how an input random
process x(t) is modified by a system to give a random output process y(t)
frequency, n
Note that:
(1)
n W ( x1 , ..., xn ; t1 , ..., t n )
p( x1 , ..., xn ; t1 , ..., t n )
x1 xn
(2) f(t1), f(t2), …, f(tn) are random variables obtained by sampling the
random process f(t) at time t1, t2,…, tn. The x1, x2,…, xn inside p(x1,
x2, …, xn; t1, t2, …, tn) and W(x1, x2, …, xn; t1, t2, …, tn) are not random
variables but are values of the random variable f(t1), f(t2),…, f(tn)
respectively.
Random Processes (24)
x2 t
n = 5
n(x1, x2; t1, t2) =
1
W(x1, x2; t1, t2) =
1/5
The 2nd-Order Distribution W(x1, x2; t1, t2) (26)
x2 t
n( x1 , x2 ; t1 , t 2 ) f(t+)
is lim x1
n n
x2 t
n( x1 , x2 ; t1 , t 2 )
which is the same as lim .
n n n = 5
n(x1, x2; t1+, t2+) =
1
W(x1, x2; t1+, t2+) =
1/5
Random Processes (27)
Solution: For f(t) to be stationary in the wide-sense, its expected value must
be impendent of t; that is, E[f(t)] = constant.
E[f(t)] = E[sin(t+ )]
= E[sin(t) cos() + cos(t) sin()]
= sin(t) E[cos()] + cos(t) E[sin()]
Given: a random process x(t) = a cos(t) + b sin(t), where a & b are random
variables and 0.
Prove:
(1) If x(t) is stationary, then E[a] = E[b] =0
a 2 b2
Random Processes - Example (31)
Note:
x(t) = a cos(t) + b sin(t) = cos(t – ),
where = tan-1(b/a)
a 2 b2 x(t)
3600 t
a b x(t)
a 2 b2
900
1 0 1 0 cos(t)
t
0 1 1 900 sin(t)
900
E[a] = E[b] = 0 ……..(2)
t
x(t1)
α
t
x(t2)
Random Processes - Example Q2 (33)
Given: x(t) = a cos(t) + b sin(t), where a & b are r.v.s and 0.
Prove: x(t) is wide-sense stationary iff
(i) E[ a ] = E[ b ] =0
(ii) a & b are uncorrelated
(iii) a & b have equal variance, i.e. E[ a2 ] = E[ b2 ] = 2
Proof: x(t) is WSS
E[x(t)] = and
E[x(t1) x(t2)] = E[x(t+)x(t)] = R()
e.g. x(t) is stationary of order 2 and its p(x1, x2, …, xn; t1, t2, …, tn) is
Gaussian
3. The application of the results of stage 1 & stage 2 to the real world.
• dependent on t0 t
x(t, S=4)
• natural way to estimate (t0)
t
• t0 •
1 T • •
Time-average = lim x(t , S ) dt
T 2T T
• •
Def: A random process x(t) is said to be ergodic if all its statistics can be
determined from a single sample of the process.
If a process is ergodic,
then its time average & ensemble average are equal.
Definition
Examples:
- Number of customers arriving to a counter
- Number of calls received at a telephone exchange
- Number of packets entering a queue
40
The Poisson Process
1st Event 2nd Event 3rd Event 4th Event
Occurs Occurs Occurs Occurs
X1 X2 X3 X4
4
time
1 2 3
t=0 S1 Xi S2 Xi S3 Xi S 4 Xi
i 1 i 1 i 1 i 1
time
42
t=0 S1 = 5 min S2 = 9 min S3 = 16 min S4 = 18 min
The Poisson Process: Example
time
43
t=0 S1 = 1 min S2 = 3 min S3 = 7 min S4 = 9 min S5 = 15 min
The Poisson Process: Example
time
44
t=0 S1 = 10 min S2 = 16 min
The Poisson Process: Example
k j 1
q( j, k )
k j
(t ) j t
Pt (0, j ) e , j 0,1,2,..., t 0
j!
Markov Process
known
0 s s+t
Markov Process
Pij (t ) P{ X s t j | X s i}
e t (t ) j i
Pij (t ) r j i (t ) , 0i j
( j i)!
• for some > 0. X is a Poisson process.
Problems:
1. A raining process is considered as a two state Markov
chain. If it rains, it is considered to be in state 0 and of it
does not rain, the chain is in state 1. The transition
probability of the Markov chain is defined as P =
Find the probability that it will rain for three days from
today assuming that it is raining today. Find also the
unconditional probability that it will rain after three days.
Assume the initial probabilities of state 0 and state 1 as
0.4 and 0.6 respectively.
Ans: P(x3 = 0 ) = 0.4P 003 + 0.6P 103 = 0.3376
2. Evaluate P(2),P(3), ….,P(10) for the homogeneous Markov
chain given by the transition probability matrix
P(1) =
P ij ( s t ) Pik ( s) Pkj (t ).
kE
Realization of a Markov Process
Xt()
7
S4
6
S2
5
4
S3
3
S1 S5
2
S0
1
0
t
T0 T1 T2 T3 T4 T5
Time Spent in a State
• Theorem 4. Let t 0, and n satisfy Tn ≤ t < Tn+1, and let Wt =
Tn+1 – t. Let i E, u 0, and define
G(u) P{Wt u | X t i} .
• Then
G (u v) G (u )G (v).
• Note: This implies that the distribution of time remaining
in a state is exponentially distributed, regardless of the
time already spent in that state.
Wt
Tn t t+u Tn+1
Time Spent in a State
G (u v) P{Wt u v | X t i}
P{Wt u , W t u v | X t i}
P{Wt u | X t i}P{W t u v | Wt u , X t i}
P{Wt u | X t i}P{Wt u v | X t u i}
G (u ) G (v).
An Alternative Characterization of a
Markov Process
• Theorem 5. Let X ={Xt, t 0} be a Markov process. Let T0, T1, …,
be the successive state transition times and let S0, S1, …, be
the successive states visited by X. There exists some number
i such that for any non-negative integer n, for any j E, and t
> 0,
P{S n1 j, Tn1 Tn t | S 0 ,, S n1 , S n i ; T0 ,, Tn }
Q(i, j ) e it
• where Q ij 0, Qii 0, 1.
Q ij
jE
An Alternative Characterization of
a Markov Process
• Theorem 6.
Pij (t ) i Qik Pkj (t ) iP ij (t )
k i
• Hence
Pij (t h) Pij (t ) o( h)
k Qkj Pik (t ) jP ij (t ) .
h k j h
• This can also be done for the whole process at once by matrix
multiplication, the notation Pn is used to denote an n-step
transition probability matrix
Markov Chains with Absorbing
States
• A Markov chain with an absorbing state can be
recognized by the appearance of a 1 along the
main diagonal of its transition probability
matrix
• A Markov chain with an absorbing state will
eventually enter that state and never leave it
• Markov chains with absorbing states bring up
new questions, which will be addressed later,
but for now we will only consider Markov
chains without absorbing states
Markov Chains with No Absorbing
States
• In addition to having no absorbing states, the Markov models
that we will consider are also finite, aperiodic, and irreducible
– Finite means that there are a finite number of possible states
– Aperiodic means that there is no state such that a return to that state is
possible only t0, 2t0, 3t0, … transitions later, where t0 > 1
– Irreducible means that any state can eventually be reached from any
other state, but not necessarily in one step
Stationary Distributions
• We are given a Markov chain with the following transition probability matrix
• This means that over a long time period a random variable with the given transition
matrix should spend about 24.14% of the time in state E1, 38.51% of the time in
state E2, etc.
Stationary Distribution Example (cont)
50
S. Out on the
0.3
0.2
Street: 10 D. Dead: 0
0
0.8 1.0
Ruin Chain
2/3 1
0 1 2 3 4 5
+1 1
1
1/3
Gambling Time Chain
+1 2/3 1
0 1 2 3 4 5
1
1/3
Refs. :
1.J.S. Bendat and A.G. Piersol “Random data: analysis and
measurement procedures” J. Wiley, 3rd ed, 2000.
2.D.E. Newland “Introduction to Random Vibrations, Spectral and
Wavelet Analysis” Addison-Wesley 3rd ed. 1996
3.
[Link]/~boucherierj/.../[Link]
4. [Link]/Notes/Akinpelu/Markov%[Link]
5. [Link]/~lindek/650/Slides/[Link]