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: outlier robust seasonal_decompose #4399

Open
josef-pkt opened this issue Mar 27, 2018 · 0 comments
Open

ENH: outlier robust seasonal_decompose #4399

josef-pkt opened this issue Mar 27, 2018 · 0 comments

Comments

@josef-pkt
Copy link
Member

related #4044 using non- or semi-parametric methods

(just an idea, no references for now)
Replace the estimators for the components with outlier robust methods.
This is a similar idea as using lowess for the trend, i.e. robust non-parametric smoothing, but also applied to seasonal pattern.

seasonal_decompose uses filters that are not robust to outliers, e.g. mean for seasonal component and convolution filter for trend. Outliers, either isolated or an episode or outliers can or will distort the seasonal pattern and the local trend.

I have seen some plots on stackoverflow or blog post where this seems to happen.

Additionally, the default window length looks often too small, and I haven't seen users overriding the filt window. A short window increases the local effect of an outlier, although it doesn't spread out the effect as much as a larger window. Also short term fluctuations over several periods will be reflected in the local trend.

One possibility to make changing and experimenting with the window length easier, would be to accept an integer for filt that defines the window length used with the current uniform kernel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant