Owning Class: modeling and prediction
Requires: MathScript RT Module
a = ar_covar(x, n)
[a, e] = ar_covar(x, n)
Legacy Name: arcov
Uses the covariance method to estimate autoregressive (AR) model parameters.
| Name | Description |
|---|---|
| x | Specifies the input signal. x is a vector. |
| n | Specifies the order of the AR model. n is a positive integer. |
| Name | Description |
|---|---|
| a | Returns the estimate of AR model parameters. a is a vector. |
| e | Returns the variance estimate of the white noise input to the AR model. e is a real number. |
t = 1:20;
x = t+rand(1, length(t));
[a, e] = ar_covar(x, 1)
y = stepzd(sqrt(e), a, length(t));
plot(t, x, t, y)