-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autocov incorrect? #273
Comments
I have looked at some textbooks, and both forms are in use (ie with denominators |
This is on purpose. I think it is the standard thing to do, e.g. it is the estimator in Brockwell and Davis and it is what R does. Notice that the |
What is the data generating process and what is the sample size in those examples? |
T = 100
fs = 10
F = [1,3]
t = range(0,step=1/fs,length=T)
y = sum(sin.(2π*f .* t .+ 2π*rand()) for f in F) .+ 0.1 .* randn.() |
Brockwell and Davis does discuss this, and they propose the use of |
The The only real solution is something like #774, I think. |
Closed as duplicate of #774 |
Consider an alternating sequence of
1
and-1
, which has autocovariances1
and-1
at even and odd lags.But
I wonder if one should divide by the number of elements in the calculation instead of the length of the whole sequence.
The text was updated successfully, but these errors were encountered: