Professional Documents
Culture Documents
SSP 1 3 - Stochastic 3
SSP 1 3 - Stochastic 3
SSP 1 3 - Stochastic 3
1 Introduction
4 Spectral characteristics
7 Summary
1 / 43
Sometimes it is sufficient to describe the random process with the first and second order
Ergodic processes stated loosely
distribution (or density)
If the time averages equal the corresponding statistical averages, the process is said to be
ergodic
4 / 43 5 / 43
6 / 43 7 / 43
Cross correlation Autocovariance and cross covariance
Assume two random processes x (t ) and y (t ). Similar to the covariance, the autocovariance is
The cross correlation function is
Cxx (t , t + τ ) = E {(x (t ) − mx ) (x (t + τ ) − mx )}
Rxy (t1 , t2 ) = E {x (t1 )y (t2 )}
The cross covariance is
We say they are jointly wide sense stationary if the cross correlation is only a function of time
Cxy (t , t + τ ) = E {(x (t ) − mx ) (y (t + τ ) − my )}
difference and not absolute time
The normalized cross covariance or correlation coefficient
Rxy (t , t + τ ) = E {x (t )y (t + τ )} = Rxy (τ )
Cxy (t , t + τ )
ρxy (t , t + τ ) =
σx σy
8 / 43 9 / 43
x = x + n1;
y = y + n2;
figure
subplot(1,2,1);
plot( real(x) ); hold on; plot( real(y) );
subplot(1,2,2);
plot(lag,abs(Cv));
12 / 43 13 / 43
E {x12 }
E {x1 x2 }
. . . E {x1 xN }
E { x2 x1 } E {x22 }
. . . E {x2 xN }
Rx = E {xxT } =
.. .... ..
. . . .
E {xN x1 } E {xN x2 } . . . E {xN2 }
14 / 43 15 / 43
Cross correlation and covariance matrix Autocorrelation matrix
Assume two random vectors x and y For the random process x (t ) = x (n), we write
In a completely similar fasion, we write the cross correlation matrix
x = [x (0), x (1), x (2), . . . , x (N − 1)]T
Rxy = E {xyT }
where all xn are time samples in the random process (and therefore random numbers)
And the cross covariance matrix The autocorrelation matrix is defined as
E {x (0)2 }
Cxy = E {(x − mx )(y − my )T } E {x (0)x (1)}
. . . E {x (0)x (N − 1)}
E {x (1)x (0)} E {x (1)2 }
. . . E {x (1)x (N − 1)}
Rx = E {xxT } =
and again .. .. .. ..
. . . .
Cxy = Rxy − mx mTy 2
E {x (N − 1)x (0)} E {x (N − 1)x (1)} . . . E {x (N − 1) }
16 / 43 17 / 43
18 / 43 19 / 43
Autocovariance matrix The Fourier transform
For a wide sense stationary random process, the autocariance is only a function of lag and For a deterministic sequence x (t ), the Fourier transform is defined as
the autocovariance matrix becomes Z ∞
X (ω) = x (t )e−j ωt dt
Cx (0) Cx (−1) ... Cx (−N + 1) −∞
Cx (1) Cx (0) ... Cx (−N + 2)
Cx = E {(x − mx )(x − mx )T } =
.. .. .. .. sometimes called simply the spectrum
. . . .
Cx (N − 1) Cx (N − 2) . . . Cx (0) ω is understood as angular frequency (if t is time)
ω = 2π f where f is frequency in Hz
Note that for WSS random processes, the mean value does not change with time
The inverse Fourier transform is
mx = [mx , mx , mx , ..., mx ]T Z ∞
1
x (t ) = X (ω)ej ωt d ω
2π −∞
20 / 43 21 / 43
24 / 43 25 / 43
28 / 43 29 / 43
30 / 43 31 / 43
Sonar data example: Conclusion Power spectral density and cross spectrum
The real and imaginary part of the signal is uncorrelated Power spectrum recap (assuming WSS random processes)
The PDF is OK in both regions Z ∞
Pxx (ω) = Rxx (τ )e−j ωτ d τ
The individual channels (receiver elements) are correlated. This may be OK in region 1 but −∞
not OK in region 2.
Cross spectrum recap (assuming joint WSS RP)
The channels are strongly correlated in region 2 (the noise region) Z ∞
The spectrum is contaminated with spectral lines in region 1 Pxy (ω) = Rxy (τ )e−j ωτ d τ
−∞
The spectrum contains strong unwanted strong lines (tones) in region 2
Spectral coherence or normalized cross spectrum
The spectral lines are due to self-noise and should be reduced as much as possible
Pxy (ω)
Γxy (ω) = p p
Pxx (ω) Pyy (ω)
32 / 43 33 / 43
The MSC is bounded 0 ≤ |Γxy (ω)|2 ≤ 1 where h(t ) is a Linear Time Invariant (LTI) filter
Frequency domain analog of the correlation coefficient ∗ is the convolution-operator
An important tool to assess the relationship between two signals in frequency domain Then y (t ) also becomes a WSS random process
Can be used to prove linear dependence (example later on) In frequency domain (remembering Properties of the Fourier Transform)
Reference: Bendat & Piersol 1980 Y (ω) = H (ω)X (ω)
Barry Van Veen on youtube: Coherence and the Cross Spectrum
34 / 43 35 / 43
MSC example: The LTI filter 2 MSC example: The LTI filter 3
The autocorrelation is Z ∞
The cross spectrum (again remembering Properties of the Fourier Transform)
∗
Rxx (τ ) = x (t )x (t + τ )dt
−∞ Pxy (ω) = H (ω)Pxx (ω)
The cross correlation
Z The (auto) power spectrum for y (t )
∗
Rxy (τ ) = x (t )y (t + τ )dt
Z Z Pyy (ω) = |H (ω)|2 Pxx (ω)
= x ∗ (t ) h(s)x (t + τ − s)dsdt Inserting into the magnitude squared coherence (MSC)
Z
= h(s)Rxx (τ − s)ds |Pxy (ω)|2
|Γxy (ω)|2 =
Pxx (ω)Pyy (ω)
This is directly recognized as a convolution |H (ω)Pxx (ω)|2 |H (ω)|2 Pxx
2
(ω)
= 2
= 2 2
=1
Rxy (τ ) = h(τ ) ∗ Rxx (τ ) Pxx (ω)|H (ω)| Pxx (ω) |H (ω)| Pxx (ω)
36 / 43 37 / 43
MSC example: The LTI filter 4 MSC example 2: The LTI filter again
If y (t ) can be described as x (t ) convolved with a Linear Time-Invariant (LTI) filter
y (τ ) = h(τ ) ∗ x (τ )
The MSC can be used to examine the relation between two signals or data sets. It is commonly where w (t ) is a zero mean WSS complex random processes
used to estimate the power transfer between input and output of a linear system. If the signals x (t ) and w (t ) are statistically independent, giving Rxw = 0, Ryw = 0
are ergodic, and the system function linear, it can be used to estimate the causality between
The cross-correlation of x (t ) and y (t ) becomes (again)
the input and output.
Rxy (τ ) = h(τ ) ∗ Rxx (τ )
38 / 43 39 / 43
MSC example 2: The LTI filter again 2 MSC example 3: The LTI filter again 3
The cross power spectral density becomes (again)
Pyy (ω) = |H (ω)|2 Pxx (ω) + Pww (ω) Single input-output system with noise
42 / 43 43 / 43
Roy Edgar Hansen