question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ENH] add ExponentialSmoothing predictor which is able to calculate confidence intervals

See original GitHub issue

Is your feature request related to a problem? Please describe. Sktime does not have exponential smoothing predictor which is able to calculate confidence intervals.

Describe the solution you’d like Include ExponentialSmoothing from statsmodels.statespace in sktime predictors as StateSpaceExponentialSmoothing.

Describe alternatives you’ve considered

Additional context At the moment sktime includes Holt Winter’s exponential smoothing implementation that covers multiplicative trend and seasonal components, but can output pointwise estimations only.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ltsaprouniscommented, Aug 31, 2021

(Jumping in with some statsmodels detective work)

I had a look at the code and it looks like statsmodels are calculating prediction intervals for state space exponential smoothing models using either the analytical formulas that are based on the the forecast variance (formulas are available for a subset of ETS models) or the simulation technique (i.e. create multiple simulated forecasts by sampling the error terms from the appropriate distribution). This is consistent with the literature (checked Hyndman et al. (2008))

  • The function that calculates the forecast variance using the available analytical formulas is _relative_forecast_variance
  • The function that calculates the prediction intervals is pred_int (formulas or simulations)

@fkiraly - slightly off-topic but I think adding a simulate method for forecasters that support generating simulated forecasts will be a good feature and we can then have have a single function that generates the prediction intervals using simulations. Example from statsmodels -> simulate

The benefits of using simulations for prediction intervals as well as all the available theoretical formulas for ETS models are in Chapter 6 of Hyndman et al. (2008)

Ref: Hyndman, R. J., Koehler, A. B., Ord, J. K., & Snyder, R. D. (2008). Forecasting with exponential smoothing: The state space approach. Springer-Verlag. http://www.exponentialsmoothing.net

0reactions
victordremovcommented, Aug 30, 2021

Thank you for pointing this out. The documentation is definitely calls them confidence intervals, but I guess I’d better check the statsmodels code to be sure.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ENH: Add Prediction Intervals to Holt-Winters class #6359
Please describe I'd like for statsmodels holt-winters (HW) class to calculate prediction intervals (PI). Describe the solution you'd like ...
Read more >
Confidence intervals for exponential smoothing
I'm using exponential smoothing (Brown's method) for forecasting. The forecast can be calculated for one or more steps (time intervals). Is ...
Read more >
Exponential Smoothing with Confidence Intervals - YouTube
Demonstrates Exponential Smoothing using a SIPmath model. SIPmath available free at ProbabilityManagement.Org. Contact me for a copy of the ...
Read more >
Release 0.12.0 - Statsmodels
Hypothesis tests, confidence intervals and power functions have been added for proportions from two independent samples.
Read more >
How to take confidence interval of statsmodels.tsa.holtwinters ...
ETSModel includes more parameters and more functionality than ExponentialSmoothing . To calculate confidence intervals, I suggest you to use ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found