On 7/20/10 11:56 PM, D2Hitman wrote:


Robert Kern-2 wrote:

Don't try to fit a Gaussian to a histogram using least-squares. It's an
awful
way to estimate the parameters. Just use np.mean() and np.cov() to
estimate the
mean and covariance matrix directly.


Ok, what about distributions other than gaussian? Would you use leastsq in
that case? If yes, i will post that to the scipy mailing list.

No, you would use a maximum likelihood method.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to