732A34 Time series analysis Fall semester 2009 6 ECTS-credits Course tutor and examiner: Anders Nordgaard Course web: www.ida.liu.se/~732A34 Course literature:

Slides:



Advertisements
Similar presentations
Time series modelling and statistical trends
Advertisements

Marian Scott SAGES, March 2009
11-1 Empirical Models Many problems in engineering and science involve exploring the relationships between two or more variables. Regression analysis.
DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Exam 1 review: Quizzes 1-6.
Decomposition Method.
Exercise 7.5 (p. 343) Consider the hotel occupancy data in Table 6.4 of Chapter 6 (p. 297)
Part II – TIME SERIES ANALYSIS C3 Exponential Smoothing Methods © Angel A. Juan & Carles Serrat - UPC 2007/2008.
Time series. Characteristics Non-independent observations (correlations structure) Systematic variation within a year (seasonal effects) Long-term increasing.
CHAPTER 5 TIME SERIES AND THEIR COMPONENTS (Page 165)
Exponential Smoothing Methods
Time Series Analysis Autocorrelation Naive & Simple Averaging
Forecasting Purpose is to forecast, not to explain the historical pattern Models for forecasting may not make sense as a description for ”physical” behaviour.
Moving Averages Ft(1) is average of last m observations
The Simple Linear Regression Model: Specification and Estimation
732G29 Time series analysis Fall semester ECTS-credits Course tutor and examiner: Anders Nordgaard Course web: Course literature:
Chapter 12 - Forecasting Forecasting is important in the business decision-making process in which a current choice or decision has future implications:
Some more issues of time series analysis Time series regression with modelling of error terms In a time series regression model the error terms are tentatively.
Chapter 5 Time Series Analysis
Data Sources The most sophisticated forecasting model will fail if it is applied to unreliable data Data should be reliable and accurate Data should be.
Chapter 13 Forecasting.
Forecasting Purpose is to forecast, not to explain the historical pattern Models for forecasting may not make sense as a description for ”physical” beaviour.
CHAPTER 4 MOVING AVERAGES AND SMOOTHING METHODS (Page 107)
Chapter 11 Multiple Regression.
Modern methods The classical approach: MethodProsCons Time series regression Easy to implement Fairly easy to interpret Covariates may be added (normalization)
Part II – TIME SERIES ANALYSIS C2 Simple Time Series Methods & Moving Averages © Angel A. Juan & Carles Serrat - UPC 2007/2008.
Statistical Forecasting Models
Time series analysis - lecture 1 Time series analysis Analysis of data for which the temporal order of the observations is important Two major objectives:
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. 3 Forecasting.
Introduction to Regression Analysis, Chapter 13,
© 2003 Prentice-Hall, Inc.Chap 12-1 Business Statistics: A First Course (3 rd Edition) Chapter 12 Time-Series Forecasting.
© 2002 Prentice-Hall, Inc.Chap 13-1 Statistics for Managers using Microsoft Excel 3 rd Edition Chapter 13 Time Series Analysis.
The Importance of Forecasting in POM
Time-Series Analysis and Forecasting – Part V To read at home.
TIME SERIES by H.V.S. DE SILVA DEPARTMENT OF MATHEMATICS
1 Chapter 2 and 3 Forecasting Advanced Forecasting Operations Analysis Using MS Excel.
CHAPTER 14 MULTIPLE REGRESSION
3-1Forecasting. 3-2Forecasting FORECAST:  A statement about the future value of a variable of interest such as demand.  Forecasts affect decisions and.
Introduction to Linear Regression
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Time Series Forecasting Chapter 16.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Time Series Forecasting Chapter 13.
Chap 14-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 14 Additional Topics in Regression Analysis Statistics for Business.
Definition of Time Series: An ordered sequence of values of a variable at equally spaced time intervals. The variable shall be time dependent.
MBA.782.ForecastingCAJ Demand Management Qualitative Methods of Forecasting Quantitative Methods of Forecasting Causal Relationship Forecasting Focus.
© 2000 Prentice-Hall, Inc. Chap The Least Squares Linear Trend Model Year Coded X Sales
Managerial Economics Demand Estimation & Forecasting.
Time series Decomposition Farideh Dehkordi-Vakil.
Chapter 5 The Decomposition Method Components of a Time Series Trend - Tr t Seasonal - Sn t Cyclical - Cl t Irregular -  t.
Lecture 10 Chapter 23. Inference for regression. Objectives (PSLS Chapter 23) Inference for regression (NHST Regression Inference Award)[B level award]
© 1999 Prentice-Hall, Inc. Chap Chapter Topics Component Factors of the Time-Series Model Smoothing of Data Series  Moving Averages  Exponential.
732A34 Time series analysis Fall semester ECTS-credits Course tutor and examiner: Anders Nordgaard Course web: Course literature:
Business Statistics for Managerial Decision Farideh Dehkordi-Vakil.
Multiple Regression I 1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 4 Multiple Regression Analysis (Part 1) Terry Dielman.
Welcome to MM305 Unit 5 Seminar Prof Greg Forecasting.
1 BABS 502 Moving Averages, Decomposition and Exponential Smoothing Revised March 14, 2010.
Stats Term Test 4 Solutions. c) d) An alternative solution is to use the probability mass function and.
Time Series and Forecasting
Components of Time Series Su, Chapter 2, section II.
3-1Forecasting CHAPTER 3 Forecasting McGraw-Hill/Irwin Operations Management, Eighth Edition, by William J. Stevenson Copyright © 2005 by The McGraw-Hill.
13 – 1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall. Forecasting 13 For Operations Management, 9e by Krajewski/Ritzman/Malhotra.
Demand Management and Forecasting Chapter 11 Portions Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin.
11-1 Copyright © 2014, 2011, and 2008 Pearson Education, Inc.
Forecasting. Model with indicator variables The choice of a forecasting technique depends on the components identified in the time series. The techniques.
Chapter 11 – With Woodruff Modications Demand Management and Forecasting Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Welcome to MM305 Unit 5 Seminar Dr. Bob Forecasting.
Welcome to MM305 Unit 5 Seminar Forecasting. What is forecasting? An attempt to predict the future using data. Generally an 8-step process 1.Why are you.
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.
Forecasting Purpose is to forecast, not to explain the historical pattern Models for forecasting may not make sense as a description for ”physical” behaviour.
Chapter 4 Basic Estimation Techniques
Chapter 4: Seasonal Series: Forecasting and Decomposition
Exponential Smoothing
Presentation transcript:

732A34 Time series analysis Fall semester ECTS-credits Course tutor and examiner: Anders Nordgaard Course web: Course literature: Bowerman, O’Connell, Koehler: Forecasting, Time Series and Regression. 4th ed. Thomson, Brooks/Cole ISBN Complementary handouts

Organization of this course: Weekly “meetings”: Mixture between lectures, computer exercises and seminars A great portion of self-studying Weekly assignments from computer exercises Individual written exam Access to a computer is necessary. For those of you that have your own PC, software Minitab can be borrowed for installation.

Examination The course is examined by 1.Assignments 2.Final written exam Assignments will be marked Passed or Failed. If Failed, corrections must be done for the mark Pass. Written exam marks are given according to ECTS grades. The final grade will be the same grade as for the written exam.

Communication Contact with course tutor is best through Office in Building B, Entrance 27, 2nd floor, corridor E (the small one close to Building E), room 3E:485. Telephone: Normal working hours: Odd-numbered weeks: Wed-Fri Even-numbered weeks: Thu-Fri response all weekdays All necessary information will be communicated through the course web. Always use the English version. The first page contains the most recent information (messages) Instructions for the computer exercises and their embedded assignments will successively be put on the course webt. Solutions to assignments can be ed or posted outside office door.

Time series What kind of patterns can visually be detected? Is the development stable or non-stable?

What kind of patterns can visually be detected? Is the development stable or non-stable?

Non-independent observations (correlations structure) Systematic variation within a year (seasonal effects) Long-term increasing or decreasing level (trend) Irregular variation of small magnitude (noise) Characteristics:

Economic indicators: Sales figures, employment statistics, stock market indices, … Meteorological data: precipitation, temperature,… Environmental monitoring: concentrations of nutrients and pollutants in air masses, rivers, marine basins,… Sports statistics? Electromagnetic och thermal fields Where can time series be found? Time series analysis Estimate/Investigate different parts of a time series in order to –understand the historical pattern –judge upon the current status –make forecasts of the future development –judge upon the quality of data

MethodThis course? Time series regressionYes Classical decompositionYes Exponential smoothingYes ARIMA modelling (Box-Jenkins)Yes Non-parametric and semi-parametric analysisYes Transfer function and intervention modelsYes State space modellingNo Modern econometric methods: ARCH, GARCH, Cointegration No Spectral domain analysisNo Methodologies

The ordinary linear regression model: With time series data (y ), observation number is (most often) equivalent to time point of observing  What kind of variables x 1, …, x k could we think of? Other time series? Specific (compulsory) variables Models for Time Series Regression

The “principle” of regression modelling: Thus all explanatory variables are treated as deterministic. Alternatively, the statistical properties of y t are conditional on the values of x 1,t, …, x k,t in the available data set. How does this limit our selection of explanatory variables?

BPI highly correlated with year. Could year be an explanatory variable? Possible models: linear trend quadratic trend

Linear trend (?) Periodic pattern in data (seasonal effect?) Possible model: where seasonal indicators (dummies)

Is the fitted model satisfactory? How could we resolve the seemingly non-random deviations from the fitted curve?

Model:

Without CPI With CPI No improvement!

Some critical points with Times Series Regression models: The mean of y t is modelled, usually by some mathematical function Least-squares estimation of parameters is valid if the error terms {  t } – have zero mean and constant variance – are uncorrelated Statistical inference (confidence and prediction intervals, tests of hypotheses) from standard software output is valid if the error terms {  t } – are normally distributed

Decomposition ytyt ytyt A time series can be thought of as built-up by a number of components

What kind of components can we think of? Long-term? Short-term? Deterministic? Purely random?

Decomposition – Analyse the observed time series in its different components: Trend part(TR) Seasonal part(SN) Cyclical part(CL) Irregular part(IR) Cyclical part: State-of-market in economic time series In environmental series, usually together with TR Multiplicative model: yt=TR t ·SN t ·CL t ·IR t Suitable for economic indicators Level is present in TR t or in TC t =(TR∙CL) t SN t, IR t (and CL t ) works as indices  Seasonal variation increases with level of y t

Additive model: y t =TR t +SN t +CL t +IR t More suitable for environmental data Requires constant seasonal variation SN t, IR t (and CL t ) vary around 0 Additive or multiplicative model?

Example 1: Sales figures, additive decomposition sales figures jan-98-dec observed (blue), deseasonalised (magenta) observed (blue), estimated trend (green) observedTRSNfittedIR

Example 2:

1.Seasonally adjustment/Deseasonalisation: SN t usually has the largest amount of variation among the components. The time series is deseasonalised by calculating Centred and weighted Moving Averages: where L=Number of seasons within a year (L=2 for ½-year data, 4 for quaerterly data och 12 för monthly data) Estimation of components, working scheme

– CMA t becomes a rough estimate of (TR∙CL) t. –Rough seasonal components are obtained by y t /CMA t in a multiplicative model y t – CMA t in an additive model –Mean values of the rough seasonal components are calculated for each season separately.  L means. –The L means are adjusted to have an exact average of 1 (i.e. their sum equals L ) in a multiplicative model. Have an exact average of 0 (i.e. their sum equals zero) in an additive model. –  Final estimates of the seasonal components are set to these adjusted means and are denoted:

–The time series is now deaseasonalised by in a multiplicative model in an additive model where is one of depending on which of the seasons t represents.

2. Seasonally adjusted values are used to estimate the trend component and occasionally the cyclical component. If no cyclical component is present: Apply simple linear regression on the seasonally adjusted values  Estimates tr t of linear or quadratic trend component. The residuals from the regression fit constitutes estimates, ir t of the irregular component If cyclical component is present: Alternative 1: oEstimate trend and cyclical component as a whole (do not split them) by i.e. A non-weighted centred Moving Average with length 2m+1 caclulated over the seasonally adjusted values

oCommon values for 2m+1: 3, 5, 7, 9, 11, 13 oChoice of m is based on properties of the final estimate of IR t which is calculated as  in a multiplicative model  in an additive model om is chosen so to minimise the serial correlation and the variance of ir t. o2m+1 is called (number of) points of the Moving Average.

Alternative 2: o Apply simple linear regression on the seasonally adjusted values  Estimates tr t of linear or quadratic trend component. o Detrend deasonalised data - in a multiplicative model - in an additive model o Estimate the cyclical component my moving averages: o Estimate the irregular components as - in a multiplicative model - in an additive model

Example, cont: Homes sales data Minitab can be used for decomposition by Stat  Time series  Decomposition Choice of model Option to choose between two sets of components

Time Series Decomposition Data Sold Length 47,0000 NMissing 0 Trend Line Equation Yt = 5, ,30E-02*t Seasonal Indices Period Index 1 -4, , , , , , , , , , , ,17361 Accuracy of Model MAPE: 16,4122 MAD: 0,9025 MSD: 1,6902

Deseasonalised data have been stored in a column with head DESE1. Moving Averages on these column can be calculated by Stat  Time series  Moving average Choice of 2m+1

MSD should be kept as small as possible TC component with 2m +1 = 3 (blue)

By saving residuals from the moving averages we can calculate MSD and serial correlations for each choice of 2m+1. 2m+1MSDCorr(e t,e t-1 ) A 7-points or 9-points moving average seems most reasonable.

Serial correlations are simply calculated by Stat  Time series  Lag and further Stat  Basic statistics  Correlation Or manually in Session window: MTB > lag ’RESI4’ c50 MTB > corr ’RESI4’ c50

Analysis with multiplicative model:

Time Series Decomposition Data Sold Length 47,0000 NMissing 0 Trend Line Equation Yt = 5, ,30E-02*t Seasonal Indices Period Index 1 0, , , , , , , , , , , , Accuracy of Model MAPE: 16,8643 MAD: 0,9057 MSD: 1,6388

additive