Time Series Analysis Predicting future sales from past numbers
What is it? This is not as difficult as it first appears so do not panic! It is used to forecast future sales from past data. If we have a sales pattern that has grown like this one...
Sales Time
Then we can predict the future Sales Time N.B. May not always happen!
But what if it looked like this? Sales Time
This is where time series analysis comes in. It ‘irons out’ the peaks and troughs in data to give a roughly smooth line which you can then extend into the future N.B. The further into the future you go the less reliable the extrapolation becomes.
How does it do this? It does this by taking an average of figures over a time period, for example an average of the 4 quarters in a year. Then the first time period is dropped off the average and the next one is added.
For example Mon Tues WedFirst number Tues Wed ThursSecond number Wed Thurs FriThird number Thurs Fri SatFourth number And so on…. It is called a moving average.
MonthActual sales 4 quarter moving average Jan10 Feb11 Mar13 April7 May =10.25 For example…. It is important that the answer is between feb and March and not with either one. This is called Centering
Then… MonthActual sales 4 quarter moving average Jan10 Feb11 Mar13 April7 May =
And then… MonthActual sales4 quarter moving average Feb11 Mar13 April7 May12 June =
Until… MonthActual sales4 quarter moving average Jan10 Feb11 Mar13 April7 May12 June13 July16 Aug6 Sept13 Oct15 Nov16 Dec
You can see it leads to a flatter line
If it is still not flat enough… Then you can take an average of the moving average (usually only 2 each time) This also centres the data for you automatically. (So it falls exactly on a month and not between two)
Like so… MonthActual sales4 quarter moving average 8 quarter moving ave Jan10 Feb11 Mar April711 May June July Aug612.5 Sept Oct Nov16 Dec
We can now look into the future ?
How accurate? How often did the actual sales coincide with the trend? Why should this start to happen in the future?
Variation Calculate the difference between the moving ave figures and the actual numbers. Positive and negatives are important. This is why we centred the data!
MonthActual sales 4 quarter moving average 8 quarter moving ave Variation Jan10 Feb11 Mar April7-4 May June July Aug6-6.5 Sept130.5 Oct Nov16 Dec
Therefore… = Therefore, on average the actual line is below the trend line. So we should allow for this in our extrapolation
Variation Then find the average variation, and just add (or subtract) it to the extrapolated prediction. This will on average cover the variations between the trend and the actual numbers.
We can do better however. Seasonal Variations
Seasonal what? Many firms have busy and quiet times For example….
We can take account of this If sales in January are always low then we can make our predictions more accurate by taking this into account. Instead of working out the variance for all time periods we could look at the variance for Januarys, then Februarys, then all Marches and so on.
How? In the same way. Find the average variation for the time you are interested in and then add it to (or take it away from) your prediction.
Beware Past performance does not mean it will carry on for ever The further into the future you go the less reliable it becomes.