GARCH Toolbox    

Ordinary Least Squares Regression

The following example illustrates an ordinary least squares regression by simulating a return series that scales the daily return values of the New York Stock Exchange Composite Index. It also provides an example of a constant conditional variance model.

  1. Load the NYSE data set and convert the price series to a return series.
  2. Create a specification structure. Set the Display flag to 'off' to suppress the optimization details that garchfit normally displays.
  3. Simulate a single realization of 2000 observations, fit the model, and examine the results.

  1. These estimation results are just the ordinary least squares (OLS) regression results. In fact, in the absence of GARCH effects and assuming Gaussian innovations, maximum likelihood estimation and least squares regression are the same thing.


  Generating Forecasted Explanatory Data Regression in a Monte Carlo Framework 

Learn more about the latest releases of MathWorks products:

 © 1994-2010 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS