Skip to content

Holt-Winters/SES AICc formula ??? #4762

Closed

Description

@ahd506

aicc = aic + (2 * (k + 2) * (k + 3)) / (self.nobs - k - 3) #line 735 @holtwinters.py

VS

return -2. * llf + 2. * df_modelwc * nobs / (nobs - df_modelwc - 1.) #from eval measures

Activity

  1. amilyalways commented on Jul 14, 2018

    @amilyalways

    I meet the same problems. the formula of aicc leads to the "ZeroDivisionError: division by zero " error.

  2. josef-pkt commented on Jul 14, 2018

    @josef-pkt
    Member

    I looked a bit at the definition
    The aicc definition for holt-winters is in one of the writings by Hyndman, but I didn't see a reference that justifies it.
    The eval_measures definition is a reformulation of the standard aicc formula e.g. as shown in Wikipedia.

    If (self.nobs - k - 3) is not > zero, then the degrees of freedom is not large enough to get a meaningful aicc in this definition. I haven't checked how k is determined in this case. Hyndman just mentions that it includes all parameters, which would mean that the model is overparameterized to get reliable estimates of the parameters, i.e. not enough degrees of freedom.

  3. added 2 commits that reference this issue on Aug 7, 2018
    156b293
    63112cc
  4. added a commit that references this issue on Dec 23, 2018
    dacbbe1
  5. ritvikGarg-zz commented on Feb 18, 2019

    @ritvikGarg-zz

    I am facing the same issue.
    Anybody with the solution ?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions