MATLAB中关于regress函数的问题

来源:百度知道 编辑:UC知道 时间:2024/05/16 11:09:13
MATLAB中使用regress函数进行多元线性回归,最后返回的stats的量为什么是四个?
具体程序如下:
y =[ 0.1370
0.2860
0.1920
0.2075
0.2350
0.1725
0.2205
0.1725
0.2545 ]

>> X=[1 112 0.03 0.82 0.0005; 1 112 0.06 3.30 0.0025; 1 112 0.09 1.65 0.00125; 1 160 0.03 3.30 0.00125; 1 160 0.06 1.65 0.0005; 1 160 0.09 0.82 0.0025; 1 80 0.03 1.65 0.0025; 1 80 0.06 0.82 0.00125 ; 1 80 0.09 3.30 0.0005];
>> X

X =

1.0000 112.0000 0.0300 0.8200 0.0005
1.0000 112.0000 0.0600 3.3000 0.0025
1.0000 112.0000 0.0900 1.6500 0.0013
1.0000 160.0000 0.0300 3.3000 0.0013
1.0000 160.0000 0.0600 1.6500 0.0005
1.0000 160.0000 0.0900 0.8200 0.0025
1.0000 80.0000 0.0300 1.6500 0.0025
1.0000 80.0000 0.0600 0.8200 0.0013
1.0000 80.0000 0.0900 3.3000 0.0005

STATS containing, in the following order, the R-square statistic, the F statistic and p value for the full model, and an estimate of the error variance

help里面有的,这四个分别表示R平方,F,p和估计误差方差