Skip to content

Expose statsmodels random_errors argument in ExponentialSmoothing.predict #2891

@bernhardschaefer

Description

@bernhardschaefer

Is your feature request related to a current problem? Please describe.
For num_samples > 1, ExponentialSmoothing.predict() calls HoltWintersResults.simulate with the call self.model.simulate(n, repetitions=num_samples, random_state=rng).
The simulate function has an additional argument random_errors to specify how the random errors should be obtained., e.g. by using another distribution function that should be fitted to the residuals or by directly sampling from the random errors.
This argument is currently not exposed.

Describe proposed solution
Add random_errors argument to ExponentialSmoothing.predict() and pass it to self.model.simulate

Describe potential alternatives
Creating a subclass of ExponentialSmoothing with a custom predict which is more of a workaround.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestUse this label to request a new feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Released

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions