Page 1 of 1

Levenberg-Marquardt in matlab

Posted: June 13th, 2008, 1:54 pm
by stt106
I have got a matlab code for L-M algorithm but i can't apply it for the model i want to minimise.The model i want to minimise is EWMAsigma(n)= lambda * sigma(n-1) + (1- lambda)* R(n)^2where everything is known except lambda.sigma is volatility and R is the log-return of stock price.I think the code is correct and well written. If anyone can give me a hand on how to apply the code to the above model, it will be highly appreciated.

Levenberg-Marquardt in matlab

Posted: June 13th, 2008, 10:35 pm
by GypCasino
Before you try that routine, I would suggest using one of the built-in nonlinear optimizers in MATLAB. Basically just write a .m file that accepts lambda as an argument and returns your objective function. And pass the name of that function and an initial guess for lambda to the optimizer. If that is working for you then you could start testing that coded L-M.

Levenberg-Marquardt in matlab

Posted: June 15th, 2008, 6:46 pm
by AvH
The built-in function lsqnonlin (available in the optimization toolbox) can also use the LM-algorithm.See http://www.mathworks.com/access/helpdes ... onlin.html