-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
ENH: add optional argument for scaled covariance matrix of ODR #12207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
See discussion in https://mail.python.org/pipermail/scipy-user/2013-February/034196.html and #448 on probably similar resolved issue in |
Thank you so much for your comment. I didn’t realize that there are some different expectations for covariance matrix. I agree we should not break backward compatibility, there should be an optional argument to scale it or not. I will try to fix it. |
I made a comment related to this issue here: Basically there seems to be an inconsitency between curve_fit and odr in mode 2 (=least squares) in terms of the calculation of the error of the parameters. The unweighted covariance matrix returned by odr is almost equal to that returned by curve_fit. |
@kurisutsukato Hi. Thank you for your comment. I commented in #6842. PTAL. |
💡 @AtsushiSakai see issue here: #12584 |
Reference issue
fix #6842
What does this implement/fix?
fix covariance matrix of ODR to be scaled by the residual variance and added its tests.I added optional argument for scaled covariance matrix of ODR.
I updated sd_beta docstring to clarify the value is scaled.