Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Double Exponentially Smoothed Model (Holt linear model) #36

Open
wants to merge 45 commits into
base: master
Choose a base branch
from

Conversation

josepablocam
Copy link
Contributor

We implement a holt linear model (additive variant), which allows us to capture trend and level. Estimation of parameters implemented with 2 different optimization methods: BOBYQA (bounded optimization by quadratic optimization, derivative-free), and conjugate gradient descent.

The one point I want to highlight, in case I'm missing something obvious, or we want to leave as "unsupported operation" for this model: removeTimeDependentEffects seems to me to be a bit different here. The smoothed values t are a function of the original values at time t - 1, so given a series of length n, if we apply removeTimeDependentEffects, we can only really arrive at series of length n - 1. In this case, I'm simply filling in the last position with an estimate based off of the trend and levels (the components of Holt). Additionally, I've worked through the algebra various times, but the removeTimeDependentEffects, when solving for original values, seem to be slightly off and that error compounds. I believe I did the algebra correctly (and checked various times), but perhaps an extra set of eyes on this one wouldn't hurt.

jose.cambronero and others added 30 commits June 12, 2015 11:40
A couple of simple changes to get started: corrected
added EWMA functionality and tests
…on. Started work on gradient descent approach as well
@josepablocam josepablocam changed the title Double Exponentially Smoothed Model (Holt linear model) [WIP] Double Exponentially Smoothed Model (Holt linear model) Jul 17, 2015
@sryza sryza closed this Aug 3, 2015
@sryza sryza reopened this Aug 3, 2015
@sryza
Copy link
Owner

sryza commented Aug 3, 2015

Oops accidentally closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants