Matlab 一元线性回归问题(ststs那4个数代表了什么?)求教

x=[0 1 2 3 4 ]';y=[1.0 1.3 1.5,2.0 2.3]';
x=[ones(5,1),x]; %给出两个数组元素
[b,bint,r,rint,stats]=regress(y,x,0.05); %对x和y进行一元线性回归,并得到相关系数,其中,stats中第一个数即为相关系数,大于0.9就认为拟合很好。
结果:stats =
0.9829 171.9474 0.0010 0.0063
拟合度是0.9829. 那其他3个数什么意思呢?

stats
regress(y,X) returns a 1-by-4 vector stats that contains, in order,

the R2 statistic,
the F statistic,
its p value,
an estimate of the error variance.

拟合度
F统计量
P值
误差方差
温馨提示:答案为网友推荐,仅供参考
相似回答