codes for solving minima and least squares fit problems
POI LO SCRIVO
POI LO SCRIVO
POI LO SCRIVO
POI LO SCRIVO
POI LO SCRIVO
Consider our fit function f which depends on an independent variable and a set of parameters
where \delta is the step of each iteration and J:
So we have:
Where W is such that
Which solves for
The value of
if
If one of these quantities is less than a certain tolerance then the algorithm terminates. Now there remains one last question to answer and we can move on to the code. Since we need the errors on the fit parameters: how do we compute the covariance matrix? Just calculate: