Last modified: January 27, 2025
This article is written in: 🇺🇸
Yule-Walker Equations
The Yule-Walker equations are a set of linear equations that relate the autocorrelations of an autoregressive (AR) process to its parameters. These equations are crucial for estimating the parameters of AR models and for understanding the autocorrelation structure of the process.
Definition
The Yule-Walker equations provide a way to estimate the parameters of an AR(p) process by relating them to the autocorrelations of the process. The key idea is to derive a system of equations that link the parameters with the autocorrelation function (ACF) at different lags .
For an AR(p) process, the Yule-Walker equations are:
Where:
- is the autocorrelation at lag .
- , since the autocorrelation at lag 0 is always 1.
These equations can be used to estimate the parameters of the AR process from the sample autocorrelations.
Deriving the Yule-Walker Equations
Assumptions
- The stationarity assumption for an AR process means that the mean and variance of the process remain constant over time, and the autocovariance function depends only on the lag, not on the time.
- In the AR process, the white noise error term has zero mean and constant variance , meaning is uncorrelated with past values of the process.
Derivation Steps
- Multiply the AR(p) model by for a given lag :
Multiply both sides by for .
-
Take the expectation of both sides: Use the definition of the autocovariance function , and replace the expectations accordingly. Since the white noise is uncorrelated with , the expected value of is zero for all .
-
Use covariance definitions: Express the expectations as autocovariances and normalize by , which is the variance of the process, to convert them into autocorrelations .
-
Formulate the Yule-Walker equations: You will end up with a system of linear equations that relate the autocorrelations at different lags to the AR model parameters .
Example: Yule-Walker Equations for an AR(2) Process
Consider the AR(2) process:
Where is white noise with variance .
Deriving the Yule-Walker Equations
I. Multiply by and take the expectation:
Using and , we get:
II. Multiply by and take the expectation:
Using , we get:
III. Express the autocovariances as autocorrelations: Normalize by the variance , to convert autocovariances into autocorrelations :
Solving the Difference Equations for AR(2)
To solve the Yule-Walker equations for the AR(2) process, we assume a solution of the form . Substituting into the equation:
The characteristic equation is:
Solving the quadratic equation:
Thus, the roots are:
The general solution for the autocorrelation function is:
Finding Coefficients c_1 and c_2
Use
At , we know . This gives the equation:
Use
At , we use the relationship to find:
Solving this, we get:
Substituting into the general solution:
Solving the system of equations:
This gives the values for and , which can then be substituted back into the general solution for .
Matrix Form of Yule-Walker Equations for AR(p)
For an AR(p) process, the Yule-Walker equations can be written in matrix form. Define:
Vector of autocorrelations:
Vector of AR coefficients:
The autocorrelation matrix is a Toeplitz matrix:
The Yule-Walker equations are then written as:
To solve for the AR coefficients :