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

[ENH] parameter estimators for stationarity - ADF and KPSS #4247

Merged
merged 5 commits into from Feb 28, 2023

Conversation

fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented Feb 19, 2023

This PR adds two parameter estimators for stationarity - ADF (Augmented Dickey-Fuller) and KPSS (Kwiatkowski-Phillips-Schmidt-Shin) tests, directly interfacing statsmodels.tsa.stattools.

Besides exposing them in the unified sktime interface, a fitted parameter stationary is added which tells the user whether the test considers the time series stationary.

This can be used, for instance, for conditional differencing in a pipeline where the boolean can be forwarded to an OptionalPassthrough.

This PR also contains some docstring fixes discovered elsewhere, in the context of this piece of work.

FYI @ngupta23, you might find this useful. I'll add a pipeline example to the docstring once all PR it would be conditional on are merged.

It would be apprecated if reviewers could check the logic - especially behind the boolean. E.g., as it is currently coded, one of the tests has "stationarity" as rejection, one as accepting the null - this is intentionally inconsistent.

@fkiraly fkiraly added interfacing algorithms Interfacing existing algorithms/estimators from third party packages enhancement Adding new functionality module:parameter-estimators parameter fitters and estimators labels Feb 19, 2023
@fkiraly fkiraly merged commit bb7a011 into main Feb 28, 2023
@fkiraly fkiraly deleted the param_est-stationarity branch February 28, 2023 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding new functionality interfacing algorithms Interfacing existing algorithms/estimators from third party packages module:parameter-estimators parameter fitters and estimators
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant