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

Handling Missing Values #4

Open
Pythagoras19 opened this issue Oct 19, 2017 · 1 comment
Open

Handling Missing Values #4

Pythagoras19 opened this issue Oct 19, 2017 · 1 comment

Comments

@Pythagoras19
Copy link

Pythagoras19 commented Oct 19, 2017

Hello,

I would like to know how the issue with Nan values has been handled within the code. By ignoring the missing data or simply by interpolation?

Regards,

@hafen
Copy link
Owner

hafen commented Oct 19, 2017

It is doing it by interpolation (using loess), but it works quite well (when there really is a regular seasonal pattern) because it interpolates both in the seasonal and trend domains.

A good reference on exactly how it's done is in the original paper.

As an example, see the image that's in the README (reposted below). The top panel shows the original series which is missing 2 years of data. The magenta color in the subsequent panels is the imputed component values based on interpolation. As you can see, both the seasonal and trend behavior is imputed.

image

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

No branches or pull requests

2 participants