Presentation is loading. Please wait.

Presentation is loading. Please wait.

Time Series Analysis (Demand Forecasting)

Similar presentations


Presentation on theme: "Time Series Analysis (Demand Forecasting)"— Presentation transcript:

1 Time Series Analysis (Demand Forecasting)

2 A time series is a set of numerical values of a given variable listed at successive intervals of time, which means that, data regarding the variables is listed in chronological order. Usually the interval of time taken is uniform. For example, yearly production of wheat in a country, hourly temperature of a city, monthly electricity bill of a flat etc.

3 Relevance of Time Series
In 1990s, the US Govt. was much concerned about the problem of pollution in the country. The US Environmental Protection Agency (EPA) monitored the quality of the air around the country based on time period yearly. While data is provided about the content of the pollutants, the major question before experts were : Is it possible to forecast the future content of the pollutants based on the past years data? What can be the best forecasting method? The above questions can be answered easily with the help of Time Series Analysis.

4 TIME SERIES ANALYSIS If the time series is given, we can study about the forces that influence the variations in time series and the behavior of phenomenon over the given period of time. For example, if sales data is given for a product for the period from 2005 to 2012, we will be able to say what can be the sales trend during 2013, 2014 etc. Even we will be able to say why sales has been less during certain period and why it has increased during certain other periods. This implies that the forecaster is able to say why the values of the variable (sales) varies over period.

5 When we look at the changes, there are four types of changes in the values of the variable can be ascertained. They are: 1. Changes which generally occur due to general tendency of the data to increase or decrease (Trend) 2. Changes which occur due to change in climate, weather conditions and festivals. (Seasonal) 3. Changes which occur due to booms and depressions (Cyclical) 4. Changes which occur due to some unpredictable forces like floods, famines and earthquakes ( Random)

6 Components of Time Series
The following are the components of time series: Long term trend or secular trend (T) Seasonal variations (S) Cyclic variations © Random variations (I) 1. Long term trend or secular trend (T) This refers to smooth or regular long term growth or decline of the series. This movement can be characterized by a trend curve. If the curve is a straight line, the it is called as a trend line. If the variable increases over a long period of time, it is upward trend and if it decreased over a long period of time, it is called as downward trend. If the variable moves upward or downward along a straight line, then the trend is called a linear trend. Otherwise , it is non-linear.

7 2. Seasonal Variations (S)
Variations in time series that are periodic in nature and occur regularly over short periods of time during a year are called seasonal variation. For example, the prices of vegetables drop after rainy season and may go up during summer. 3. Cyclic Variations The long term oscillations that represent consistent rise and decline in the values of the variables are called cyclic variations. The period of oscillation will be more than one year It can be a trend curve or trend line The period of one cycle is the time-distance between two successive peaks or two successive troughs.

8 4.Random Variations ( Irregular Random Variation)
Random variations are irregular movements. Movements that occur usually in brief periods of time, without any pattern and which are unpredictable in nature are called irregular movements. For example, typhoons, floods, earthquakes, national strikes and lock out etc.

9 METHODS OF MEASURING TREND
Trend can be measure by the following methods: Free Hand or Graphic Method Semi-Average Method Moving Average Method Method of Least Squares

10 1. Free Hand or Graphic Method
This is the simplest method of drawing a trend curve. Plot the values of the variable against time on a graph paper and join these points. Then the trend line will be drawn in such a way that the numbers of fluctuations on either side are approximately the same. The trend line will be a smooth curve. Disadvantages of Free Hand Method Depends on individual judgment Cannot be used for predicting the trend as the drawing is arbitrary.

11 Free Hand Method (Activity 1)
Find the trend with the help of free hand method for the data given below : Production data in million tons 2005 22 2006 19 2007 24 2008 20 2009 28 2010 2011 30 2012

12 In the graph, on Y axis , we take production and on X axis, we take the time period given.
Plot all the original figures and then draw the trend line by taking the middle portion of the fluctuations 30 28 26 24 22 20 18

13 2. SEMI-AVERAGE METHOD Calculation for even number of years
When the number of years is even, then the data of the time series is divided into two equal parts. The total in each of the part is calculated and then divided by the number of items to obtain arithmetic means of the two parts. Each average is then centered in the period of time from which it has been computed and plotted on the graph paper. A straight line is drawn passing through these points. This is the required trend line

14 Calculation when the number of years is odd
When the number of years is odd, then the value of the middle year is omitted to divide the time series into two equal parts. Then the preceding procedure is followed.

15 Semi Average Method – Solved Problem
The number of years is 10 (even number). Divide the series into two equal parts – first 5 years and the last five years. The average of the first five years= 1/5( ) = 4.02 The average of the second five years = 1/5( ) = 5.4 Plot the first value against the middle of the first five years (93) and plot the second value at the middle of the second five years (98) . Connect it by a line. We get the trend line Years Exports 91 3.9 92 1.3 93 1.1 94 4.4 95 9.4 96 9.6 97 3.4 98 2.5 99 8.6 2000 2.9

16 3. Method of Moving Average
Method of moving average is used for smoothing the time series. It smoothens the fluctuations of the data. Moving average is calculated differently under even periods and odd periods. CALCULATION WHEN PERIOD IS ODD

17 Moving Average Method – Solved Problem
Year Pdn (‘000) (Y) 3 Yearly Mvg Totals 3 Yearly MA (Yc) Short Term Fluctuations (Y-Yc) 1988 21 1989 22 66 66/3 =22.00 22-22=0.00 1990 23 70 70/3=23.33 =-0.33 1991 25 72 72/3=24.00 25-24 = 1.00 1992 24 71 71/3=23.67 = 0.33 1993 =-1.67 1994 74 74/3=24.67 =0.33 1995 27 78 78/3=26.00 27-26=1.00 1996 26

18 In the above problem, we have selected three year period moving average.
Total the first three years and place the value in the middle of the three years under 3 yearly moving totals (1989). Then leave the first year and take the next three years totals and place it in the middle of the next three years (1990). Likewise, total up to the stage wherein the last three years are included. Take another column as 3 year moving average and show it as Yc (trend). Divide each moving average total and place it under this column corresponding to the year. Continue this until all the figures are over. Add another column and show it as short term fluctuations (Y-Yc). Place the different between Y and Yc in this column which shows short term fluctuations.

19 4. METHOD OF LEAST SQUARES
In this method, the trend curve is determined by fitting a mathematical equation. This method is more accurate and precise and hence used for forecasting Method of Calculation When this method is applied , a trend line is fitted to the data in such a manner that the following two conditions are satisfied: ∑ (Y-Yc) = 0 The sum of the deviations of the actual values of Y and the computed values of Y is zero ∑ (Y-Yc) is least The sum of the squares of the deviations of the actual and computed values is least from this line That is why, this method is called as the method of least squares. 2

20 The method of least squares can be used either to fit a straight line trend or a parabolic trend.
The straight line trend is represented by the following equation: Yc = a+bX Where Yc denotes the trend values ( computed) and is different from the actual values of Y. ‘a’ is the Y interceptor the value of Y variable when X=0 ‘b’ represents slope of the line or the amount of change in Y variable that is associated with a change of one unit in X variable. The X variable is the time

21 Where ‘N” – Number of Years or months
To determine the values of the constants ‘a’ and ‘b’ , the following two normal equations are to be solved. It should be noted that the first equation is nearly the summation of the given function and the second is the summation of X multiplied by the given function ∑Y = Na + b ∑X ∑XY = a ∑X + b ∑X Where ‘N” – Number of Years or months 2

22 The time variable X can be measured from any point of time in origin such as first year.
But the calculation get simplified when the mid point in time is taken as origin because in that case the negative values in the first half of the series balance out the positive values in the second half so that ∑X = 0. In other words, the time variable is measured as a deviation from its mean.

23 When ∑X = 0, the above two normal equations would take the form:
∑Y = Na a = ∑Y /N ∑XY = b ∑X Therefore b=∑XY/∑X 2 2

24 Solved Problem The annual sales of a company are as follows: Year 2009
2010 2011 2012 2013 Sales 45 56 58 46 75

25 Solved Problem YEAR SALES (Y) Mid Year 2008 x² xy Estimated Trend 2009
45 1 50 2010 56 2 4 112 55 2011 58 3 9 234 60 2012 46 16 184 65 2013 75 5 25 375 70 N=5 ∑x = 300 ∑x=15 ∑x²=55 ∑xy=950

26 Take Normal Equations ∑y = na +b∑x …………….. (1)
∑xy =a∑x + b∑x² …………... (2) By substituting the computed values, we have: 300 = 5a + 15 b ……………………………….(3) = 15a+55b ……………………………….(4) For solving them, - let us multiply equation (3) with 3, we get: 900 = 15a + 45 b and deduct this equation from equation 4, we get: 50 = 10b Therefore ‘b’ = 50/10 = 5

27 In equation 300 =5a + 15b, substitute value of ‘b’ with 5, we get
Therefore 5a = 225 And therefore a = 225/5 = 45 Use the value of ‘a’ and ‘b’ in the equation Y=a+bx, we can derive the value of trend. For example, for the year 2009, the x value will be 1 and therefore the trend value will be as follows: Y = ( 1) = 50

28 Mathematical Models in Time Series
The following are the two models: Additive Model Multiplicative Model

29 The additive model assumes that all the four components of the time series operate independently of one another. It assumes that the behavior component is additive in character. Y= T+S+C+I Multiplicative model assumes that the observed value is obtained by multiplying all the components as below: Y= TxSxCxI

30 Mathematical Models in Time Series
The multiplicative model assumes that all the components are not necessarily independent and they can affect one another. It also assumes that the behavior of the component is of multiplicative character. All the values other than trend are rates or index numbers.

31 Measurement of Seasonal Variation
To derive the seasonal variations, we need to eliminate trend, cyclic variations and irregular fluctuations on the time series. The main methods of measuring seasonal variations are: Simple average method Ratio to moving averages method Chain or link relative method Ratio to trend method


Download ppt "Time Series Analysis (Demand Forecasting)"

Similar presentations


Ads by Google