Skip to content
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

sm.tsa.acovf fails when both unbiased and fft are True #1187

Closed
kyleabeauchamp opened this issue Nov 16, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@kyleabeauchamp
Copy link
Contributor

commented Nov 16, 2013

We probably need to add a note and an exception for when users specify both fft and unbiased. Alternatively, we could just make this parameter combo work.


import numpy as np
import statsmodels.api as sm

q = np.random.normal(size=100)
F = sm.tsa.acovf(q, demean=False, unbiased=True, fft=True)

--> 310         acov = np.fft.ifft(Frf*np.conjugate(Frf))[:nobs]/d
    311         return acov.real
    312     else:

ValueError: operands could not be broadcast together with shapes (100) (199) 

kyleabeauchamp added a commit to kyleabeauchamp/statsmodels that referenced this issue Nov 16, 2013

josef-pkt added a commit that referenced this issue Dec 18, 2013

@josef-pkt josef-pkt closed this in cc04669 Dec 18, 2013

PierreBdR pushed a commit to PierreBdR/statsmodels that referenced this issue Sep 2, 2014

PierreBdR pushed a commit to PierreBdR/statsmodels that referenced this issue Sep 2, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.