Products & Services Solutions Academia Support User Community Company

Learn more about Econometrics Toolbox   

Regression in Simulation

Including a regression component with garchsim and garchinfer is like including one with garchfit. (See Regression in Estimation.)

For example, the following command simulates a single realization of 2000 observations of the innovations, conditional standard deviations, and returns:

strm = RandStream('mt19937ar','Seed',91583);
RandStream.setDefaultStream(strm);
[e,s,y] = garchsim(spec,2000,1,[],X);

You can also use the same regression matrix X to infer the innovations and conditional standard deviations from the returns:

[eInfer,sInfer] = garchinfer(spec,y,X);
  


Free Interactive Computational Finance CD

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