Automatic algorithms for time series forecasting 2015-7-4

I will describe some algorithms for automatically forecasting univariate time series that have been developed over the last 20 years. The role of forecasting competitions in comparing the forecast accuracy of these algorithms will also be discussed.

2.1. Point forecasts for all methods
2.2. Innovations state space models
2.3. State space models for all exponential smoothing methods 6
2.4. Estimation

7

2.5. Model selection 7
2.6. Automatic forecasting 8

using a restricted set of exponential smoothing models, and demonstrated that the methodology is
particularly good at short term forecasts (up to about 6 periods ahead), and especially for
seasonal short-term series (beating all other methods in the competitions for these series).

3. ARIMA models

3.1. Choosing the model order using unit root tests and the AIC
3.2. A step-wise procedure for traversing the model space

Consequently, it is often not feasible to simply fit every potential model and choose the one with the lowest AIC. Instead, we need a way of traversing the space of models efficiently in order to arrive at the model with the
lowest AIC value.

We propose a step-wise algorithm as follows. 11
The algorithm is guaranteed to return a valid model because the model space is finite and at least one of the starting models will be accepted (the model with no AR or MA parameters).The selected model is used to produce forecasts.

3.3. Comparisons with exponential smoothing 11

The exponential smoothing state space models are all non-stationary。The philosophy of exponential smoothing is that the world is non-stationary.So if a stationary model is required, ARIMA models are better.

One advantage of the exponential smoothing models is that they can be non-linear. So
time series that exhibit non-linear characteristics including heteroscedasticity may be better
modelled using exponential smoothing state space models.

这样的时间序列显示出非线性特性,包括异使用指数平滑状态空间模型可以更好地来模拟。

It may be thought that the larger model class is advantageous.
The smaller exponential smoothing class is sufficiently rich to capture the dynamics of almost all
real business and economic time series.
较小的指数平滑类是足够丰富捕获几乎所有的动态真正的商业和经济时间序列。

4.4. The forecast() function

We also define a default predict() method which is used when no existing predict() function exists, and calls the relevant forecast() function. Thus, predict() methods parallel forecast() methods, but the latter provide consistent output that is more useable.

4.5. The forecast class
4.6. Other functions

croston() implements Croston’s (1972) method for intermittent demand forecasting。
theta() provides forecasts from the Theta method (Assimakopoulos and Nikolopoulos 2000).
meanf() returns forecasts based on the historical mean.
rwf() gives “na¨ıve” forecasts equal to the most recent observation assuming a random walk model. This function also allows forecasting using a random walk with drift.
tsdisplay() provides a time plot along with an ACF and PACF.
seasonplot() produces a seasonal plot as described in Makridakis et al. (1998).

4. The forecast package

4.1. Implementation of the automatic exponential smoothing algorithm

Although there is a lot of computation involved, it can be handled remarkably quickly on
modern computers. Each of the forecasts shown in Figure 1 took no more than a few seconds
on a standard PC. The US electricity generation series took the longest as there are no analytical prediction intervals available for the ETS(M,Md,N) model. Consequently, the prediction intervals for this series were computed using simulation of 5000 future sample paths.

Although it is nowhere documented, it appears that the prediction intervals produced by predict() for an object of class HoltWinters are based on an equivalent ARIMA model in the case of the (N,N), (A,N) and (A,A) methods, assuming additive errors.
虽然它是不通记载,看来由预测()用于类HoltWinters的目的所产生的预测间隔是基于在第(N,N),(A,N)和的情况下的等效ARIMA模型(A,A)的方法,假设附加误差。

These prediction intervals are equivalent to the prediction intervals that arise from the (A,N,N), (A,A,N) and (A,A,A) state space models.
这些预测区间是相当于起源于(A,N,N),(A,A,N)和(A,A,A)状态空间模型的预测区间。
For the (A,M) method, the prediction interval provided by predict() appears to be based on Chatfield and Yar (1991) which is an approximation to the true prediction interval arising from the (A,A,M) model. Prediction intervals with multiplicative errors are not possible using the HoltWinters() function.
对于(A,M)的方法,通过预测提供的预测区间()似乎是基于查特菲尔德和亚尔(1991年),这是一个近似的(A,A,M)模型所产生的真正的预测区间。预测区间与乘法错误是不可能使用HoltWinters()函数。

Prediction intervals with multiplicative errors are not possible using the HoltWinters() function.
预测区间与乘法错误是不可能使用HoltWinters()函数。

4.2. The HoltWinters() function
4.3. Implementation of the automatic ARIMA algorithm
Functional time series with applications in demography

Abstract:Functional time series are curves that are observed sequentially in time, one curve being observed in each time period. In demography, examples include curves formed by annual death rates as a function of age, or annual fertility rates as a function of age. In finance, functional time series can occur in the form of bond yield curves, for example, with each curve being the yield of a bond as a function of the maturity of a bond.
I will discuss methods for describing, modelling and forecasting such functional time series data. Challenges include:
developing useful graphical tools (I will illustrate a functional version of the boxplot);
dealing with outliers (e.g., death rates have outliers in years of wars or epidemics);
cohort effects (how can we identify and allow for these in the forecasts);
synergy between groups (e.g, we expect male and female mortality rates to evolve in a similar way in the future, and we expect different types of yield curves to behave similarly over time);
deriving prediction intervals for forecasts;
how to combine mortality and fertility forecasts to obtain forecasts of the total population;
how to use these ideas to simulate the age-structure of future populations and use the results to analyse proposed government policies.

Lectures:
Tools for functional time series analysis [Slides]
Automatic time series forecasting [Slides]
Forecasting functional time series [Slides]
Connections, extensions and applications [Slides]
Forecasting functional time series via PLS [Slides]
Coherent functional forecasting [Slides]
Common functional principal components [Slides]
Stochastic population forecasting [Slides]

Forecasting functional time series

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 212,029评论 6 492
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 90,395评论 3 385
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 157,570评论 0 348
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 56,535评论 1 284
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 65,650评论 6 386
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 49,850评论 1 290
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,006评论 3 408
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,747评论 0 268
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,207评论 1 303
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,536评论 2 327
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,683评论 1 341
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,342评论 4 330
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,964评论 3 315
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,772评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,004评论 1 266
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,401评论 2 360
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,566评论 2 349

推荐阅读更多精彩内容

  • 从来,都没有写日记的习惯,可是,随着时间慢慢流逝,很多有趣的故事,就都忘记了。现在工作繁忙,事情越来越多,怕这些事...
    半扇木窗阅读 241评论 0 0
  • 悦悦乐阅读 215评论 0 0