|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
- [b,bint,r,rint,stats] = regress(y,X)
, J' E1 \0 m5 o* z8 r
5 G, a0 D8 m- p# A8 B9 W/ @这个是regress的使用说明,用来进行多元线性回归。- l- s" O6 F5 G {6 U; S; ^. S
第一个问题:regress的第三个参数为置信水平,可填可不填,但是不管我填写与否,都会有一个warning:R-square and the F statistic are not well-defined unless X has a column of ones.
# s) y6 m# u% o7 L4 j8 OType "help regress" for more information.0 C3 W9 K& j5 V- v# n
9 y6 h. v- K4 t7 K5 m第二个问题:r是预测值和真实值的差,r'*r应该是残差平方和吗?它能够用来评价回归模型的好坏吗?, n/ U% Z6 N2 u) b. v
2 o+ p! S* L G& n2 Y# D# ]
第三个问题:stats是一个数组,The vector stats contains the R2 statistic along with the F and p values for the regression
2 h) m) Y6 ], u6 W" ?& U9 A- b 很多网上的使用说明,包括matlab的help都只提到了stats数组的3个成员,但是我使用regress函数后stats有4个成员,请问另外一个是代表什么问题
- C. B3 `: O8 B9 ~/ ^% \
: b8 j3 I6 R: j8 w/ E |
|