2.2 Elimination of Trend and Seasonality



Similar documents
Trend and Seasonal Components

Sales forecasting # 2

Forecasting in supply chains

Time series Forecasting using Holt-Winters Exponential Smoothing

Introduction to time series analysis

Time Series Analysis

TIME SERIES ANALYSIS

MGT 267 PROJECT. Forecasting the United States Retail Sales of the Pharmacies and Drug Stores. Done by: Shunwei Wang & Mohammad Zainal

Exponential Smoothing with Trend. As we move toward medium-range forecasts, trend becomes more important.

TIME SERIES ANALYSIS

17. SIMPLE LINEAR REGRESSION II

(More Practice With Trend Forecasts)

Introduction to Time Series Analysis. Lecture 1.

COMP6053 lecture: Time series analysis, autocorrelation.

Time Series Analysis and Forecasting Methods for Temporal Mining of Interlinked Documents

Promotional Forecast Demonstration

Some useful concepts in univariate time series analysis

Advanced Forecasting Techniques and Models: ARIMA

ITSM-R Reference Manual

TIME SERIES ANALYSIS. A time series is essentially composed of the following four components:

Simple Methods and Procedures Used in Forecasting

Outline: Demand Forecasting

Forecasting in STATA: Tools and Tricks

Energy Load Mining Using Univariate Time Series Analysis

State Space Time Series Analysis

2. What is the general linear model to be used to model linear trend? (Write out the model) = or

Method To Solve Linear, Polynomial, or Absolute Value Inequalities:

TIME SERIES ANALYSIS AS A MEANS OF MANAGERIA DECISION MAKING IN MANUFACTURING INDUSTRY

Time Series Analysis and Forecasting

4. Simple regression. QBUS6840 Predictive Analytics.

Time Series Forecasting Techniques

Unit 31 A Hypothesis Test about Correlation and Slope in a Simple Linear Regression

Forecasting Web Page Views: Methods and Observations

3. Regression & Exponential Smoothing

Moving averages. Rob J Hyndman. November 8, 2009

TIME SERIES ANALYSIS & FORECASTING

IBM SPSS Forecasting 22

Time Series Analysis of Network Traffic

16 : Demand Forecasting

Forecasting Analytics. Group members: - Arpita - Kapil - Kaushik - Ridhima - Ushhan

Effect of Forecasting on Bullwhip Effect in Supply Chain Management

Forecasting Methods. What is forecasting? Why is forecasting important? How can we evaluate a future demand? How do we make mistakes?

Time Series and Forecasting

Rob J Hyndman. Forecasting using. 11. Dynamic regression OTexts.com/fpp/9/1/ Forecasting using R 1

Software Review: ITSM 2000 Professional Version 6.0.

DEPARTMENT OF PSYCHOLOGY UNIVERSITY OF LANCASTER MSC IN PSYCHOLOGICAL RESEARCH METHODS ANALYSING AND INTERPRETING DATA 2 PART 1 WEEK 9

Slides Prepared by JOHN S. LOUCKS St. Edward s University

Logs Transformation in a Regression Equation

I. Introduction. II. Background. KEY WORDS: Time series forecasting, Structural Models, CPS

Outline. Role of Forecasting. Characteristics of Forecasts. Logistics and Supply Chain Management. Demand Forecasting

Time Series Analysis of Aviation Data

IBM SPSS Forecasting 21

Chapter 27 Using Predictor Variables. Chapter Table of Contents

Industry Environment and Concepts for Forecasting 1

5. Multiple regression

Forecasting methods applied to engineering management

Demand Forecasting LEARNING OBJECTIVES IEEM Understand commonly used forecasting techniques. 2. Learn to evaluate forecasts

Big Data, Socio- Psychological Theory, Algorithmic Text Analysis, and Predicting the Michigan Consumer Sentiment Index

Time Series - ARIMA Models. Instructor: G. William Schwert

Analyzing price seasonality

Time Series Analysis

Time Series Analysis. 1) smoothing/trend assessment

Time Series Analysis III

Objectives of Chapters 7,8

Machine Learning in Statistical Arbitrage

Univariate and Multivariate Methods PEARSON. Addison Wesley

Week 5: Multiple Linear Regression

Week TSX Index

Regression and Time Series Analysis of Petroleum Product Sales in Masters. Energy oil and Gas

Time series forecasting

y t by left multiplication with 1 (L) as y t = 1 (L) t =ª(L) t 2.5 Variance decomposition and innovation accounting Consider the VAR(p) model where

A Regime-Switching Model for Electricity Spot Prices. Gero Schindlmayr EnBW Trading GmbH

Chapter 4: Vector Autoregressive Models

9th Russian Summer School in Information Retrieval Big Data Analytics with R

Time Series Analysis

Financial TIme Series Analysis: Part II

Module 5: Multiple Regression Analysis

Causal Forecasting Models

Demand Forecasting When a product is produced for a market, the demand occurs in the future. The production planning cannot be accomplished unless

Automated Biosurveillance Data from England and Wales,

Time Series Analysis: Basic Forecasting.

The Combination Forecasting Model of Auto Sales Based on Seasonal Index and RBF Neural Network

KATE GLEASON COLLEGE OF ENGINEERING. John D. Hromi Center for Quality and Applied Statistics

Agenda. Managing Uncertainty in the Supply Chain. The Economic Order Quantity. Classic inventory theory

Forecasting Using Eviews 2.0: An Overview

Equations for Inventory Management

Module 6: Introduction to Time Series Forecasting

Forecasting sales and intervention analysis of durable products in the Greek market. Empirical evidence from the new car retail sector.

Analysis of algorithms of time series analysis for forecasting sales

Time Series Analysis

CALL VOLUME FORECASTING FOR SERVICE DESKS

Theory at a Glance (For IES, GATE, PSU)

A Novel Technique for Long-Term Anomaly Detection in the Cloud

Transcription:

26 CHAPTER 2. TREND AND SEASONAL COMPONENTS 2.2 Elimination of Trend and Seasonality Here we assume that the TS model is additive and there exist both trend and seasonal components, that is X t = m t + s t + Y t, (2.6) where the noise fluctuates about zero, i.e., E(Y t ) = 0, the seasonality component s t is such that s t = s t d, where d denotes the length of the period and d s k = 0. k=1 With a seasonal effect of a constant period length d it is convenient to index the data by the number of the season and the number within the season, for example monthly data (d = 12) for b years would be denoted by x jk, j = 1,...,b, k = 1,...,12. As before we want to extract the residuals Ŷt in order to examine their statistical properties. The following methods allow for estimation of the trend and the seasonal components. 2.2.1 Small Trend Method This method is useful when the time series has a small trend and we may assume that the trend within each period is constant. Then, due to the assumptions of model 2.6, the period average is an unbiased estimator of the trend, that is m j = 1 d d X jk. The seasonal component estimator, which satisfies the model assumptions is k=1 ŝ k = 1 b b (X jk ˆm j ). j=1

2.2. ELIMINATION OF TREND AND SEASONALITY 27 7 6 Log(Sales) 5 4 3 Figure 2.10: Transformed data and the Trend: Sales of an industrial heater. Removing the estimates of trend and seasonality from the TS, we obtain the residuals Ŷ jk = X jk m j ŝ k, for j = 1,...,b, k = 1,...,d. In Figures 2.10-2.14 there are plotted the transformed data representing sales of an industrial heater in successive months in years 1965-1971, constant trend within a year, detrended observations x jk m j, the estimated seasonal components ŝ k, deseasonlized data x jk ŝ k and the residuals ŷ jk respectively. 2.2.2 Classical Decomposition The method, presented by Brockwell and Davis (2002), consists of the following steps: Step 1 Estimate trend using a moving average filter of the period length d, that is estimate trend by ( 1 1 m t = d 2 X t q + X t q+1 +... + 1 ) 2 X t+q for d = 2q, q < t < n q, 1 d (X t q + X t q+1 +... + X t+q ) for d = 2q + 1, q + 1 < t < n q. Step 2 Estimate seasonal effects s k for k = 1,...,d: compute the averages of the detrended values (X l ˆm l ), q < l = k + jd

28 CHAPTER 2. TREND AND SEASONAL COMPONENTS Detrended Log(Sales) 0.8 0.3-0.2-0.7-1.2 Figure 2.11: Detrended data: Sales of an industrial heater. 0.5 Seasonality 0.0-0.5-1.0 Figure 2.12: Seasonal component: Sales of an industrial heater.

2.2. ELIMINATION OF TREND AND SEASONALITY 29 6.5 Deseasonalized data 6.0 5.5 5.0 4.5 Figure 2.13: Deseasonalized data: Sales of an industrial heater. 0.3 0.1 Residuals -0.1-0.3-0.5 Figure 2.14: Residuals after removing trend and seasonal effects: Sales of an industrial heater.

30 CHAPTER 2. TREND AND SEASONAL COMPONENTS n q, j = 1,...,b and adjust them so as the seasonal effects meet the model assumptions, that is estimate the seasonal component s k as (X l m l ) ŝ k = k 1 d ŝ k d, k > d. d (X l m l ) i, k = 1,...,d, i=1 Step 3 Remove the seasonality to obtain D t = X t ŝ t, t = 1,...,n. Step 4 Re-estimate the trend m t from the deseasonalized variables {D t }. Step 5 Calculate the residuals Ŷ t = X t m t ŝ t. The decomposition used in MINITAB follows the same ideas but it is done in a different order. Also, it uses median, not mean, for estimating seasonal effects. It involves the following steps: 1. Fit a trend line to the data, using least squares regression. 2. Detrend the data by subtracting the trend component from the data (additive model). 3. Smooth the data using a centered moving average with a length equal to the length of the seasonal cycle. 4. Subtract the m.a. from the detrended data to obtain what are often referred to as raw seasonals. 5. Within each seasonal period, the median value of the raw seasonals is found. The medians are adjusted so that their sum is zero. These adjusted medians constitute the so called seasonal indices. 6. The seasonal indices are used in turn to seasonally adjust the data.

2.2. ELIMINATION OF TREND AND SEASONALITY 31 2.2.3 Differencing at lag d We define the lag-d differencing operator by d X t = X t X t d = (1 B d )X t. (2.7) Applying the lag-d operator to the model (2.6) we obtain d X t = (m t + s t + Y t ) (m t d + s t d + Y t d ) = m t m t d + Y t Y t d. This removes the seasonal effect. Then to remove trend we may apply one of the methods described in Section 2.1, for example the method using the lag-1 difference operator. Later during the course we will be modelling the residuals. Knowing their properties will allow us to forecast future noise values in terms of their past values (if they are dependent) and so to forecast future values of the variable of interest X. First however, we need to recall some properties of random variables and their distributions.