| 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 |
This section explains how the garchfit estimation engine uses maximum likelihood to estimate the parameters needed to fit the specified models to a given univariate return series.
Given an observed univariate time series and the conditional mean and variance models described in Conditional Mean and Variance Models, garchfit does the following:
Infers the innovations (residuals) from the return series.
Estimates, by maximum likelihood, the parameters needed to fit the specified models to the return series.
Given a vector of initial parameter estimates, as described in Estimating Initial Parameters, the garchfit function calls the Optimization Toolbox fmincon function to perform constrained optimization of a scalar function of several variables; that is, the loglikelihood function. This technique is called constrained nonlinear optimization or nonlinear programming. In turn, fmincon calls the appropriate loglikelihood objective function to estimate the model parameters using maximum likelihood estimation (MLE).
The chosen loglikelihood objective function proceeds as follows:
Given the vector of current parameter values and the observed data Series, the loglikelihood function infers the process innovations (residuals) by inverse filtering. This inference operation rearranges the conditional mean equation to solve for the current innovation εt:
![]()
This equation is a whitening filter, transforming a (possibly) correlated process yt into an uncorrelated white noise process εt.
The loglikelihood function then uses
the inferred innovations εt to
infer the corresponding conditional variances
via recursive substitution into
the model-dependent conditional variance equations.
Finally, the function uses the inferred innovations and conditional variances to evaluate the appropriate loglikelihood objective function. If εt is Gaussian, the loglikelihood function is
|
| (5-1) |
If εt is Student's t, the loglikelihood function is
![]() | (5-2) |
where T is the sample size, that is, the number of rows in the series {yt}. The degrees of freedom ν must be greater than 2.
The conditional mean equation and the conditional variance equations are recursive, and generally require presample observations to initiate inverse filtering. For this reason, the objective functions shown here are referred to as conditional loglikelihood functions. Evaluation of the loglikelihood function is conditioned, or based, on a set of presample observations. For more information about the methods used to specify these presample observations, see Presample Data.
The iterative numerical optimization repeats the previous three steps until it satisfies suitable termination criteria. For more information, see Optimization Termination .
![]() | Estimation | Estimating Initial Parameters | ![]() |
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 |