Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b4a59ef

Browse filesBrowse files
DOC: odr: clarify cov_beta is not scaled by the residual variance (scipy#18458)
Co-authored-by: Jake Bowhay <60778417+j-bowhay@users.noreply.github.com>
1 parent e7a5522 commit b4a59ef
Copy full SHA for b4a59ef

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎scipy/odr/_odrpack.py

Copy file name to clipboardExpand all lines: scipy/odr/_odrpack.py
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,10 @@ class Output:
553553
Standard deviations of the estimated parameters, of shape (p,).
554554
cov_beta : ndarray
555555
Covariance matrix of the estimated parameters, of shape (p,p).
556+
Note that this `cov_beta` is not scaled by the residual variance
557+
`res_var`, whereas `sd_beta` is. This means
558+
``np.sqrt(np.diag(output.cov_beta * output.res_var))`` is the same
559+
result as `output.sd_beta`.
556560
delta : ndarray, optional
557561
Array of estimated errors in input variables, of same shape as `x`.
558562
eps : ndarray, optional

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.