Part 2:
a)
Generate 1,000 simulations of an AR process for 100 days
forward using the following model:
xt
ID
xt 1 0.2 xt 2 at
100
{at } ~ N (0,0.1)
Assume:
x1 0
x0 0
In the equation above ID stands for the last 2 digits of your student
ID number.
Hint: Start by generating a matrix of size 1000 by 100 of normal
random variables. These will be your innovations on each simulation
path for each day.
b)
Plot the PACF of the first 100-day simulation. Print in the
command window a statement to whether the PACF plot is consistent
with the model above.
c)
Compute 5% VaR for the cumulative return from today to day
100.
)
d
Using the model above, compute forecasts for days 2:100. ( x1 (1)