Filtered Historical Simulation Example Determination of Variance
Show older comments
I have a question on determining the variance in the Econometrics Toolbox example "Using Bootstrapping and Filtered Historical Simulation to Evaluate Market Risk". Everything is pretty straitforward till the end of the example where they use the filter function to determine the portfolio returns. Here is the command.
portfolioReturns = filter(fit, bootstrappedResiduals, ...
'Y0', Y0, 'Z0', Z0, 'V0', V0);
I would like to obtain the conditional variance paths. Hence I used the command
[V, Y] = filter(fit, bootstrappedResiduals, ...
'Y0', Y0, 'Z0', Z0, 'V0', V0);
Here is a plot of the first 10 horizon results for V

Here is the plot of the firt 10 horizon results for Y

The results for Y look like one would expect - plus and minus values around zero. However, the results for V should all be positive since according to the filter function for conditional variances V is the filtered variance result. When comparing the value of V to that of the variable portfolioReturns I fould them to be identical.
I can always square the value of the portfolioReturns to get the squarded returns. Is this the value of the conditional variance for the FHS simulation?
1 Comment
Max Wyse
on 28 Aug 2024
There are several filter functions in the economterics toolbox. I believe the one being used above is for ARIMA models, which should return the simulated response paths (usually denoted Y, but you have it as V) and the simulated model innovation paths (usually denoted E, but you have it as Y). The plots make sense for those outputs.
I believe you looked at the doc page for the garch filter, which would return V and Y if it was used.
Answers (0)
Categories
Find more on Econometrics Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!