A blog by Rob J Hyndman 

Twitter Gplus RSS

Posts Tagged ‘forecasting’:


Global Energy Forecasting Competition

Published on 14 May 2012

Fore­cast­ing com­pe­ti­tions are a great way to test new meth­ods and obtain a real­is­tic eval­u­a­tion of how good they are. So I’m delighted that the IEEE is orga­niz­ing an energy fore­cast­ing com­pe­ti­tion as out­lined by Tao Hong below.

 
No Comments  comments 

Measuring time series characteristics

Published on 2 May 2012

A few years ago, I was work­ing on a project where we mea­sured var­i­ous char­ac­ter­is­tics of a time series and used the infor­ma­tion to deter­mine what fore­cast­ing method to apply or how to clus­ter the time series into mean­ing­ful groups. The two main papers to come out of that project were: Wang, Smith and Hyn­d­man (2006) Characteristic-​​​​​​based clus­ter­ing for time series data. Data Min­ing and Knowl­edge Dis­cov­ery, 13(3), 335–364. Wang, Smith-​​​​Miles and Hyn­d­man (2009) “Rule induc­tion for fore­cast­ing method selec­tion: meta-​​​​​​learning the char­ac­ter­is­tics of uni­vari­ate time series”, Neu­ro­com­puting, 72, 2581–2594. I’ve since had a lot of requests for the code which one of my coau­thors has been help­fully email­ing to any­one who asked. But to make it eas­ier, we thought it might be help­ful if I post some updated code here. This is not the same as the R code we used in the paper, as I’ve improved it in sev­eral ways (so it will give dif­fer­ent results). If you just want the code, skip to the bot­tom of the post.

 
16 Comments  comments 

Forecasts and ggplot

Published on 23 March 2012

The fore­cast pack­age uses the base R graph­ics for all plots, but some peo­ple may pre­fer to use the nice graph­ics avail­able using the ggplot2 pack­age. In the fol­low­ing two posts, Frank Dav­en­port shows how it can be done: Plot­ting fore­cast() objects in ggplot part 1: Extract­ing the Data Plot­ting fore­cast() objects in ggplot part 2: Visu­al­ize Obser­va­tions, Fits, and Forecasts  

 
2 Comments  comments 

Exponential smoothing and regressors

Published on 28 February 2012

I have thought quite a lot about includ­ing regres­sors (i.e. covari­ates) in expo­nen­tial smooth­ing (ETS) mod­els, and I have done it a cou­ple of times in my pub­lished work. See my 2008 expo­nen­tial smooth­ing book (chap­ter 9) and my 2008 Tourism Man­age­ment paper. How­ever, there are some the­o­ret­i­cal issues with these approaches, which have come to light through the research of Ahmad Farid Osman, one of our PhD stu­dents at Monash Uni­ver­sity. Basi­cally, they are never fore­castable in the sense explained in Sec­tion 10.2 my 2008 book (fore­casta­bil­ity is the ETS equiv­a­lent of invert­ibil­ity in ARIMA mod­els). Osman has attempted to repair the prob­lem by propos­ing a dif­fer­ent for­mu­la­tion from those in the above ref­er­ences. The only pub­lic descrip­tion of his pro­posed model is given by Osman and King in this pre­sen­ta­tion – sorry, they do have a full paper explain­ing their approach, but it is not pub­licly avail­able.  How­ever, the model is much messier than the for­mu­la­tion we put in our book, and although it avoids the fore­casta­bil­ity issues, I think it is more dif­fi­cult to inter­pret. Still, it’s a good attempt at a tough prob­lem, and there’s noth­ing else around that’s any bet­ter. So don’t expect any code for fit­ting ETS mod­els with regres­sors to appear in the fore­cast pack­age

(More)…

 
No Comments  comments 

Are we getting better at forecasting?

Published on 23 December 2011

I was inter­viewed recently for the Boston Globe. The inter­view was by email and I thought it might be use­ful to post here.

 
No Comments  comments 

Forecasting time series using R

Published on 16 December 2011

I gave this talk on Fore­cast­ing time series using R for the Mel­bourne Users of R Net­work (Mel­bURN) on Thurs­day 27 Octo­ber 2011. Slides Exam­ples Abstract I look at the var­i­ous facil­i­ties for time series fore­cast­ing avail­able in R, con­cen­trat­ing on the fore­cast pack­age. This pack­age imple­ments sev­eral auto­matic meth­ods for fore­cast­ing time series includ­ing fore­casts from ARIMA mod­els, ARFIMA mod­els and expo­nen­tial smooth­ing mod­els. I also look more gen­er­ally at how to go about fore­cast­ing non-​​​​seasonal data, sea­sonal data, sea­sonal data with high fre­quency, and sea­sonal data with mul­ti­ple fre­quen­cies. Exam­ples are taken from my own con­sult­ing expe­ri­ence. I give an overview of what’s pos­si­ble and avail­able and where it is use­ful, rather than give the math­e­mat­i­cal details of any spe­cific time series methods.

 
No Comments  comments 

Cyclic and seasonal time series

Published on 14 December 2011

These terms get con­fused all the time (e.g., this ques­tion on Cross​Val​i​dated​.com), and so I thought it might be help­ful to try to sum­ma­rize the dis­tinc­tion and some of the asso­ci­ated models.

 
1 Comment  comments 

Kaggle on TV

Published on 29 November 2011

It is good to see fore­cast­ing algo­rithms get­ting some main­stream expo­sure on ABC Cat­a­lyst. Update: See also this great talk by Jeremy Howard, a data sci­en­tist from Mel­bourne and now part of Kaggle.

 
No Comments  comments 

Help for forecasting practitioners

Published on 25 September 2011

I often get email from fore­cast­ers want­ing assis­tance. As much as I’d like to pro­vide a free fore­cast­ing advice ser­vice to the world, that’s not what I’m paid to do, and I choose to spend my unpaid time on other things. How­ever, there are some very help­ful resources avail­able for fore­cast­ing practitioners.

 
32 Comments  comments 

Time series cross-​​validation: an R example

Published on 26 August 2011

I was recently asked how to imple­ment time series cross-​​​​validation in R. Time series peo­ple would nor­mally call this “fore­cast eval­u­a­tion with a rolling ori­gin” or some­thing sim­i­lar, but it is the nat­ural and obvi­ous ana­logue to leave-​​​​one-​​​​out cross-​​​​validation for cross-​​​​sectional data, so I pre­fer to call it “time series cross-​​​​validation”.

 
7 Comments  comments