next up previous
Postscript version of these notes

STAT 804

Lecture 23 Notes

Estimating the spectrum

We now consider the quality of $\vert{\hat X}\vert^2$ as an estimate of fX. We have already shown that

\begin{displaymath}{\rm E}(\vert{\hat X}\vert^2) \to f_X(\omega) \, .
\end{displaymath}

However we will see that the variance of this estimate $\hat f$ of f does not go to 0 so that the estimate is not consistent.

It is easier technically to consider the case of a normal mean 0 process X. For normal data the real and imaginary parts of $\hat X$ have normal distributions. Both have mean 0. The variances are

\begin{displaymath}\frac{1}{T} \sum_{r=0}^{T-1}\sum_{s=0}^{T-1} \cos(2\pi\omega r)\cos(2\pi\omega s) C_X(r-s)
\end{displaymath}

and

\begin{displaymath}\frac{1}{T} \sum_{r=0}^{T-1}\sum_{s=0}^{T-1} \sin(2\pi\omega r)\sin(2\pi\omega s) C_X(r-s)
\end{displaymath}

while the covariance between the real and imaginary parts is

\begin{displaymath}\frac{1}{T} \sum_{r=0}^{T-1}\sum_{s=0}^{T-1} \cos(2\pi\omega r)\sin(2\pi\omega s) C_X(r-s) \,
.
\end{displaymath}

Consider as an example the covariance, and use the usual complex exponential identities to write the covariance as

\begin{displaymath}\frac{1}{4T} \sum_{r=0}^{T-1}\sum_{s=0}^{T-1} C_X(r-s)(e^{2\p...
...e^{-2\pi\omega ri})(e^{2\pi\omega si}-e^{-2\pi\omega si}) \, .
\end{displaymath}

Now make the change of variables u=r-s and v=r+s in the double sum. The variable u runs from -(T-1) to T-1 while when u is fixed the possible values of v run, for u positive from u to 2(T-1)-u by increments of 2 and, for u negative from -u to 2(T-1)+u by increments of 2. For each value of u there are then T-|u| possible values of vand the covariance becomes

\begin{displaymath}\frac{1}{4T} \sum_{u=-(T-1)}^{T-1} \sum_{v=\vert u\vert,v\mbo...
...pi\omega vi} +e^{-2\pi\omega u}
-e^{2\pi\omega u}\right\} \, .
\end{displaymath}

The last two terms, involving u only, are

\begin{displaymath}\frac{1}{4T}
\sum_{u=-(T-1)}^{T-1} (T-\vert u\vert)C_X(u) (e^{-2\pi\omega u} -e^{2\pi\omega u})
\end{displaymath}

The terms u and -u cancel each other while the term with u=0 is 0 itself so that this term is 0.

The terms above involving v may be simplified by using geometric series to do the inside sums over v. The result is a coefficient of C(u)which is bounded (bounded by $4/(1-\cos(2\pi\omega))$ for instance. Then since

\begin{displaymath}\frac{1}{4T}
\sum_{u=-(T-1)}^{T-1}C_X(u) \to 0
\end{displaymath}

we have checked that the covariance between the real and imaginary parts of ${\hat X}(\omega)$ converges to 0 as $T\to\infty$.

Our previous calculations of the expectation of $\vert{\hat X}(\omega)\vert^2$can be mimicked to show that the two variances each converge to $f_X(\omega)/2$. It follows that the vector $\sqrt{2/f(\omega)}(Real({\hat X}(\omega)),
Im({\hat X}(\omega)))$ converges to a bivariate standard normal. The squared length of this vector then converges in distribution to the squared length of a standard bivariate normal which is exactly $\chi^2_2$ or exponential with mean 2.

Summary: $\vert{\hat X}\vert(\omega)^2$ converges in distribution to an exponential random variable with mean $f(\omega)$. In particular, $\vert{\hat X}\vert(\omega)^2$ is not a consistent estimator of $f(\omega)$.

Improved estimates

To get better estimates we need either to resort to parametric estimation techniques or do some smoothing. We will look at the latter idea first. If $f(\omega)$ is smooth in the neighbourhood of some $\omega_0$ then we can take estimates of $f(\omega)$ at a number of points nearby to $\omega_0$ and average them somehow. Averaging will reduce the variance though it will introduce bias usually because the things being averaged all have different expected values.

The simplest kind of estimator is a moving average - we define

\begin{displaymath}{\hat f}(k/T) = \frac{1}{2L+1} \sum_{\ell = -L}^L \vert{\hat X}((k+\ell)/T)\vert^2
\end{displaymath}

It turns out that the quantities being averaged are asymptotically independent so that the estimate has the same distribution as an average of 2L+1 exponentials which is just a chi-squared with L+2 degrees of freedom multiplied by $f(\omega_0)/(4L+2)$. It is possible then to produce a consistent estimate by letting L grow slowly with T but we won't investigate this rather mathematical problem carefully here.

Other weighted averages are possible; several are implemented in the S-Plus function spectrum. Here are some points to note about this estimation problem:

Here are several spectral estimates for the spectrum of the sunspots series:


next up previous



Richard Lockhart
1999-10-13