A Guide To Simulation With EViews by Afees Salisu PDF
A Guide To Simulation With EViews by Afees Salisu PDF
A Guide To Simulation With EViews by Afees Salisu PDF
(Version 7.0)
Afees A. Salisu
1.0
2.0
Preamble
Simulation involves solving for unknown values of the endogenous
variables in a model. A model in Eviews is a set of simultaneous
equations that are used for forecasting and simulation. Unlike other
objects in Eviews that contain system of equations, models do not
contain unknown coefficients to be estimated. Instead, models use
estimated coefficients and projected values of the exogenous variables to
simulate the unknown values for the endogenous variables.
Creating a System of Equations
First, we need to open an Eviews workfile: click File / New / Workfile on
the Toolbar of the Main Window
Contacts: Department of Economics & Centre for Econometric & Allied Research, University of
Ibadan, Ibadan, Nigeria. Email: aa.salisu@mail.ui.edu.ng; aa.salisu@cear.org.ng. Phone:
+2348034711769. Previous versions of this guide using Eviews 3.1 and 4.1 were respectively
written by Mathieu Lequain and Jung Hoon Kim.
1
Choose Workfile structure type, Frequency, Start date and End date
When you click OK, an Untitled Workfile appears with 2 items: C
and RESID
3.0
SPECIFYING A MODEL
3.1
3.2
4.0
Model Simulation
This will require using the estimated coefficients above to predict all the
endogenous variables. Also, it allows for the consideration of different
scenario analyses. The following steps are involved:
4.1 Make a Model
From the estimation output, click Proc / Make Model. This shows the
system of equations specified.
To view all the equations, click Proc / Links / Break All Links
Note that the variables on the left hand side of the equations are the
endogenous variables while those on the right hand side are the
explanatory variables.
To view all the equations with their estimated coefficients, Click text
Note that these are the coefficients obtained after applying OLS.
Let us consider the basic options shown in the dialog box above:
Simulation type:
Deterministic: This involves solving the model without simulating
the residuals. In addition, all the estimated coefficients are used in
the simulation at their point estimates likewise all the exogenous
variables are held constant.
Stochastic: With this option, the equations of the model are solved
and simulated with residuals. Also, the coefficients and exogenous
variables of the model are varied randomly. For stochastic
simulation, the model solution generates a distribution of
10
Dynamics
Static solution: This is usually used when dealing with in-sample
simulation where the predicted values of the endogenous variables
in model can be compared with the historical data. Of course, this
will require using the actual values of all the explanatory variables
(both the exogenous and the lagged endogenous variables of the
11
Naive Method: The forecast for next period (say period T+1)
will be equal to the current periods ( period T) value.
For example:
YT +1 = YT
YT +2 = YT +1
YT +n = YT +n1
(ii) Simple Average Method: The forecast for next period (say
period T+1) will be equal to the average of all past historical
values.
For example:
YT +1
1
=
T
Y
t =1
12
YT + 2
1 T +1
=
Yt
T + 1 t =1
1 T+n1
YT+n =
Yt
T + n 1 t=1
(iii) Simple Moving Average Method: The forecast for next period
(say period T+1) will be equal to the average of a specified
number of the most recent observations, with each observation
receiving the same emphasis (weight).
For example:
YT + YT 1 + YT 2
3
Y + Y + YT 1
= T +1 T
3
YT +1 =
YT + 2
YT +n =
(iv) Weighted Moving Average Method: The forecast for next period
(say period T+1) will be equal to a weighted average of a specified
number of the most recent observations.
For example:
we can assume
Therefore;
Y = a + bTrend
14
Solution sample:
This is the simulation period. For the in-sample simulation, the
estimation period is usually the simulation period. However, due
to lagged variables in the model, one must adjust this period so as
to avoid initializing the solution with missing values. In the case of
our model, we set the sample to 1982 2010. Why?
For out-of-sample simulation period however, this rests on the
underlying objective of the model. Generally, it captures n-period
ahead forecasts. For the purpose of our exercise, we set the sample
to 2011 to 2012 (implying a 2-year ahead forecast). Thus, the period
initially indicated in the workfile will now be extended to 2012.
How?
15
16
17
18
11
10
9
8
7
6
5
4
80
82
84
86
88
90
92
94
I
19
96
98
00
I (Baseline)
02
04
06
08
10
12
40
35
30
25
20
15
10
5
80
82
84
86
88
90
92
94
IR
96
98
00
02
04
06
08
10
12
04
06
08
10
12
IR (Baseline)
13
12
11
10
9
8
7
6
5
80
82
84
86
88
90
92
PC
94
96
98
00
02
PC (Baseline)
21
22
24
25
By viewing the workfile, we can see that the number of objects has
increased to include the new results. Note the variables with _1;
they represent the out-of-sample forecasts for our endogenous
variables.
26
We can follow the same procedure for the second scenario which is to
reduce income by 5%
The formula: y=0.95*y(-1)
That is, from the workfile window, click genr and type the given
formula
27
28
29
We can easily tabulate the simulation results and examine how the
endogenous variables respond to the three scenarios.
Period I_1
I_2
I_3
IR_1
IR_2
IR_3
PC_1
PC_2
PC_3
2010 10.01196 10.01196 10.01196 22.50833 22.50833 22.50833 12.30242 12.30242 12.30242
2011 15.98835 5.437221 10.39755 19.71778 25.89938 22.99327 12.86602 12.21942
12.5234
2012
21.5097 0.407454 10.44295 17.53704 27.99791 23.01273 13.65699 11.89575 12.73079
31