Forecasting: principles and practice. Rob J Hyndman 4 Hierarchical forecasting

Size: px
Start display at page:

Download "Forecasting: principles and practice. Rob J Hyndman 4 Hierarchical forecasting"

Transcription

1 Forecasting: principles and practice Rob J Hyndman 4 Hierarchical forecasting 1

2 Outline 1 Hierarchical and grouped time series 2 Optimal forecast reconciliation 3 hts package for R 4 Application: Australian tourism 5 Lab Session 5 2

3 Forecasting the PBS 3

4 ATC drug classification A Alimentary tract and metabolism B Blood and blood forming organs C Cardiovascular system D Dermatologicals G Genito-urinary system and sex hormones H Systemic hormonal preparations, excluding sex hormones and insulins J Anti-infectives for systemic use L Antineoplastic and immunomodulating agents M Musculo-skeletal system N Nervous system P Antiparasitic products, insecticides and repellents R Respiratory system S Sensory organs V Various 4

5 ATC drug classification 14 classes A Alimentary tract and metabolism 84 classes A10 Drugs used in diabetes A10B Blood glucose lowering drugs A10BA Biguanides A10BA02 Metformin 5

6 Australian tourism 6

7 Australian tourism Quarterly data on visitor night from 1998:Q1 2013:Q4 From: National Visitor Survey, based on annual interviews of 120,000 Australians aged 15+, collected by Tourism Research Australia. Split by 7 states, 27 zones and 76 regions (a geographical hierarchy) Also split by purpose of travel Holiday Visiting friends and relatives (VFR) Business Other 304 bottom-level series 6

8 Spectacle sales Monthly UK sales data from Provided by a large spectacle manufacturer Split by brand (26), gender (3), price range (6), materials (4), and stores (600) About 1 million bottom-level series 7

9 Hierarchical time series A hierarchical time series is a collection of several time series that are linked together in a hierarchical structure. Total A B C AA AB AC BA BB BC CA CB CC 8

10 Hierarchical time series A hierarchical time series is a collection of several time series that are linked together in a hierarchical structure. Total A B C AA AB AC BA BB BC CA CB CC Examples Pharmaceutical sales Tourism demand by state and region 8

11 Grouped time series A grouped time series is a collection of time series that can be grouped together in a number of non-hierarchical ways. Total Total A B X Y AX AY BX BY AX BX AY BY 9

12 Grouped time series A grouped time series is a collection of time series that can be grouped together in a number of non-hierarchical ways. Total Total A B X Y AX AY BX BY AX BX AY BY Examples Spectacle sales by brand, gender, stores, etc. Tourism by state and purpose of travel 9

13 The problem 1 How to forecast time series at all nodes such that the forecasts add up in the same way as the original data? 2 Can we exploit relationships between the series to improve the forecasts? 10

14 The problem 1 How to forecast time series at all nodes such that the forecasts add up in the same way as the original data? 2 Can we exploit relationships between the series to improve the forecasts? The solution 1 Forecast all series at all levels of aggregation using an automatic forecasting algorithm. (e.g., ets, auto.arima,...) 2 Reconcile the resulting forecasts so they add up correctly using least squares optimization (i.e., find closest reconciled forecasts to the original forecasts). 3 This is available in the hts package in R. 10

15 Outline 1 Hierarchical and grouped time series 2 Optimal forecast reconciliation 3 hts package for R 4 Application: Australian tourism 5 Lab Session 5 11

16 Hierarchical time series Total A B C 12

17 Hierarchical time series Total A B C y t : observed aggregate of all series at time t. y X,t : observation on series X at time t. b t : vector of all series at bottom level in time t. 12

18 Hierarchical time series Total A B C y t : observed aggregate of all series at time t. y X,t : observation on series X at time t. b t : vector of all series at bottom level in time t. y t = y t y A,t y B,t y C,t = Y A,t y B,t y C,t 12

19 Hierarchical time series Total A B C y t : observed aggregate of all series at time t. y X,t : observation on series X at time t. b t : vector of all series at bottom level in time t. y t = y t y A,t y B,t y C,t = } {{ } S y A,t y B,t y C,t }{{} b t y t = Sb t 12

20 Hierarchical time series Total A B C AX AY AZ BX BY BZ CX CY CZ 13

21 Hierarchical time series Total A B C y t = AX AY AZ BX BY BZ CX CY CZ y t y A,t y B,t y AX,t y C,t y AX,t y AY,t y AZ,t y AY,t y BX,t y AZ,t = y y BX,t BY,t y BZ,t y BY,t y y BZ,t CX,t y CY,t y CX,t y CZ,t y CY,t }{{} y CZ,t b t }{{} 13 S

22 Hierarchical time series Total A B C y t = AX AY AZ BX BY BZ CX CY CZ y t y A,t y B,t y AX,t y C,t y AX,t y AY,t y AZ,t y AY,t y BX,t y AZ,t = y y BX,t BY,t y BZ,t y BY,t y y BZ,t CX,t y CY,t y CX,t y CZ,t y CY,t }{{} y t = Sb t y CZ,t b t }{{} 13 S

23 Grouped time series AX AY A BX BY B X Y Total 14

24 Grouped time series AX AY A BX BY B y t = X Y Total y t y A,t y B,t y X,t y AX,t y Y,t = y AY,t y AX,t y BX,t y AY,t y BY,t }{{} y BX,t b t y BY,t }{{} S 14

25 Grouped time series AX AY A BX BY B y t = X Y Total y t y A,t y B,t y X,t y AX,t y Y,t = y AY,t y AX,t y BX,t y AY,t y BY,t }{{} y BX,t b t y BY,t }{{} S y t = Sb t 14

26 Hierarchical and grouped time series Every collection of time series with aggregation constraints can be written as where y t = Sb t y t is a vector of all series at time t b t is a vector of the most disaggregated series at time t S is a summing matrix containing the aggregation constraints. 15

27 Forecasting notation Let ŷ n (h) be vector of initial h-step forecasts, made at time n, stacked in same order as y t. 16

28 Forecasting notation Let ŷ n (h) be vector of initial h-step forecasts, made at time n, stacked in same order as y t. (In general, they will not add up.) 16

29 Forecasting notation Let ŷ n (h) be vector of initial h-step forecasts, made at time n, stacked in same order as y t. (In general, they will not add up.) Reconciled forecasts must be of the form: ỹ n (h) = SPŷ n (h) for some matrix P. 16

30 Forecasting notation Let ŷ n (h) be vector of initial h-step forecasts, made at time n, stacked in same order as y t. (In general, they will not add up.) Reconciled forecasts must be of the form: ỹ n (h) = SPŷ n (h) for some matrix P. P extracts and combines base forecasts ŷ n (h) to get bottom-level forecasts. S adds them up 16

31 Optimal combination forecasts Main result The best (minimum sum of variances) unbiased forecasts are obtained when P = (S Σ 1 h S) 1 S Σ 1 h, where Σ h is the h-step base forecast error covariance matrix. 17

32 Optimal combination forecasts Main result The best (minimum sum of variances) unbiased forecasts are obtained when P = (S Σ 1 h S) 1 S Σ 1 h, where Σ h is the h-step base forecast error covariance matrix. ỹ n (h) = S(S Σ 1 h S) 1 S Σ 1 ŷn(h) Problem: Σ h hard to estimate, especially for h > 1. Solutions: Ignore Σ h (OLS) Assume Σ h diagonal (WLS) [Default in hts] Try to estimate Σ h (GLS) 17 h

33 Features Covariates can be included in initial forecasts. Adjustments can be made to initial forecasts at any level. Very simple and flexible method. Can work with any hierarchical or grouped time series. Conceptually easy to implement: regression of base forecasts on structure matrix. 18

34 Outline 1 Hierarchical and grouped time series 2 Optimal forecast reconciliation 3 hts package for R 4 Application: Australian tourism 5 Lab Session 5 19

35 hts package for R hts: Hierarchical and Grouped Time Series Methods for analysing and forecasting hierarchical and grouped time series Version: Depends: R ( 3.2.0), forecast ( 8.1) Imports: SparseM, Matrix, matrixcalc, parallel, utils, methods, graphics, grd LinkingTo: Rcpp ( ), RcppEigen Suggests: testthat, knitr, rmarkdown Published: Author: Rob J Hyndman, Alan Lee, Earo Wang, Shanika Wickramasuriya Maintainer: Rob J Hyndman <Earo.Wang at gmail.com> BugReports: License: GPL ( 2) URL: 20

36 Example using R library(hts) # bts is a matrix containing the bottom level time series # nodes describes the hierarchical structure y <- hts(bts, nodes=list(2, c(3,2))) 21

37 Example using R library(hts) # bts is a matrix containing the bottom level time series # nodes describes the hierarchical structure y <- hts(bts, nodes=list(2, c(3,2))) Total A B AX AY AZ BX BY 21

38 Example using R library(hts) # bts is a matrix containing the bottom level time series # nodes describes the hierarchical structure y <- hts(bts, nodes=list(2, c(3,2))) Total A B AX AY AZ BX BY # Forecast 10-step-ahead using WLS combination method # with auto.arima() used at each node fc <- forecast(y, h=10, fmethod='arima') 22

39 forecast.gts() function Usage forecast(object, h, method = c("comb", "bu", "mo", "tdgsf", "tdgsa", "tdfp"), fmethod = c("ets", "rw", "arima"), weights = c("wls", "ols", "mint", "nseries"), covariance = c("shr","sam"), positive = TRUE, parallel = FALSE, num.cores = 2,...) Arguments object Hierarchical time series object of class gts. h Forecast horizon method Method for distributing forecasts within the hierarchy. fmethod Forecasting method to use weights Weights used for "optimal combination" method. covariance Shrinkage estimator or sample estimator for GLS covariance. positive If TRUE, forecasts are forced to be strictly positive parallel If TRUE, allow parallel processing num.cores If parallel = TRUE, specify how many cores to be used 23

40 Outline 1 Hierarchical and grouped time series 2 Optimal forecast reconciliation 3 hts package for R 4 Application: Australian tourism 5 Lab Session 5 24

41 Australian tourism 25

42 Australian tourism Domestic visitor nights Quarterly data: From: National Visitor Survey, based on annual interviews of 120,000 Australians aged 15+, collected by Tourism Research Australia. 25

43 Australian tourism Hierarchy: States (7) Zones (27) Regions (82) 25

44 Australian tourism Hierarchy: States (7) Zones (27) Regions (82) Base forecasts ETS (exponential smoothing) models 25

45 Base forecasts Domestic tourism forecasts: Total Visitor nights Year 26

46 Base forecasts Domestic tourism forecasts: NSW Visitor nights Year 26

47 Base forecasts Domestic tourism forecasts: VIC Visitor nights Year 26

48 Base forecasts Domestic tourism forecasts: Nth.Coast.NSW Visitor nights Year 26

49 Base forecasts Domestic tourism forecasts: Metro.QLD Visitor nights Year 26

50 Base forecasts Domestic tourism forecasts: Sth.WA Visitor nights Year 26

51 Base forecasts Domestic tourism forecasts: X201.Melbourne Visitor nights Year 26

52 Base forecasts Domestic tourism forecasts: X402.Murraylands Visitor nights Year 26

53 Base forecasts Domestic tourism forecasts: X809.Daly Visitor nights Year 26

54 Reconciled forecasts 27

55 Reconciled forecasts 27

56 Reconciled forecasts 27

57 Forecast evaluation Select models using all observations; Re-estimate models using first 12 observations and generate 1- to 8-step-ahead forecasts; Increase sample size one observation at a time, re-estimate models, generate forecasts until the end of the sample; In total 24 1-step-ahead, 23 2-steps-ahead, up to 17 8-steps-ahead for forecast evaluation. 28

58 Forecast evaluation Training sets Test sets h = 1 time 29

59 Forecast evaluation Training sets Test sets h = 1 time 29

60 Forecast evaluation Training sets Test sets h = 1 time 29

61 Forecast evaluation Training sets Test sets h = 1 time 29

62 Forecast evaluation Training sets Test sets h = 1 time 29

63 Forecast evaluation Training sets Test sets h = 1 time 29

64 Forecast evaluation Training sets Test sets h = 1 time 29

65 Forecast evaluation Training sets Test sets h = 1 time 29

66 Forecast evaluation Training sets Test sets h = 1 time 29

67 Forecast evaluation Training sets Test sets h = 1 time 29

68 Forecast evaluation Training sets Test sets h = 1 time 29

69 Forecast evaluation Training sets Test sets h = 1 time 29

70 Forecast evaluation Training sets Test sets h = 1 time 29

71 Forecast evaluation Training sets Test sets h = 1 time 29

72 Forecast evaluation Training sets Test sets h = 1 time 29

73 Forecast evaluation Training sets Test sets h = 1 time 29

74 Forecast evaluation Training sets Test sets h = 1 time 29

75 Forecast evaluation Training sets Test sets h = 1 time 29

76 Forecast evaluation Training sets Test sets h = 1 time 29

77 Forecast evaluation Training sets Test sets h = 1 time 29

78 Forecast evaluation Training sets Test sets h = 2 time 29

79 Forecast evaluation Training sets Test sets h = 3 time 29

80 Forecast evaluation Training sets Test sets h = 4 time 29

81 Forecast evaluation Training sets Test sets h = 5 time 29

82 Forecast evaluation Training sets Test sets h = 6 time 29

83 Hierarchy: states, zones, regions Forecast horizon RMSE h = 1 h = 2 h = 3 h = 4 h = 5 h = 6 Ave Australia Base Bottom WLS GLS States Base Bottom WLS GLS Regions Base Bottom WLS GLS

84 Outline 1 Hierarchical and grouped time series 2 Optimal forecast reconciliation 3 hts package for R 4 Application: Australian tourism 5 Lab Session 5 31

85 Lab Session 5 32

Fast computation of reconciled forecasts in hierarchical and grouped time series

Fast computation of reconciled forecasts in hierarchical and grouped time series Rob J Hyndman Fast computation of reconciled forecasts in hierarchical and grouped time series Total A B C AX AY AZ BX BY BZ CX CY CZ 1 Outline 1 Optimally reconciled forecasts 2 Fast computation 3 hts

More information

Optimal forecast reconciliation for big time series data

Optimal forecast reconciliation for big time series data Rob J Hyndman Optimal forecast reconciliation for big time series data Total A AA AB AC B BA BB BC C CA CB CC Follow along using R Requirements Install the hts package and its dependencies. Optimal forecast

More information

Forecasting hierarchical (and grouped) time series

Forecasting hierarchical (and grouped) time series George Athanasopoulos (with Rob J. Hyndman, Nikos Kourentzes and Fotis Petropoulos) Forecasting hierarchical (and grouped) time series Total A B C AA AB AC BA BB BC CA CB CC 1 Outline 1 Hierarchical and

More information

Rob J Hyndman. Visualizing and forecasting. big time series data. Victoria: scaled

Rob J Hyndman. Visualizing and forecasting. big time series data. Victoria: scaled Rob J Hyndman Visualizing and forecasting big time series data Victoria: scaled Outline 1 Examples of biggish time series 2 Time series visualisation 3 BLUF: Best Linear Unbiased Forecasts 4 Application:

More information

Fast computation of reconciled forecasts for hierarchical and grouped time series

Fast computation of reconciled forecasts for hierarchical and grouped time series ISSN 1440-771X Department of Econometrics and Business Statistics http://wwwbusecomonasheduau/depts/ebs/pubs/wpapers/ Fast computation of reconciled forecasts for hierarchical and grouped time series Rob

More information

Time series can often be naturally disaggregated

Time series can often be naturally disaggregated Optimally Reconciling Forecasts in a Hierarchy Rob J. Hyndman and George Athanasopoulos Preview We know that when forecasting the product hierarchy, reconciliation is invariably needed to make the sum

More information

Optimal combination forecasts for hierarchical time series

Optimal combination forecasts for hierarchical time series Optimal combination forecasts for hierarchical time series Rob J. Hyndman Roman A. Ahmed Department of Econometrics and Business Statistics Outline 1 Review of hierarchical forecasting 2 3 Simulation study

More information

Optimal forecast reconciliation for hierarchical and grouped time series through trace minimization

Optimal forecast reconciliation for hierarchical and grouped time series through trace minimization ISSN 1440-771X Department of Econometrics and Business Statistics http://business.monash.edu/econometrics-and-businessstatistics/research/publications Optimal forecast reconciliation for hierarchical and

More information

Package thief. R topics documented: January 24, Version 0.3 Title Temporal Hierarchical Forecasting

Package thief. R topics documented: January 24, Version 0.3 Title Temporal Hierarchical Forecasting Version 0.3 Title Temporal Hierarchical Forecasting Package thief January 24, 2018 Methods and tools for generating forecasts at different temporal frequencies using a hierarchical time series approach.

More information

Optimal forecast reconciliation for hierarchical and grouped time series through trace minimization

Optimal forecast reconciliation for hierarchical and grouped time series through trace minimization Optimal forecast reconciliation for hierarchical and grouped time series through trace minimization Shanika L Wickramasuriya Department of Econometrics and Business Statistics, Monash University, VIC 3800,

More information

Modelling and Forecasting Australian Domestic Tourism

Modelling and Forecasting Australian Domestic Tourism Modelling and Forecasting Australian Domestic Tourism George Athanasopoulos & Rob Hyndman Outline Background 1 Background 2 Data 3 Regression models 4 Exponential smoothing via innovations state space

More information

Forecasting in Hierarchical Models

Forecasting in Hierarchical Models Forecasting in Hierarchical Models Lucy Morgan Supervisor: Nikolaos Kourentzes 20 th February 2015 Introduction Forecasting is the process of making statements about events whose actual outcomes (typically)

More information

Package hts. June 21, 2017

Package hts. June 21, 2017 Title Hierarchical and Grouped Time Series Version 5.1.4 Package hts June 21, 2017 Methods for analysing and forecasting hierarchical and grouped time series. Depends R (>= 3.0.2), forecast (>= 8.1) Imports

More information

Package Tcomp. June 6, 2018

Package Tcomp. June 6, 2018 Package Tcomp June 6, 2018 Title Data from the 2010 Tourism Forecasting Competition Version 1.0.1 The 1311 time series from the tourism forecasting competition conducted in 2010 and described in Athanasopoulos

More information

Forecast UPC-Level FMCG Demand, Part III: Grouped Reconciliation

Forecast UPC-Level FMCG Demand, Part III: Grouped Reconciliation 2016 IEEE International Conference on Big Data (Big Data) Forecast UPC-Level FMCG Demand, Part III: Grouped Reconciliation Dazhi Yang, Gary S. W. Goh, Siwei Jiang and Allan N. Zhang Singapore Institute

More information

Forecasting hierarchical and grouped time series through trace minimization

Forecasting hierarchical and grouped time series through trace minimization ISSN 1440-771X Department of Econometrics and Business Statistics http://business.monash.edu/econometrics-and-business-statistics/research/publications Forecasting hierarchical and grouped time series

More information

Forecasting: principles and practice. Rob J Hyndman 1.1 Introduction to Forecasting

Forecasting: principles and practice. Rob J Hyndman 1.1 Introduction to Forecasting Forecasting: principles and practice Rob J Hyndman 1.1 Introduction to Forecasting 1 Outline 1 Background 2 Case studies 3 The statistical forecasting perspective 4 What can we forecast? 2 Resources Slides

More information

Using Temporal Hierarchies to Predict Tourism Demand

Using Temporal Hierarchies to Predict Tourism Demand Using Temporal Hierarchies to Predict Tourism Demand International Symposium on Forecasting 29 th June 2015 Nikolaos Kourentzes Lancaster University George Athanasopoulos Monash University n.kourentzes@lancaster.ac.uk

More information

Cross-temporal coherent forecasts for Australian tourism

Cross-temporal coherent forecasts for Australian tourism ISSN 1440-771X Department of Econometrics and Business Statistics http://business.monash.edu/econometrics-and-businessstatistics/research/publications Cross-temporal coherent forecasts for Australian tourism

More information

Forecasting: Principles and Practice. Rob J Hyndman. 1. Introduction to forecasting OTexts.org/fpp/1/ OTexts.org/fpp/2/3

Forecasting: Principles and Practice. Rob J Hyndman. 1. Introduction to forecasting OTexts.org/fpp/1/ OTexts.org/fpp/2/3 Rob J Hyndman Forecasting: Principles and Practice 1. Introduction to forecasting OTexts.org/fpp/1/ OTexts.org/fpp/2/3 Forecasting: Principles and Practice 1 Resources Slides Exercises Textbook Useful

More information

Forecasting with R A practical workshop

Forecasting with R A practical workshop Forecasting with R A practical workshop International Symposium on Forecasting 2016 19 th June 2016 Nikolaos Kourentzes nikolaos@kourentzes.com http://nikolaos.kourentzes.com Fotios Petropoulos fotpetr@gmail.com

More information

ECON 427: ECONOMIC FORECASTING. Ch1. Getting started OTexts.org/fpp2/

ECON 427: ECONOMIC FORECASTING. Ch1. Getting started OTexts.org/fpp2/ ECON 427: ECONOMIC FORECASTING Ch1. Getting started OTexts.org/fpp2/ 1 Outline 1 What can we forecast? 2 Time series data 3 Some case studies 4 The statistical forecasting perspective 2 Forecasting is

More information

Regularization in Hierarchical Time Series Forecasting With Application to Electricity Smart Meter Data

Regularization in Hierarchical Time Series Forecasting With Application to Electricity Smart Meter Data Regularization in Hierarchical Time Series Forecasting With Application to Electricity Smart Meter Data Souhaib Ben Taieb Monash Business School Monash University Jiafan Yu Dept. of CEE Stanford University

More information

Exponentially weighted forecasts

Exponentially weighted forecasts FORECASTING USING R Exponentially weighted forecasts Rob Hyndman Author, forecast Simple exponential smoothing Forecasting Notation: ŷ t+h t = y t+h y 1,...,y t point forecast of Forecast Equation: given

More information

Hierarchical Electricity Time Series Forecasting for Integrating Consumption Patterns Analysis and Aggregation Consistency

Hierarchical Electricity Time Series Forecasting for Integrating Consumption Patterns Analysis and Aggregation Consistency Hierarchical Electricity Time Series Forecasting for Integrating Consumption Patterns Analysis and Aggregation Consistency Yue Pang 1, Bo Yao 1, Xiangdong Zhou 1, Yong Zhang 2, Yiming Xu 1 and Zijing Tan

More information

CPSC 313 Introduction to Computability

CPSC 313 Introduction to Computability CPSC 313 Introduction to Computability Grammars in Chomsky Normal Form (Cont d) (Sipser, pages 109-111 (3 rd ed) and 107-109 (2 nd ed)) Renate Scheidler Fall 2018 Chomsky Normal Form A context-free grammar

More information

Grouped time-series forecasting: Application to regional infant mortality counts

Grouped time-series forecasting: Application to regional infant mortality counts Grouped time-series forecasting: Application to regional infant mortality counts Han Lin Shang and Peter W. F. Smith University of Southampton Motivation 1 Multiple time series can be disaggregated by

More information

Forecasting using R. Rob J Hyndman. 2.3 Stationarity and differencing. Forecasting using R 1

Forecasting using R. Rob J Hyndman. 2.3 Stationarity and differencing. Forecasting using R 1 Forecasting using R Rob J Hyndman 2.3 Stationarity and differencing Forecasting using R 1 Outline 1 Stationarity 2 Differencing 3 Unit root tests 4 Lab session 10 5 Backshift notation Forecasting using

More information

Final A. Problem Points Score Total 100. Math115A Nadja Hempel 03/23/2017

Final A. Problem Points Score Total 100. Math115A Nadja Hempel 03/23/2017 Final A Math115A Nadja Hempel 03/23/2017 nadja@math.ucla.edu Name: UID: Problem Points Score 1 10 2 20 3 5 4 5 5 9 6 5 7 7 8 13 9 16 10 10 Total 100 1 2 Exercise 1. (10pt) Let T : V V be a linear transformation.

More information

DEPARTMENT OF ECONOMETRICS AND BUSINESS STATISTICS

DEPARTMENT OF ECONOMETRICS AND BUSINESS STATISTICS ISSN 1440-771X ISBN 0 7326 1085 0 Unmasking the Theta Method Rob J. Hyndman and Baki Billah Working Paper 5/2001 2001 DEPARTMENT OF ECONOMETRICS AND BUSINESS STATISTICS AUSTRALIA Unmasking the Theta method

More information

ARMA (and ARIMA) models are often expressed in backshift notation.

ARMA (and ARIMA) models are often expressed in backshift notation. Backshift Notation ARMA (and ARIMA) models are often expressed in backshift notation. B is the backshift operator (also called the lag operator ). It operates on time series, and means back up by one time

More information

Package TSPred. April 5, 2017

Package TSPred. April 5, 2017 Type Package Package TSPred April 5, 2017 Title Functions for Benchmarking Time Series Prediction Version 3.0.2 Date 2017-04-05 Author Rebecca Pontes Salles [aut, cre, cph] (CEFET/RJ), Eduardo Ogasawara

More information

Forecasting using R. Rob J Hyndman. 3.2 Dynamic regression. Forecasting using R 1

Forecasting using R. Rob J Hyndman. 3.2 Dynamic regression. Forecasting using R 1 Forecasting using R Rob J Hyndman 3.2 Dynamic regression Forecasting using R 1 Outline 1 Regression with ARIMA errors 2 Stochastic and deterministic trends 3 Periodic seasonality 4 Lab session 14 5 Dynamic

More information

Package varband. November 7, 2016

Package varband. November 7, 2016 Type Package Package varband November 7, 2016 Title Variable Banding of Large Precision Matrices Version 0.9.0 Implementation of the variable banding procedure for modeling local dependence and estimating

More information

Modelling and forecasting Australian domestic tourism

Modelling and forecasting Australian domestic tourism * Title page with author details Modelling and forecasting Australian domestic tourism G. Athanasopoulos, R. J. Hyndman Department of Econometrics and Business Statistics, Monash University, Melbourne,

More information

Forecasting using R. Rob J Hyndman. 2.4 Non-seasonal ARIMA models. Forecasting using R 1

Forecasting using R. Rob J Hyndman. 2.4 Non-seasonal ARIMA models. Forecasting using R 1 Forecasting using R Rob J Hyndman 2.4 Non-seasonal ARIMA models Forecasting using R 1 Outline 1 Autoregressive models 2 Moving average models 3 Non-seasonal ARIMA models 4 Partial autocorrelations 5 Estimation

More information

Based on the original slides from Levine, et. all, First Edition, Prentice Hall, Inc

Based on the original slides from Levine, et. all, First Edition, Prentice Hall, Inc Based on the original slides from Levine, et. all, First Edition, Prentice Hall, Inc Process of predicting a future event Underlying basis of all business decisions Production Inventory Personnel Facilities

More information

Forecasting: principles and practice 1

Forecasting: principles and practice 1 Forecasting: principles and practice Rob J Hyndman 2.3 Stationarity and differencing Forecasting: principles and practice 1 Outline 1 Stationarity 2 Differencing 3 Unit root tests 4 Lab session 10 5 Backshift

More information

Lecture 1: Introduction to Forecasting

Lecture 1: Introduction to Forecasting NATCOR: Forecasting & Predictive Analytics Lecture 1: Introduction to Forecasting Professor John Boylan Lancaster Centre for Forecasting Department of Management Science Leading research centre in applied

More information

A new approach to forecasting based on exponential smoothing with independent regressors

A new approach to forecasting based on exponential smoothing with independent regressors ISSN 1440-771X Australia Department of Econometrics and Business Statistics http://wwwbusecomonasheduau/depts/ebs/pubs/wpapers/ A new approach to forecasting based on exponential smoothing with independent

More information

A Multistage Modeling Strategy for Demand Forecasting

A Multistage Modeling Strategy for Demand Forecasting Paper SAS5260-2016 A Multistage Modeling Strategy for Demand Forecasting Pu Wang, Alex Chien, and Yue Li, SAS Institute Inc. ABSTRACT Although rapid development of information technologies in the past

More information

Time Series and Forecasting Using R

Time Series and Forecasting Using R Time Series and Forecasting Using R Lab Sessions 25 May 2016 Before doing any exercises in R, load the fpp package using library(fpp) and the ggplot2 package using library(ggplot2). Lab Session: Time series

More information

Mathematics I. Exercises with solutions. 1 Linear Algebra. Vectors and Matrices Let , C = , B = A = Determine the following matrices:

Mathematics I. Exercises with solutions. 1 Linear Algebra. Vectors and Matrices Let , C = , B = A = Determine the following matrices: Mathematics I Exercises with solutions Linear Algebra Vectors and Matrices.. Let A = 5, B = Determine the following matrices: 4 5, C = a) A + B; b) A B; c) AB; d) BA; e) (AB)C; f) A(BC) Solution: 4 5 a)

More information

Automatic forecasting with a modified exponential smoothing state space framework

Automatic forecasting with a modified exponential smoothing state space framework ISSN 1440-771X Department of Econometrics and Business Statistics http://www.buseco.monash.edu.au/depts/ebs/pubs/wpapers/ Automatic forecasting with a modified exponential smoothing state space framework

More information

Math 101 Study Session Spring 2016 Test 4 Chapter 10, Chapter 11 Chapter 12 Section 1, and Chapter 12 Section 2

Math 101 Study Session Spring 2016 Test 4 Chapter 10, Chapter 11 Chapter 12 Section 1, and Chapter 12 Section 2 Math 101 Study Session Spring 2016 Test 4 Chapter 10, Chapter 11 Chapter 12 Section 1, and Chapter 12 Section 2 April 11, 2016 Chapter 10 Section 1: Addition and Subtraction of Polynomials A monomial is

More information

Simultaneous Equation Models (Book Chapter 5)

Simultaneous Equation Models (Book Chapter 5) Simultaneous Equation Models (Book Chapter 5) Interrelated equations with continuous dependent variables: Utilization of individual vehicles (measured in kilometers driven) in multivehicle households Interrelation

More information

Cyclical Effect, and Measuring Irregular Effect

Cyclical Effect, and Measuring Irregular Effect Paper:15, Quantitative Techniques for Management Decisions Module- 37 Forecasting & Time series Analysis: Measuring- Seasonal Effect, Cyclical Effect, and Measuring Irregular Effect Principal Investigator

More information

CHAPTER 1: Decomposition Methods

CHAPTER 1: Decomposition Methods CHAPTER 1: Decomposition Methods Prof. Alan Wan 1 / 48 Table of contents 1. Data Types and Causal vs.time Series Models 2 / 48 Types of Data Time series data: a sequence of observations measured over time,

More information

Some Personal Perspectives on Demand Forecasting Past, Present, Future

Some Personal Perspectives on Demand Forecasting Past, Present, Future Some Personal Perspectives on Demand Forecasting Past, Present, Future Hans Levenbach, PhD Delphus, Inc. INFORMS Luncheon Penn Club, NYC Presentation Overview Introduction Demand Analysis and Forecasting

More information

The SAB Medium Term Sales Forecasting System : From Data to Planning Information. Kenneth Carden SAB : Beer Division Planning

The SAB Medium Term Sales Forecasting System : From Data to Planning Information. Kenneth Carden SAB : Beer Division Planning The SAB Medium Term Sales Forecasting System : From Data to Planning Information Kenneth Carden SAB : Beer Division Planning Planning in Beer Division F Operational planning = what, when, where & how F

More information

1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11.

1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11. 000 Chapter 1 Arithmetic in 1.1 The Division Algorithm Revisited 1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = 3. 2. (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11. 3. (a) q = 6, r =

More information

Improved Holt Method for Irregular Time Series

Improved Holt Method for Irregular Time Series WDS'08 Proceedings of Contributed Papers, Part I, 62 67, 2008. ISBN 978-80-7378-065-4 MATFYZPRESS Improved Holt Method for Irregular Time Series T. Hanzák Charles University, Faculty of Mathematics and

More information

Decision 411: Class 3

Decision 411: Class 3 Decision 411: Class 3 Discussion of HW#1 Introduction to seasonal models Seasonal decomposition Seasonal adjustment on a spreadsheet Forecasting with seasonal adjustment Forecasting inflation Poor man

More information

Transformations for variance stabilization

Transformations for variance stabilization FORECASTING USING R Transformations for variance stabilization Rob Hyndman Author, forecast Variance stabilization If the data show increasing variation as the level of the series increases, then a transformation

More information

Time Series Analysis

Time Series Analysis Time Series Analysis hm@imm.dtu.dk Informatics and Mathematical Modelling Technical University of Denmark DK-2800 Kgs. Lyngby 1 Outline of the lecture State space models, 1st part: Model: Sec. 10.1 The

More information

HASSE-MINKOWSKI THEOREM

HASSE-MINKOWSKI THEOREM HASSE-MINKOWSKI THEOREM KIM, SUNGJIN 1. Introduction In rough terms, a local-global principle is a statement that asserts that a certain property is true globally if and only if it is true everywhere locally.

More information

Decision 411: Class 3

Decision 411: Class 3 Decision 411: Class 3 Discussion of HW#1 Introduction to seasonal models Seasonal decomposition Seasonal adjustment on a spreadsheet Forecasting with seasonal adjustment Forecasting inflation Poor man

More information

1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11.

1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11. 000 Chapter 1 Arithmetic in 1.1 The Division Algorithm Revisited 1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = 3. 2. (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11. 3. (a) q = 6, r =

More information

Effective Strategies for Forecasting a Product Hierarchy

Effective Strategies for Forecasting a Product Hierarchy Effective Strategies for Forecasting a Product Hierarchy Presented by Eric Stellwagen Vice President & Cofounder Business Forecast Systems, Inc. estellwagen@forecastpro.com Business Forecast Systems, Inc.

More information

Regional Solution of Constrained LQ Optimal Control

Regional Solution of Constrained LQ Optimal Control Regional Solution of Constrained LQ Optimal Control José DeDoná September 2004 Outline 1 Recap on the Solution for N = 2 2 Regional Explicit Solution Comparison with the Maximal Output Admissible Set 3

More information

A = 3 B = A 1 1 matrix is the same as a number or scalar, 3 = [3].

A = 3 B = A 1 1 matrix is the same as a number or scalar, 3 = [3]. Appendix : A Very Brief Linear ALgebra Review Introduction Linear Algebra, also known as matrix theory, is an important element of all branches of mathematics Very often in this course we study the shapes

More information

Ensemble of Deep Learning Approaches for ATC Classification

Ensemble of Deep Learning Approaches for ATC Classification Ensemble of Deep Learning Approaches for ATC Classification Loris Nanni 1, Sheryl Brahnam* 2, and Alessandra Lumini 3, 1 DEI - University of Padova, Via Gradenigo, 6-35131- Padova, Italy. loris.nanni@unipd.it.

More information

A VERY BRIEF LINEAR ALGEBRA REVIEW for MAP 5485 Introduction to Mathematical Biophysics Fall 2010

A VERY BRIEF LINEAR ALGEBRA REVIEW for MAP 5485 Introduction to Mathematical Biophysics Fall 2010 A VERY BRIEF LINEAR ALGEBRA REVIEW for MAP 5485 Introduction to Mathematical Biophysics Fall 00 Introduction Linear Algebra, also known as matrix theory, is an important element of all branches of mathematics

More information

Forecasting using R. Rob J Hyndman. 2.5 Seasonal ARIMA models. Forecasting using R 1

Forecasting using R. Rob J Hyndman. 2.5 Seasonal ARIMA models. Forecasting using R 1 Forecasting using R Rob J Hyndman 2.5 Seasonal ARIMA models Forecasting using R 1 Outline 1 Backshift notation reviewed 2 Seasonal ARIMA models 3 ARIMA vs ETS 4 Lab session 12 Forecasting using R Backshift

More information

Rob J Hyndman. Forecasting using. 3. Autocorrelation and seasonality OTexts.com/fpp/2/ OTexts.com/fpp/6/1. Forecasting using R 1

Rob J Hyndman. Forecasting using. 3. Autocorrelation and seasonality OTexts.com/fpp/2/ OTexts.com/fpp/6/1. Forecasting using R 1 Rob J Hyndman Forecasting using 3. Autocorrelation and seasonality OTexts.com/fpp/2/ OTexts.com/fpp/6/1 Forecasting using R 1 Outline 1 Time series graphics 2 Seasonal or cyclic? 3 Autocorrelation Forecasting

More information

Decision 411: Class 3

Decision 411: Class 3 Decision 411: Class 3 Discussion of HW#1 Introduction to seasonal models Seasonal decomposition Seasonal adjustment on a spreadsheet Forecasting with seasonal adjustment Forecasting inflation Log transformation

More information

Nonparametric time series forecasting with dynamic updating

Nonparametric time series forecasting with dynamic updating 18 th World IMAS/MODSIM Congress, Cairns, Australia 13-17 July 2009 http://mssanz.org.au/modsim09 1 Nonparametric time series forecasting with dynamic updating Han Lin Shang and Rob. J. Hyndman Department

More information

The value of feedback in forecasting competitions

The value of feedback in forecasting competitions ISSN 1440-771X Department of Econometrics and Business Statistics http://www.buseco.monash.edu.au/depts/ebs/pubs/wpapers/ The value of feedback in forecasting competitions George Athanasopoulos and Rob

More information

page 1 Total ( )

page 1 Total ( ) A B C D E F Costs budget of [Claimant / Defendant] dated [ ] Estimated page 1 Work done / to be done Pre-action Disbs ( ) Time ( ) Disbs ( ) Time ( ) Total ( ) 1 Issue /statements of case 0.00 0.00 CMC

More information

Visitor Flows Model for Queensland a new approach

Visitor Flows Model for Queensland a new approach Visitor Flows Model for Queensland a new approach Jason. van Paassen 1, Mark. Olsen 2 1 Parsons Brinckerhoff Australia Pty Ltd, Brisbane, QLD, Australia 2 Tourism Queensland, Brisbane, QLD, Australia 1

More information

Financial Econometrics

Financial Econometrics Material : solution Class : Teacher(s) : zacharias psaradakis, marian vavra Example 1.1: Consider the linear regression model y Xβ + u, (1) where y is a (n 1) vector of observations on the dependent variable,

More information

THE TRANSLATION PLANES OF ORDER 49 AND THEIR AUTOMORPHISM GROUPS

THE TRANSLATION PLANES OF ORDER 49 AND THEIR AUTOMORPHISM GROUPS MATHEMATICS OF COMPUTATION Volume 67, Number 223, July 1998, Pages 1207 1224 S 0025-5718(98)00961-2 THE TRANSLATION PLANES OF ORDER 49 AND THEIR AUTOMORPHISM GROUPS C. CHARNES AND U. DEMPWOLFF Abstract.

More information

Estimating Global Bank Network Connectedness

Estimating Global Bank Network Connectedness Estimating Global Bank Network Connectedness Mert Demirer (MIT) Francis X. Diebold (Penn) Laura Liu (Penn) Kamil Yılmaz (Koç) September 22, 2016 1 / 27 Financial and Macroeconomic Connectedness Market

More information

Forecasting using R. Rob J Hyndman. 1.3 Seasonality and trends. Forecasting using R 1

Forecasting using R. Rob J Hyndman. 1.3 Seasonality and trends. Forecasting using R 1 Forecasting using R Rob J Hyndman 1.3 Seasonality and trends Forecasting using R 1 Outline 1 Time series components 2 STL decomposition 3 Forecasting and decomposition 4 Lab session 5 Forecasting using

More information

Product and Inventory Management (35E00300) Forecasting Models Trend analysis

Product and Inventory Management (35E00300) Forecasting Models Trend analysis Product and Inventory Management (35E00300) Forecasting Models Trend analysis Exponential Smoothing Data Storage Shed Sales Period Actual Value(Y t ) Ŷ t-1 α Y t-1 Ŷ t-1 Ŷ t January 10 = 10 0.1 February

More information

Problem 1: (3 points) Recall that the dot product of two vectors in R 3 is

Problem 1: (3 points) Recall that the dot product of two vectors in R 3 is Linear Algebra, Spring 206 Homework 3 Name: Problem : (3 points) Recall that the dot product of two vectors in R 3 is a x b y = ax + by + cz, c z and this is essentially the same as the matrix multiplication

More information

Time Series and Forecasting

Time Series and Forecasting Time Series and Forecasting Introduction to Forecasting n What is forecasting? n Primary Function is to Predict the Future using (time series related or other) data we have in hand n Why are we interested?

More information

Package TimeSeries.OBeu

Package TimeSeries.OBeu Type Package Package TimeSeries.OBeu Title Time Series Analysis 'OpenBudgets' Version 1.2.2 Date 2018-01-20 January 22, 2018 Estimate and return the needed parameters for visualisations designed for 'OpenBudgets'

More information

at least 50 and preferably 100 observations should be available to build a proper model

at least 50 and preferably 100 observations should be available to build a proper model III Box-Jenkins Methods 1. Pros and Cons of ARIMA Forecasting a) need for data at least 50 and preferably 100 observations should be available to build a proper model used most frequently for hourly or

More information

Time series and Forecasting

Time series and Forecasting Chapter 2 Time series and Forecasting 2.1 Introduction Data are frequently recorded at regular time intervals, for instance, daily stock market indices, the monthly rate of inflation or annual profit figures.

More information

Package bigtime. November 9, 2017

Package bigtime. November 9, 2017 Package bigtime November 9, 2017 Type Package Title Sparse Estimation of Large Time Series Models Version 0.1.0 Author Ines Wilms [cre, aut], David S. Matteson [aut], Jacob Bien [aut], Sumanta Basu [aut]

More information

7.2. Matrix Multiplication. Introduction. Prerequisites. Learning Outcomes

7.2. Matrix Multiplication. Introduction. Prerequisites. Learning Outcomes Matrix Multiplication 7.2 Introduction When we wish to multiply matrices together we have to ensure that the operation is possible - and this is not always so. Also, unlike number arithmetic and algebra,

More information

Package RTransferEntropy

Package RTransferEntropy Type Package Package RTransferEntropy March 12, 2019 Title Measuring Information Flow Between Time Series with Shannon and Renyi Transfer Entropy Version 0.2.8 Measuring information flow between time series

More information

EVALUATION OF DIFFERENT TEMPORAL DISAGGREGATION TECHNIQUES AND AN APPLICATION TO ITALIAN GDP

EVALUATION OF DIFFERENT TEMPORAL DISAGGREGATION TECHNIQUES AND AN APPLICATION TO ITALIAN GDP BRAC University Journal, vol. V1, no., 9, pp. 1-3 EVALUATION OF DIFFERENT TEMPORAL DISAGGREGATION TECHNIQUES AND AN APPLICATION TO ITALIAN GDP Mohammad Rafiqul Islam Department of Mathematics and Natural

More information

Package FinCovRegularization

Package FinCovRegularization Type Package Package FinCovRegularization April 25, 2016 Title Covariance Matrix Estimation and Regularization for Finance Version 1.1.0 Estimation and regularization for covariance matrix of asset returns.

More information

Module 09 From s-domain to time-domain From ODEs, TFs to State-Space Modern Control

Module 09 From s-domain to time-domain From ODEs, TFs to State-Space Modern Control Module 09 From s-domain to time-domain From ODEs, TFs to State-Space Modern Control Ahmad F. Taha EE 3413: Analysis and Desgin of Control Systems Email: ahmad.taha@utsa.edu Webpage: http://engineering.utsa.edu/

More information

Package Rsurrogate. October 20, 2016

Package Rsurrogate. October 20, 2016 Type Package Package Rsurrogate October 20, 2016 Title Robust Estimation of the Proportion of Treatment Effect Explained by Surrogate Marker Information Version 2.0 Date 2016-10-19 Author Layla Parast

More information

Package MACAU2. R topics documented: April 8, Type Package. Title MACAU 2.0: Efficient Mixed Model Analysis of Count Data. Version 1.

Package MACAU2. R topics documented: April 8, Type Package. Title MACAU 2.0: Efficient Mixed Model Analysis of Count Data. Version 1. Package MACAU2 April 8, 2017 Type Package Title MACAU 2.0: Efficient Mixed Model Analysis of Count Data Version 1.10 Date 2017-03-31 Author Shiquan Sun, Jiaqiang Zhu, Xiang Zhou Maintainer Shiquan Sun

More information

Ch. 12: Workload Forecasting

Ch. 12: Workload Forecasting Ch. 12: Workload Forecasting Kenneth Mitchell School of Computing & Engineering, University of Missouri-Kansas City, Kansas City, MO 64110 Kenneth Mitchell, CS & EE dept., SCE, UMKC p. 1/2 Introduction

More information

Department of Econometrics and Business Statistics

Department of Econometrics and Business Statistics ISSN 1440-771X Australia Department of Econometrics and Business Statistics http://www.buseco.monash.edu.au/depts/ebs/pubs/wpapers/ Exponential Smoothing: A Prediction Error Decomposition Principle Ralph

More information

EE263: Introduction to Linear Dynamical Systems Review Session 9

EE263: Introduction to Linear Dynamical Systems Review Session 9 EE63: Introduction to Linear Dynamical Systems Review Session 9 SVD continued EE63 RS9 1 Singular Value Decomposition recall any nonzero matrix A R m n, with Rank(A) = r, has an SVD given by A = UΣV T,

More information

Time Series and Forecasting

Time Series and Forecasting Time Series and Forecasting Introduction to Forecasting n What is forecasting? n Primary Function is to Predict the Future using (time series related or other) data we have in hand n Why are we interested?

More information

Time Series in R: Forecasting and Visualisation. Forecast evaluation 29 May 2017

Time Series in R: Forecasting and Visualisation. Forecast evaluation 29 May 2017 Time Series in R: Forecasting and Visualisation Forecast evaluation 29 May 2017 1 Outline 1 Forecasting residuals 2 Evaluating forecast accuracy 3 Forecasting benchmark methods 4 Lab session 7 5 Time series

More information

Forecasting. Operations Analysis and Improvement Spring

Forecasting. Operations Analysis and Improvement Spring Forecasting Operations Analysis and Improvement 2015 Spring Dr. Tai-Yue Wang Industrial and Information Management Department National Cheng Kung University 1-2 Outline Introduction to Forecasting Subjective

More information

Chapter 14 Combining Models

Chapter 14 Combining Models Chapter 14 Combining Models T-61.62 Special Course II: Pattern Recognition and Machine Learning Spring 27 Laboratory of Computer and Information Science TKK April 3th 27 Outline Independent Mixing Coefficients

More information

1. The Multivariate Classical Linear Regression Model

1. The Multivariate Classical Linear Regression Model Business School, Brunel University MSc. EC550/5509 Modelling Financial Decisions and Markets/Introduction to Quantitative Methods Prof. Menelaos Karanasos (Room SS69, Tel. 08956584) Lecture Notes 5. The

More information

Solutions to Chapter Review Questions, Chapter 0

Solutions to Chapter Review Questions, Chapter 0 Instructor s Solutions Manual, Chapter 0 Review Question 1 Solutions to Chapter Review Questions, Chapter 0 1. Explain how the points on the real line correspond to the set of real numbers. solution Start

More information

Package EMVS. April 24, 2018

Package EMVS. April 24, 2018 Type Package Package EMVS April 24, 2018 Title The Expectation-Maximization Approach to Bayesian Variable Selection Version 1.0 Date 2018-04-23 Author Veronika Rockova [aut,cre], Gemma Moran [aut] Maintainer

More information

Recent Developments in Benchmarking to Annual Totals in X-12-ARIMA and at Statistics Canada

Recent Developments in Benchmarking to Annual Totals in X-12-ARIMA and at Statistics Canada CONFERENCE ON SEASONALITY, SEASONAL ADJUSTMENT AND THEIR IMPLICATIONS FOR SHORT-TERM ANALYSIS AND FORECASTING 10-12 MAY 2006 Recent Developments in Benchmarking to Annual Totals in X-12-ARIMA and at Statistics

More information

S-GSTAR-SUR Model for Seasonal Spatio Temporal Data Forecasting ABSTRACT

S-GSTAR-SUR Model for Seasonal Spatio Temporal Data Forecasting ABSTRACT Malaysian Journal of Mathematical Sciences (S) March : 53-65 (26) Special Issue: The th IMT-GT International Conference on Mathematics, Statistics and its Applications 24 (ICMSA 24) MALAYSIAN JOURNAL OF

More information