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

Failing tests for ADF/KPSS #364

Closed

Conversation

tomzx
Copy link
Contributor

@tomzx tomzx commented Apr 8, 2020

We're currently encountering a few exceptions we're not sure how to handle.

I've created a few tests that cover those cases. Help to fix those would be appreciated!

@pep8speaks
Copy link

pep8speaks commented Apr 8, 2020

Hello @tomzx! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 496:23: E226 missing whitespace around arithmetic operator
Line 502:1: E302 expected 2 blank lines, found 1
Line 508:1: E305 expected 2 blank lines after class or function definition, found 1

Comment last updated at 2020-04-08 21:39:47 UTC

@bashtage
Copy link
Owner

bashtage commented Apr 8, 2020

Should all be errors, just more meaningful ones. You can't run even the most basic DF test with 1 or 2 data points.

@tomzx
Copy link
Contributor Author

tomzx commented Apr 8, 2020

Those are simplified versions of the issue encountered. You can change the test to [0]*100 if you prefer, the issue will also be present. We discovered this issue while having a time series such as [0]*64+[1].

@tomzx tomzx force-pushed the tr/fixes/exception-in-adf-kpss branch from d7205b6 to 270ac73 Compare April 8, 2020 21:39
@bashtage
Copy link
Owner

bashtage commented Apr 8, 2020

I think that one should also usually error since I think the regression needed will be singular, or may produce a residual variance of 0 depending on the test. A better error would be better but I think error seems correct.

bashtage added a commit that referenced this pull request Apr 9, 2020
Improve error message when user attempt to perform unitroot test
that is infeasible due to singular regressor matrices or short
samples

closes #364
bashtage added a commit that referenced this pull request Apr 9, 2020
Improve error message when user attempt to perform unitroot test
that is infeasible due to singular regressor matrices or short
samples

closes #364
@bashtage
Copy link
Owner

bashtage commented Apr 9, 2020

After #365 will see InvalidTestException

bashtage added a commit that referenced this pull request Apr 13, 2020
Improve error message when test cannot be run due to issues
in user provided data

xref #364
bashtage added a commit that referenced this pull request Apr 13, 2020
Improve user-facing exceptions in Phillips-Perron test

xref #364
bashtage added a commit that referenced this pull request Apr 13, 2020
Improve user-facing exceptions in KPSS test

xref #364
bashtage added a commit that referenced this pull request Apr 14, 2020
Improve user-facing exceptions in Zivot-Andrews test

xref #364
bashtage added a commit that referenced this pull request Apr 14, 2020
Improve user-facing exceptions in Zivot-Andrews test

xref #364
bashtage added a commit that referenced this pull request Apr 14, 2020
Improve error message when test cannot be run due to issues
in user provided data

xref #364
bashtage added a commit that referenced this pull request Apr 14, 2020
Improve user-facing exceptions in Phillips-Perron test

xref #364
bashtage added a commit that referenced this pull request Apr 14, 2020
Improve user-facing exceptions in KPSS test

xref #364
bashtage added a commit that referenced this pull request Apr 14, 2020
Improve user-facing exceptions in Zivot-Andrews test

xref #364
bashtage added a commit that referenced this pull request Apr 14, 2020
Improve user-facing exceptions in the variance-ratio test

closes #364
@bashtage bashtage closed this in f90399d Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants