comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » maximum likelihood fitting with prior
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
maximum likelihood fitting with prior [message #83981] Mon, 15 April 2013 06:48
Russell[1] is currently offline  Russell[1]
Messages: 101
Registered: August 2011
Senior Member
Err, I guess I want maximum posterior fitting. I have some data to which I want to fit a very complex and highly non-linear model, but I have some priors on the parameters of the model. I used to have no priors (err, I guess flat priors) and in which case the problem was a simple "chi-2", and I was successfully using C. Markwardt's mpfit. It worked mostly great, but I had to do some experimentation to ensure I was avoiding local extrema. However, with the prior I cannot write a function that returns an array of the form:

(data-model)/error

because the thing I want to maximize isn't a simple likelihood (or minimize a chi2). So, I need a more general optimizing routine (or a way of tricking mpfit to work with the chi2 not the residual). Yes, I'm aware of things like powell and amoeba in IDL's normal distro, but those don't work very well.

Any advice?

I'm gonna give tnmin from CM a try, but I thought to ask anyway...

Thanks!
Russell
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Finding distance with longitude and latitude
Next Topic: setting widget " EVENT_PRO='myClass::myCallback' " ???? Is it possible?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:02:39 PDT 2025

Total time taken to generate the page: 0.00366 seconds