Skip to content

strange seasonal result #3

@alespour

Description

@alespour

Hi, I'm trying to use this library, but I must be misunderstanding something. I'm getting weird seasonal and residual series from Decompose.

I have a weekly time series that decomposes just fine with R's mstl or stl. However, with stl.Decompose, the residual series looks like what I'd expect to be seasonal, and seasonal is completely strange.

I'm sure I do something wrong, but cannot figure it out. Is there anything I do wrong? Thank you.

R (x %>% ts(freq=168) %>% stl(s.window=13; mstl() gives similar result):
image

Go (stl.Decompose(x, 168, 35, sql.Additive(),stl.WithRobustIter(0),stl.WithIter(2))) seasonal:
image

testdata.csv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions