Skip to content

ENH: Alternative exponential smoothing approach - #4183

Closed
ChadFulton wants to merge 1 commit into
statsmodels:masterfrom
ChadFulton:rf-es
Closed

ChadFulton wants to merge 1 commit into
statsmodels:masterfrom
ChadFulton:rf-es

Conversation

@ChadFulton

@ChadFulton ChadFulton commented Dec 27, 2017 •

Copy link
Copy Markdown
Member

This PR presents an alternative approach to the exponential smoothing models along the lines of my comment #3817 (comment).

I want to emphasize that we do not have to use my version, and I am perfectly happy with working with / improving the version currently in Statsmodels. However, in my mind, the version in this PR is more in line with the way most models are done in Statsmodels, and, at least to me, it is more straightforward

It has the added benefit of Cython-based recursions, but of course we could possibly retrofit the current version with Cython also.

@tvanzyl any thoughts you have would be appreciated, and don't hesitate to be critical.

Remaining TODOs:

  • For complex models (e.g. the seasonal models), the optimizer doesn't seem to be able to find parameters that are as good as Hyndman's R package, although this also seems to be the case with the version currently in Statsmodels.
  • more unit test coverage
  • replicate the example notebook

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.1%) to 81.96% when pulling 2c01c29 on ChadFulton:rf-es into 64dc3ea on statsmodels:master.

@josef-pkt

Copy link
Copy Markdown
Member

This pull request introduces 2 alerts and fixes 2 - view on lgtm.com

new alerts:

  • 1 for Mismatch between signature and use of an overridden method
  • 1 for Potentially uninitialized local variable

fixed alerts:

  • 2 for Module-level cyclic import

Comment posted by lgtm.com

@josef-pkt

Copy link
Copy Markdown
Member

I think we leave this for 0.10 so we have time to decide on the design and whether we want one or two versions.

AFAICS: the merged version has as extra features box-cox transformation and fixing some parameters.

@ChadFulton

Copy link
Copy Markdown
Member Author

That sounds fine.

AFAICS: the merged version has as extra features box-cox transformation and fixing some parameters.

That is correct.

@ChadFulton ChadFulton added this to the 0.10 milestone Apr 21, 2018
@ChadFulton

Copy link
Copy Markdown
Member Author

Given #4845 we should probably make some decision about this approach to the exponential smoothing models.

I still personally prefer this PR to what we currently have, but there's no reason that it has to be in Statsmodels itself. I'd be happy to alternatively just break it out into its own little package, for example.

@ChadFulton

Copy link
Copy Markdown
Member Author

Since we already have fast working code in Statsmodels, I'll just close this and put this approach in a separate package. Of course we can revisit later if there's any reason to.

@ChadFulton ChadFulton closed this Sep 5, 2018
@josef-pkt

Copy link
Copy Markdown
Member

I thought I had replied here (below is roughly what I had written before).

I think it would be good to have a full Model for it in statsmodels, one that has the usual results based on a MLE or QMLE.
The current exponential smoothing will be a forecasting tool, but the full model will provide more results, diagnostics and inference.

There are other places where we have different classes for the same or overlapping underlying models like GLM/discrete/OLS,

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants