|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
- [b,bint,r,rint,stats] = regress(y,X)( z0 V# `3 ]2 C, E
8 Z) e; O3 U0 Z" \2 Z# q
这个是regress的使用说明,用来进行多元线性回归。 C& F& t- l' P0 n, h
第一个问题:regress的第三个参数为置信水平,可填可不填,但是不管我填写与否,都会有一个warning:R-square and the F statistic are not well-defined unless X has a column of ones.
$ _' w" \7 V8 f- K3 O# R* gType "help regress" for more information.' g" e) K" \6 J$ f3 T) B; W
, H9 G0 B! V% n7 O1 ]+ J第二个问题:r是预测值和真实值的差,r'*r应该是残差平方和吗?它能够用来评价回归模型的好坏吗?" U+ m8 s N8 p+ g) T% |. Y
x3 i0 c$ z- s9 S: t5 H+ f( b$ V- D第三个问题:stats是一个数组,The vector stats contains the R2 statistic along with the F and p values for the regression/ k6 K) H- G; S6 c. M
很多网上的使用说明,包括matlab的help都只提到了stats数组的3个成员,但是我使用regress函数后stats有4个成员,请问另外一个是代表什么问题
6 ~& M0 s! i0 A7 ?
! }& k- l# o( Z* M8 @+ x) s |
|