S732 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

S7 · Lesson 32 · Subspace methods for spectral estimation

Sinusoids in noise, eigenvalues of the correlation matrix, Pisarenko and MUSIC, and the Cramér–Rao bound

The periodogram and its averages (lesson 31) assume nothing about the signal, and pay for that generality with resolution limited to about one bin, fs/N. When the signal is known to be a few sinusoids in white noise, as in radar, direction finding and many measurement problems, far better is possible. The correlation matrix of such a signal splits cleanly into a signal subspace and a noise subspace, and the frequencies can be read from either one, resolving tones much closer than a bin. How well any method can do is bounded by the Cramér–Rao limit, which falls much faster with record length than the bin width does.

  • The curves compare the DFT's bin width, fs/N, with the Cramér–Rao bound on the standard deviation of a single tone's frequency estimate, fs2π12SNRN(N2−1), against record length N at 1 kHz.
  • The bound falls as N−3/2, the bin width only as N−1: long records allow frequency estimates far finer than a bin.
  • More SNR lowers the bound as its square root.

Predict

A single tone at 10 dB SNR is recorded for 100 samples at 1 kHz. The DFT's bins are 10 Hz apart. How precisely could the best unbiased estimator find its frequency?

Name it

Sinusoids in white noise

For K complex exponentials of powers Pi at frequencies ωi in white noise of variance σ², the M × M correlation matrix (Rmn=ϕ[m−n]) is

R=∑i=1KPi𝐚(ωi)𝐚H(ωi)+σ2I,𝐚(ω)=[1,ejω,…,ej(M−1)ω]T

Its K largest eigenvalues exceed σ² (for a single exponential, MP+σ2); the other M − K equal σ² exactly, and their eigenvectors, the noise subspace, are orthogonal to every 𝐚(ωi). A real sinusoid counts as two complex exponentials.

Pisarenko and MUSIC

  • Pisarenko: use M = K + 1; the single noise eigenvector's polynomial has its roots at the frequencies. For one real sinusoid (power P, so φ[m] = P cos mω plus σ² at m = 0), the closed form is
cos⁡ω=ϕ[2]+ϕ[2]2+8ϕ[1]24ϕ[1],P=ϕ[1]cos⁡ω,σ2=ϕ[0]−P
  • MUSIC: use M > K + 1 and plot the pseudospectrum 1/∑noise|𝐚H(ω)𝐯k|2, which peaks sharply where 𝐚(ω) is orthogonal to the noise subspace. More noise eigenvectors make it robust.
  • Both need the number of components K, chosen where the eigenvalues level off (or by criteria like AIC and MDL). Wrong K or low SNR produces spurious peaks.

The Cramér–Rao bound

For one real tone of amplitude A in white noise σ² (SNR = A²/2σ²) over N samples, any unbiased frequency estimate has

var(ω^)≥12SNR⋅N(N2−1)rad2

falling as N−3, much faster than the periodogram's bin width.

Worked example

A process has φ[0] = 1.5, φ[1] = 0.309 and φ[2] = −0.809. Assuming one real sinusoid in white noise, find its frequency, power and the noise power.

Show the solution
  1. The square root. 0.655+8×0.0955=1.191
  2. Frequency. cos⁡ω=−0.809+1.1914×0.309=0.309 so ω = 0.4π.
  3. Power. P=0.3090.309=1 an amplitude of √2.
  4. Noise power. σ2=1.5−1=0.5
  5. How far to trust it. Three correlation values pin down all three parameters exactly; with estimated correlations the result is only as good as those estimates.

Answer ω = 0.4π, a sinusoid power of 1 and a noise power of 0.5.

Worked example

One complex exponential of power 1 is in white noise of variance 0.1. What are the eigenvalues of its 4 × 4 correlation matrix?

Show the solution
  1. The signal eigenvalue. Along 𝐚(ω): λ1=MP+σ2=4×1+0.1=4.1
  2. The noise eigenvalues. The other three are exactly 0.1, the noise floor.
  3. Why the gap matters. The gap between them is what makes the signal and noise subspaces separable; at low SNR or with short records, estimated eigenvalues scatter and the gap blurs.

Answer 4.1, 0.1, 0.1 and 0.1.

Worked example

A tone at 10 dB SNR is recorded for 100 samples, then for 1000, at 1 kHz. How do the Cramér–Rao bound and the DFT bin compare?

Show the solution
  1. N = 100. The bound is 0.0011 rad, 0.17 Hz rms, against 10 Hz bins.
  2. N = 1000. σω=1210×1000×999999=3.5×10−5rad which is 0.0055 Hz, against 1 Hz bins.
  3. Compare. Ten times the record improves the bound thirty-two times but the bin width only ten times.

Answer the bound is 0.17 Hz against 10 Hz bins for 100 samples, and 0.0055 Hz against 1 Hz bins for 1000.

Check

A process has φ[0] = 1.2, φ[1] = 0.454 and φ[2] = −0.5878; it's one real sinusoid in white noise.

(a)

What is its frequency, in units of π?

(b)

What is the noise power?

Check

One complex exponential of power 0.5 sits in white noise of variance 1; the correlation matrix is 8 × 8.

(a)

What is its largest eigenvalue?

(b)

What are its other eigenvalues?

Check

A tone at 0 dB SNR is recorded for N = 256 samples at 48 kHz.

(a)

What is the Cramér–Rao bound on its frequency's standard deviation?

Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.

(b)

How many times finer than a DFT bin is that?

Check

K = 2 real sinusoids are analyzed with an M = 8 correlation matrix.

(a)

How many eigenvalues belong to the signal subspace?

(b)

How many span the noise subspace MUSIC uses?

Check

Why can MUSIC resolve two tones closer together than a DFT bin, when the periodogram can't?

Check

A process has φ[0] = c, φ[1] = a and φ[2] = b, modeled as one real sinusoid in white noise.

Step 1

What is cos ω?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Check

Write pisarenko(x): estimate φ[0], φ[1], φ[2] from the samples (biased estimates, dividing by N) and return (ω, noise power) for one real sinusoid in white noise.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why does the Cramér–Rao bound on frequency fall so much faster with record length than the DFT's resolution?

Practice

Keep practicing

7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.