6 Random Processes v7
6 Random Processes v7
0. Introduction
1. The Random Process Concept
A continuous-time stochastic
process is one which 𝐼 is
continuous (thermal noise)
• like :
𝑌(𝑡, 𝑠) = cos(2𝜋𝑡 + 𝑠)
Autocovariance function of 𝑋 𝑡
𝐶𝑋𝑋 𝑡1 , 𝑡2 = 𝐸[ 𝑋 𝑡1 − 𝐸 𝑋 𝑡1 𝑋 𝑡2 − 𝐸 𝑋 𝑡2 ]
= 𝑅𝑋𝑋 𝑡1 , 𝑡2 − 𝐸 𝑋 𝑡1 𝐸[𝑋 𝑡2 ]
Cross-Correlation function of 𝑋(𝑡) & 𝑌 𝑡
∞ ∞
𝑅𝑋𝑌 𝑡1 , 𝑡2 = 𝐸 𝑋 𝑡1 𝑌 𝑡2 =න න 𝑥1 𝑦1 𝑓𝑋𝑌 𝑥1 , 𝑦1 ; 𝑡1 , 𝑡2 𝑑𝑥1 𝑑𝑦1
−∞ −∞
Cross-Covariance function of 𝑋(𝑡) & 𝑌 𝑡
𝐶𝑋𝑌 𝑡1 , 𝑡2 = 𝐸[ 𝑋 𝑡1 − 𝐸 𝑋 𝑡1 𝑌 𝑡2 − 𝐸 𝑌 𝑡2 ]
= 𝑅𝑋𝑌 𝑡1 , 𝑡2 − 𝐸 𝑋 𝑡1 𝐸[𝑌 𝑡2 ]
8
Independence & Correlation
• Statistical Independence, 𝑋(𝑡) & 𝑌(𝑡) are independent
• 𝑓𝑋𝑌 𝑥1 , … , 𝑥𝑁 , 𝑦1 , … , 𝑦𝑀 ; 𝑡1 , … , 𝑡𝑁 , 𝑡1ƴ , … , 𝑡ƴ𝑀 =
𝑓𝑋 𝑥1 , … , 𝑥𝑁 , ; 𝑡1 , … , 𝑡𝑁 𝑓𝑌 𝑦1 , … , 𝑦𝑀 ; 𝑡1ƴ , … , 𝑡ƴ𝑀
• 𝑋 𝑡 & 𝑌(𝑡) uncorrelated ↔ 𝐶𝑋𝑌 𝑡1 , 𝑡2 = 0
• 𝑋 𝑡 & 𝑌 𝑡 𝑜𝑟𝑡ℎ𝑜𝑔𝑜𝑛𝑎𝑙 ↔ 𝑅𝑋𝑌 𝑡1 , 𝑡2 = 0
• Independence →uncorrelated
10
6.3 Stationarity: Second Order Stationarity
Second order Stationary Process (Stationary to order two)
𝑓𝑋 𝑥1 , 𝑥2 ; 𝑡1 , 𝑡2 = 𝑓𝑋 𝑥1 , 𝑥2 ; 𝑡1 + ∆, 𝑡2 + ∆ , ∀ 𝑡1 , 𝑡2 , ∆
By letting ∆= −𝑡1
𝑓𝑋 𝑥1 , 𝑥2 ; 𝑡1 , 𝑡2 = 𝑓𝑋 𝑥1 , 𝑥2 ; 0, 𝑡2 − 𝑡1
2nd − order stationary ⇒ 𝑅𝑋𝑋 (𝑡1 , 𝑡1 + 𝜏) = 𝐸[𝑋(𝑡1 )𝑋(𝑡1 + 𝜏)] = 𝑅𝑋𝑋 (𝜏)
𝜏 = 𝑡2 − 𝑡1
11
Levels for being Stationary
If it is
𝐸 𝑋 𝑡 = 𝑋ത = 𝑐𝑜𝑛𝑠𝑡𝑎𝑛𝑡
• Widesense Stationary ֞ ቊ
• 2nd
𝐸 𝑋 𝑡 𝑋 𝑡 + 𝜏 = 𝑅𝑋𝑋 (𝜏)
-order stationary⇒ Widesense stationary Strict-Sense
2ndW.S.S
order
Stationary
• 𝑁th-order stationary
𝑓𝑋 𝑥1 , … , 𝑥𝑁 ; 𝑡1 , … , 𝑡𝑁 = 𝑓𝑋 𝑥1 , … , 𝑥𝑁 ; 𝑡1 + ∆, … . , 𝑡𝑁 + ∆ ,
• 𝑁th-order stationary ⇒ 𝑘th-order stationary (𝑘 < 𝑁)
• Strict-sense stationary=stationary to all orders
• Jointly Wide Sense Stationary : If 𝑋(𝑡) and 𝑌(𝑡) are individually w.s.s. and
𝑅𝑋𝑌 𝑡, 𝑡 + 𝜏 = 𝐸[𝑋 𝑡 𝑌 𝑡 + 𝜏 ]
12
Example: Wide Sense Stationary
Show that the given random process 𝑋 𝑡 = 𝐴𝑐𝑜𝑠(𝜔0 𝑡 + Θ) is wide sense stationary if it is assumed
that 𝐴 and 𝜔0 are constants and Θ is a uniformly distributed random variable on the interval 0,2𝜋 .
• 𝑋 𝑡 = 𝐴cos 𝜔0 𝑡 + Θ , 𝐴, 𝜔0 : constants
1
• 𝑓Θ (𝜃) = {𝑢(𝜃) − 𝑢(𝜃 − 2𝜋)}
2𝜋
2𝜋 1
• 𝐸[𝑋(𝑡)] = 0 𝐴cos(𝜔0 𝑡 + 𝜃) 𝑑𝜃 =0
2𝜋
• 𝑅𝑋𝑋 𝑡, 𝑡 + 𝜏 = 𝐸 𝑋 𝑡 𝑋 𝑡 + 𝜏 = 𝐴2 𝐸 cos 𝜔0 𝑡 + Θ cos 𝜔0 𝑡 + 𝜏 + Θ
𝐴2
• 𝑅𝑋𝑋 𝑡, 𝑡 + 𝜏 = 𝐸[cos(2𝜔0 𝑡 + 𝜔0 𝜏 + 2Θ) + cos(𝜔0 𝜏)]
2
𝐴2 𝐴2 𝐴2
• 𝑅𝑋𝑋 𝑡, 𝑡 + 𝜏 = 𝑐𝑜𝑠(𝜔0 𝜏) + 𝐸[cos(2𝜔0 𝑡 + 𝜔0 𝜏 + 2Θ)] = cos(𝜔0 𝜏)
2 2 2
⇒ 𝑋(𝑡) w. s. s. (widesensestationary)
4
𝑅𝑋𝑋 (𝜏) = 25 +
1 + 6𝜏 2
2
lim 𝑅𝑋𝑋 (𝜏) = 𝑋 ⇒ 𝐸[𝑋(𝑡)] = 𝑋 = ± 25 = ±5
|𝜏|→∞
𝑅𝑋𝑌 𝑡, 𝑡 + 𝜏 = 𝐸 𝑋 𝑡 𝑌 𝑡 + 𝜏
• If 𝑋 and 𝑌 are jointly w.s.s. , we may write 𝑅𝑋𝑌 𝜏 .
• Orthogonal processes 𝑅𝑋𝑌 𝑡, 𝑡 + 𝜏 =0
• If 𝑋 and 𝑌 are statistically independent
𝐸 𝑋 𝑡 𝑌 𝑡 + 𝜏 =𝐸 𝑋 𝑡 ]𝐸[𝑌 𝑡 + 𝜏
• If in addition to being independent they are at least w.s.s.
𝐸 𝑋 𝑡 𝑌 𝑡+𝜏 = 𝑋ത 𝑌ത
0.9995 0.5000
0.5000 0.5000
Dr. Ali Hussein Muqaibel 24
Gaussian Random Processes
A Wide Sense Stationary Gaussian Process is also stationary in the strict sense . Why?
A Gaussian Process can be completely defined by the vector of means and the vector of correlations. Why? (see
next example)
Dr. Ali Hussein Muqaibel 25
Example of a Gaussian Random Process
A Gaussian Random Process which is W.S.S. 𝑋ത = 4 and 𝑅𝑋𝑋 𝜏 = 25𝑒 −3|𝜏| + 16
𝑖−1
Specify the joint density function for three r.v. 𝑋 𝑡𝑖 , 𝑖 = 1,2,3 , 𝑡𝑖 = 𝑡0 + , 𝑡0 is constant
2
𝑖−1 𝑘−1
• 𝑡𝑖 = 𝑡0 + , 𝑡𝑘 = 𝑡0 +
2 2
𝑘−𝑖
• 𝑡𝑘 − 𝑡𝑖 = , 𝑖 𝑎𝑛𝑑 𝑘 = 1,2,3, …
2
3 𝑘−𝑖
−
• 𝑅𝑋𝑋 𝑡𝑘 − 𝑡𝑖 = 25𝑒 2 + 16
3 𝑘−𝑖 3 𝑘−𝑖
− 2 −
• 𝐶𝑋𝑋 𝑡𝑘 − 𝑡𝑖 = 25𝑒 2 + 16 − 4 = 25𝑒 2
3 6
− −
1 𝑒 2 𝑒 2
3 3
• 𝐶𝑋 = 25 𝑒 −2 1 𝑒 −2
6 3
− −
𝑒 2 𝑒 2 1
𝐶𝑋 𝑡𝑖 , 𝑡𝑗 = 𝜎 2 𝛿𝑖𝑗 = 𝜎 2 𝐼,
where 𝛿𝑖𝑗 = 1 when 𝑖 = 𝑗 and 0 otherwise, and 𝐼 is the identity matrix. Thus the
corresponding joint pdf is
𝑘
1
𝑓𝑋1,.....𝑋𝑘 (𝑥1 , 𝑥2 , . . . . . , 𝑥𝑘 ) = 𝑘ൗ exp − (𝑥𝑖 − 𝑚)2 /2σ2
2
(2πσ ) 2 𝑖=1
= 𝑓𝑋 (𝑥1 )𝑓𝑋 (𝑥2 ). . . 𝑓𝑋 (𝑥𝑘 )
Poisson Process
• Consider a situation in which events occur at 𝑁(𝑡)
random instants of time at an average rate
of a customer to a service station or the
breakdown of a component in some system.
• Let 𝑁(𝑡) be the number of event
occurrences in the time interval 0, 𝑡 .
𝑋1 𝑋2 𝑋3
• 𝑁(𝑡) is then a non-decreasing, integer- A sample path of the Poisson counting process. The
event occurrence times are denoted by 𝑆1 , 𝑆2 , … . .
valued, continuous-time random process as The jth inter-event time is denoted by 𝑋𝑗 = 𝑆𝑗 − 𝑆𝑗−1
shown in Figure. Poisson Process
Inquiries arrive at a recorded message device according to a Poisson process of rate 15 inquiries per
minute. Find the probability that in a 1-minute period, 3 inquiries arrive during the first 10 seconds
and 2 inquiries arrive during the last 15 seconds.
15 1
The arrival rate in seconds is 𝜆 = = inquiries per second.
60 4
Writing time in seconds, the probability of interest is
𝑃[𝑁 10 = 3 𝑎𝑛𝑑 𝑁 60 − 𝑁 45 = 2]
By applying first the independent increments property, and then the stationary
increments property, we obtain
𝑃[𝑁(10) = 3 and 𝑁(60) − 𝑁(45) = 2] = 𝑃 𝑁 10 = 3 𝑃[𝑁(60) − 𝑁(45) = 2]
= 𝑃 𝑁 10 = 3 𝑃[𝑁(60 − 45) = 2]
𝑥ҧ = 𝑋ത
• Ergodic ↔ ቊ
ℜ𝑥𝑥 (𝜏) = 𝑅𝑋𝑋 (𝜏)
1 𝑡1 +2𝑇
Delay 𝑅𝑜 𝑡1 + 2𝑇 = න 𝑥 𝑡 𝑦 𝑡 + 𝜏 𝑑𝑡
𝑦(𝑡) 2𝑇 𝑡1
𝑇−𝜏
Similarly, we may
1 𝑡1 +2𝑇 𝑅𝑜 (𝑡1 + 2𝑇)
find 𝑅𝑋𝑋 (𝜏) & Product න . 𝑑𝑡
𝑅𝑌𝑌 𝜏 2𝑇 𝑡1
Let 𝑡1 = 0, and assume 𝑇 is very large,
𝑥(𝑡) Delay
𝑅0 2𝑇 = 𝑅𝑥𝑦 𝜏 = 𝑅𝑋𝑌 (𝜏)
𝑇
Dr. Ali Hussein Muqaibel 36
Example
• Use the above system to measure the 𝑅𝑋𝑋 𝜏 for 𝑋 𝑡 = 𝐴𝑐𝑜𝑠 𝜔0 𝑡 + 𝜃 .
1 𝑇 2
• 𝑅𝑜 2𝑇 = 𝐴 cos(𝜔0 𝑡 + 𝜃) cos 𝜔0 𝑡 + 𝜃 + 𝜔0 𝜏 𝑑𝑡
2𝑇 −𝑇
𝐴2 𝑇
• = [ cos 𝜔0 𝜏 + cos(2𝜔0 𝑡 + 2𝜃 + 𝜔0 𝜏)]𝑑𝑡
4𝑇 −𝑇
A2 A2 sin 2𝜔0 𝑇
• = cos(𝜔0 𝜏) + cos 𝜔0 𝜏 + 2𝜃 = 𝑅𝑋𝑋 𝜏 + 𝜖(𝑇)
2 2 2𝜔0 𝑇
• If we require the 𝜖 𝑇 to be at least 20 times less than the largest value of the true
autocorrelation 𝜖 𝑇 < 0.05 𝑅𝑋𝑋 (0)
A2 A2 1 10
• < 0.05 ⇒ ≤ 0.05 ⇒ 𝑇 ≥
4𝜔0 𝑇 2 2𝜔0 𝑇 𝜔0
• Wait enough time! Depending on the frequency
T=20, OMEGA=0.2
• % Measurement of Correlation function
𝑇≥
𝜔0
• clear all
• close all
• clc 10
• A=1; 20 < = 50
0.2
• T=50;
• omeg=0.2;
• t=-T:T;
• thet=2*pi*rand(1,1);
• X=A*cos(omeg*t+thet);
• [R,tau]=xcorr(X,'unbiased');
• %R=R/(2*T);
• True_R=A^2/2*cos(omeg*tau);
T=50, OMEGA=0.2
• Err=A^2/2*cos(omeg*tau+2*thet)*sin(2*omeg
*T)/(2*omeg*T);
• plot(tau,True_R,':',tau,R,'g-', tau,Err,'r.-', Note the
'LineWidth',2) error is less
• title ('Auto-correlation') than 5%
• legend ('Exact','Measured','Error')
• axis ([-40 40 -0.6 +0.6])