Skip to content
Discussion options

You must be logged in to vote

@bleolta Actually, the fit does succeed. Evaluating the uncertainties does not.

That is because the value of one of the variables is extremely close to the machine precision estimate of 0, and the "noise" added to your data is extremely small, again close to machine precision. That means that the chi-square is also exceptionally small, and so that it is very hard to estimate uncertainties. If, for example, you changed a to 1.e-9, both the fit and estimation of the uncertainties would "work".
If you had set a to 1.e-12 and the noise scale to 1.e-12, both woould have worked.

This is a well-known feature of using floating point numbers. It is not something we are going to attempt to fix. It …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ghost
Comment options

@newville
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant