-
Hi, Is there a way in I'm aware that error estimates for unconverged parameter values are not reliable. I have two use cases where this would be useful nonetheless: Case 1: Debugging models. When developing models, I sometimes want to get an estimate of the confidence intervals and correlation coefficient matrix for some given parameter values, when trying to debug cause for e.g. if model calculation fails, or if the minimizer seems to behave oddly. Case 2: Identify that model has strongly correlated parameters. In some of my models, parameters are highly correlated from the get go, which would be beneficial to see early, before starting parameter estimation. This is also useful when trying to find out good initial values for parameters. Thanks for any insight on this! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Not really. When evaluating covariance and confidence intervals explicitly (see, for example, https://github.com/lmfit/lmfit-py/blob/master/lmfit/confidence.py), one moves each parameter away from its optimal value (typically by its expected 1-sigma uncertainty) and then optimizes all the other parameter values in response to that change. The covariance measures how parameter A responds when parameter B is changed from its optimal value. You have to make those measurements. The magic of |
Beta Was this translation helpful? Give feedback.
-
the code we use to calculate the covariance matrix using
the functions used here all part of the |
Beta Was this translation helpful? Give feedback.
-
Thanks for answers! I don't know lmfit yet well enough to make the covariance calculation code above to work, but I found out that using Nelder-Mead with a large tolerance stops the optimizer at start values, so this sort of does what I want (using the doc_fitting_withreport.py example) although it's not very elegant solution:
|
Beta Was this translation helpful? Give feedback.
@tkeskita
Not really. When evaluating covariance and confidence intervals explicitly (see, for example, https://github.com/lmfit/lmfit-py/blob/master/lmfit/confidence.py), one moves each parameter away from its optimal value (typically by its expected 1-sigma uncertainty) and then optimizes all the…