Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment...
-
Upload
ralph-watson -
Category
Documents
-
view
221 -
download
0
Transcript of Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment...
![Page 1: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/1.jpg)
Forecasting using trend analysis
1
Part 1. TheoryPart 2. Using Excel: a demonstration. Assignment 1, 2
![Page 2: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/2.jpg)
Learning objectives
2
To compute a trend for a given time-series data using Excel
To choose a best fitting trend line for a given time-series
To calculate a forecast using regression equation
To learn how:
![Page 3: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/3.jpg)
Main idea of the trend analysis forecasting method
3
Main idea of the method: a forecast is calculated by inserting a time value into the regression equation. The regression equation is determined from the time-serieas data using the “least squares method”
![Page 4: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/4.jpg)
Prerequisites: 1. Data pattern: Trend
4
Trend (close to the linear growth)
![Page 5: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/5.jpg)
Prerequisites: 2. Correlation
5
There should be a sufficient correlation between the time parameter and the values of the time-series data
![Page 6: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/6.jpg)
The Correlation Coefficient
6
The correlation coefficient, R, measure the strength and direction of linear relationships between two variables. It has a value between –1 and +1
A correlation near zero indicates little linear relationship, and a correlation near one indicates a strong linear relationship between the two variables
![Page 7: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/7.jpg)
Main idea of the trend analysis method
7
Trend analysis uses a technique called least squares to fit a trend line to a set of time series data and then project the line into the future for a forecast.
Trend analysis is a special case of regression analysis where the dependent variable is the variable to be forecasted and the independent variable is time.
While moving average model limits the forecast to one period in the future, trend analysis is a technique for making forecasts further than one period into the future.
![Page 8: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/8.jpg)
The general equation for a trend line
8
F=a+bt Where:F – forecast,t – time value,a – y intercept,b – slope of the line.
![Page 9: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/9.jpg)
Least Square Method
Least square method determines the values for a and b so that the resulting line is the best-fit line through a set of the historical data.
After a and b have been determined, the equation can be used to forecast future values.
9
![Page 10: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/10.jpg)
The trend line is the “best-fit” line: an example
10
Municipal public libraries in Lithuania in 1991-2002
13501400145015001550160016501700
19
90
19
91
19
92
19
93
19
94
19
95
19
96
19
97
19
98
19
99
20
00
20
01
20
02
20
03
Year
Nu
mb
er
of
libra
rie
s
![Page 11: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/11.jpg)
Statistical measures of goodness of fit
11
The Correlation CoefficientThe Determination Coefficient
In trend analysis the following measures will be used:
![Page 12: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/12.jpg)
The Coefficient of Determination
12
The coefficient of determination, R2, measures the percentage of variaion in the dependent variable that is explained by the regression or trend line. It has a value between zero and one, with a high value indicating a good fit.
![Page 13: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/13.jpg)
Goodness of fitt: Determination Coefficient RSQ
13
Range: [0, 1]. RSQ=1 means best fitting; RSQ=0 means worse fitting;
![Page 14: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/14.jpg)
Evaluation of the trend analysis forecasting method
14
Advantages: Simple to use (if using appropriate software)
Disadvantages: 1) not always applicable for the long-term time series (because there exist several ternds in such cases); 2) not applicable for seasonal and cyclic datta patterns.
![Page 15: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/15.jpg)
Open a Workbook trend.xls, save it to your computer
Part 2. Switch to Excel
![Page 16: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/16.jpg)
Working with Excel
16
Demonstration of the forecasting procedure using trend analysis method
Assignment 1. Repeating of the forecasting procedure with the same data
Assignment 2. Forecasting of the expenditure
![Page 17: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/17.jpg)
Using Excel to calculate linear trend
17
Select a line on the diagram Right click and select Add Trendline Select a type of the trend (Linear)
![Page 18: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/18.jpg)
Part 3. Non-linear trends
18
![Page 19: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/19.jpg)
Non-linear trends
19
LogarythmicPolynomialPowerExponential
Excel provides easy calculation of the following trends
![Page 20: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/20.jpg)
20
Logarithmic trend
y = 4,6613Ln(x) + 1,0724
R2 = 0,9963
02
46
810
12
0 2 4 6 8
![Page 21: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/21.jpg)
21
Trend (power)
y = 0,4826x1,5097
R2 = 0,9919
02468
10
0 2 4 6 8
![Page 22: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/22.jpg)
22
Trend (exponential)
y = 0,0509e1,0055x
R2 = 0,9808
0
20
40
60
80
0 2 4 6 8
![Page 23: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/23.jpg)
23
Trend (polynomial)
y = -0,1142x3 + 1,6316x2 - 5,9775x + 7,7564
R2 = 0,9975
0
2
4
6
8
0 2 4 6 8
![Page 24: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/24.jpg)
Choosing the trend that fitts best
24
1) Roughly: Visually, comparing the data pattern to the one of the 5 trends (linear, logarythmic, polynomial, power, exponential)
2) In a detailed way: By means of the determination coefficient
![Page 25: Forecasting using trend analysis 1 Part 1. Theory Part 2. Using Excel: a demonstration. Assignment 1, 2.](https://reader036.fdocuments.us/reader036/viewer/2022062421/56649dd35503460f94aca989/html5/thumbnails/25.jpg)
End