Standard errors from hessian using fminunc/fmincon
Show older comments
I'm optimizing a gaussian likelihood and using the hessian output from fminunc/fmincon to find standard errors. While this works fine in the unconstrained case, the standard errors become significantly smaller by an order of magnitude even when a single constraint is imposed on one of the statistically insignificant parameters.
Any idea why this is happening? I've attached the likelihood file for reference.
Answers (2)
Alan Weiss
on 1 Jul 2015
Edited: Alan Weiss
on 1 Jul 2015
0 votes
You might not have read the documentation of the Hessian output for fminunc and fmincon. It explains that the Hessian output for fmincon can be inaccurate. So if you find it is not working well, that is, unfortunately, the documented behavior.
Also, it is usually unclear what a standard error might mean in a constrained case, but that is something else.
Alan Weiss
MATLAB mathematical toolbox documentation
Matt J
on 1 Jul 2015
Sometimes a constrained problem can be reformulated as an unconstrained one, e.g., in one dimension
min. x
s.t. x>=0
is equivalent to
min. y^2
once you make the transformation of variables x=y^2.
Once you've solved the constrained version, you might be able to use the unconstrained, transformed problem to analyze the standard error. So, in the above case, once I have the standard error for the unconstrained variable y, I could presumably propagate that through the transform x=y^2 to get the uncertainty of x.
Categories
Find more on Solver Outputs and Iterative Display in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!