全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 MATLAB等数学软件专版
6768 3
2008-04-30

最小二乘拟合,我看书上是用 polyfit 和 regress 。 下面是regress的help说明,但里面却只是显示了 R 和F 统计量,那么 t 统计量如何显示,请高人指点,谢谢了!

 REGRESS Multiple linear regression using least squares.
    b = REGRESS(y,X) returns the vector of regression coefficients, b,
    in the linear model  y = Xb, (X is an nxp matrix, y is the nx1
    vector of observations).
 
    [B,BINT,R,RINT,STATS] = REGRESS(y,X,alpha) uses the input, ALPHA
    to calculate 100(1 - ALPHA) confidence intervals for B and the
    residual vector, R, in BINT and RINT respectively.  The vector
    STATS contains the R-square statistic along with the F and p
    values for the regression.
 
    The X matrix should include a column of ones so that the model
    contains a constant term.  The F and p values are computed under
    the assumption that the model contains a constant term, and they
    are not correct for models without a constant.  The R-square
    value is the ratio of the regression sum of squares to the
    total sum of squares.

[此贴子已经被作者于2008-4-30 4:57:44编辑过]

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2008-4-30 06:50:00
 MATLAB
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-4-9 13:38:30
这么久没人回答啊
我来试试吧 自己也碰到了这样的问题
可以考虑使用regstats命令
具体怎么用看帮助就知道了
model一般选‘linear’ 但是会包含常数项 偶也不知道如果不要常数项的话该怎么办
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2012-11-23 16:02:28
楼主解决了吗?我现在也遇到这个问题 实现pls可是如何检验统计量呢
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群