A standard statistical test to check if an autocorrelation is equal to 0 at the 95% confidence level is to see if the magnitude of the autocorrelation is greater than 1.96/sqrt(T), where T is the number of data points you have. Is it possible to have the 1.96/sqrt(T) threshold plotted on the plot_acf graph? At first I thought that's what the blue shaded region was, but if you look at the example in the tutorial here you'll see that the blue threshold varies over time.
Josef
On Thu, Jan 12, 2017 at 4:19 PM, <josef...@gmail.com> wrote:On Thu, Jan 12, 2017 at 3:08 PM, <nak3...@gmail.com> wrote:A standard statistical test to check if an autocorrelation is equal to 0 at the 95% confidence level is to see if the magnitude of the autocorrelation is greater than 1.96/sqrt(T), where T is the number of data points you have. Is it possible to have the 1.96/sqrt(T) threshold plotted on the plot_acf graph? At first I thought that's what the blue shaded region was, but if you look at the example in the tutorial here you'll see that the blue threshold varies over time.
I don't think I conveyed what I wanted to convey. Here's an example from R (found on this website). Observe the dashed lines indicating the zero threshold.
On Thu, Jan 12, 2017 at 7:05 PM, <nak3...@gmail.com> wrote:I don't think I conveyed what I wanted to convey. Here's an example from R (found on this website). Observe the dashed lines indicating the zero threshold.Ok, that's the question which confidence intervals to compute.I don't find any information after searching a bit. The code predates pull requests and I don't see a discussion on github. Brief google search seems to favor var = 1/N.Skipper added this and I don't remember based on which reference.As far as a vaguely remember, there is an issue about the alternative in the test statistic for creating the confidence interval.I don't have a time series text book handily available to check.Brief check with the Stata ts manual: It seems to have the same variance and confidence interval as statsmodels based on a MA process, referring to Brockwell and Davis (2002) page 94I never checked the details or arguments for different confidence intervals, and my Brockwell and Davis is on a dead notebook.If there is a justification to prefer the 1/N confidence interval, then we could add an option for it.
On Thu, Jan 12, 2017 at 7:44 PM, <josef...@gmail.com> wrote:On Thu, Jan 12, 2017 at 7:05 PM, <nak3...@gmail.com> wrote:I don't think I conveyed what I wanted to convey. Here's an example from R (found on this website). Observe the dashed lines indicating the zero threshold.Ok, that's the question which confidence intervals to compute.I don't find any information after searching a bit. The code predates pull requests and I don't see a discussion on github. Brief google search seems to favor var = 1/N.Skipper added this and I don't remember based on which reference.As far as a vaguely remember, there is an issue about the alternative in the test statistic for creating the confidence interval.I don't have a time series text book handily available to check.Brief check with the Stata ts manual: It seems to have the same variance and confidence interval as statsmodels based on a MA process, referring to Brockwell and Davis (2002) page 94I never checked the details or arguments for different confidence intervals, and my Brockwell and Davis is on a dead notebook.If there is a justification to prefer the 1/N confidence interval, then we could add an option for it.
related difference between Stata and R, and how to replicate Stata's Bartlett confidence intervals in R
http://stats.stackexchange.com/questions/57577/correlogram-in-r-like-in-stata