May 9, 2013
9:37 p.m.
10.05.2013 00:31, Pauli Virtanen kirjoitti:
10.05.2013 00:16, Arnaldo Russo kirjoitti:
Hi Josef, thank you for quick reply.
Changing my pp_min, without square, I have the results:
Out[4]: (array([ 9.82259647e-02, -1.58338152e-02, 5.03125198e+01]), 1)
It's not much different from previously results. Any reason for this?
The chi^2 for the solution found by leastsq is smaller than for that found by R.
I.e., your function has several local minima, and the solver in R doesn't happen to pick the lowest one. This is a common occurrence with local minimzation algorithms --- different algorithms may find different local minima. -- Pauli Virtanen