You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DIckey Fuller test breaks on constant values #8471
Hi @bashtage and @Fleyderer , I took a swing at this. Full transparency - this is essentially my first time trying to make a contribution to an open source project. I did the TDD process (new failing test, minimal code change to pass test) and pushed the change here:
It fixes this super specific issue of adfuller(np.full(8, 5.0)) but I'm happy to keep working on the code to generalize it. Let me know what you think about this and if I can/should open a PR or make further code changes.
Activity
bashtage commentedon Oct 27, 2022
The test isn't well defined if the residual variance is 0. Ideally this would be caught and a meaningful exception raised.
BUG: Dickey Fuller constant values (issue statsmodels#8471 )
athompson1991 commentedon Nov 23, 2022
Hi @bashtage and @Fleyderer , I took a swing at this. Full transparency - this is essentially my first time trying to make a contribution to an open source project. I did the TDD process (new failing test, minimal code change to pass test) and pushed the change here:
https://github.com/athompson1991/statsmodels/tree/issue-8471-dickey-fuller-fix
It fixes this super specific issue of
adfuller(np.full(8, 5.0))but I'm happy to keep working on the code to generalize it. Let me know what you think about this and if I can/should open a PR or make further code changes.BUG: Dickey Fuller constant values (issue statsmodels#8471 )
BUG: Dickey Fuller constant values (issue statsmodels#8471 )
athompson1991 commentedon Nov 24, 2022
Update: Created a pull request: #8537
BUG: Dickey Fuller issue statsmodels#8471 error message fix
BUG: Dickey Fuller constant values (issue statsmodels#8471 )
Merge pull request #8537 from athompson1991/issue-8471-dickey-fuller-fix