Exercise 6 of Assignment 4 (due 2/4/08)
Generate a realization
,
, ...,
of the zero mean AR(2) process of Equation (45)
using the procedure outlined in `Recipe for Simulating Autoregressive Processes'
following the statement of this exercise.
Compute the periodogram for the
's
at three adjacent Fourier frequencies, namely,
,
and
(we are assuming
),
and call these values
,
and
.
Repeat the above a `large' number
of times
(using a different realization of the Gaussian white noise process each time)
to obtain the sequences
,
and
(here `large' means between 100 and 10000 depending
on your computer's tolerance for repetitive tasks).
Compute the sample mean and sample variance for the three sequences,
and compute the sample correlation coefficient between
- 1.
-
and
,
- 2.
-
and
and
- 3.
-
and
(cf. the equation for
displayed in the middle of page 5
of the text).
Compare these sample values with the corresponding large sample values
suggested by Equation (168b), the equation in the middle of page 199,
Equation (222b) and Equation (222c).
Recipe for Simulating Autoregressive Processes
Let
describe a stationary AR(
) process,
where
is a white noise process
with zero mean and variance
,
and
is a sequence of AR coefficients.
Given
,
, ...,
which are taken to be uncorrelated Gaussian deviates
with zero mean and unit variance
(obtained on a computer from a Gaussian random number generator),
we desire to generate a realization of
,
, ...,
.
To do so, we carry out the following steps.
- We first calculate the
sequences
,
,
...,
and
by computing the following for
,
, ..., 2:
- Second, we calculate
- Third, we generate
,
, ...,
via
- Finally, the remaining
values are generated using
Let us consider two concrete examples,
namely, the AR(2) and AR(4) processes given by Equations (45)
and (46a) of Percival and Walden (1993).
The AR(2) process has coefficients
and
and has
.
Application of step 1 yields
while step 2 yields
We thus would generate the AR(2) process using
For the AR(4) process, we have
,
,
and
,
with
.
Application of step 1 yields
while step 2 yields
Return to home page for
Stat/EE 520.