| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Econometrics Toolbox |
| Contents | Index |
| Learn more about Econometrics Toolbox |
garchplot(Innovations,Sigmas,Series)
garchplot(Innovations,Sigmas,Series) lets you visually compare matched innovations, conditional standard deviations, and returns. It provides a convenient way to compare innovations series, simulated using garchsim or estimated using garchfit, with companion conditional standard deviations, or returns series. You can also use garchplot to plot forecasts, computed using garchpred, of conditional standard deviations and returns.
In general, garchplot produces a tiered plot of matched time series. garchplot does not display an empty or missing input array; it allocates no space to the array in the tiered figure window. garchplot displays valid (nonempty) Innovations, Sigmas, and Series arrays in the top, center, and bottom plots, respectively. Because garchplot assigns a title and label to each plot according to its position in the argument list, you can ensure correct plot annotation by using empty matrices ([]) as placeholders.
You can plot several paths of each array simultaneously because garchplot color codes corresponding paths of each input array. However, the plots can become cluttered if you try to display more than a few paths of each input at one time.
Time series column vector or matrix of innovations. As a column vector, Innovations represents a single path of a univariate time series. The first element of this time series contains the oldest observation, and the last element the most recent. As a matrix, each column of Innovations represents a single path of a univariate time series in which the first row contains the oldest observation of each path and the last row the most recent. If Innovations = [], then garchplot does not display it. | |
Time series column vector or matrix of conditional standard deviations. In general, Innovations and Sigmas are the same size, and form a matching pair of arrays. If Sigmas = [], then garchplot does not display it. | |
Time series column vector or matrix of asset returns. In general, Series is the same size as Innovations and Sigmas, and garchplot organizes it in the same way. If Series = [] or is unspecified, then garchplot does not display it. |
Plot Innovations, Sigmas, and Series, assuming that they are not empty:
garchplot(Innovations) garchplot(Innovations, [], Series) garchplot([], Sigmas, Series) garchplot(Innovations, Sigmas, Series) garchplot(Innovations, Sigmas, []) garchplot(Innovations, Sigmas)
Load the default GARCH(1,1) model to model the Deutschmark/British pound foreign-exchange series DEM2GBP:
load garchdata dem2gbp = price2ret(DEM2GBP);
Use the estimated model to generate a single path of 1000 observations for return series, innovations, and conditional standard deviation processes:
[coeff, errors, LLF, innovations, sigmas] = garchfit(dem2gbp);
strm = RandStream('mt19937ar'); % reproducible
RandStream.setDefaultStream(strm);
[e, s, y] = garchsim(coeff, 1000);Plot the results:
garchplot(e, s, y)

![]() | garchma | garchpred | ![]() |
View demos and recorded presentations led by industry experts.
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |