Non linear curve fit - parameter accuracy

AI Thread Summary
To estimate the accuracy of parameters when fitting data with the Levenberg-Marquardt algorithm, the Jacobian and covariance matrices are commonly used. The standard error for each parameter can be calculated using the formula σ_i = √(χ²(ℙ)C_{ii}), where C is the variance-covariance matrix derived from the Jacobian. The covariance matrix is computed as C = (F'·F)⁻¹, where F represents the Jacobian matrix. Mean squared error can also be calculated by summing the squared differences between the actual and fitted points, divided by the number of points. Resources like "Numerical Recipes" provide further insights into non-linear fitting and parameter uncertainty.
arwelbath
Messages
10
Reaction score
0
Hi,
Suppose i fit some data with a curve, using Levenberg-Marquardt (or equivalent). How do I estimate the accuracy of the parameters (by this i mean p plus or minus something). I've read somewhere that its done using the jacobian and covariance matricies I think, but not sure. Anyone know if there's a 'standard' way of doing this?
Cheers
 
Physics news on Phys.org
arwelbath said:
Hi,
Suppose i fit some data with a curve, using Levenberg-Marquardt (or equivalent). How do I estimate the accuracy of the parameters (by this i mean p plus or minus something). I've read somewhere that its done using the jacobian and covariance matricies I think, but not sure. Anyone know if there's a 'standard' way of doing this?
Cheers

most usually you determine the difference between each point you fit and the fitted point and you square all these difference and sum them, you then divide this sum by the number of points you have summed and call this "the mean squared error" (tip: google this).
 
arwelbath said:
Hi,
Suppose i fit some data with a curve, using Levenberg-Marquardt (or equivalent). How do I estimate the accuracy of the parameters (by this i mean p plus or minus something). I've read somewhere that its done using the jacobian and covariance matricies I think, but not sure. Anyone know if there's a 'standard' way of doing this?
Cheers

As I read in an old Origin Help, the standard error of the i-th parameter of a given parameter set p is

\sigma_i=\sqrt{\chi^2(\bold{p})C_{ii}}

where C is the variance-covariance matrix. It is calculated from the Jacobian F (F_{i,j}=\partial f(\bold{p},x_j)/\partial p_i) as
\bold{C}=(\bold{F}^{'} \cdot \bold{F})^{-1}

If you understand this, explain me, please! :smile:

ehild
 
Erm. Thanks gerben for the definition of chi squared. Not quite what I was after.
 
The "Numerical recipes in .." books have a discussion of this. You can find the C book online at

http://www.library.cornell.edu/nr/bookcpdf.html

The second half of chapter 15 discusses non-linear fitting and uncertainty of the estimated parameters
 
Last edited by a moderator:
I think it's easist first to watch a short vidio clip I find these videos very relaxing to watch .. I got to thinking is this being done in the most efficient way? The sand has to be suspended in the water to move it to the outlet ... The faster the water , the more turbulance and the sand stays suspended, so it seems to me the rule of thumb is the hose be aimed towards the outlet at all times .. Many times the workers hit the sand directly which will greatly reduce the water...
Back
Top