[英]Orthogonal distance regression in python: meaning of returned values
I am following the Orthogonal distance regression method to fit data with errors on both the dependent and independent variables. 我遵循正交距离回归方法来拟合依赖变量和自变量上的错误数据。
I am fitting the data with a simple straight line, my model is y = ax + b
. 我用简单的直线拟合数据,我的模型是
y = ax + b
。
Now, I am able to write the code and plot the line fitting the data, but I am NOT able to read the results: 现在,我能够编写代码并绘制适合数据的行,但我无法读取结果:
Beta: [ 2.08346947 0.0024333 ]
Beta Std Error: [ 0.03654482 0.00279946]
Beta Covariance: [[ 2.06089823e-03 -9.99220260e-05]
[ -9.99220260e-05 1.20935366e-05]]
Residual Variance: 0.648029925546
Inverse Condition #: 0.011825289654
Reason(s) for Halting:
Sum of squares convergence
The Beta
is just the array containing the values of the parameters of my model (a, b)
, and Beta Std Error
, the associated errors. Beta
只是包含模型(a, b)
参数值和Beta Std Error
(相关错误(a, b)
的数组。
Regarding the other values, I don't know their meaning. 关于其他价值观,我不知道它们的含义。
Especially, I would like to know which one is indicative of a goodness-of-fit, something like the chi-square when one fits with the errors only on the dependent variable. 特别是,我想知道哪一个表示拟合优度,当一个只适用于因变量的误差时,就像卡方 。
Beta Covariance
is the covariance matrix of your fitted parameters. Beta Covariance
是拟合参数的协方差矩阵 。 It can be thought of as a matrix describing out inter-connected your two parameters are with respect to both themselves and each other. 它可以被认为是描述相互连接的矩阵,你的两个参数是关于它们自己和彼此的。
Residual Variance
I believe is a measure of the goodness-of-fit where the smaller the value, the better the fit to your data. Residual Variance
我认为是衡量拟合优度的指标,值越小,数据拟合越好。
Inverse Condition
is the inverse (1/x) of the condition number . Inverse Condition
是的倒数(1 / x)的条件数 。 The condition number defines how sensitive your fitted function is to changes in the input. 条件数定义了拟合函数对输入变化的敏感程度。
scipy.odr
is a wrapper around a much older FORTRAN77 package known as ODRPACK. scipy.odr
是一个更老的FORTRAN77包的包装器,称为ODRPACK。 The documentation for ODRPACK can actually be found on on the scipy website . ODRPACK的文档实际上可以在scipy网站上找到。 This may help you in understanding what you need to know as it contains the mathematical descriptions of the parameters.
这可以帮助您理解您需要知道的内容,因为它包含参数的数学描述。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.