Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

SiddiquiMatrix

Covariance Matrix of MLE Parameters in an AR(p)


Description

A direct method of computing the inverse of the covariance matrix of p successive observations in an AR(p) with unit innovation variance given by Siddiqui (1958) is implemented. This matrix, divided by n = length of series, is the covariance matrix for the MLE estimates in a regular AR(p).

Usage

SiddiquiMatrix(phi)

Arguments

phi

coefficients in a regular AR(p)

Value

Matrix, covariance matrix of MLE estimates

Note

No check on whether the parameters are in the stationary region is done. It has been shown a necessary and sufficient condition for the parameters to be in the stationary region is that this matrix should be positive-definite (Pagano, 1973). But computationally it is probably better to test for stationarity by using ARToPacf to transform to the PACF and then check that the absolute value of all partial autocorrelations are less than 1.

Author(s)

A.I. McLeod

References

Siddiqui, M.M. (1958) On the inversion of the sample covariance matrix in a stationary autoregressive process. Annals of Mathematical Statistics 29, 585-588.

Pagano, M. (1973), When is an autoregressive scheme stationary? Communications in Statistics A 1, 533-544.

See Also

Examples

#compute the inverse directly and by Siddiqui's method and compare:
phi<-PacfToAR(rep(0.8,5))
A<-SiddiquiMatrix(phi)
B<-solve(toeplitz(TacvfAR(phi, lag.max=length(phi)-1)))
max(abs(A-B))

FitAR

Subset AR Model Fitting

v1.94
GPL (>= 2)
Authors
A.I. McLeod, Ying Zhang and Changjiang Xu
Initial release
2013-03-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.