Jump to content

Talk:Autoregressive model

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Summary and Better Examples?

[edit]

This article is noticeably more difficult to comprehend than many other Wiki entries on statistics. A higher level summary statement on AutoRegressive techniques could be useful, especially example usages that point the reader in the right direction (ARMA, ARCH, ....) .

Strawman example of opening statement: Autoregressive models are used for prediction and data smoothing, especially in time-series data containing signal noise(SNR), moving averages(ARMA), and characteristically different time periods(ARCH). AutoRegressive (AR) models are linear combinations of the input parameter values and white noise values.

As an example, consider an input dataset with two parameters, time and power. We want to predict how much power we need to provide in the next second. Some noise exists in the power measurement, but we dont know exactly how much. We also know that real power usage varies considerably, for example during peak usage periods vs off-peak energy usages. Using an autoregressive model, we can learn from previous instances and predict the next power value. (Picture of example) — Preceding unsigned comment added by 208.127.244.182 (talk) 00:22, 30 November 2012 (UTC)[reply]

Stationarity conditions

[edit]

Perhaps this has been addressed before, but could someone confirm that the stationarity condition here is correct? I think it is currently wrong so I'm going to change it. Shouldn't the roots of have modulus less than one; and the roots of have modulus greater than one?

e.g. for the AR(1) model

has a root at . We require this root to be less than one for stationarity.

I think there may be several instances of confusion involved here and in the current article text. First, from my understanding (yes, I am always learning): (wide-sense) stationarity is a property of certain processes, stability is a property of certain models. Second, I have looked up the referenced pages 88 and 90 in Shumway and Stoffer and a bit more. Page 90 deals with MA models, not AR models, which we are concerned with here. Third, while I do not quite fully understand Shumway's and Stoffer's seeming identification of explosive processes with non-causal ones on page 88, I do follow their explanation on pages 88 and 89 starting from equation (3.12) and leading up to the conclusion that is a condition for stability. Fourth, I think that for an AR model one does not (usually) apply the notation (which, I seem to glean, with a plus-sign rather than a minus-sign may rather apply to MA models), but instead (with removed from the exponents).
Therefore, I intend to change the article text accordingly (with an eye to correction). Any motivated objections?Redav (talk) 12:10, 11 July 2020 (UTC)[reply]

Constant term

[edit]

Some of the formulas include the constant term:

while other formulas don't:
I think the article should be consistent in the notation. Albmont (talk) 18:26, 18 November 2008 (UTC)[reply]
You're absolutely right. Personally I have never encountered the constant term outside of Wikipedia, but that's just me. --Zvika (talk) 06:43, 19 November 2008 (UTC)[reply]
gretl includes the constant term (optionally). So does R (programming language), as in fit.ar.par. But both softwares include anything in the "deterministic" component. Albmont (talk) 12:21, 19 November 2008 (UTC)[reply]
Well, then, definitely go ahead and put it in. --Zvika (talk) 13:39, 19 November 2008 (UTC)[reply]
Hey, just wanted to revisit this topic again since I started trying to create inline citations for this article. I found one source with a definition with the constant term but I seem to find a lot more sources without the constant. For example, in Shumway & Stoffer's Time Series Analysis and its Applications, they do not use the constant. Same for Box, Jenkins, and Reinsel's Time Series Analysis: Forecasting and Control as well as Time Series Analysis: Univariate and Multivariate Methods by Wei. I also do not see a constant used in Brockwell & Davis's Introduction to Time Series and Forecasting. I might be missing something but I believe that the definition for an AR model should not include a constant since most textbooks do not.
I want to see if anyone else has any strong opinions against this change though since it might ruffle some feathers and in case I'm missing something obvious. I'm planning on changing it if no one has any objections though. Moon motif (talk) 03:08, 28 August 2022 (UTC)[reply]

I think a problem with the constant term is that the equations for wide-sense stationarity involving the poles of the time-shift polynomial are no longer applicable. Consider the AR(1) model with the constant term. Assuming some nonzero initialization for the sequence, it's trivial to expand the sequence at a given time and use a geometric series to show that

which varies with but converges to in the limit. In other words, for the system to be wide-sense stationary, must equal zero. This result is compatible with Exercise 1.6 in "Adaptive Filter Theory" (4th Ed.) by Simon Haykin, which states that the input to an AR(1) must have zero mean. I believe this is an error in both this article and the general ARMA article. — Preceding unsigned comment added by 152.3.43.164 (talk) 18:02, 11 March 2013 (UTC)[reply]

Autocovariance or autocorrelation?

[edit]

According to http://en.wikipedia.org/wiki/Spectral_density the spectral density is the FT of the autocorrelation (and according to my notes!) but here it is stated that it is the FT of the autocovariance. In the case there μ = 0 it doesn't affect the result, but is it right? If so can someone clarify the apparently contradicting information? —Preceding unsigned comment added by 163.1.167.139 (talk) 22:43, 21 March 2009 (UTC)[reply]

Gretl

[edit]

Apropos gretl, I just noticed that when gretl computes the parameters in the AR(1) model with a constant term, it returns const and phi_1 based on equation instead of . Albmont (talk) 17:05, 19 May 2009 (UTC)[reply]

Variance of X_t

[edit]

The variance of Xt should be only valid for the assymptotic case, when t goes to infinity. That value is valid for a finite t in Xt only when we have a process that begins at t = minus infinite; in most real-world applications (for example, Monte Carlo simulations of AR(1) series), we begin with a fixed X0 and, depending on phi and sigma, we may never get even close to the assymptotic values. Albmont (talk) 13:47, 9 October 2009 (UTC)[reply]

At least in the textbooks that I use, an AR process is defined as one which begins at negative infinity (e.g., Porat's "Digital Processing of Random Signals"). This is required to ensure that the process is wide-sense stationary. Almost all of the text of the article would change if you were to change this definition. For example, it would no longer be possible to talk about the autocovariance of the process or its spectral density. --Zvika (talk) 14:20, 9 October 2009 (UTC)[reply]
Maybe it could be possible to get a compromise. Let's write non-assymptotic equations for the conditional AR(1), namely Xt|X0 - or even Xt|Xs, t > s. I think these formulas are more useful (for the sake of Monte Carlo analysis) than the assymptotic equations for a hypothetical series that begins at t = -infinite. Albmont (talk) 14:26, 9 October 2009 (UTC)[reply]
I don't object to that in principle, if it is stated in addition to the existing formulas, say in a separate section on conditional properties. --Zvika (talk) 15:25, 9 October 2009 (UTC)[reply]
OTOW, the current version of the article implies some inconsistencies. Because it says that AR(1) = random walk for φ = 1 (this is true only when X0 is zero), also it allows an AR(p) even when the coefficients have a unit root (or worse). Maybe it should be better to keep the analysis of the stationary process with |φ| < 1 and t beginning at -infinite at a separate section too. Albmont (talk) 16:07, 9 October 2009 (UTC)[reply]

(outdent) OK, I was not aware of the fact that a random walk necessarily equals 0 at time 0, but apparently this is what it says in the random walk article, so I reworded that part. I still maintain that the standard definition of an AR process begins at -infinity. Do you have a source that says something else? --Zvika (talk) 08:55, 10 October 2009 (UTC)[reply]


State space form

[edit]

AR(p) model where

The usual estimation method doesn't full use the data points t=0,...,p-1. Introduce the state space form, and to some extent, we can use these data points in a better way.

define

,

then the state space form is


, if stationarity is imposed, then , i.e.

Jackzhp (talk) 19:25, 26 March 2011 (UTC)[reply]

OLS procedure

[edit]

I feel that it is necessary to mention the reason why people don't apply the Ordinary least squares to estimate the coefficients. Jackzhp (talk) 19:25, 26 March 2011 (UTC)[reply]

AR(2) Spectrum

[edit]

The page used to state that

For AR(2), the spectrum has a minimum () or maximum () if[citation needed]

However, I am almost certain this is wrong. The critical points of the AR(2) spectrum occur when

Thus they occur at or at . I believe the person who posted the above made the mistake of dividing by sin (which is sometimes zero) and thus eliminating some of the potential peaks.

Inadequate graph caption

[edit]
"Figure has 5 plots of AR proceses. AR(0) and AR(0.3) are white noise or look like white noise. AR(0.9) has some large scale oscillating structure."
AR(0), AR(1), and AR(2) processes with white noise

This graph caption in the section "Graphs of AR(p) processes" is inadequate. There are five subgraphs but the caption only explains three (presumably the top three??). The numbers by the right side of each subgraph are undefined. And from the original documentation, I can't even confirm that the caption is correct in referring to the top three subgraphs. Can someone figure this out and redo the caption? Thanks. Duoduoduo (talk) 15:31, 10 January 2013 (UTC)[reply]



"Figure has 5 plots of AR processes. AR(0) is just white noise with no correlation between terms. Single parameter AR with a small value for phi, AR(0.3), looks much like white noise. For larger phi, AR(0.9), there is smoothing."
AR(0), AR(1), and AR(2) processes with white noise

The graph makes sense in the context of the section where it is included. There is only one possible plot for AR(0) since there are no parameters. There are two plots for AR(1), one for a value of φ close to zero and another for φ just less than one. The last two plots are for AR(2). One plot is for where φ1 and φ2 have the same sign. The other plot is when the two parameters have different signs.

I agree the graph could use some more work to make it clearer. I will look into it.— Preceding unsigned comment added by Everettr2 (talkcontribs) 01:23, 13 January 2013 (UTC)[reply]

Thanks. I've clarified the caption based on your explanation. Duoduoduo (talk) 01:42, 13 January 2013 (UTC)[reply]

Edit to lede

[edit]

@TheSeven: Please keep in mind WP:BRD -- you boldly made an edit, deleting a passage; I reverted your edit, then you are supposed to discuss on the talk page rather than edit war.

Your edit in the two-sentence long lede changes the second and last sentence from

The autoregressive model is one of a group of linear prediction formulas that attempt to predict an output of a system based on the previous outputs.

to

The autoregressive model is one of a group of linear prediction formulas.

thereby removing the passage

that attempt to predict an output of a system based on the previous outputs.

and your edit summary is

the wording suggested that they are only for prediction, which is untrue; also, prediction is already mentioned--keep intro clear and simple

(1) Not sure what you have in mind about other uses of AR. It seems to me that any others must be very minor or must actually be aspects of prediction. Can you be specific?

(2) I agree that predict should not be in there twice.

(3) The first sentence of the lede says that the AR model is a process, while the second sentence (both with and without your edit) says that it's a formula. That's awkward and needs to be fixed.

(4) Your deletion of the passage removes from the lede the most important thing there is to say about AR: based on the previous outputs. We can't possibly have a lede that doesn't even mention that.

I'm going to revert your edit as a violation of BRD and then rewrite the lede to take these things into account. Feel free to discuss here or to tweak my new version, or even to revert my new version to the original version, but please don't restore your version unless and until there arises a consensus on the talk page to do so. Duoduoduo (talk) 17:39, 30 January 2013 (UTC)[reply]

I really like the most-recent version. TheSeven (talk) 17:44, 31 January 2013 (UTC)[reply]

Wide sense stationarity for the AR(1) model : a contradiction ?

[edit]

It is said that "the AR(1) model with are not stationary". If one defines an AR(1) process a stationnary process for which, given a white noise , the equation is true, then clearly when the process defined by , where the infinite sum is a mean square limit ( limit), is a stationary solution of the equation. This is a contradiction with the non existence of a stationary AR(1) process whenever

Response: The will be stationary, but not causal: it relies on future shocks to compute the present value.

Doesn't make sense. The last equation says that Xt depends on future values of epsilon. That conflicts with the AR(1) under discussion. Clearly OR. Loraof (talk) 21:24, 3 July 2016 (UTC)[reply]
In other words, while the forward-looking "solution" does give an identity when plugged into the AR equation and hence is a solution in that narrow sense, it is not a solution of the process because the process includes the direction of time, going from past to future. Loraof (talk) 03:32, 4 July 2016 (UTC)[reply]
It is true that this interpretation is unphysical. However, this does not change anything about the fact that the model itself is stationary. Causality and stationarity are related, yet not identical. Nmdwolf (talk) 10:53, 21 December 2022 (UTC)[reply]
[edit]

Hello fellow Wikipedians,

I have just modified one external link on Autoregressive model. Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:

When you have finished reviewing my changes, please set the checked parameter below to true or failed to let others know (documentation at {{Sourcecheck}}).

This message was posted before February 2018. After February 2018, "External links modified" talk page sections are no longer generated or monitored by InternetArchiveBot. No special action is required regarding these talk page notices, other than regular verification using the archive tool instructions below. Editors have permission to delete these "External links modified" talk page sections if they want to de-clutter talk pages, but see the RfC before doing mass systematic removals. This message is updated dynamically through the template {{source check}} (last update: 5 June 2024).

  • If you have discovered URLs which were erroneously considered dead by the bot, you can report them with this tool.
  • If you found an error with any archives or the URLs themselves, you can fix them with this tool.

Cheers.—InternetArchiveBot (Report bug) 07:55, 22 October 2016 (UTC)[reply]

Multiplicities in characteristic polynomial

[edit]

In the first line of the section "Characteristic polynomial" there is currently a "citation needed" tag with reason given as "a_k not defined as seems wrong." I think the form

is correct provided all roots of the characteristic polynomial

have multiplicity 1. That being said, if some roots have multiplicity , then the formula may fail. Suppose for are distinct roots of the characteristic polynomial with multiplicies . Then the general form of autocorrelation function is

Below I will give a proof for this. In applications it is probably okay to assume multiplicity = 1 as higher values are unlikely to occur, but I think it is probably worth to clarify that such assumptions are being made. Please let me know what you think.

Proof: By the autocorrelation version of the Yule-Walker equation, we have

for all . This is a degree- homogenous linear difference equation, and we have boundary conditions

If has roots with multiplicies , where , then it is straightforward to verify that a basis for the general solution is , for and . Thus

for all . The coefficients are determined by requiring that the boundary conditions be satisfied. Finally, by the symmetry of , we get the desired expression

Zxiong (talk) 07:56, 6 December 2018 (UTC)[reply]

I think you are correct, but I don't know a printed reference for this. Joanico (talk) 16:37, 4 July 2022 (UTC)[reply]