Time series /Applied Forecasting 7005 Hilary term 2016 Prof. Rozenn Dahyot Room 128 Lloyd Institute School of Computer Science and Statistics Trinity College.

Slides:



Advertisements
Similar presentations
Statistical Time Series Analysis version 2
Advertisements

FINANCIAL TIME-SERIES ECONOMETRICS SUN LIJIAN Feb 23,2001.
SMA 6304 / MIT / MIT Manufacturing Systems Lecture 11: Forecasting Lecturer: Prof. Duane S. Boning Copyright 2003 © Duane S. Boning. 1.
Autocorrelation Functions and ARIMA Modelling
Dates for term tests Friday, February 07 Friday, March 07
Model Building For ARIMA time series
Part II – TIME SERIES ANALYSIS C5 ARIMA (Box-Jenkins) Models
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 7: Box-Jenkins Models – Part II (Ch. 9) Material.
Time Series Building 1. Model Identification
R. Werner Solar Terrestrial Influences Institute - BAS Time Series Analysis by means of inference statistical methods.
Economics 310 Lecture 25 Univariate Time-Series Methods of Economic Forecasting Single-equation regression models Simultaneous-equation regression models.
How should these data be modelled?. Identification step: Look at the SAC and SPAC Looks like an AR(1)- process. (Spikes are clearly decreasing in SAC.
Non-Seasonal Box-Jenkins Models
1 Time Series Forecasting: The Case for the Single Source of Error State Space Model J. Keith Ord, Georgetown University Ralph D. Snyder, Monash University.
BABS 502 Lecture 9 ARIMA Forecasting II March 23, 2009.
Moving Averages Ft(1) is average of last m observations
Modeling Cycles By ARMA
NY Times 23 Sept time series of the day. Stat Sept 2008 D. R. Brillinger Chapter 4 - Fitting t.s. models in the time domain sample autocovariance.
BABS 502 Lecture 8 ARIMA Forecasting II March 16 and 21, 2011.
Prediction and model selection
Quantitative Business Forecasting Introduction to Business Statistics, 5e Kvanli/Guynes/Pavur (c)2000 South-Western College Publishing.
ARIMA Forecasting Lecture 7 and 8 - March 14-16, 2011
Financial Econometrics
Non-Seasonal Box-Jenkins Models
1 BABS 502 Moving Averages, Decomposition and Exponential Smoothing Revised March 11, 2011.
Forecasting using trend analysis
BOX JENKINS METHODOLOGY
Box Jenkins or Arima Forecasting. H:\My Documents\classes\eco346\Lectures\chap ter 7\Autoregressive Models.docH:\My Documents\classes\eco346\Lectures\chap.
AR- MA- och ARMA-.
STAT 497 LECTURE NOTES 7 FORECASTING.
Time-Series Analysis and Forecasting – Part V To read at home.
Probabilistic and Statistical Techniques 1 Lecture 24 Eng. Ismail Zakaria El Daour 2010.
Linear Stationary Processes. ARMA models. This lecture introduces the basic linear models for stationary processes. Considering only stationary processes.
#1 EC 485: Time Series Analysis in a Nut Shell. #2 Data Preparation: 1)Plot data and examine for stationarity 2)Examine ACF for stationarity 3)If not.
Lecture 7: Forecasting: Putting it ALL together. The full model The model with seasonality, quadratic trend, and ARMA components can be written: Ummmm,
1 Appendix B: A Primer of Time Series Forecasting Models B.1 A Primer of Time Series Forecasting Models.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Time Series Forecasting Chapter 16.
Applied Forecasting ST3010 Michaelmas term 2015 Prof. Rozenn Dahyot Room 128 Lloyd Institute School of Computer Science and Statistics Trinity College.
It’s About Time Mark Otto U. S. Fish and Wildlife Service.
1 Multiple Regression A single numerical response variable, Y. Multiple numerical explanatory variables, X 1, X 2,…, X k.
John G. Zhang, Ph.D. Harper College
Big Data at Home Depot KSU – Big Data Survey Course Steve Einbender Advanced Analytics Architect.
K. Ensor, STAT Spring 2004 Memory characterization of a process How would the ACF behave for a process with no memory? What is a short memory series?
Time Series Basics Fin250f: Lecture 8.1 Spring 2010 Reading: Brooks, chapter
STAT 497 LECTURE NOTE 9 DIAGNOSTIC CHECKS 1. After identifying and estimating a time series model, the goodness-of-fit of the model and validity of the.
MANAGEMENT SCIENCE AN INTRODUCTION TO
MULTIVARIATE TIME SERIES & FORECASTING 1. 2 : autocovariance function of the individual time series.
Auto Regressive, Integrated, Moving Average Box-Jenkins models A stationary times series can be modelled on basis of the serial correlations in it. A non-stationary.
1 BABS 502 Moving Averages, Decomposition and Exponential Smoothing Revised March 14, 2010.
Seasonal ARIMA FPP Chapter 8.
Ch16: Time Series 24 Nov 2011 BUSI275 Dr. Sean Ho HW8 due tonight Please download: 22-TheFed.xls 22-TheFed.xls.
Econometric methods of analysis and forecasting of financial markets Lecture 3. Time series modeling and forecasting.
Managerial Decision Modeling 6 th edition Cliff T. Ragsdale.
Analysis of financial data Anders Lundquist Spring 2010.
1 Autocorrelation in Time Series data KNN Ch. 12 (pp )
Lecture 9 Forecasting. Introduction to Forecasting * * * * * * * * o o o o o o o o Model 1Model 2 Which model performs better? There are many forecasting.
Energy Consumption Forecast Using JMP® Pro 11 Time Series Analysis
Time Series Analysis By Tyler Moore.
Lecture 8 ARIMA Forecasting II
Chapter 6: Autoregressive Integrated Moving Average (ARIMA) Models
TM 745 Forecasting for Business & Technology Dr. Frank Joseph Matejcik
Statistics 153 Review - Sept 30, 2008
Model Building For ARIMA time series
“Time Series” Supervisor: Dr.Rezaei Presented by: Zeinab Moradinazar
Automatic Forecasting with R
Stock Prediction with ARIMA
Tutorial 10 SEG7550.
Time Series introduction in R - Iñaki Puigdollers
BOX JENKINS (ARIMA) METHODOLOGY
Presentation transcript:

Time series /Applied Forecasting 7005 Hilary term 2016 Prof. Rozenn Dahyot Room 128 Lloyd Institute School of Computer Science and Statistics Trinity College Dublin or

Lecture notes available In the ‘teaching’ section. Possibly some materials will be on blackboard

Timetable 6-8pm LB04 Tuesday Thursday

Organization of the course Lectures-tutorials only: No labs but information using R for Forecasting will be provided. Exam 100% No assignments

Software R

Content

Introduction to forecasting; ARIMA models, GARCH models, Kalman Filters,data transformations, seasonality, exponential smoothing and Holt Winters algorithms, performance measures. Use of transformations and differences.

Textbook Forecasting: Methods and Applications by Makridakis, Wheelwright and Hyndman, published by Wiley Many more books in the libraries in Trinity on Forecasting, time series covering the content of this course.

Who Forecast?

Why Forecast?

How to Forecast? In this course we will use maths/stats techniques for forecasting

Steps in a Forecasting Procedure? Problem definition Exploratory Analysis Gathering information Selecting and fitting models to make forecast Using and evaluating the forecast

Examples com/media/research.google.co m/en//archive/papers/detecting -influenza-epidemics.pdf com/media/research.google.co m/en//archive/papers/detecting -influenza-epidemics.pdf

Examples…. Warnings Epidemiological modeling of online social network dynamics

Quantitative Forecasting

Quantitative methods

Time series models Vs Explanatory models Time series

What is the nature of the data to analyse? Examples from fma packages in R airpass beer internet cowtemp Dowjones mink Can you predict how these time series look like ?

Visualization tools Numerical values Time plot Season plot

Patterns to identify Trends Seasonal Error/noise Visualize and identify patterns: airpass beer internet cowtemp Dowjones mink

Time series Definition Sampling rate & Unit of time Preparation of Data before analysis

Limitations in this module 1D time series No outliers No missing data

Notations Variables Vs numerical values Time series

Auto-Correlation Function (ACF) Mean value of the time series Autocorrelation at lag k

Auto Correlation Function (ACF) Lag k r1r1 r2r2 r3r

> plot(beer-mean(beer),lwd="3") > lines(lag(beer-mean(beer),1),col="red",lwd=3) In red, The lag series beer (lag 1 ). The two time series overlap well.

In red, The lag series beer (lag 6 ). The two time series do not overlap well. > plot(beer-mean(beer),lwd="3") > lines(lag(beer-mean(beer),6),col="red",lwd=3)

In red, The lag series beer (lag 12 ). The two time series do overlap well. > plot(beer-mean(beer),lwd="3") > lines(lag(beer-mean(beer),12),col="red",lwd=3)

For the airpass time series Lag 1 Lag 6 Lag 12

Partial AutoCorrelation Function (PACF)

Holt-Winters Algorithms Part I

Algo I: Simple Exponential Smoothing (SES)

What does SES do? What happens when  =1 or  =0 ? SES is an algorithm suitable for a time series with … Algo I: Simple Exponential Smoothing (SES)

Algo II: Double Exponential Smoothing (DES)

SES(  ) DES(  )

SHW + (  )

SHW x (  )

SHW + (  ): Exercise

Linear Regression

Useful formulas

Auto-Regressive Models – AR(1) Explanatory variable Parameters to estimate

Auto-Regressive Models – AR(2) Explanatory variables Parameters to estimate

Auto-Regressive Models – AR(p) Parameters to estimate Explanatory variables

AR(1): Least Squares estimates of the parameters model Write the least squares solution.

AR(1): Least Squares estimates of the parameters model

AR(1): Least Squares estimates of the parameters

Estimate of  Estimate the standard deviation of the noise

Example: dowjones

Auto-Regressive Models – AR(p) Parameters to estimate Explanatory variables

Moving Average MA(1) Explanatory variable Parameters to estimate Can Least Squares Algorithm be used to estimate the parameters?

Moving average MA(q) Parameters to estimate Explanatory variables

Exercises

Remark

Expectation

Summary 17/11/2014 Using ACF and PACF to identify AR(p) and MA(q) Procedure to fit an ARIMA(p,d,q) Definition of BIC/AIC

Fitting ARIMA(p,d,q)

To avoid overfitting choose p ≤ 3 q ≤ 3 d ≤ 3

PACF for AR(1) Maths

ACF for MA(1) Maths

MA(1) as an AR(∞) For MA(1) the Damped sine wave/exponential decay in the PACF corresponds to these coefficients vanishing towards 0

AR(1) as an MA(∞)

Criteria to select the best ARIMA model

Exercise: Show

Hirotugu Aikaike ( ) 1970s: proposed model selection with an information Criterion (AIC)

Bayesian information Criterion Thomas Bayes ( ) The BIC was developed by Gideon E. Schwarz, who gave a Bayesian argument for adopting it.Bayesian

Seasonal ARIMA(p,d,q)(P,D,Q) s

Choose your criterion AIC or BIC (and stick to it). Select the ARIMA model with the lowest AIC or BIC with m=p+q+P+Q

ARIMA(0,0,0)(P=1,0,0) s Vs ARIMA(0,0,0)(0,D=1,0) s

Summary

s1950s 1970s 1980s1990s SES DES SHW+ SHWx ARIMAAIC BIC Holt Winters

Other time series models ARCH (1982): autoregressive conditional heteroskedasticity GARCH (1986): generalized autoregressive conditional heteroskedasticity … More at

Concluding Remarks time

Concluding remarks The Prediction – Update loop Combining experts