Booking open Available Pune Call Girls Shivane 6297143586 Call Hot Indian Gi...
ARMA and VAR modelling of Industrial Production in America
1. JOHNS HOPKINS AAP AUGUST 2016
Modeling ARMA and VAR
MACROECONOMETRICS FINAL PROJECT
Johns Hopkins AAP Matías Costa – Maegan Hawley – Emilio José Calle
2. MACROECONOMETRICS FINAL PROJECT AUGUST 2016
Modeling ARMA and VAR 2
Introduction of Main Variable: Industrial Production Index (IPI)
Section 1: Modelling IPI as an ARMA Process
Section 2: Modelling of IPI with other Explanatory Variables
Section 3: Unemployment Forecasting in VAR
3. MACROECONOMETRICS FINAL PROJECT AUGUST 2016
Modeling ARMA and VAR 3
The monthly Industrial Production Index (IP) is an economic indicator from the Federal Reserve
Board that measures the real production of output from manufacturing, mining, and utilities such
as electric and gas.
Data for the index are pulled from the Bureau of Labor Statistics and various trade associations
on a monthly basis. IP is computed as a Fisher index with weights based on annual estimates of
value added and the base year (currently 2012) set to 100.
The Fisher index is calculated by taking the geometric mean of the Laspeyres and Paasche indices:
where is Laspeyres' index and is Paasche's index. And P is the Industrial Price Index.
Many investors use the IP index of several industries in order to examine the growth in the
industry. Generally, when the indicator grows every month, it is a positive sign that shows the
industry is performing well.
Source: http://www.federalreserve.gov/Releases/g17/About.htm
4. MACROECONOMETRICS FINAL PROJECT AUGUST 2016
Modeling ARMA and VAR 4
1a. PLOT THE DATA FOR THE INDUSTRIAL PRODUCTION INDEX:
-20
-15
-10
-5
0
5
10
1975 1980 1985 1990 1995 2000 2005 2010 2015
ip
5. MACROECONOMETRICS FINAL PROJECT AUGUST 2016
Modeling ARMA and VAR 5
1b. PLOT THE CORRELOGRAM FOR THE INDUSTRIAL PRODUCTION INDEX:
6. MACROECONOMETRICS FINAL PROJECT AUGUST 2016
Modeling ARMA and VAR 6
2. COMMENT ON THE DATA:
This time series appears stationary as it reflects a constant variance and mean over time.
Specifically, the data appear to fluctuate along a constant mean of 0. The floor and ceiling of
these series range from 5 to -5, except when you look at the 2008 financial recession you can
see that the IP dropped down past -15.
This is consistent with the way this variable is built, as explained in the introduction at the
beginning of this report.
3. DECIDE ON AN ARMA(P,Q) MODEL BASED ON _T (SIC, BIC) AND SIMPLICITY
We selected an ARMA(4,11) for our model based on low SIC and BIC values as well as the simplicity
of the p,q values.
As demonstrated in the “ARMA Criteria Table” below, an ARMA(4,11) has both the lowest SIC(AIC)
and BIC values of all the ARMA(p,q) combinations.
Additionally, the ARMA(4,11) is the simplest model when compared to other ARMA models that
have similar, but slightly higher SIC and BIC values. If one of the other ARMA combinations
revealed slightly higher SIC and BIC values, but offered a lower-order model, we would have
considered that one over the ARMA(4,11).
In this case, however, the ARMA(4,11) offers us the best fit based on all three SIC, BIC and model
simplicity criteria. The reason for the high-order MA component in this model is because the
Industrial Production variable is defined as the growth rate year on year, leading to a strong MA
presence.
SUMMARY:
Automatic ARIMA Forecasting
Selected dependent variable: IP
Date: 08/06/16 Time: 10:39
Sample: 1973M01 2019M12
Included observations: 510
Forecast length: 0
Number of estimated ARMA models: 169
Number of non-converged estimations: 0
Selected ARMA model: (4,11)(0,0)
AIC value: 1.34747400898
7. MACROECONOMETRICS FINAL PROJECT AUGUST 2016
Modeling ARMA and VAR 7
Equation Output
Dependent Variable: IP
Method: ARMA Maximum Likelihood (BFGS)
Date: 08/06/16 Time: 10:39
Sample: 1973M01 2015M06
Included observations: 510
Convergence achieved after 93 iterations
Coefficient covariance computed using outer product of gradients
Variable Coefficient Std. Error t-Statistic Prob.
C 1.443722 0.781700 1.846900 0.0654
AR(1) 0.164718 0.036776 4.478924 0.0000
AR(2) 0.153853 0.050182 3.065880 0.0023
AR(3) 0.186425 0.042044 4.434039 0.0000
AR(4) 0.124788 0.046207 2.700646 0.0072
MA(1) 0.975557 1.190018 0.819783 0.4127
MA(2) 0.984597 1.512608 0.650926 0.5154
MA(3) 0.986381 1.967560 0.501322 0.6164
MA(4) 0.978262 1.717025 0.569742 0.5691
MA(5) 0.993363 1.208197 0.822186 0.4114
MA(6) 0.993364 0.929092 1.069177 0.2855
MA(7) 0.978258 1.607138 0.608696 0.5430
MA(8) 0.986382 1.815927 0.543184 0.5872
MA(9) 0.984599 1.700871 0.578879 0.5629
MA(10) 0.975557 1.431133 0.681668 0.4958
MA(11) 0.999988 1.463988 0.683058 0.4949
SIGMASQ 0.222078 0.712393 0.311735 0.7554
R-squared 0.980388 Mean dependent var 1.466513
Adjusted R-squared 0.979751 S.D. dependent var 3.368342
S.E. of regression 0.479308 Akaike info criterion 1.490148
Sum squared resid 113.2599 Schwarz criterion 1.631295
Log likelihood -362.9877 Hannan-Quinn criter. 1.545487
F-statistic 1540.278 Durbin-Watson stat 1.986116
Prob(F-statistic) 0.000000
Inverted AR Roots .83 -.09-.55i -.09+.55i -.48
Inverted MA Roots .87+.50i .87-.50i .50-.86i .50+.86i
.00+1.00i .00-1.00i -.49-.87i -.49+.87i
-.87+.50i -.87-.50i -1.00
10. MACROECONOMETRICS FINAL PROJECT AUGUST 2016
Modeling ARMA and VAR 10
ARMA Comparative Tables
4. SHOW RESIDUAL DIAGNOSTICS THAT VALIDATE YOUR CHOICE OF MODEL (RESIDUAL
CORRELOGRAMS, Q-TEST, ETC).
The plot of the residuals (below) shows no discernable pattern, a constant variance and an expected
mean of zero. In other words, the residuals look like white noise, which is an indication that our
chosen model is a good fit to the data. The plot also shows that the actual vs. fitted values are a very
close match.
The correlogram of the residuals show that the bars for both the Autocorrelation Function (ACF) and
the Partial Autocorrelation Function (PCF) are close to zero with no pattern to them. These results
suggest that there is no correlation between the residuals, which further supports our chosen model.
Lastly, when we look at the Q-stats, we can see that all the associated p-values are all much greater
than 0.05 meaning we fail to reject the null hypothesis that there is no serial correlation between
residuals. These results are good news for our model since failing to reject the null hypothesis
supports the case that there is no serial correlation between the residuals. If the p-values had been
less than 0.05, it would have suggested there was serial correlation between the residuals thus
indicating a need to reevaluate our model.
SIC/AIC AR
MA
-Values- 4 5 6
10 1.475 1.567 1.437
11 1.347 1.349 1.353
12 3.935 4.243 1.348
BIC AR
MA
-Values- 4 5 6
10 1.598 1.698 1.575
11 1.478 1.488 1.499
12 4.073 4.389 1.502
11. MACROECONOMETRICS FINAL PROJECT AUGUST 2016
Modeling ARMA and VAR 11
Actual vs. Fitted Graphs
-4
-3
-2
-1
0
1
2
-20
-15
-10
-5
0
5
10
1975 1980 1985 1990 1995 2000 2005 2010 2015
Residual Actual Fitted
Residual Correlograms and Q-Test
12. MACROECONOMETRICS FINAL PROJECT AUGUST 2016
Modeling ARMA and VAR 12
5. ESTIMATE THE MODEL UP TO THE LATEST OBSERVATION. THEN DO A DYNAMIC FORECAST
FOR THE NEXT 5 YEARS. INCLUDE CONFIDENCE INTERVALS.
-8
-6
-4
-2
0
2
4
6
8
10
II III IV I II III IV I II III IV I II III IV I II III IV
2015 2016 2017 2018 2019
IPF ± 2 S.E.
Forecast: IPF
Actual: IP
Forecast sample: 2015M06 2019M12
Included observations: 1
Root Mean Squared Error 0.085313
Mean Absolute Error 0.085313
Mean Abs. Percent Error 32.51241
A dynamic forecast is one that does not update its knowledge after each period, which is why we
see here that the forecast trends back towards the mean.
13. MACROECONOMETRICS FINAL PROJECT AUGUST 2016
Modeling ARMA and VAR 13
6. Next, include the other 4 variables as explanatory variables. You will need to decide on
model { how many lags (p) of each variable, and how many MA components (q) to keep. Here
is my suggestion, start with the p and q you used in step 2 on this list. For example, if you
modeled your main variable as an ARMA(6,2), then use 6 lags for all of the explanatory
variables and keep the MA(2) structure. Use the same lag p for all the explanatory variables.
Then, as usual, try different p's and q's and see how SIC and BIC change. Decide on a model.
What can be seen below is the different AR-MA combinations that were tried out to select the best-
fitting model for the data set.
The first one tested was the base AR(4) MA(11) found in the previous section using only IPI and its
autoregressions. Registering the results it can be seen that the AIC is 1.617118 and SIC 1.892762, but
other combinations of AR and MA gave better fitting results.
AR(5) MA(12) being the best fitting one with AIC = 1.470070 and SIC= 1.796323.Thus this model was
selected for the multivariable case.
16. MACROECONOMETRICS FINAL PROJECT AUGUST 2016
Modeling ARMA and VAR 16
7. ESTIMATE THE MODEL UP TO 2013M12. THEN, DO A DYNAMIC FORECAST, WITH
CONFIDENCE INTERVALS, FROM 2014M1 UP TO THE LATEST OBSERVATION IN THE SAMPLE.
COMMENT ON THE FITTED VALUES VS THE ACTUAL. NOTE: THE FITTED VALUES WON'T
NECESSARILY BE GOOD," DON'T WORRY TOO MUCH ABOUT THAT. BUT IT'D BE GOOD IF YOU
CAN PROVIDE SOME EXPLANATION FOR THE BEHAVIOR OF THE FORECASTS BASED ON YOUR
KNOWLEDGE OF ARMA FORECASTING.
-1
0
1
2
3
4
5
6
7
8
I II III IV I II III IV I II III IV I II III IV I II
2011 2012 2013 2014 2015
ip IPF UP_IP LB_IP
The model fits the actual data pretty well for 2014, but in 2015 there is a big divergence between the
two.
While the forecasted IPI aimed towards a stabilization in 2014 around the 3% range, the actual data
shows that IPI declined steeply during this year.
What this data says is that the forecast wanted to go back to the momentum it had during the recovery
from the last financial crisis, however, there have been several shocks to the American economy that
have pushed IPI down such as the crash of oil prices, that delayed or cancelled many manufacturing
projects related to the oil industry such as building wells, refineries, pipelines and the like.
22. MACROECONOMETRICS FINAL PROJECT AUGUST 2016
Modeling ARMA and VAR 22
2. DO IMPULSE RESPONSE FUNCTIONS USING THE CHOLESKY DECOMPOSITION, FOR 60 LAGS.
ORDER THIS WAY: UNEMPLOYMENT RATE, PCE INFLATION, INDUSTRIAL PRODUCTION, EXCESS
BOND PREMIUM, THE 3-MONTH RATE.
-1.2
-0.8
-0.4
0.0
0.4
0.8
5 10 15 20 25 30 35 40 45 50 55 60
Response of IP to UNEMP
-1.2
-0.8
-0.4
0.0
0.4
0.8
5 10 15 20 25 30 35 40 45 50 55 60
Response of IP to PCEINFLATION
-1.2
-0.8
-0.4
0.0
0.4
0.8
5 10 15 20 25 30 35 40 45 50 55 60
Response of IP to IP
-1.2
-0.8
-0.4
0.0
0.4
0.8
5 10 15 20 25 30 35 40 45 50 55 60
Response of IP to EBP
-1.2
-0.8
-0.4
0.0
0.4
0.8
5 10 15 20 25 30 35 40 45 50 55 60
Response of IP to FFR
Response to Cholesky One S.D. Innovations ± 2 S.E.
23. MACROECONOMETRICS FINAL PROJECT AUGUST 2016
Modeling ARMA and VAR 23
3) EXPLAIN WHAT THE ORDERING IMPLIES REGARDING THE CORRELATION OF SAME-PERIOD
INNOVATIONS TO EACH OF THE VARIABLES.
Because the Cholesky decomposition method imposes a recursive structure on the variables, the
contemporary relationships of the variables is going to be affected by their ordering.
In this case, the first variable is unemployment rate, which means it is going to be affected by its
current innovation only and not by any of the subsequent variables’ current innovations.
Innovations to the second variable, pce inflation, will be affected by its current innovations, plus
those of the preceding unemployment rate variable. Innovations to the third variable, industrial
production, will be affected by its current innovations plus the current innovations of the preceding
two variables.
This pattern will continue all the way through to the last variable ordered. Therefore, the recursive
nature of Cholesky decomposition means the variable that is ordered first is going to have effects on
all the subsequent variables.
Thus, it makes sense to order the variables from most exogenous to least exogenous. In contrast, the
residual method sets the impulses to one standard deviation of the residuals, which ignores the
correlations in the VAR residuals. Therefore, when using the residual method, the order of the
impulse variables is not going to matter.
4) PLOT THE RESPONSE OF THE UNEMPLOYMENT RATE TO STANDARDIZED SHOCKS TO THE 5
VARIABLES.
24. MACROECONOMETRICS FINAL PROJECT AUGUST 2016
Modeling ARMA and VAR 24
The only shock that will affect the unemployment rate in the same period is a shock to itself - the
unemployment rate.
A shock to pceinflation will start to significantly affect the unemployment rate a few months after the
initial shock. Peak effects of the shock are felt after 30 months after which they slowly start to wear
off. This suggests that the unemployment rate will feel effects from a shock in pceinflation for at least
5 after the fact.
A shock to ip will be felt by unemp soon after the initial shock. In this case, unemployment rate will
actually go down until about the 15th
month when it will start trending back to its pre-shock level.
Unemp responds to a shock in ebp by rising sharply soon after the initial shock, peaking after about 17
months. The effects from the shock then begin to decrease, finally arrive back at zero between 50-55
months after the initial shock.
Ffr is the last impulse variable in this Cholesky impulse response function, which means it’s going to
include innovations from all the previous variables as well. A shock to the ffr will slowly start to
impact the unemployment rate after about 1 year. The effect will continue slowly climbing then start
to level off after about 35 months.
25. MACROECONOMETRICS FINAL PROJECT AUGUST 2016
Modeling ARMA and VAR 25
5) THE UNEMPLOYMENT RATE TENDS TO GO UP WHEN THE EBP GOES UP. HOW DOES THE EBP
AFFECT OTHER VARIABLES? PLOT THE IRF OF EACH OF THE 5 VARIABLES TO A STANDARDIZED
SHOCK TO THE EBP.
-.2
-.1
.0
.1
.2
.3
5 10 15 20 25 30 35 40 45 50 55 60
Response of UNEMP to EBP
-.6
-.4
-.2
.0
.2
.4
5 10 15 20 25 30 35 40 45 50 55 60
Response of PCEINFLATION to EBP
-1.00
-0.75
-0.50
-0.25
0.00
0.25
0.50
5 10 15 20 25 30 35 40 45 50 55 60
Response of IP to EBP
-.1
.0
.1
.2
.3
5 10 15 20 25 30 35 40 45 50 55 60
Response of EBP to EBP
-.5
-.4
-.3
-.2
-.1
.0
.1
.2
5 10 15 20 25 30 35 40 45 50 55 60
Response of FFR to EBP
Response to Cholesky One S.D. Innovations ± 2 S.E.
26. MACROECONOMETRICS FINAL PROJECT AUGUST 2016
Modeling ARMA and VAR 26
Explanation:
When you look at the effect that EBP has on unemp, pceinflation, IP, and FFR you can see that the
initial shock on these 4 variables is zero.
When you look at the response of the unemployment rate to a shock in EBP, a change of EBP
today has a peak effect on unemp around the 20th
month of about .18. This illustrates how when
credit conditions tighten, unemployment rate goes up. After this, the effects of the initial EBP’s
shock start to wear off and unemp has a gradual decrease back towards zero, and finally reaches
zero around the 52nd
month.
When credit conditions tighten, pceinflation will not immediately respond in that same period,
but shortly after pceinflation begins to drop and reaches a negative-peak effect around the 16th
month of about -.2. It takes about 55 months for inflation to return to pre-shock levels.
A shock on EBP today leads to a subsequent negative response by IP that continues to decline
until about the 10th
month where it hits a negative peak effect of -.75. At this point, IP begins to
rise back up until it reaches a positive peak effect on the 32nd
month of about .22. After the 32nd
month the effect of the ebp shock on ip stabilizes as it drifts closer towards zero.
The response of FFR due to a shock to EBP has a small but positive peak effect of about .015 during
the first month (which may or may not be statistically significant) and then drops to a negative
peak effect of about -.25 in the 17th
month. Subsequently the effect on FFR remains negative
however it gradually drifts back towards zero.
Additionally the effect of EBP on EBP has a positive initial effect of about .24, and then later
decreases towards zero by the 25th
month. In the periods after the initial EBP shock, EBP drops to
negative figures, and remain fairly constant around -.02.
27. MACROECONOMETRICS FINAL PROJECT AUGUST 2016
Modeling ARMA and VAR 27
6) LASTLY, SOLVE THE MODEL UP TO 2019 M12. FORECAST THE UNEMPLOYMENT RATE,
INCLUDING CONFIDENCE INTERVALS.
2
3
4
5
6
7
8
9
10
2010 2011 2012 2013 2014 2015 2016 2017 2018 2019
unemp unemp (Baseline Mean)
U_LB U_UB
The forecasted unemployment rate is pretty similar to that of the actual unemployment rate until
about the middle of 2014. At this time, the actual path of the unemployment rate continues its
downward trend while the forecasted unemployment rate starts declining at a slower rate until
the end of 2015 when we see the forecast starts to go back up as it heads back towards the mean.
7) REFERENCES
1, Investopedia. "Industrial Production and Capacity Utilization - G.17." Industrial Production and
Capacity Utilization. Investopedia, 2016. Web. 08 Aug. 2016.
2, The Federal Reserve. "Industrial Production and Capacity Utilization - G.17."Industrial Production
and Capacity Utilization. The Federal Reserve, 1 Apr. 2016. Web. 08 Aug. 2016.