ECON 343 Lecture 4 : Smoothing and Extrapolation of Time Series. Jad Chaaban Spring

Similar documents
Economic Forecasting Lecture 9: Smoothing Methods

STAT 115: Introductory Methods for Time Series Analysis and Forecasting. Concepts and Techniques

Time-Series Analysis. Dr. Seetha Bandara Dept. of Economics MA_ECON

Lecture 12. Functional form

Exponential smoothing is, like the moving average forecast, a simple and often used forecasting technique

BUSI 460 Suggested Answers to Selected Review and Discussion Questions Lesson 7

Forecasting. BUS 735: Business Decision Making and Research. exercises. Assess what we have learned

Lecture Prepared By: Mohammad Kamrul Arefin Lecturer, School of Business, North South University

Dennis Bricker Dept of Mechanical & Industrial Engineering The University of Iowa. Forecasting demand 02/06/03 page 1 of 34

DEPARTMENT OF QUANTITATIVE METHODS & INFORMATION SYSTEMS

Forecasting. Simon Shaw 2005/06 Semester II

Forecasting. Chapter Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall

The Art of Forecasting

3 Time Series Regression

Econ 300/QAC 201: Quantitative Methods in Economics/Applied Data Analysis. 17th Class 7/1/10

Chapter 5: Forecasting

Forecasting. Copyright 2015 Pearson Education, Inc.

Chapter 8 - Forecasting

Lecture 4 Forecasting

Cyclical Effect, and Measuring Irregular Effect

Autoregressive models with distributed lags (ADL)

TIMES SERIES INTRODUCTION INTRODUCTION. Page 1. A time series is a set of observations made sequentially through time

Topics Covered in Math 115

Public Library Use and Economic Hard Times: Analysis of Recent Data

9) Time series econometrics

Multiplicative Winter s Smoothing Method

Financial Time Series Analysis: Part II

Glossary. The ISI glossary of statistical terms provides definitions in a number of different languages:

Ch3. TRENDS. Time Series Analysis

Time Series Analysis -- An Introduction -- AMS 586

FORECASTING COARSE RICE PRICES IN BANGLADESH

STRUCTURAL TIME-SERIES MODELLING

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

Simple Descriptive Techniques

Forecasting: The First Step in Demand Planning

Contents. 9. Fractional and Quadratic Equations 2 Example Example Example

Decision 411: Class 3

Prof. Dr. Roland Füss Lecture Series in Applied Econometrics Summer Term Introduction to Time Series Analysis

Decision 411: Class 3

MHCA Math Summer Packet 2015

Decision 411: Class 3

Time Series and Forecasting

Seasonal Models and Seasonal Adjustment

03 Time series with trend and seasonality components. Andrius Buteikis,

Learning Module 1 - Basic Algebra Review (Appendix A)

Time Series Analysis of Stock Prices Using the Box- Jenkins Approach

Graphing Equations Chapter Test

Math Exam Jam Solutions. Contents. 1 Linear Inequalities and Absolute Value Equations 2

Time Series and Forecasting

Lecture 2. Business Cycle Measurement. Randall Romero Aguilar, PhD II Semestre 2017 Last updated: August 18, 2017

APPLICATIONS OF MATHEMATICAL METHODS IN THE SUPERVISION OF THE TECHNICAL SAFETY OF WATER CONSTRUCTIONS

Exponential and Logarithmic Functions. Copyright Cengage Learning. All rights reserved.

Question 1. Find the coordinates of the y-intercept for. f) None of the above. Question 2. Find the slope of the line:

Modelling trends in the ocean wave climate for dimensioning of ships

FinQuiz Notes

Forecasting Major Vegetable Crops Productions in Tunisia

Spiral Review Probability, Enter Your Grade Online Quiz - Probability Pascal's Triangle, Enter Your Grade

Applied Time Series Topics

Some Time-Series Models

Revised: 2/19/09 Unit 1 Pre-Algebra Concepts and Operations Review

Lecture Prepared By: Mohammad Kamrul Arefin Lecturer, School of Business, North South University

Lecture 6: Sections 2.2 and 2.3 Polynomial Functions, Quadratic Models

INTRODUCTION TO FORECASTING (PART 2) AMAT 167

( ) ( ) x. The exponential function f(x) with base b is denoted by x

Pacing Guide Algebra 1

Threshold Autoregressions and NonLinear Autoregressions

How do we analyze, evaluate, solve, and graph quadratic functions?

EXPONENTIAL, LOGARITHMIC, AND TRIGONOMETRIC FUNCTIONS

Midterm 2 - Solutions

EPPING HIGH SCHOOL ALGEBRA 2 Concepts COURSE SYLLABUS

MATHEMATICS CONTENT ASSESSED ON THE ALGEBRA 1 EOC ASSESSMENT AND ITEM TYPES BY BENCHMARK

YEAR 10 GENERAL MATHEMATICS 2017 STRAND: BIVARIATE DATA PART II CHAPTER 12 RESIDUAL ANALYSIS, LINEARITY AND TIME SERIES

THE ROYAL STATISTICAL SOCIETY 2009 EXAMINATIONS SOLUTIONS GRADUATE DIPLOMA MODULAR FORMAT MODULE 3 STOCHASTIC PROCESSES AND TIME SERIES

Question 1 [17 points]: (ch 11)

Sec. 4.2 Logarithmic Functions

CDS M Phil Econometrics

Week 5 Quantitative Analysis of Financial Markets Modeling and Forecasting Trend

Econometric Forecasting Overview

Time Series Analysis. Smoothing Time Series. 2) assessment of/accounting for seasonality. 3) assessment of/exploiting "serial correlation"

Chapter 9: Forecasting

Modeling and Forecasting Currency in Circulation in Sri Lanka

The linear regression model: functional form and structural breaks

14. Time- Series data visualization. Prof. Tulasi Prasad Sariki SCSE, VIT, Chennai

Miller Objectives Alignment Math

Algebra I. Course Outline

Francis X. Diebold, Elements of Forecasting, 4th Edition

7. Forecasting with ARIMA models

Regression and Nonlinear Axes

Lesson 2: Analysis of time series

Forecasting Unemployment Rates in the UK and EU

SCIENCE & TECHNOLOGY

Modelling and Forecasting Australian Domestic Tourism

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

Identifying Causal Effects in Time Series Models

Math 137 Exam #3 Review Guide

Forecasting with ARMA Models

EPPING HIGH SCHOOL ALGEBRA 2 COURSE SYLLABUS

CURRICULUM CATALOG. Algebra II (3135) VA

Part I State space models

Outline. The binary choice model. The multinomial choice model. Extensions of the basic choice model

Transcription:

ECON 343 Lecture 4 : Smoothing and Extrapolation of Time Series Jad Chaaban Spring 2005-2006

Outline Lecture 4 1. Simple extrapolation models 2. Moving-average models 3. Single Exponential smoothing 4. Double Exponential smoothing 5. Seasonal adjustment 6. Structural breaks

1. Simple extrapolation models Assumptions: Forecast the time series on the basis of its past behavior Deterministic nature: no randomness used in the models here Regress the series against a function of time and/or itself lagged Types of models: Linear trend model Quadratic trend model Exponential model Autoregressive trend model

Linear trend model Assumptions: The series will increase in constant absolute amounts each period Trend line depends only on time t Formula: Y t = α + βt t is usually chosen to equal 0 in the base period and to increase by 1 during each successive period Simple OLS estimation

160 140 120 100 80 60 40 20 0 Excel implementation IMF's International Price of Beef Index monthly, 1980-2005 US cents per pound Jan-80 Jan-82 Jan-84 Jan-86 Jan-88 Jan-90 Jan-92 Jan-94 Jan-96 Jan-98 Jan-00 Jan-02 Jan-04

Excel implementation

Excel implementation

Excel implementation

160 140 120 100 80 60 40 20 0 Excel implementation IMF's International Price of Beef Index monthly, 1980-2005 y = -0.0652x + 175.75 R 2 = 0.1559 US cents per pound Jan-80 Jan-82 Jan-84 Jan-86 Jan-88 Jan-90 Jan-92 Jan-94 Jan-96 Jan-98 Jan-00 Jan-02 Jan-04

Quadratic trend model Assumptions: Extends the simple linear trend model to potential non-linearity Add a term t 2 Formula: Y t = α + βt + γt If β and γ are >0, then y t will always increase If β <0 and γ>0, y t will first decrease then increase If β and γ are <0, then y t will always decrease 2

Excel implementation

160 140 120 100 80 60 40 20 0 Excel implementation IMF's International Price of Beef Index monthly, 1980-2005 y = 0.0004x 2-0.9967x + 691.67 R 2 = 0.1971 US cents per pound Jan-80 Jan-82 Jan-84 Jan-86 Jan-88 Jan-90 Jan-92 Jan-94 Jan-96 Jan-98 Jan-00 Jan-02 Jan-04

Excel implementation Polynomial of 6 time variables 160 140 120 100 80 60 40 20 0 y = -1E-11x 6 + 7E-08x 5-0.0002x 4 + 0.2977x 3-243.59x 2 + 106004x - 2E+07 R 2 = 0.7113 US cents per pound Jan-80 Jan-82 Jan-84 Jan-86 Jan-88 Jan-90 Jan-92 Jan-94 Jan-96 Jan-98 Jan-00 Jan-02 Jan-04

Exponential model Assumptions: The series will grow with constant percentage increases Use of the exponential function Formula: Y = The parameters A and r can be estimated by taking the logarithms of both sides of the formula Then we fit the through OLS the log-linear function: where c 1 =log(a) and c 2 =r t Ae rt log( Y ) = c + c t t 1 2

Excel implementation

Excel implementation IMF's International Price of Beef Index monthly, 1980-2005 160 140 120 100 80 y = 215.04e -0.0007x 60 R 2 = 0.1647 40 20 0 US cents per pound Jan-80 Jan-82 Jan-84 Jan-86 Jan-88 Jan-90 Jan-92 Jan-94 Jan-96 Jan-98 Jan-00 Jan-02 Jan-04

Autoregressive trend model Assumptions: The series will grow according to its lagged values only Formula: Y t = α + βyt 1 Variation of the model: logarithmic autoregressive trend model: log( Y ) = α + β log( Y ) t t 1 If α=0 then the value of β is the compounded rate of growth of the series Y

EViews implementation

EViews implementation

EViews implementation renamed normal autoregressive

EViews implementation

Logarithmic autoregressive EViews implementation

Logarithmic autoregressive EViews implementation

2. Moving Average models Assumptions: The likely value for our series next month is a simple average of its values over the past 12 months No regression used in the model Moving Average An n-period moving average is the average value over the previous n time periods. As you move forward in time, the oldest time period is dropped from the analysis. Weighted Moving Average An n-period weighted moving average allows you to place more weight on more recent time periods by weighting those time periods more heavily.

Moving Average models Formulas: Moving Average MA = with n time periods Weighted Moving Average WMA = n n i ( y,..., 1 t t m n i y t n ( α y,..., 1 α y ) α M ) t n

Excel implementation

160 140 120 100 80 60 40 20 0 Excel implementation IMF's International Price of Beef Index monthly, 1980-2005 Pbeef 6 months MA US cents per pound Jan-80 Jan-83 Jan-86 Jan-89 Jan-92 Jan-95 Jan-98 Jan-01 Jan-04

3. Single Exponential Smoothing This single exponential smoothing method is appropriate for series that move randomly above and below a constant mean with no trend nor seasonal patterns. The smoothed series of is computed recursively, by evaluating: where is the damping (or smoothing) factor. The smaller is the, the smoother is the series. By repeated substitution, we can rewrite the recursion as

Single Exponential Smoothing Exponential smoothing-the forecast of y t is a weighted average of the past values of y t, where the weights decline exponentially with time. The forecasts from single smoothing are constant for all future observations. This constant is given by: Where T is the end of the estimation sample. EViews uses the mean of the initial observations of y t to start the recursion. Values of α around 0.01 to 0.30 work quite well. You can also let EViews estimate to minimize the sum of squares of one-step forecast errors

4. Double Exponential Smoothing This method applies the single smoothing method twice (using the same parameter) It is appropriate for series with a linear trend Double smoothing of a series y is defined by the recursions: where S is the single smoothed series and D is the double smoothed series. Note that double smoothing is a single parameter smoothing method with damping factor

Double Exponential Smoothing Forecasts from double smoothing are computed as: This expression shows that forecasts from double smoothing lie on a linear trend with intercept and slope

Eviews Exponential Smoothing

Eviews Exponential Smoothing

5. Seasonal adjustment If yt is a time series, then its generic element can be expressed as yt = Lt xct x St x εt where Lt : the global trend, Ct : a secular cycle (long term cyclical component), St : the seasonal variation, εt : an irregular component. The objective is to eliminate S First, estimate LxC by deriving an average. For monthly data, a 12-month average: ~ 1 yt = ( yt + 6 +... + yt + yt 1 +... + yt 5 ) 12 which is free of irregular and seasonal fluctuations

Seasonal adjustment Then divide the original data by this estimate: L C S ε y t = S ε = = z t L C ~ y t The next step is to eliminate εt Average the values of St x εt corresponding to the same month For monthly data, suppose there are 48 months: ~ 1 z 1 = ( z 1 + z 13 + z 25 + z 37 ) 4 ~ 1 z 2 = ( z 2 + z 14 + z 26 + z 38 ) 4............ ~ z 1 = 1 ( z 12 + z 24 + z 36 + z 4 48 )

5. Seasonal adjustment The sum of these seasonal indices should be 12 in this case If not, adjust by a factor The final seasonal indices are used to deflate the data as follows: y y... y y a 1 a 2 a 13 a 14 etc =. = = = y y y y 1 2 13 14 / / z / / z 1 2 z z 1 2

Eviews seasonal adjustment

Eviews seasonal adjustment

160 140 120 100 80 60 40 20 0 6. Importance of historical accidents IMF's International Price of Beef Index monthly, 1980-2005 Mad Cow disease, UK US cents per pound Jan-80 Jan-82 Jan-84 Jan-86 Jan-88 Jan-90 Jan-92 Jan-94 Jan-96 Jan-98 Jan-00 Jan-02 Jan-04

Incorporating structural breaks Mad Cow timeline: Early 1990s: The British government insists the disease poses no threat to humans 1993: 120,000 cattle have been diagnosed with Bovine Spongiform Encephalopathy BSE in Britain May 1995: Stephen Churchill, 19, becomes the first victim of a new version of Creutzfeldt-Jakob Disease (vcjd). His is one of three vcjd deaths in 1995 April 2002: First confirmed case of vcjd appears in the US, in a 22-year-old British woman living in Florida Structural break: end of 1994

Dummy variable before after

Eviews estimation cons t t 2

Eviews estimation

Eviews estimation graph

160 140 120 100 80 60 40 20 0 Comparison Jan-80 Jan-82 Jan-84 Jan-86 Jan-88 Jan-90 Jan-92 Jan-94 Jan-96 Jan-98 Jan-00 Jan-02 Jan-04 Jan-06 Jan-08 Jan-10 Forecast quadratic, with break Forecast quadratic, no break