regress线性回归建模 显示X秩亏,但还在精​度内,R2很低,其他​三个参数NAN。

e1=MSC(d1,1,1044);%MSC校正
e2=e1(1:240,300:1000);%预测集数据选择
e3=e1(191:240,300:1000);
X=[e2,ones(240,1)];%矩阵添加一行1
[b,bint,r,rint,stats]=regress(Y,X);
请问大佬们怎么解决啊,数据里也没有字符类型,没有其他函数,为啥建模参数是这种情况呢

 Accepted Answer

gudrrvv
gudrrvv on 20 May 2023

0 votes

当自变数的数量多于样本数量时,线性回归已无意义。再加上其中任何一个或数个自变数均对目标变数没有作用,则任何形式的数量关系均无实际价值、经不起检验。

More Answers (0)

Tags

Asked:

on 20 May 2023

Answered:

on 20 May 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!