# TIME SERIES ANALYSIS

Save this PDF as:

Size: px
Start display at page:

## Transcription

1 TIME SERIES ANALYSIS Ramasubramanian V. I.A.S.R.I., Library Avenue, New Delhi Introduction A Time Series (TS) is a sequence of observations ordered in time. Mostly these observations are collected at equally spaced, discrete time intervals. When there is only one variable upon which observations are made then we call them a single time series or more specifically a univariate time series. A basic assumption in any time series analysis/modeling is that some aspects of the past pattern will continue to remain in the future. Also under this set up, often the time series process is assumed to be based on past values of the main variable but not on explanatory variables which may affect the variable/ system. So the system acts as a black box and we may only be able to know about what will happen rather than why it happens. So if time series models are put to use, say, for instance, for forecasting purposes, then they are especially applicable in the short term. Here it is tacitly assumed that information about the past is available in the form of numerical data. Ideally, at least 50 observations are necessary for performing TS analysis/ modeling, as propounded by Box and Jenkins who were pioneers in TS modeling. As far as utility of time series modeling in agriculture is concerned, its application in the area of statistical forecast modeling needs hardly any emphasis. Lack of timely forecasts of, say, agricultural production, especially short term forecasts has often proved to be a major handicap to planners. Various statistical approaches viz. regression, time series and stochastic approaches are in vogue for arriving at crop forecasts. Every approach has its own advantages and limitations. Time series models have advantages in certain situations. They can be used more easily for forecasting purposes because historical sequences of observations upon study variables are readily available from published secondary sources. These successive observations are statistically dependent and time series modeling is concerned with techniques for the analysis of such dependencies. Thus in time series modeling, the prediction of values for the future periods is based on the pattern of past values of the variable under study, but not generally on explanatory variables which may affect the system. There are two main reasons for resorting to such time series models. First, the system may not be understood, and even if it is understood it may be extremely difficult to measure the cause and effect relationship, second, the main concern may be only to predict what will happen and not to know why it happens. Many a time, collection of information on causal factors (explanatory variables) affecting the study variable(s) may be cumbersome /impossible and hence availability of long series data on explanatory variables is a problem. In such situations, the time series models are a boon for forecasters. Decomposition models are among the oldest approaches to time series analysis albeit a number of theoretical weaknesses from a statistical point of view. These were followed by the crudest form of forecasting methods called the moving averages method. As an improvement over this method which had equal weights, exponential smoothing methods came into being which gave more weights to recent data. Exponential smoothing methods have been proposed initially as just recursive methods without any distributional assumptions

2 about the error structure in them, and later, they were found to be particular cases of the statistically sound AutoRegressive Integrated Moving Average (ARIMA) models. In early 1970's, Box and Jenkins pioneered in evolving methodologies for time series modeling in the univariate case often referred to as Univariate Box-Jenkins (UBJ) ARIMA modeling. In course of time, various organisations/ workers in India and abroad have done modeling/ forecasting (of course, not necessarily for agricultural systems) based on time series data using the different methodologies viz. time series decomposition models, exponential smoothing models, ARIMA models and their variations such as seasonal ARIMA models, vector ARIMA models using multivariate time series, ARMAX models i.e. ARIMA with explanatory variables etc A good account on exponential smoothing methods is given in Makridakis et al. (1998). A practical treatment on ARIMA modeling along with several case studies can be found in Pankratz (1983). A reference book on ARIMA and related topics with a more rigorous theoretical flavour is by Box et al. (1994). 2. Time Series Components and Decomposition An important step in analysing TS data is to consider the types of data patterns, so that the models most appropriate to those patterns can be utilized. Four types of time series components can be distinguished. They are (i) Horizontal when data values fluctuate around a constant value (ii) Trend when there is long term increase or decrease in the data (iii) Seasonal when a series is influenced by seasonal factor and recurs on a regular periodic basis (iv) Cyclical when the data exhibit rises and falls that are not of a fixed period Note that many data series include combinations of the preceding patterns. After separating out the existing patterns in any time series data, the pattern that remains unidentifiable, form the random or error component. Time plot (data plotted over time) and seasonal plot (data plotted against individual seasons in which the data were observed) help in visualizing these patterns while exploring the data. A crude yet practical way of decomposing the original data (ignoring cyclical pattern) is to go for a seasonal decomposition either by assuming an additive or multiplicative model viz. Y t = T t + S t + E t or Y t = T t. S t. E t where Y t - Original TS data T t - Trend component S t Seasonal component E t Error/ Irregular component If the magnitude of a TS varies with the level of the series then one has to go for a multiplicative model else an additive model. This decomposition may enable one to study the TS components separately or will allow workers to de-trend or to do seasonal adjustments if needed for further analysis. V-12

3 3. Moving Averages and Exponential Smoothing Methods (i) Simple moving averages A moving average is simply a numerical average of the last N data points. There are prior MA, centered MA etc. in the TS literature. In general, the moving average at time t, taken over N periods, is given by Y Y Y M [ 1] t + t t N + 1 t = N where Y t is the observed response at time t. Another way of stating the above equation is M [1] t = M [1] t 1 + (Y t Y t N ) / N At each successive time period the most recent observation is included and the farthest observation is excluded for computing the average. Hence the name moving averages. (ii) Double moving averages The simple moving average is intended for data of constant and no trend nature. If the data have a linear or quadratic trend, the simple moving average will be misleading. In order to correct for the bias and develop an improved forecasting equation, the double moving average can be calculated. To calculate this, simply treat the moving averages M [1] t over time as individual data points and obtain a moving average of these averages. (iii) Simple Exponential smoothing(ses) Let the time series data be denoted by Y 1, Y 2,,Y t. Suppose we wish to forecast the next value of our time series Y t+1 that is yet to be observed with forecast for Y t denoted by F t. Then the forecast F t+1 is based on weighting the most recent observation Y t with a weight value α and weighting the most recent forecast F t with a weight of (1-α) where α is a smoothing constant/ weight between 0 and 1 Thus the forecast for the period t+1 is given by F = F + Y F t+ 1 t α ( ) t t Note that the choice of α has considerable impact on the forecast. A large value of α(say 0.9) gives very little smoothing in the forecast, whereas a small value of α(say 0.1) gives considerable smoothing. Alternatively, one can choose α from a grid of values (say α=0.1,0.2,,0.9) and choose the value that yields the smallest MSE value. If you expand the above model recursively then F t+1 will come out to be a function of α, past y t values and F 1. So, having known values of α and past values of y t our point of concern relates to initializing the value of F 1. One method of initialization is to use the first observed value Y 1 as the first forecast (F 1 =Y 1 ) and then proceed. Another possibility would be to average the first four or five values in the data set and use this as the initial forecast. However, because the weight attached to this user-defined F 1 is minimal, its effect on F t+1 is negligible. (iv) Double exponential smoothing (Holt) This is to allow forecasting data with trends. The forecast for Holt s linear exponential smoothing is found by having two more equations to SES model to deal with one for level and one for trend. The smoothing parameters (weights) α and β can be chosen from a grid of values (say, each combination of α=0.1,0.2,,0.9 and β=0.1,0.2,,0.9) and then select the combination of α and β which correspond to the lowest MSE. V-13

4 In SPSS, the weights α and β can be chosen from a grid of values (say, each combination of α=0.1,0.2,,0.9 and β=0.1,0.2,,0.9) and then select the combination of α and β which correspond to the lowest MSE. Illustration: Consider Dataset-1 given in Appendix. Find the Holt s exponential smoothing one-step-ahead forecasts for the period to by using SPSS and model built upon the years to automatic values for initial and trend values and choosing grid of values between 0.1 to 0.9 with increment of 0.1 each time for both α and β (In SPSS, go to Analyse -> Time series -> Exponential smoothing model. In the pop up menu choose radio option button Holt ; then choose the option Parameters. Also inside the option Save choose Predict through). Also see Fig. (i) and SPSS Output I for details. Note:- In SPSS, before proceeding to analyse TS data, periodicity has to be assigned to the data by defining Dates. For this, choose, Data -> Define Dates ->Cases Are: - defines the time interval used to generate dates.; First Case Is:- Defines the starting date value, which is assigned to the first case. Sequential values, based on the time interval, are assigned to subsequent cases.; Periodicity at higher level:- Indicates the repetitive cyclical variation, such as the number of months in a year or the number of days in a week. The value displayed indicates the maximum value you can enter. A new numeric variable is created for each component that is used to define the date. (v) Triple exponential smoothing (Winters) This method is recommended when seasonality exists in the time series data. This method is based on three smoothing equations one for the level, one for trend, and one for seasonality. It is similar to Holt s method, with one additional equation to deal with seasonality. In fact there are two different Winter s methods depending on whether seasonality is modeled in an additive or multiplicative way. Fig (i) Forecasting using Holt s exponential smoothing model in SPSS V-14

5 SPSS Output (i) :- Forecasting using Holt s exponential smoothing model ExSmooth Model Description Model Name MOD_5 Series 1 Y Holt's Trend Linear Model Seasonality None Applying the model specifications from MOD_5 Initial Smoothing State y Level Trend Smallest Sums of Squared Errors Series Model rank Alpha (Level) Gamma (Trend) Sums of Squared Errors Y Smoothing Parameters Series Y Alpha (Level) Gamma (Trend) Sums of Squared Errors df error Shown here are the parameters with the smallest Sums of Squared Errors. These parameters are used to forecast. 4. Stationarity of a TS Process A TS is said to be stationary if its underlying generating process is based on a constant mean and constant variance with its autocorrelation function (ACF) essentially constant through time. Thus, if we consider different subsets of a realization (time series sample ) the different subsets will typically have means, variances and autocorrelation functions that do not differ significantly. 28 V-15

6 A statistical test for stationarity is the most widely used Dickey Fuller test. To carry out the test, estimate by OLS the regression model y' t = φ y t -1 +b 1 y t b p y t -p where y' t denotes the differenced series (y t -y t -1 ). The number of terms in the regression, p, is usually set to be about 3. Then if φ is nearly zero the original series y t needs differencing. And if φ <0 then y t is already stationary. 5. Autocorrelation Functions (i) Autocorrelation Autocorrelation refers to the way the observations in a time series are related to each other and is measured by the simple correlation between current observation (Y t ) and observation from p periods before the current one (Y t p ). That is for a given series Y t, autocorrelation at lag p is the correlation between the pair (Y t, Y t p ) and is given by n p ( Yt Y )( Yt + p Y ) t = 1 rp = n ( Yt Y ) t = 1 2 It ranges from 1 to +1. Box and Jenkins has suggested that maximum number of useful r p are roughly N/4 where N is the number of periods upon which information on y t is available. (ii) Partial autocorrelation Partial autocorrelations are used to measure the degree of association between y t and y t-p when the y-effects at other time lags 1,2,3,,p-1 are removed. (iii) Autocorrelation function(acf) and partial autocorrelation function(pacf) Theoretical ACFs and PACFs (Autocorrelations versus lags) are available for the various models chosen (say, see Pankratz, 1984) for various values of orders of autoregressive and moving average components i.e. p and q. Thus compare the correlograms (plot of sample ACFs versus lags) obtained from the given TS data with these theoretical ACF/PACFs, to find a reasonably good match and tentatively select one or more ARIMA models. The general characteristics of theoretical ACFs and PACFs are as follows:- (here spike represents the line at various lags in the plot with length equal to magnitude of autocorrelations) Model ACF PACF AR Spikes decay towards zero Spikes cutoff to zero MA Spikes cutoff to zero Spikes decay to zero ARMA Spikes decay to zero Spikes decay to zero V-16

7 6. Description of ARIMA Representation (i) ARIMA modeling In general, an ARIMA model is characterized by the notation ARIMA (p,d,q) where, p, d and q denote orders of auto-regression, integration (differencing) and moving average respectively. In ARIMA parlance, TS is a linear function of past actual values and random shocks. For instance, given a time series process {y t }, a first order auto-regressive process is denoted by ARIMA (1,0,0) or simply AR(1) and is given by y t = µ + φ 1 y t-1 + ε t and a first order moving average process is denoted by ARIMA (0,0,1) or simply MA(1) and is given by y t = µ - θ 1 ε t-1 + ε t Alternatively, the model ultimately derived, may be a mixture of these processes and of higher orders as well. Thus a stationary ARMA (p, q) process is defined by the equation y t = φ 1 y t-1 +φ 2 y t φ p y t-p -θ 1 ε t-1 -θ 2 ε t-2 + -θ q ε t-q +ε t where ε t s are independently and normally distributed with zero mean and constant variance σ 2 for t = 1,2,...n. Note here that the values of p and q, in practice lie between 0 and 3. The degree of differencing of main variable y t will be discussed in section 7 (i)). (ii) Seasonal ARIMA modeling Identification of relevant models and inclusion of suitable seasonal variables are necessary for seasonal. The Seasonal ARIMA i.e. ARIMA (p,d,q) (P,D,Q) s model is defined by φ p (B) P (B s ) d s D y t = Θ Q (B s ) θ q (B) ε t where φ p (B) = 1 - φ 1 B-.-φ p B p, θ q (B) = 1-θ 1 B- -θ q B q P (B s ) = 1-1 B s - - P B sp, Θ Q (B s ) = 1- Θ 1 B s - -Θ Q B sq B is the backshift operator (i.e. B y t = y t-1, B 2 y t = y t-2 and so on), s the seasonal lag and ε t a sequence of independent normal error variables with mean 0 and variance σ 2. 's and φ's are respectively the seasonal and non-seasonal autoregressive parameters. Θ's and θ's are respectively seasonal and non-seasonal moving average parameters. p and q are orders of non-seasonal autoregression and moving average parameters respectively whereas P and Q are that of the seasonal auto regression and moving average parameters respectively. Also d and D denote non-seasonal and seasonal differences respectively. 7. The Art of ARIMA Model Building (i) Identification The foremost step in the process of modeling is to check for the stationarity of the series, as the estimation procedures are available only for stationary series. There are two kinds of stationarity, viz., stationarity in mean and stationarity in variance. A cursory look at the graph of the data and structure of autocorrelation and partial correlation coefficients may provide clues for the presence of stationarity. Another way of checking for stationarity is to fit a first order autoregressive model for the raw data and test whether the coefficient φ 1 is less than one. If the model is found to be non-stationary, stationarity could be achieved V-17

8 mostly by differencing the series. Or go for a Dickey Fuller test( see section 4). Stationarity in variance could be achieved by some modes of transformation, say, log transformation. This is applicable for both seasonal and non-seasonal stationarity. Thus, if X t denotes the original series, the non-seasonal difference of first order is Y t = X t X t-1 followed by the seasonal differencing (if needed) Z t = Y t Y t s = (X t X t-1 ) (X t-s - X t-s-1 ) The next step in the identification process is to find the initial values for the orders of seasonal and non-seasonal parameters, p, q, and P, Q. They could be obtained by looking for significant autocorrelation and partial autocorrelation coefficients (see section 5 (iii)). Say, if second order auto correlation coefficient is significant, then an AR (2), or MA (2) or ARMA (2) model could be tried to start with. This is not a hard and fast rule, as sample autocorrelation coefficients are poor estimates of population autocorrelation coefficients. Still they can be used as initial values while the final models are achieved after going through the stages repeatedly. Note that usually up to order 2 for p, d, or q are sufficient for developing a good model in practice. (ii) Estimation At the identification stage one or more models are tentatively chosen that seem to provide statistically adequate representations of the available data. Then we attempt to obtained precise estimates of parameters of the model by least squares as advocated by Box and Jenkins. Standard computer packages like SAS, SPSS etc. are available for finding the estimates of relevant parameters using iterative procedures. The methods of estimation are not discussed here for brevity. (iii) Diagnostics Different models can be obtained for various combinations of AR and MA individually and collectively. The best model is obtained with following diagnostics. (a) Low Akaike Information Criteria (AIC)/ Bayesian Information Criteria (BIC)/ Schwarz-Bayesian Information Criteria (SBC) AIC is given by AIC = (-2 log L + 2 m) where m=p+ q+ P+ Q and L is the likelihood function. Since -2 log L is approximately equal to {n (1+log 2π) + n log σ 2 } where σ 2 is the model MSE, AIC can be written as AIC={n (1+log 2π) + n log σ m}and because first term in this equation is a constant, it is usually omitted while comparing between models. As an alternative to AIC, sometimes SBC is also used which is given by SBC = log σ 2 + (m log n) /n. (b) Plot of residual ACF Once the appropriate ARIMA model has been fitted, one can examine the goodness of fit by means of plotting the ACF of residuals of the fitted model. If most of the sample autocorrelation coefficients of the residuals are within the limits ± 1.96 / N where N is the V-18

9 number of observations upon which the model is based then the residuals are white noise indicating that the model is a good fit. (c) Non-significance of auto correlations of residuals via Portmonteau tests (Q-tests based on Chisquare statistics)-box-pierce or Ljung-Box texts After tentative model has been fitted to the data, it is important to perform diagnostic checks to test the adequacy of the model and, if need be, to suggest potential improvements. One way to accomplish this is through the analysis of residuals. It has been found that it is effective to measure the overall adequacy of the chosen model by examining a quantity Q known as Box-Pierce statistic (a function of autocorrelations of residuals) whose approximate distribution is chi-square and is computed as follows: 2 Q == nn ΣΣ r (j( j) ) where summation extends from 1 to k with k as the maximum lag considered, n is the number of observations in the series, r (j) is the estimated autocorrelation at lag j; k can be any positive integer and is usually around 20. Q follows Chi-square with (k-m 1 ) degrees of freedom where m 1 is the number of parameters estimated in the model. A modified Q statistic is the Ljung-box statistic which is given by Q == nn( (nn++22) ) ΣΣ r 2 (j)) / (nn j ( j) ) 2 ( The Q Statistic is compared to critical values from chi-square distribution. If model is correctly specified, residuals should be uncorrelated and Q should be small (the probability value should be large). A significant value indicates that the chosen model does not fit well. All these stages require considerable care and work and they themselves are not exhaustive. Illustration: Consider Dataset 2 given in Appendix. 1. Draw time plot. Perform the following Dickey - Fuller test. Fit the model ' ' ' y t = φ y t 1 1y t 1 2y + φ + φ t 2 + φ3y t 3 with 'no intercept' and observe whether ˆφ 0 (i.e. data is non- stationary) or ˆφ < 0 (i.e. data is stationary). Whether the data needs differencing? 2. By drawing correlograms identify the tentative values of p and q. (In SPSS go to Graph -> Time series -> Autocorrelation) 3. Obtain parameter estimates of the model upon the years to by identifing a series of ARIMA (p,d,q) models (p-=0,1,2,3; d obtained in question 1; q = 0,1,2,3) also preserving parsimony that might be useful in describing the time series. Which of your models is the best according to their AIC values? (In SPSS go to Analyse -> Time series -> ARIMA model) 4. For the models obtained in (3) & (4) perform separately diagnostic tests upon residuals using (i) Residual ACF (it) Box-Pierce Chi-square test. 5. Forecast for lead years to (Inside option Save -> Predict through ) See Fig. (ii) and SPSS Output (ii) for details. V-19

10 Fig (ii) Forecasting using ARIMA model in SPSS SPSS Output (ii) :- Forecasting using ARIMA model Value DIFF(y,1) Case Number y 1.0 Coefficient Upper Confidence Limit Lower Confidence Limit 0.5 ACF Lag Number V-20

11 y 1.0 Coefficient Upper Confidence Limit Lower Confidence Limit 0.5 Partial ACF Lag Number Parameter Estimates 8 Non- Seasonal Lags Estimate s Std Error t Approx Sig AR AR Constant Melard's algorithm was used for estimation. References Box, G.E.P., Jenkins, G.M. and Reinsel, G.C. (1994). Time series analysis : Forecasting and control, Pearson Education, Delhi. Makridakis, S., Wheelwright, S.C. and Hyndman, R.J. (1998). Forecasting Methods and Applications, 3 rd Edition, John Wiley, New York. Pankratz, A. (1983). Forecasting with univariate Box Jenkins models: concepts and cases, John Wiley, New york. V-21

12 Appendix: 34 years data relating to Cotton crop of India Dataset-1 (Rajasthan state) Dataset-2 (Maharashtra state) Year Area Year Area Year Yield Year Yield (in 1000 ha) (in 1000 ha) (in kg/ha) (in kg/ha) V-22

### TIME SERIES ANALYSIS

TIME SERIES ANALYSIS L.M. BHAR AND V.K.SHARMA Indian Agricultural Statistics Research Institute Library Avenue, New Delhi-0 02 lmb@iasri.res.in. Introduction Time series (TS) data refers to observations

### TIME-SERIES ANALYSIS, MODELLING AND FORECASTING USING SAS SOFTWARE

TIME-SERIES ANALYSIS, MODELLING AND FORECASTING USING SAS SOFTWARE Ramasubramanian V. IA.S.R.I., Library Avenue, Pusa, New Delhi 110 012 ramsub@iasri.res.in 1. Introduction Time series (TS) data refers

### A Multiplicative Seasonal Box-Jenkins Model to Nigerian Stock Prices

A Multiplicative Seasonal Box-Jenkins Model to Nigerian Stock Prices Ette Harrison Etuk Department of Mathematics/Computer Science, Rivers State University of Science and Technology, Nigeria Email: ettetuk@yahoo.com

### ADVANCED FORECASTING MODELS USING SAS SOFTWARE

ADVANCED FORECASTING MODELS USING SAS SOFTWARE Girish Kumar Jha IARI, Pusa, New Delhi 110 012 gjha_eco@iari.res.in 1. Transfer Function Model Univariate ARIMA models are useful for analysis and forecasting

### Forecasting of Paddy Production in Sri Lanka: A Time Series Analysis using ARIMA Model

Tropical Agricultural Research Vol. 24 (): 2-3 (22) Forecasting of Paddy Production in Sri Lanka: A Time Series Analysis using ARIMA Model V. Sivapathasundaram * and C. Bogahawatte Postgraduate Institute

Chapter 7 Chapter Table of Contents OVERVIEW...193 GETTING STARTED...194 TheThreeStagesofARIMAModeling...194 IdentificationStage...194 Estimation and Diagnostic Checking Stage...... 200 Forecasting Stage...205

### IBM SPSS Forecasting 22

IBM SPSS Forecasting 22 Note Before using this information and the product it supports, read the information in Notices on page 33. Product Information This edition applies to version 22, release 0, modification

### Forecasting areas and production of rice in India using ARIMA model

International Journal of Farm Sciences 4(1) :99-106, 2014 Forecasting areas and production of rice in India using ARIMA model K PRABAKARAN and C SIVAPRAGASAM* Agricultural College and Research Institute,

### Using JMP Version 4 for Time Series Analysis Bill Gjertsen, SAS, Cary, NC

Using JMP Version 4 for Time Series Analysis Bill Gjertsen, SAS, Cary, NC Abstract Three examples of time series will be illustrated. One is the classical airline passenger demand data with definite seasonal

### Time Series Analysis

JUNE 2012 Time Series Analysis CONTENT A time series is a chronological sequence of observations on a particular variable. Usually the observations are taken at regular intervals (days, months, years),

### Energy Load Mining Using Univariate Time Series Analysis

Energy Load Mining Using Univariate Time Series Analysis By: Taghreed Alghamdi & Ali Almadan 03/02/2015 Caruth Hall 0184 Energy Forecasting Energy Saving Energy consumption Introduction: Energy consumption.

### Analysis of algorithms of time series analysis for forecasting sales

SAINT-PETERSBURG STATE UNIVERSITY Mathematics & Mechanics Faculty Chair of Analytical Information Systems Garipov Emil Analysis of algorithms of time series analysis for forecasting sales Course Work Scientific

### COMP6053 lecture: Time series analysis, autocorrelation. jn2@ecs.soton.ac.uk

COMP6053 lecture: Time series analysis, autocorrelation jn2@ecs.soton.ac.uk Time series analysis The basic idea of time series analysis is simple: given an observed sequence, how can we build a model that

### IBM SPSS Forecasting 21

IBM SPSS Forecasting 21 Note: Before using this information and the product it supports, read the general information under Notices on p. 107. This edition applies to IBM SPSS Statistics 21 and to all

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

9th Russian Summer School in Information Retrieval Big Data Analytics with R Introduction to Time Series with R A. Karakitsiou A. Migdalas Industrial Logistics, ETS Institute Luleå University of Technology

### Luciano Rispoli Department of Economics, Mathematics and Statistics Birkbeck College (University of London)

Luciano Rispoli Department of Economics, Mathematics and Statistics Birkbeck College (University of London) 1 Forecasting: definition Forecasting is the process of making statements about events whose

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

Time Series Analysis and Forecasting Methods for Temporal Mining of Interlinked Documents Prasanna Desikan and Jaideep Srivastava Department of Computer Science University of Minnesota. @cs.umn.edu

UCL DEPARTMENT OF SECURITY AND CRIME SCIENCE Advanced time-series analysis Lisa Tompson Research Associate UCL Jill Dando Institute of Crime Science l.tompson@ucl.ac.uk Overview Fundamental principles

### Time Series Analysis

Time Series Analysis Identifying possible ARIMA models Andrés M. Alonso Carolina García-Martos Universidad Carlos III de Madrid Universidad Politécnica de Madrid June July, 2012 Alonso and García-Martos

### Time Series Analysis: Basic Forecasting.

Time Series Analysis: Basic Forecasting. As published in Benchmarks RSS Matters, April 2015 http://web3.unt.edu/benchmarks/issues/2015/04/rss-matters Jon Starkweather, PhD 1 Jon Starkweather, PhD jonathan.starkweather@unt.edu

### Time Series Graphs. Model ACF PACF. White Noise All zeros All zeros. AR(p) Exponential Decay P significant lags before dropping to zero

Time Series Graphs Model ACF PACF White Noise All zeros All zeros AR(p) Exponential Decay P significant lags before dropping to zero MA(q) q significant lags before dropping to zero Exponential Decay ARMA(p,q)

### ITSM-R Reference Manual

ITSM-R Reference Manual George Weigt June 5, 2015 1 Contents 1 Introduction 3 1.1 Time series analysis in a nutshell............................... 3 1.2 White Noise Variance.....................................

### Time series Forecasting using Holt-Winters Exponential Smoothing

Time series Forecasting using Holt-Winters Exponential Smoothing Prajakta S. Kalekar(04329008) Kanwal Rekhi School of Information Technology Under the guidance of Prof. Bernard December 6, 2004 Abstract

### Some useful concepts in univariate time series analysis

Some useful concepts in univariate time series analysis Autoregressive moving average models Autocorrelation functions Model Estimation Diagnostic measure Model selection Forecasting Assumptions: 1. Non-seasonal

### The SAS Time Series Forecasting System

The SAS Time Series Forecasting System An Overview for Public Health Researchers Charles DiMaggio, PhD College of Physicians and Surgeons Departments of Anesthesiology and Epidemiology Columbia University

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

APS 425 Fall 25 Time Series : ARIMA Models Instructor: G. William Schwert 585-275-247 schwert@schwert.ssb.rochester.edu Topics Typical time series plot Pattern recognition in auto and partial autocorrelations

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

Rob J Hyndman Forecasting using 11. Dynamic regression OTexts.com/fpp/9/1/ Forecasting using R 1 Outline 1 Regression with ARIMA errors 2 Example: Japanese cars 3 Using Fourier terms for seasonality 4

### Graphical Tools for Exploring and Analyzing Data From ARIMA Time Series Models

Graphical Tools for Exploring and Analyzing Data From ARIMA Time Series Models William Q. Meeker Department of Statistics Iowa State University Ames, IA 50011 January 13, 2001 Abstract S-plus is a highly

### ISSUES IN UNIVARIATE FORECASTING

ISSUES IN UNIVARIATE FORECASTING By Rohaiza Zakaria 1, T. Zalizam T. Muda 2 and Suzilah Ismail 3 UUM College of Arts and Sciences, Universiti Utara Malaysia 1 rhz@uum.edu.my, 2 zalizam@uum.edu.my and 3

### Time Series Analysis and Forecasting

Time Series Analysis and Forecasting Math 667 Al Nosedal Department of Mathematics Indiana University of Pennsylvania Time Series Analysis and Forecasting p. 1/11 Introduction Many decision-making applications

### Search Marketing Cannibalization. Analytical Techniques to measure PPC and Organic interaction

Search Marketing Cannibalization Analytical Techniques to measure PPC and Organic interaction 2 Search Overview How People Use Search Engines Navigational Research Health/Medical Directions News Shopping

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

MGT 267 PROJECT Forecasting the United States Retail Sales of the Pharmacies and Drug Stores Done by: Shunwei Wang & Mohammad Zainal Dec. 2002 The retail sale (Million) ABSTRACT The present study aims

### 5. Multiple regression

5. Multiple regression QBUS6840 Predictive Analytics https://www.otexts.org/fpp/5 QBUS6840 Predictive Analytics 5. Multiple regression 2/39 Outline Introduction to multiple linear regression Some useful

### Sales forecasting # 2

Sales forecasting # 2 Arthur Charpentier arthur.charpentier@univ-rennes1.fr 1 Agenda Qualitative and quantitative methods, a very general introduction Series decomposition Short versus long term forecasting

### Chapter 9: Univariate Time Series Analysis

Chapter 9: Univariate Time Series Analysis In the last chapter we discussed models with only lags of explanatory variables. These can be misleading if: 1. The dependent variable Y t depends on lags of

### USE OF ARIMA TIME SERIES AND REGRESSORS TO FORECAST THE SALE OF ELECTRICITY

Paper PO10 USE OF ARIMA TIME SERIES AND REGRESSORS TO FORECAST THE SALE OF ELECTRICITY Beatrice Ugiliweneza, University of Louisville, Louisville, KY ABSTRACT Objectives: To forecast the sales made by

### Traffic Safety Facts. Research Note. Time Series Analysis and Forecast of Crash Fatalities during Six Holiday Periods Cejun Liu* and Chou-Lin Chen

Traffic Safety Facts Research Note March 2004 DOT HS 809 718 Time Series Analysis and Forecast of Crash Fatalities during Six Holiday Periods Cejun Liu* and Chou-Lin Chen Summary This research note uses

### Time Series Analysis

Time Series 1 April 9, 2013 Time Series Analysis This chapter presents an introduction to the branch of statistics known as time series analysis. Often the data we collect in environmental studies is collected

### Univariate and Multivariate Methods PEARSON. Addison Wesley

Time Series Analysis Univariate and Multivariate Methods SECOND EDITION William W. S. Wei Department of Statistics The Fox School of Business and Management Temple University PEARSON Addison Wesley Boston

### Time Series Analysis

Time Series Analysis Forecasting with ARIMA models Andrés M. Alonso Carolina García-Martos Universidad Carlos III de Madrid Universidad Politécnica de Madrid June July, 2012 Alonso and García-Martos (UC3M-UPM)

### Promotional Analysis and Forecasting for Demand Planning: A Practical Time Series Approach Michael Leonard, SAS Institute Inc.

Promotional Analysis and Forecasting for Demand Planning: A Practical Time Series Approach Michael Leonard, SAS Institute Inc. Cary, NC, USA Abstract Many businesses use sales promotions to increase the

### Chapter 4: Vector Autoregressive Models

Chapter 4: Vector Autoregressive Models 1 Contents: Lehrstuhl für Department Empirische of Wirtschaftsforschung Empirical Research and und Econometrics Ökonometrie IV.1 Vector Autoregressive Models (VAR)...

### Promotional Forecast Demonstration

Exhibit 2: Promotional Forecast Demonstration Consider the problem of forecasting for a proposed promotion that will start in December 1997 and continues beyond the forecast horizon. Assume that the promotion

### 16 : Demand Forecasting

16 : Demand Forecasting 1 Session Outline Demand Forecasting Subjective methods can be used only when past data is not available. When past data is available, it is advisable that firms should use statistical

### Forecasting Using Eviews 2.0: An Overview

Forecasting Using Eviews 2.0: An Overview Some Preliminaries In what follows it will be useful to distinguish between ex post and ex ante forecasting. In terms of time series modeling, both predict values

### Analysis and Computation for Finance Time Series - An Introduction

ECMM703 Analysis and Computation for Finance Time Series - An Introduction Alejandra González Harrison 161 Email: mag208@exeter.ac.uk Time Series - An Introduction A time series is a sequence of observations

### Forecasting in supply chains

1 Forecasting in supply chains Role of demand forecasting Effective transportation system or supply chain design is predicated on the availability of accurate inputs to the modeling process. One of the

### Simple Methods and Procedures Used in Forecasting

Simple Methods and Procedures Used in Forecasting The project prepared by : Sven Gingelmaier Michael Richter Under direction of the Maria Jadamus-Hacura What Is Forecasting? Prediction of future events

### 3. Regression & Exponential Smoothing

3. Regression & Exponential Smoothing 3.1 Forecasting a Single Time Series Two main approaches are traditionally used to model a single time series z 1, z 2,..., z n 1. Models the observation z t as a

### Prediction of Stock Price usingautoregressiveintegrated Moving AverageFilter Arima P,D,Q

Global Journal of Science Frontier Research Mathematics and Decision Sciences Volume 13 Issue 8 Version 1.0 Year Type : Double Blind Peer Reviewed International Research Journal Publisher: Global Journals

### Software Review: ITSM 2000 Professional Version 6.0.

Lee, J. & Strazicich, M.C. (2002). Software Review: ITSM 2000 Professional Version 6.0. International Journal of Forecasting, 18(3): 455-459 (June 2002). Published by Elsevier (ISSN: 0169-2070). http://0-

### Appendix 1: Time series analysis of peak-rate years and synchrony testing.

Appendix 1: Time series analysis of peak-rate years and synchrony testing. Overview The raw data are accessible at Figshare ( Time series of global resources, DOI 10.6084/m9.figshare.929619), sources are

### Time Series Analysis of Aviation Data

Time Series Analysis of Aviation Data Dr. Richard Xie February, 2012 What is a Time Series A time series is a sequence of observations in chorological order, such as Daily closing price of stock MSFT in

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

Georgia Southern University Digital Commons@Georgia Southern Electronic Theses & Dissertations Jack N. Averitt College of Graduate Studies (COGS) Time Series Analysis of Stock Prices Using the Box- Jenkins

### Threshold Autoregressive Models in Finance: A Comparative Approach

University of Wollongong Research Online Applied Statistics Education and Research Collaboration (ASEARC) - Conference Papers Faculty of Informatics 2011 Threshold Autoregressive Models in Finance: A Comparative

### Studying Achievement

Journal of Business and Economics, ISSN 2155-7950, USA November 2014, Volume 5, No. 11, pp. 2052-2056 DOI: 10.15341/jbe(2155-7950)/11.05.2014/009 Academic Star Publishing Company, 2014 http://www.academicstar.us

### Forecasting Share Prices of Axis and ICICI Banks by Econometric Modeling

Forecasting Share Prices of Axis and ICICI Banks by Econometric Modeling Monika Saxena Assistant Professor Indus Business Academy Knowledge Park 3, Plot No 44 Greater Noida India Abstract The objective

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

Predicting the National Unemployment Rate that the "Old" CPS Would Have Produced Richard Tiller and Michael Welch, Bureau of Labor Statistics Richard Tiller, Bureau of Labor Statistics, Room 4985, 2 Mass.

### Forecasting Geographic Data Michael Leonard and Renee Samy, SAS Institute Inc. Cary, NC, USA

Forecasting Geographic Data Michael Leonard and Renee Samy, SAS Institute Inc. Cary, NC, USA Abstract Virtually all businesses collect and use data that are associated with geographic locations, whether

### JOHANNES TSHEPISO TSOKU NONOFO PHOKONTSI DANIEL METSILENG FORECASTING SOUTH AFRICAN GOLD SALES: THE BOX-JENKINS METHODOLOGY

DOI: 0.20472/IAC.205.08.3 JOHANNES TSHEPISO TSOKU North West University, South Africa NONOFO PHOKONTSI North West University, South Africa DANIEL METSILENG Department of Health, South Africa FORECASTING

### International Business & Economics Research Journal December 2006 Volume 5, Number 12

Performance Of Deterministic And Stochastic Trends Models In Forecasting The Behavior Of The Canadian Dollar And The Japanese Yen Against The US Dollar Arav Ouandlous, (Email: ouandlou@savstate.edu), Savannah

### Time Series Analysis of Household Electric Consumption with ARIMA and ARMA Models

, March 13-15, 2013, Hong Kong Time Series Analysis of Household Electric Consumption with ARIMA and ARMA Models Pasapitch Chujai*, Nittaya Kerdprasop, and Kittisak Kerdprasop Abstract The purposes of

### FORECASTING AND TIME SERIES ANALYSIS USING THE SCA STATISTICAL SYSTEM

FORECASTING AND TIME SERIES ANALYSIS USING THE SCA STATISTICAL SYSTEM VOLUME 2 Expert System Capabilities for Time Series Modeling Simultaneous Transfer Function Modeling Vector Modeling by Lon-Mu Liu

### FORECAST MODEL USING ARIMA FOR STOCK PRICES OF AUTOMOBILE SECTOR. Aloysius Edward. 1, JyothiManoj. 2

FORECAST MODEL USING ARIMA FOR STOCK PRICES OF AUTOMOBILE SECTOR Aloysius Edward. 1, JyothiManoj. 2 Faculty, Kristu Jayanti College, Autonomous, Bengaluru. Abstract There has been a growing interest in

### Time-Series Analysis CHAPTER. 18.1 General Purpose and Description 18-1

CHAPTER 8 Time-Series Analysis 8. General Purpose and Description Time-series analysis is used when observations are made repeatedly over 5 or more time periods. Sometimes the observations are from a single

### Module 6: Introduction to Time Series Forecasting

Using Statistical Data to Make Decisions Module 6: Introduction to Time Series Forecasting Titus Awokuse and Tom Ilvento, University of Delaware, College of Agriculture and Natural Resources, Food and

### 2.2 Elimination of Trend and Seasonality

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 +

### Introduction to Time Series Analysis. Lecture 1.

Introduction to Time Series Analysis. Lecture 1. Peter Bartlett 1. Organizational issues. 2. Objectives of time series analysis. Examples. 3. Overview of the course. 4. Time series models. 5. Time series

### TIME SERIES ANALYSIS & FORECASTING

CHAPTER 19 TIME SERIES ANALYSIS & FORECASTING Basic Concepts 1. Time Series Analysis BASIC CONCEPTS AND FORMULA The term Time Series means a set of observations concurring any activity against different

### NCSS Statistical Software Principal Components Regression. In ordinary least squares, the regression coefficients are estimated using the formula ( )

Chapter 340 Principal Components Regression Introduction is a technique for analyzing multiple regression data that suffer from multicollinearity. When multicollinearity occurs, least squares estimates

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

Forecasting sales and intervention analysis of durable products in the Greek market. Empirical evidence from the new car retail sector. Maria K. Voulgaraki Department of Economics, University of Crete,

### Section A. Index. Section A. Planning, Budgeting and Forecasting Section A.2 Forecasting techniques... 1. Page 1 of 11. EduPristine CMA - Part I

Index Section A. Planning, Budgeting and Forecasting Section A.2 Forecasting techniques... 1 EduPristine CMA - Part I Page 1 of 11 Section A. Planning, Budgeting and Forecasting Section A.2 Forecasting

### SPSS TRAINING SESSION 3 ADVANCED TOPICS (PASW STATISTICS 17.0) Sun Li Centre for Academic Computing lsun@smu.edu.sg

SPSS TRAINING SESSION 3 ADVANCED TOPICS (PASW STATISTICS 17.0) Sun Li Centre for Academic Computing lsun@smu.edu.sg IN SPSS SESSION 2, WE HAVE LEARNT: Elementary Data Analysis Group Comparison & One-way

### Integrated Resource Plan

Integrated Resource Plan March 19, 2004 PREPARED FOR KAUA I ISLAND UTILITY COOPERATIVE LCG Consulting 4962 El Camino Real, Suite 112 Los Altos, CA 94022 650-962-9670 1 IRP 1 ELECTRIC LOAD FORECASTING 1.1

### AUTOMATION OF ENERGY DEMAND FORECASTING. Sanzad Siddique, B.S.

AUTOMATION OF ENERGY DEMAND FORECASTING by Sanzad Siddique, B.S. A Thesis submitted to the Faculty of the Graduate School, Marquette University, in Partial Fulfillment of the Requirements for the Degree

### Analysis of the Volatility of the Electricity Price in Kenya Using Autoregressive Integrated Moving Average Model

Science Journal of Applied Mathematics and Statistics 2015; 3(2): 47-57 Published online March 28, 2015 (http://www.sciencepublishinggroup.com/j/sjams) doi: 10.11648/j.sjams.20150302.14 ISSN: 2376-9491

### Introduction to time series analysis

Introduction to time series analysis Margherita Gerolimetto November 3, 2010 1 What is a time series? A time series is a collection of observations ordered following a parameter that for us is time. Examples

### Joseph Twagilimana, University of Louisville, Louisville, KY

ST14 Comparing Time series, Generalized Linear Models and Artificial Neural Network Models for Transactional Data analysis Joseph Twagilimana, University of Louisville, Louisville, KY ABSTRACT The aim

### NTC Project: S01-PH10 (formerly I01-P10) 1 Forecasting Women s Apparel Sales Using Mathematical Modeling

1 Forecasting Women s Apparel Sales Using Mathematical Modeling Celia Frank* 1, Balaji Vemulapalli 1, Les M. Sztandera 2, Amar Raheja 3 1 School of Textiles and Materials Technology 2 Computer Information

### Time Series Analysis

Time Series Analysis hm@imm.dtu.dk Informatics and Mathematical Modelling Technical University of Denmark DK-2800 Kgs. Lyngby 1 Outline of the lecture Identification of univariate time series models, cont.:

### Practical Time Series Analysis Using SAS

Practical Time Series Analysis Using SAS Anders Milhøj Contents Preface... vii Part 1: Time Series as a Subject for Analysis... 1 Chapter 1 Time Series Data... 3 1.1 Time Series Questions... 3 1.2 Types

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

Forecasting Methods What is forecasting? Why is forecasting important? How can we evaluate a future demand? How do we make mistakes? Prod - Forecasting Methods Contents. FRAMEWORK OF PLANNING DECISIONS....

### Introduction to Regression and Data Analysis

Statlab Workshop Introduction to Regression and Data Analysis with Dan Campbell and Sherlock Campbell October 28, 2008 I. The basics A. Types of variables Your variables may take several forms, and it

### SAS Software to Fit the Generalized Linear Model

SAS Software to Fit the Generalized Linear Model Gordon Johnston, SAS Institute Inc., Cary, NC Abstract In recent years, the class of generalized linear models has gained popularity as a statistical modeling

### Week TSX Index 1 8480 2 8470 3 8475 4 8510 5 8500 6 8480

1) The S & P/TSX Composite Index is based on common stock prices of a group of Canadian stocks. The weekly close level of the TSX for 6 weeks are shown: Week TSX Index 1 8480 2 8470 3 8475 4 8510 5 8500

### Chapter 25 Specifying Forecasting Models

Chapter 25 Specifying Forecasting Models Chapter Table of Contents SERIES DIAGNOSTICS...1281 MODELS TO FIT WINDOW...1283 AUTOMATIC MODEL SELECTION...1285 SMOOTHING MODEL SPECIFICATION WINDOW...1287 ARIMA

### 4. Simple regression. QBUS6840 Predictive Analytics. https://www.otexts.org/fpp/4

4. Simple regression QBUS6840 Predictive Analytics https://www.otexts.org/fpp/4 Outline The simple linear model Least squares estimation Forecasting with regression Non-linear functional forms Regression

### Forecasting methods applied to engineering management

Forecasting methods applied to engineering management Áron Szász-Gábor Abstract. This paper presents arguments for the usefulness of a simple forecasting application package for sustaining operational

### Simple Linear Regression Inference

Simple Linear Regression Inference 1 Inference requirements The Normality assumption of the stochastic term e is needed for inference even if it is not a OLS requirement. Therefore we have: Interpretation

### Demand Forecasting and Production Planning for Highly Seasonal Demand Situations: Case Study of a Pressure Container Factory

ScienceAsia 27 (2) : 27-278 Demand Forecasting and Production Planning for Highly Seasonal Demand Situations: Case Study of a Pressure Container Factory Pisal Yenradee a,*, Anulark Pinnoi b and Amnaj Charoenthavornying

### 7 Time series analysis

7 Time series analysis In Chapters 16, 17, 33 36 in Zuur, Ieno and Smith (2007), various time series techniques are discussed. Applying these methods in Brodgar is straightforward, and most choices are

### Trend and Seasonal Components

Chapter 2 Trend and Seasonal Components If the plot of a TS reveals an increase of the seasonal and noise fluctuations with the level of the process then some transformation may be necessary before doing

### State Space Time Series Analysis

State Space Time Series Analysis p. 1 State Space Time Series Analysis Siem Jan Koopman http://staff.feweb.vu.nl/koopman Department of Econometrics VU University Amsterdam Tinbergen Institute 2011 State

### Forecasting Framework for Inventory and Sales of Short Life Span Products

Forecasting Framework for Inventory and Sales of Short Life Span Products Master Thesis Graduate student: Astrid Suryapranata Graduation committee: Professor: Prof. dr. ir. M.P.C. Weijnen Supervisors:

### Univariate Time Series Analysis; ARIMA Models

Econometrics 2 Spring 25 Univariate Time Series Analysis; ARIMA Models Heino Bohn Nielsen of4 Outline of the Lecture () Introduction to univariate time series analysis. (2) Stationarity. (3) Characterizing