Exponential Smoothing

Similar documents
Types of Exponential Smoothing Methods. Simple Exponential Smoothing. Simple Exponential Smoothing

Time series Decomposition method

THE UNIVERSITY OF TEXAS AT AUSTIN McCombs School of Business

Chapter 15. Time Series: Descriptive Analyses, Models, and Forecasting

OBJECTIVES OF TIME SERIES ANALYSIS

Summer Term Albert-Ludwigs-Universität Freiburg Empirische Forschung und Okonometrie. Time Series Analysis

State-Space Models. Initialization, Estimation and Smoothing of the Kalman Filter

Smoothing. Backward smoother: At any give T, replace the observation yt by a combination of observations at & before T

Linear Gaussian State Space Models

Lecture 3: Exponential Smoothing

Kriging Models Predicting Atrazine Concentrations in Surface Water Draining Agricultural Watersheds

3.1 More on model selection

Introduction D P. r = constant discount rate, g = Gordon Model (1962): constant dividend growth rate.

Wisconsin Unemployment Rate Forecast Revisited

Econ107 Applied Econometrics Topic 7: Multicollinearity (Studenmund, Chapter 8)

PROC NLP Approach for Optimal Exponential Smoothing Srihari Jaganathan, Cognizant Technology Solutions, Newbury Park, CA.

Biol. 356 Lab 8. Mortality, Recruitment, and Migration Rates

STAD57 Time Series Analysis. Lecture 17

STAD57 Time Series Analysis. Lecture 17

Section 7.4 Modeling Changing Amplitude and Midline

Excel-Based Solution Method For The Optimal Policy Of The Hadley And Whittin s Exact Model With Arma Demand

Final Spring 2007

Estimation Uncertainty

Diebold, Chapter 7. Francis X. Diebold, Elements of Forecasting, 4th Edition (Mason, Ohio: Cengage Learning, 2006). Chapter 7. Characterizing Cycles

Some Basic Information about M-S-D Systems

Lecture 5. Time series: ECM. Bernardina Algieri Department Economics, Statistics and Finance

Quarterly ice cream sales are high each summer, and the series tends to repeat itself each year, so that the seasonal period is 4.

Cointegration and Implications for Forecasting

Properties of Autocorrelated Processes Economics 30331

Distribution of Least Squares

The Simple Linear Regression Model: Reporting the Results and Choosing the Functional Form

Chapter 5. Heterocedastic Models. Introduction to time series (2008) 1

Financial Econometrics Jeffrey R. Russell Midterm Winter 2009 SOLUTIONS

Licenciatura de ADE y Licenciatura conjunta Derecho y ADE. Hoja de ejercicios 2 PARTE A

Lecture Notes 2. The Hilbert Space Approach to Time Series

Wednesday, November 7 Handout: Heteroskedasticity

Ready for euro? Empirical study of the actual monetary policy independence in Poland VECM modelling

A Shooting Method for A Node Generation Algorithm

1 1 + x 2 dx. tan 1 (2) = ] ] x 3. Solution: Recall that the given integral is improper because. x 3. 1 x 3. dx = lim dx.

Box-Jenkins Modelling of Nigerian Stock Prices Data

Analyze patterns and relationships. 3. Generate two numerical patterns using AC

L07. KALMAN FILTERING FOR NON-LINEAR SYSTEMS. NA568 Mobile Robotics: Methods & Algorithms

t is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t...

Vectorautoregressive Model and Cointegration Analysis. Time Series Analysis Dr. Sevtap Kestel 1

STAD57 Time Series Analysis. Lecture 5

STA 114: Statistics. Notes 2. Statistical Models and the Likelihood Function

Air Traffic Forecast Empirical Research Based on the MCMC Method

ACE 564 Spring Lecture 7. Extensions of The Multiple Regression Model: Dummy Independent Variables. by Professor Scott H.

KINEMATICS IN ONE DIMENSION

Simulation-Solving Dynamic Models ABE 5646 Week 2, Spring 2010

ESTIMATION OF DYNAMIC PANEL DATA MODELS WHEN REGRESSION COEFFICIENTS AND INDIVIDUAL EFFECTS ARE TIME-VARYING

Forecasting optimally

ACE 562 Fall Lecture 8: The Simple Linear Regression Model: R 2, Reporting the Results and Prediction. by Professor Scott H.

On Measuring Pro-Poor Growth. 1. On Various Ways of Measuring Pro-Poor Growth: A Short Review of the Literature

Forecasting. Summary. Sample StatFolio: tsforecast.sgp. STATGRAPHICS Centurion Rev. 9/16/2013

Article from. Predictive Analytics and Futurism. July 2016 Issue 13

Lesson 3.1 Recursive Sequences

The average rate of change between two points on a function is d t

Section 4 NABE ASTEF 232

ECON 482 / WH Hong Time Series Data Analysis 1. The Nature of Time Series Data. Example of time series data (inflation and unemployment rates)

Section 4.4 Logarithmic Properties

Linear Dynamic Models

Georey E. Hinton. University oftoronto. Technical Report CRG-TR February 22, Abstract

Bias in Conditional and Unconditional Fixed Effects Logit Estimation: a Correction * Tom Coupé

Vector autoregression VAR. Case 1

Forecast of Adult Literacy in Sudan

Methodology. -ratios are biased and that the appropriate critical values have to be increased by an amount. that depends on the sample size.

Unit Root Time Series. Univariate random walk

EXPONENTIAL SMOOTHING MODELS: MEANS AND VARIANCES FOR LEAD-TIME DEMAND

Matrix Versions of Some Refinements of the Arithmetic-Geometric Mean Inequality

Decomposing Value Added Growth Over Sectors into Explanatory Factors

Stationary Time Series

Zürich. ETH Master Course: L Autonomous Mobile Robots Localization II

(a) Set up the least squares estimation procedure for this problem, which will consist in minimizing the sum of squared residuals. 2 t.

Stability. Coefficients may change over time. Evolution of the economy Policy changes

Notes on Kalman Filtering

ln 2 1 ln y x c y C x

Volatility. Many economic series, and most financial series, display conditional volatility

Inflation Nowcasting: Frequently Asked Questions These questions and answers accompany the technical working paper Nowcasting U.S.

Section 4.4 Logarithmic Properties

ACE 562 Fall Lecture 4: Simple Linear Regression Model: Specification and Estimation. by Professor Scott H. Irwin

Solutions to Odd Number Exercises in Chapter 6

Distribution of Estimates

Reliability of Technical Systems

ST4064. Time Series Analysis. Lecture notes

Modeling and Forecasting Volatility Autoregressive Conditional Heteroskedasticity Models. Economic Forecasting Anthony Tay Slide 1

R t. C t P t. + u t. C t = αp t + βr t + v t. + β + w t

NCSS Statistical Software. , contains a periodic (cyclic) component. A natural model of the periodic component would be

Improvement of Forecasting Accuracy by the Utilization of Genetic Algorithm with an Application to the Sanitary Materials Data

Dynamic Econometric Models: Y t = + 0 X t + 1 X t X t k X t-k + e t. A. Autoregressive Model:

20. Applications of the Genetic-Drift Model

7 Detrending. 7.1 Identifying trend: a frequency-domain approach

Fourier Transformation on Model Fitting for Pakistan Inflation Rate

Math 333 Problem Set #2 Solution 14 February 2003

THE BERNOULLI NUMBERS. t k. = lim. = lim = 1, d t B 1 = lim. 1+e t te t = lim t 0 (e t 1) 2. = lim = 1 2.

Matlab and Python programming: how to get started

Decompositions of Productivity Growth into Sectoral Effects

Non-uniform circular motion *

Course Notes for EE227C (Spring 2018): Convex Optimization and Approximation

5.1 - Logarithms and Their Properties

Transcription:

Exponenial moohing

Inroducion A simple mehod for forecasing. Does no require long series. Enables o decompose he series ino a rend and seasonal effecs. Paricularly useful mehod when here is a need o forecas many series in real ime. imple exponenial smoohing uppose ha we have a saionary series, X, X2,..., X N, and we wan o forecas X N + as a linear combinaion of previous observaions: X ˆ ( N,) = C,... 0XN + CXN + I makes sense o require C 0 > C > C 2 >... since we are dealing wih a ime series. Le C i i = α( α) C = i= 0 i, 0 α. 2

imple exponenial smoohing (con.) Xˆ ( N,) = αx + α ( α ) X + α ( α ) X +... 2 N N N 2 = α X + ( α)[ αx + α( α) X +...] N N N 2 Xˆ( N,) = α X + ( α) Xˆ( N,) = Xˆ( N,) + αe ; e [ ˆ N = XN XN ()]. N Noice: Xˆ( N,2) = αxˆ( N,) + ( α) Xˆ( N,) = Xˆ( N,) and so forh. Opimaliy of simple exponenial smoohing. Le X = μ + ε + β( ε + ε 2 +...) W = X X = ε ( βε ) = ε θε MA() Under he MA() model: X ˆ () = X θ[ X X ˆ ()] = X ˆ () + ( θ)[ X X ˆ ()] = Xˆ () + α[ X Xˆ ()] ; α = ( θ ). Forecasing equaion of exponenial smooh. N 3

Choise of α for simple smoohing A- ubjecive consideraions B- By minimizaion of sum of squares of forecasing errors: Xˆ (,) = X e = ( X X ) 2 2 Xˆ(2,) = Xˆ(,) + αe = X + α( X X 3 3 2 2 2 e = X [ αx + ( α) X ],... ) Esimaion of α by minimizaion of N 2 e = 2, or a weighed sum. Minimizaion can be carried ou by a grid search in he range 0< α <. Imporan: simple exponenial smoohing can only be applied o a saionary series. For a nonsaionary series i is no longer effecive. Example: X ˆ = γ 0 + γ; γ > 0 αx + ( α) X () < X+. 4

Exponenial smoohing: Hol & Winers mehod A. Addiive decomposiion: X = L + + u L - rend level a ime, - seasonal effec, u - irregular (noise) erm. Ieraive process. When a new observaion X + becomes available, updae L, R T (slope, see below) and as follows: + ( X + ) ( α )( ) L L R R = γ ( ) ( ) L L + γ + + R ; * + δ( ) ( ) X L δ + + + α + = + + ; = + ; s + Forecas m seps ahead: Xˆ 0 δ, γα, L R + m ( m) = + m + ++ i = 0. + i= 0 are smoohing coefficiens. Noe: each updaing equaion is a weighed average of wo esimaes of he corresponding quaniy. One from pas observaions and a new one. 5

Alernaive equaions for addiive smoohing Le e ˆ + = X+ X () denoe he one sep ahead forecasing error. Then, L L R α e = + + ; = + + + + + + + δ α + R R α γ e ( ) e s = + + ; s ++ ++ = ( ) + + s i i e δ α, i=...( s ). s is he lengh of he seasonal cycle (4, 2, ). Implicaion: if he sum of he seasonal effecs is nullified a he sar of he smoohing ( =), i will remain like his for every ime poin. 6

pecial case Consider a non-seasonal series; Xˆ () = L+ R e= X ( L + R ) X= e+ ( L + R ). From previous equaions, L L = R + αe ; R R = αγ e and hence, 2 ( B) L αγe α( e e ) α[ ( γ) B] e = + =. imilarly, 2 ( B) ( L R ) { αb[ ( γ) B] αγb( B)} e + = +, 2 2 ( ) {( ) α [ ( γ) ] αγ ( )} B X = B + B B + B B e. Or, X 2 X X 2 [ α( γ) 2] e ( α) e 2 = + + + ; opimal predicion for ARIMA(0,2,2). 7

Exponenial smoohing: Hol & Winers mehod (con.) B. Muliplicaive decomposiion: X = L I, I are now percenages ( is a seasonal facor, I is he irregular erm.) Raionale of muliplicaive decomposiion: he seasonal effec (no seasonal facor) is proporional o he rend level. uppose ha in monhs, + 2, + 24, =.. Monh + 2 + 24 L 00 200 300 L 0 220 330 L L 0 20 30 is he seasonal facor, L L is he seasonal effec. 8

Exponenial smoohing for muliplicaive decomposiion Possibiliy I: use he log ransformaion, apply addiive smoohing: Y = log( X ) = log( L ) + log( ) + log( I ) Transforming back he smoohed values yields γ L + ( γ ) + = ( R) L δ * + X + + ( δ ) + = ( ) L + R ; ; α L X = L R + ( α ) + ( ) + s ++ i =. + i= 0 Geomeric mean of seasonal facors =. m ˆ m Forecas: ( ) ( ) X m = L R +. Predicion error: e ˆ = ( X / X/ ). Problem: assumes implicily ha he rend evolves in consan raes. No very realisic in pracice. 9

Exponenial smoohing for muliplicaive decomposiion (con.) Possibiliy II: (original procedure of Winer). X L = α + α + ( )( ) + + + L R γ ( ) ( γ) + + R = L L + R ; * X + + = δ ( δ) + + L + ; + Implicaions: ; s i= 0 ++ i + The rend evolves in consan incremens; Arihmeic mean of seasonal facors =. Why require ha he arihmeic mean of he seasonal facors =? Reasonable o impose ha he sum of he seasonal effecs over s successive ime poins is null. Le s=2. If 2 /2 = =, 2 2 =L L = L = Cov L = = ( ) ( ) 2 (, ) Trend level and seasonal facors uncorrelaed. = s 0. 0

aring values for smoohing uppose ha he series is long enough such ha we can use he firs 3 years for saring values. Trend levels: [2][2] X, cenered moving 24 average. Firs a simple moving average of 2 successive poins and hen a simple moving average of every wo successive averages. This way he firs rend value is for =7. easonal effecs (facors): average he wo differences ( X ˆ ) ˆ L (addiive decomposiion) or he wo raios ( X / Lˆ ) (muliplicaive decomposiion), for each calendar monh. ubrac (divide by) he mean of he resuling esimaes from each esimae such ha heir mean equals 0 for he addiive decomposiion (equals for he muliplicaive decomposiion). Incremen: ( Lˆ 25 +... + Lˆ ˆ ˆ 36) ( L3 +... + L24), or 2 2 jus, ( Lˆ ˆ 36 L35).

Graphical es for choosing beween addiive and muliplicaive decomposiion Compue L ˆ for he whole series in he same way as for he saring values, and ˆ ( ˆ = X L). Plo ˆ agains L ˆ for each calendar monh separaely. The monhly esimaes ˆ may be subjeced o large noise, so an alernaive procedure is o plo he annual geomeric means 2 /2 2 ( ˆ /2 X ) j ij L = ij agains ( Lˆ ) j= ij. Raionale: Denoe ˆ = ( X Lˆ ). If ij = K jlij ij ij ij 2 2 2 2 ij = K j j j L j ij K L = = = = j= ij. ( ) Graphical es of smoohing performance (CUUM) Le m = e, m2 = m+ e2 = e+ e2... m = m + e, m = he sum of forecasing errors unil ime. Plo m agains. [ m / e ] k= k and we expec i o be close o 0. 2

Example The able below shows he sales of a business in 4 years. ΙVYear\quarer I II III 22 303 358 288 2 22 325 398 326 3 257 358 42 364 4 275 380 464 42 I is desired o forecas he amoun of sales in he hird and fourh quarers of Year 4, using he daa unil he second quarer of Year 4. We shall use he firs 3 years for saring values and sar he smoohing from he hird quarer of Year 3 ( = ). Le α = γ = δ = 0.. 3

Compuaion of saring values aring values for rend levels: [2][4] 8 X. Lˆ = 0.25X + 0.25X + 0.25X + 0.25X + 0.25X 2 + + 2 L ˆ 3 = 0.25 22+ 0.25(303 + 358 + 288) + 0.25 22 = 292.5 imilar compuaions yield, ΙVYear\quarer I II III 287* 289.75* 292.5 295.25 2 303 32.75 322 330.63 3 337.63 345.25 352.25 357.25 4 365.38 377.88 390.38* 402.88* (*) The firs wo values are compued by subracing he esimaed incremen (295.25-292.5). The las wo values are compued by adding he esimaed incremen (377.88-365.38). These values are used for he graphical es bu are no needed for he smoohing process. 4

Compuaion of saring values (con.) aring values for seasonal effecs: ˆ = ( X Lˆ ) ΙVYear\quarer I II III Mean -66.0 3.25 65.5-7.25.375 2-82.0 2.25 76-4.63 0.405 3-80.6 2.75 68.75 6.75.905 4-90.4 2.2 73.62 8.2 0.87 The able shows ha he series is highly seasonal. Annual average of seasonal effecs close o zero despie of very rough esimaion of rend levels. The figures in he able don indicae ha he seasonal effecs increase when he rend increases, so an addiive decomposiion seems righ. (One can apply boh procedures and compare he forecass.) 5

Graphical es 00 80 Ŝ 60 40 20 0 280-2 0 300 320 340 360 380 400-4 0-6 0-8 0-00 Lˆ The Figure shows very clearly ha here is no apparen relaionship beween ˆ and L ˆ, suggesing ha he addiive decomposiion is more appropriae. Compuaion of he annual geomeric means of ˆ = X Lˆ yields: G = 25.39, G = 24.38, G = 26.28, G = 22.49. () (2) (3) (4) The annual geomeric means of L ˆ are: L = 29., L = 36.93, L = 348.02, L = 383.88 () (2) (3) (4) The annual geomeric means of he rend levels increase, bu he annual geomeric means of he seasonal effecs are more or less consan. 6

Compuaion of saring values for smoohing * = [ 82 + ( 80.63)]/ 2 = 8.32 * 2 = (2.25 + 2.75) / 2 = 2.5 * 3 = (65.5 + 76) / 2 = 70.75 * = * 4 = (7.25 + 4.63) / 2 = 5.94 aring values for seasonal effecs by quarer: = =, 2 = 3.5, 3 = 7.75, * * 80.32 4 = 4.94 =We sar he smoohing a ime 0. Lˆ = 345.25, Rˆ = Lˆ Lˆ = 7.62 0 0 0 9 7

0 moohing under he addiive decomposiion e = X X ˆ () = 42 (345.25 + 7.62 + 7.75) = 3.62 ˆ 0 = 7.75 seasonal effec compued a ime = 0 for ime =. =moohed values for ime L ˆ = L ˆ + R ˆ + αe = 345.25 + 7.62 + 0.( 3.62) = 352.83 0 0 ˆ 2 = ˆ 7.62 (0.) ( 3.62) 7.58 0 + αγ = = R R e 3 3 = 0 + 0.75 δ( α) e = 7.75 + 0.75 0. 0.9( 3.62) = 7.5 4 4 = 0 0.25 δ( α) e = 4.94 0.25 0. 0.9( 3.62) = 5.02 = 0 0.25 δ( α) e = 80.32 0.25 0. 0.9( 3.62) = 80.40 2 2 = 0 0.25 δ( α) e = 3.5 0.25 0. 0.9( 3.62) = 5.02 New forecas: X () = 352.83 + 7.58 5.02 = 355.4 New forecas error: e 2 = 364 355.4 = 8.6 4 j= j = 0 8

moohing (con.) Coninuing he same way for imes = 2, = 3 and = 4 yields he following smoohed values: ime L ˆ =2 36.27 7.66-80.2 =3 368.8 7.52-8.4 =4 376.22 7.42-8.36 R ˆ Ŝ Ŝ 2 Ŝ 3 4 e + Ŝ X ˆ () 3.6 7.70-288.72-4.44 3.72 3.30 7.40-389.62-9.62 4.75 2.62 7.20-454.84 9.6 4.97 Predicion for ime =5: X ˆ 4() = 376.22 + 7.42 + 7.2 = 4.e 5 = 464 454.84 = 9.6(less han 2%). Predicion for ime =5: X ˆ 4(2) = 376.22 + 2 7.42 4.97 = 3e 5 = 34.9(8% error) 548486.9