I am trying to fit a non-standard pdf to data and FindDistributionParameters works great, and gives me the parameters of the distribution back using maximum likelihood, but I cannot find a way to get Mathematica to spit out the standard errors (or confidence intervals) for those estimated parameters. Anyone knows how to do it, or should I just go to a different program, i.e. MatLab?
|
|
||||
|
Under some conditions which are outlined on wikipedia's maximum likelihood page, Here is some code that will compute these asymptotic standard errors (provided the log-likelihood is symbolically differentiable).
|
||||
|
|
A possibility is to use a parametric bootstrap. It works as follows:
Using Darren's example:
Pretty close, eh? The advantage of this method is that the conditions for this to be valid are weaker than Darren's. It is conceptually easier, and requires just two lines of code. The disadvantage is that it is slow (about 20 s in this example, which can be reduced to 10 seconds as Mr.Alpha rightly remarks using Generating 95% confidence intervals is pretty easy too:
|
|||||||||||
|

NonlinearModelFitdoes provide those, but it is less suited for distributions. – Sjoerd C. de Vries Jun 6 '12 at 18:29NonlinearModelFitworksunder the assumption that the original Yi are independent normally distributed with mean Yi and common standard deviation(sic) – belisarius Jun 6 '12 at 18:57