There is an error that needs to be corrected

54 views
Skip to first unread message

雅客

unread,
Sep 6, 2022, 7:19:10 AM9/6/22
to pystatsmodels
statsmodels.graphics.tsaplots.plot_pacf

Theoretically, the parameter of this function should be :`min(nobs//2-1, np.ceil(10*np.log10(nobs)))`.
But actually, it's written as `np.ceil(10*np.log10(nobs))`.
Therefore, this may lead to ValueError: Can only compute partial correlations for lags up to 50% of the sample size.
Reply all
Reply to author
Forward
0 new messages