# How to find uncertainties of estimated parameters in Levenberg- Marquardt algorithm

28 visualizzazioni (ultimi 30 giorni)
Chris Martin il 4 Nov 2015
Commentato: Star Strider il 10 Nov 2015
Hello I have used Levenberg-Marquardt algorithm in 3 parameter problem but I unable to estimate uncertainties associated with it, Please help me in this regard
##### 1 CommentoMostra -1 commenti meno recentiNascondi -1 commenti meno recenti
Chris Martin il 6 Nov 2015
I need the formula

Accedi per commentare.

### Risposte (2)

Torsten il 4 Nov 2015
If you have the statistics toolbox, use nlinfit together with nlparci and nlpredci.
Best wishes
Torsten.
##### 4 CommentiMostra 2 commenti meno recentiNascondi 2 commenti meno recenti
Chris Martin il 5 Nov 2015
There is nothing in that link
Torsten il 5 Nov 2015

Accedi per commentare.

Star Strider il 5 Nov 2015
Finding the covariance matrix of a nonlinear regression requires that you calculate the Jacobian matrix at the convergence (the last parameter estimates calculated). In the context of the Wikipedia notation, the partial derivatives are with respect to each parameter at each data point, so the partial derivative of f(1) with respect to x(1) refers to the value of the partial derivative of the function at the first value of the independent variable with respect to the first parameter. It continues row-wise down the values of the independent variable, and column-wise across the parameters.
In a nonlinear regression, some or all of the partial derivatives of the function with respect to each parameter are by definition functions of themselves or of other parameters, so expect that in your result. (This is known as the model being ‘nonlinear in the parameters’.) This is easier if you have the Symbolic Math Toolbox, since it can calculate the symbolic Jacobian for you.
After that, you can plug your evaluated Jacobian matrix into the design matrix for a linear problem to calculate the covariance matrix, as explained in Least squares, regression analysis, and statistics. You can calculate the parameter confidence intervals from the diagonals of the covariance matrix and the t-distribution.
##### 4 CommentiMostra 2 commenti meno recentiNascondi 2 commenti meno recenti
Chris Martin il 10 Nov 2015
I got it thank you very much.......
Star Strider il 10 Nov 2015
My pleasure.

Accedi per commentare.

### Categorie

Scopri di più su Linear and Nonlinear Regression in Help Center e File Exchange

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by