|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
- [b,bint,r,rint,stats] = regress(y,X)7 s" ?7 \- _6 v' f
$ @1 f5 Q1 }. G$ r3 I3 {
这个是regress的使用说明,用来进行多元线性回归。! i/ h- U3 Y ?( Y1 |* i; M
第一个问题:regress的第三个参数为置信水平,可填可不填,但是不管我填写与否,都会有一个warning:R-square and the F statistic are not well-defined unless X has a column of ones.; t$ g; B$ k. W' u
Type "help regress" for more information.
, U6 H ^7 O1 J4 ?* z0 x7 O$ y6 f5 C% X3 j4 `, L
第二个问题:r是预测值和真实值的差,r'*r应该是残差平方和吗?它能够用来评价回归模型的好坏吗?3 O# o/ i m1 e) M; m
- u6 o- e8 Z: [- p; D( ~8 | H第三个问题:stats是一个数组,The vector stats contains the R2 statistic along with the F and p values for the regression* V: k/ l' w# _4 C, `: Q) G0 b
很多网上的使用说明,包括matlab的help都只提到了stats数组的3个成员,但是我使用regress函数后stats有4个成员,请问另外一个是代表什么问题
% @2 Y1 U8 H$ w. \- K1 l* s0 R( T( G, z0 S8 I+ x
|
|