Published August 30, 2018 | Version v1

Flexible models of holiday lift

  • 1. Revionics

Description

Holidays often have a strong influence on time series data. Popular methods for modeling holiday effects involve using indicator variables on official holiday dates or cyclical trigonometric indicators such as Fourier transforms. However, these can often fail to capture irregular variations common among holiday effects such as offset from the official date, sharpness, flatness, or asymmetry around the peak. We introduce a model of holiday effects as a function of continuous time and parameters determining form and intensity. We implement this model in Stan and show how it infers posterior distributions explaining observed and holdout data for simulated and real examples of various forms of holiday effects.

Notes

Code and data available at github.com/stan-dev/stancon_talks

Files

Files (1.5 MB)

Name Size Download all
md5:dbccf77258995c58afced84f9d7906ac
1.5 MB Download