Spectrum Estimation
Spectrum Estimation
1
Introduction
• We want to estimate the power
spectral density of a wide-
sense stationary random
process
2
Introduction
• The main problem of power spectrum estimation is
– The data x(n) is always finite!
– Parametric approaches
• not discussed here since they are less common
3
Nonparametric methods
• These are the most commonly
used ones
4
Periodogram
• Taking the Fourier transform of
this autocorrelation estimate
results in an estimate of the
power spectrum, known as the
Periodogram
5
Periodogram of white noise
32 samples
6
Performance of the Periodogram
• If N goes to infinity, does the
Periodogram converge
towards the power spectrum in
the mean squared sense?
• Necessary conditions
– asymptotically unbiased:
7
Recall: sample mean as estimator
• Assume that we measure an iid process x[n] with mean and
variance 2
9
Periodogram bias
• The expected value of the
Periodogram can now be
calculated:
10
Periodogram bias
• Since the sinc-squared
pulse converges towards
a Dirac impulse as N
goes to infinity, the
Periodogram is
asymptotically unbiased
11
Effect of lag window
• Consider a a random process
consisting of a sinusoidal in
white noise, where the phase
of the sinusoidal is uniformly
[- , ] distributed
12
Effect of lag window
13
Example: Periodogram of a
Sinusoidal in Noise
• Consider a a random process
consisting of a sinusoidal in
white noise, where the phase
of the sinusoidal is uniformly
[- , ] distributed and
A=5, 0=0.4
• N=64 on top
and N=256 on the bottom
• Overlay of 50 Periodogram on
the left and average on the
right
14
Periodogram resolution
• In addition to biasing the
Periodogram, the spectral
smoothing that is introduced by
the Bartlett window also limits
the ability of the Periodogram
to resolve closely-spaced
narrowband components
15
Periodogram resolution
• The power spectrum of the
above random process is
16
Periodogram resolution
• Since the width of the main
lobe increases as N
decreases, for a given N there
is a limit on how closely two
sinusoidal may be located
before they can no longer be
resolved
17
Example: Periodogram of two
Sinusoidal in Noise
• Consider a a random process
consisting of two sinusoidal in
white noise, where the phases
of the sinusoidal are uniformly
[- , ] distributed and
A=5, 1=0.4 , 2=0.45
• N=40 on top
and N=64 on the bottom
• Overlay of 50 Periodogram on
the left and average on the
right
18
Variance of the Periodogram
• The Periodogram is an
asymptotically unbiased
estimate of the power
spectrum
• To be a consistent estimate, it
is necessary that the variance
goes to zero as N goes to
infinity
19
Variance of the Periodogram
20
Variance of the Periodogram
21
Variance of the Periodogram
22
Example: Periodogram of
white Gaussian noise
• For a white Gaussian noise
with variance 1, the following
holds
• Which results in
• Which results in
23
Example:
Periodogram of
white Gaussian
noise
• On the left the overlay of 50
Periodograms are shown and
on the right the average
25
So what if the process is not white
and/or not Gaussian?
• With this interpretation, the
result is, that the variance of
the spectrum estimate is
approximately the square of
the true power spectrum
26
Periodogram summary
27
The modified Periodogram
• What happens when another
window (instead of the
rectangular window) is used?
28
The modified Periodogram
• With the change of variables
k=n-m this becomes
29
The modified Periodogram
• Smoothing is determined by the window that is applied to the data
• While the rectangular window as the smallest main lobe of all
windows, its sidelobes fall off rather slowly
30
The modified Periodogram
• Nothing is free. As you notice,
the Hamming window has a
wider main lobe
31
The modified Periodogram
• For evaluating the Bias we
take the expected value of the
modified Periodogram, where
W(ej ) is the Fourier transform
of the data window
32
Variance of the modified
Periodogram
• Since the modified
Periodogram is simply the
Periodogram of a windowed
data sequence, not much
changes
33
Resolution versus masking of the
modified Periodogram
• The resolution of the modified
Periodogram defined to be the
3dB bandwidth of the data
window
34
Modified periodogram summary
35
Bartlett’s method
• Still have not a consistent
estimate of the power
spectrum!
36
Bartlett’s method
• Averaging (sampel mean) a set of uncorrelated measurements of
a random variable results in a consistent estimate of its mean
37
Bartlett’s method
• Averaging these Periodograms
39
Bartlett’s method
• Each expected value of the
periodogram of the subsequences
are identical hence the process of
averaging subsequences
Periodograms results in the same
average value => asymptotically
unbiased
40
Bartlett’s method
• Now we reap the reward: the
variance is going to zero as the
number of subsequences goes to
infinity
41
Bartlett’s method: Overlay of 50 estimates Ensemble Average
White noise
• a) Periodogram with N=512
• b) Ensemble average
• c) Overlay of 50 Bartlett
estimates with K=4 and L=128
• d) Ensemble average
• e) Overlay of 50 Bartlett
estimates with K=8 and L=64
• f) Ensemble average
42
Bartlett’s method: Two sinusoidal in
white noise
• a) Periodogram with N=512
• b) Ensemble average
• c) Overlay of 50 Bartlett
estimates with K=4 and L=128
• d) Ensemble average
• e) Overlay of 50 Bartlett
estimates with K=8 and L=64
• f) Ensemble average
43
Welch’s method
• Two modifications to Bartlett’s
method
– 1) the subsequences are allowed to
overlap
– 2) instead of Periodograms,
modified Periodograms are
averaged
45
Performance of Welch’s method
• Welch’s method can be written in
terms of the data record as follows
• Or in terms of modified
Periodograms
46
Performance of Welch’s method
• Welch’s method is asymptotically
unbiased estimate of the power
spectrum
47
Performance of Welch’s method
• For a fixed number of data N, with
50% overlap, twice as many
subsequences can be averaged,
hence expressing the variance in
terms of L and N we have
49