楼主: fantuanxiaot
34452 124

[统计软件] 加权迭代最小二乘Iteratively Reweighted Least Square导论—MATLAB、Eviews、R为工具   [推广有奖]

Ψ▄┳一大卫卍卐席尔瓦

大师

8%

还不是VIP/贵宾

-

威望
7
论坛币
-234475 个
通用积分
124.1424
学术水平
3783 点
热心指数
3819 点
信用等级
3454 点
经验
150207 点
帖子
7546
精华
32
在线时间
1327 小时
注册时间
2013-2-3
最后登录
2022-2-24

初级学术勋章 初级热心勋章 中级热心勋章 中级学术勋章 初级信用勋章 中级信用勋章 高级热心勋章 高级学术勋章 特级学术勋章 特级热心勋章 高级信用勋章 特级信用勋章

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
    加权迭代最小二乘IRLS属于稳健回归方法,常用于样本较少的回归,IRLS属于M-EstimatorsIRLS介绍如下:注意步骤,完整了解加权迭代最小二乘IRLS和软件操作

先看First文献,再看Second文献!


First,IRLS and M-Estimators Introduction based on R/Splus

重要文献如下!!!

本帖隐藏的内容

7 Robust Regression.pdf (210.65 KB)



The method of iteratively reweighted least squares (IRLS) is used to solve certain optimization problems with objective functions of the form:


By an iterative method in which each step involves solving a weighted least squares problem of the form:




IRLS is used to find the maximum likelihood estimates of a generalized linear model, and in robust regression to find an M-estimator, as a way of mitigating the influence of outliers in an otherwise normally-distributed data set. For example, by minimizing the least absolute error rather than the least square error.

Second,IRLS Introduction based on MATLAB with two types(IRLSMATLAB中具有两个版本:第一个版本是一般的M-EstimatorsIRLS另外一个版本是属于最优化算法的版本:基于范数Homotopy参数选择的IRLS)



      b = robustfit(X,y) returns a p-by-1 vector b of coefficient estimates for a robustmultilinear regression of the responses in yon the predictors in X. X is an n-by-p matrix of ppredictors at each of n observations. y is an n-by-1 vector of observed responses. By default, the algorithm uses iteratively reweighted least squares (IRLS) with a bisquare weighting function.

       Note : By default, robustfit adds a first column of 1s to X, corresponding to a constant term in the model. Do not enter a column of 1s directly into X. You can change the default behavior of robustfit using the input const, below. Robustfit treats NaNs in X or y as missing values, and removes them.

      b = robustfit(X,y,wfun,tune)specifies a weighting function wfun. tune is a tuning constant that is divided into the residual vectorbefore computing weights. The weighting function wfun can be any one of thefollowing strings:


3.png


      If tune is unspecified, the default value in the table is used. Default tuningconstants give coefficient estimates that are approximately 95% as statistically efficient as the ordinary least-squaresestimates, provided the response has a normal distribution with no outliers.Decreasing the tuning constant increases the downweight assigned to largeresiduals; increasing the tuning constant decreases the downweight assigned tolarge residuals.

      Thevalue r in the weight functions is: r= resid/(tune*s*sqrt(1-h)). Where resid is the vector of residuals from theprevious iteration, h is the vectorof leverage values from a least-squares fit, and s is an estimate of the standard deviation of the error term givenby s = MAD/0.6745. Here MAD is the median absolute deviation of the residualsfrom their median. The constant 0.6745 makes the estimate unbiased for thenormal distribution. If there are p columns in X, the smallest pabsolute deviations are excluded when computing the median.

      You can write your own weight function. The function must take a vector of scaledresiduals as input and produce a vector of weights as output. In this case, wfunis specified using a function handle @ (as in @myfun), and the inputtune is required.

      b = robustfit(X,y,wfun,tune,const)controls whether or not the model will include a constant term. const is'on' to include the constant term (the default), or 'off' to omit it. When constis 'on', robustfit adds a first column of 1s to X. When const is 'off',robustfit does not alter X.

      [b,stats] = robustfit(...) returns the structure stats, whose fieldscontain diagnostic statistics from the regression. The fields of stats are:

ols_s — Sigma estimate (RMSE) from ordinary least squares

robust_s — Robust estimate of sigma

mad_s — Estimate of sigma computed using the median absolute deviation ofthe residuals from their median; used for scaling residuals during iterativefitting

s — Final estimate of sigma, the larger of robust_s and a weighted averageof ols_s and robust_s

resid — Residual

rstud — Studentized residual (see regress for more information)

se — Standard error of coefficient estimates

covb — Estimated covariance matrix for coefficient estimates

coeffcorr — Estimated correlation of coefficient estimates

t — Ratio of b to se                                    p — p-values for t

w — Vector of weights forrobust fit           R — R factor in QRdecomposition of X

dfe — Degrees of freedom forerror            h — Vector of leveragevalues for least-squares fit

本帖隐藏的内容

一篇使用irls方法的文献!

3 美联储退出策略的时机预测_栗亮.pdf (936.08 KB)


M-EstimatorsIRLS MATLAB介绍可以参见书籍:

本帖隐藏的内容

张德丰的Matlab概率与数理统计分析


MATLAB统计分析与应用:40个案例分析



基于范数Homotopy参数选择的IRLS重要文献如下!以下三、四文献有重要的MATLAB代码,大家自己参考!!!按照顺序一步一步看!

本帖隐藏的内容

5 IRLS2.PDF (1.03 MB)
4 Conjugate guided gradient (CGG) method of IRLS.pdf (2.19 MB)
1 Iterative Reweighted Least Squares.pdf (238.83 KB)
6 IRLS@.pdf (142.83 KB)


Third,IRLS Introduction based on  Eviews(如图)Eviews的操作这个大家自己摸索,我没有试过

1.png


选择RobustLS M-Estimation

在选项里面就可以找到加权函数的类型选项了

诸如(Huber Bisquare)

2.png







二维码

扫码加我 拉你入群

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

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

关键词:iterative weighted Weight MATLAB Square objective problems method least 软件

回帖推荐

agent9 发表于101楼  查看完整内容

感谢楼主 楼主万福!资源太宝贵了!

似水流枫 发表于98楼  查看完整内容

谢谢楼主提供有分量、价值高的资源。

chengzhifu2013 发表于95楼  查看完整内容

这个太实用了 果断收藏

wuya100 发表于94楼  查看完整内容

谢谢分享!!!!!

煮酒半杯 发表于91楼  查看完整内容

很给力,想学习

18810699864 发表于87楼  查看完整内容

牛!实习建模的时候用过这个模型,但其实并没深究,现在来研究一下

骆驼的祥子 发表于83楼  查看完整内容

我喜欢这里的分享

dnq 发表于84楼  查看完整内容

kabnkan

xujingjun 发表于72楼  查看完整内容

非常感谢,学习

hlw 发表于66楼  查看完整内容

dabaobei 发表于67楼  查看完整内容

非常好的分享,十分感谢@@@!!!!

wlgdcc 发表于59楼  查看完整内容

正要用到,楼主好人~~

杰式悦敏 发表于61楼  查看完整内容

我要认真地学习一遍

hocuser 发表于51楼  查看完整内容

thanks

jxjg 发表于60楼  查看完整内容

学习学习

olympic 发表于43楼  查看完整内容

按照顺序一步一步看

地下爆菊 发表于39楼  查看完整内容

Elena3 发表于15楼  查看完整内容

{:2_31:}

zxxsm 发表于18楼  查看完整内容

这个确实可以学习一下!感谢楼主的分享!

zbin7451f 发表于14楼  查看完整内容

谢谢楼主提供有分量、价值高的资源。

wangning2441 发表于12楼  查看完整内容

xxff 发表于9楼  查看完整内容

加权迭代最小二乘Iteratively Reweighted Least Square导论—MATLAB、Eviews、R为工具

EchoEstelle 发表于7楼  查看完整内容

什么情况下需要加权?

Crsky7 发表于4楼  查看完整内容

加权迭代最小二乘IRLS属于稳健回归方法,常用于样本较少的回归

sxghp 发表于3楼  查看完整内容

thanks a lot
已有 8 人评分经验 学术水平 热心指数 信用等级 收起 理由
一次的股份123 + 1 + 1 + 1 对论坛有贡献
日新少年 + 2 + 2 + 2 精彩帖子
离歌レ笑 + 100 + 5 + 5 + 5 精彩帖子
zbin7451f + 100 + 5 + 5 + 5 对论坛有贡献
crystal8832 + 1 + 1 + 1 精彩帖子
我的素质低 + 20 精彩帖子
LIXUANHANK + 3 + 3 + 3 精彩帖子
sxghp + 3 + 2 + 2 精彩帖子

总评分: 经验 + 220  学术水平 + 20  热心指数 + 19  信用等级 + 19   查看全部评分

本帖被以下文库推荐

沙发
zbin7451f 发表于 2014-9-19 05:50:01 |只看作者 |坛友微信交流群
谢谢楼主提供有分量、价值高的资源。
已有 1 人评分论坛币 学术水平 热心指数 信用等级 收起 理由
fantuanxiaot + 5 + 2 + 2 + 2 精彩帖子

总评分: 论坛币 + 5  学术水平 + 2  热心指数 + 2  信用等级 + 2   查看全部评分

使用道具

藤椅
fantuanxiaot 发表于 2014-9-18 20:29:16 |只看作者 |坛友微信交流群
老师们 这个你们可以了解下!!
已有 1 人评分经验 学术水平 热心指数 信用等级 收起 理由
zbin7451f + 100 + 5 + 5 + 5 对论坛有贡献

总评分: 经验 + 100  学术水平 + 5  热心指数 + 5  信用等级 + 5   查看全部评分

使用道具

板凳
sxghp 发表于 2014-9-18 20:30:41 |只看作者 |坛友微信交流群
thanks a lot

使用道具

报纸
Crsky7 发表于 2014-9-18 20:38:34 |只看作者 |坛友微信交流群
加权迭代最小二乘IRLS属于稳健回归方法,常用于样本较少的回归

使用道具

地板
fantuanxiaot 发表于 2014-9-18 20:39:50 |只看作者 |坛友微信交流群
Crsky7 发表于 2014-9-18 20:38
加权迭代最小二乘IRLS属于稳健回归方法,常用于样本较少的回归
一篇使用irls方法的文献!:
3 美联储退出策略的时机预测_栗亮.pdf
已有 1 人评分经验 学术水平 热心指数 信用等级 收起 理由
zbin7451f + 100 + 5 + 5 + 5 对论坛有贡献

总评分: 经验 + 100  学术水平 + 5  热心指数 + 5  信用等级 + 5   查看全部评分

使用道具

7
fantuanxiaot 发表于 2014-9-18 20:43:25 |只看作者 |坛友微信交流群
来了解一下吧! 需要实证研究的哥们和老师们
已有 1 人评分经验 学术水平 热心指数 信用等级 收起 理由
zbin7451f + 100 + 5 + 5 + 5 对论坛有贡献

总评分: 经验 + 100  学术水平 + 5  热心指数 + 5  信用等级 + 5   查看全部评分

使用道具

8
EchoEstelle 发表于 2014-9-18 20:50:27 |只看作者 |坛友微信交流群
什么情况下需要加权?

使用道具

9
fantuanxiaot 发表于 2014-9-18 20:52:20 |只看作者 |坛友微信交流群
EchoEstelle 发表于 2014-9-18 20:50
什么情况下需要加权?
一篇使用irls方法的文献!:
3 美联储退出策略的时机预测_栗亮.pdf

做稳健回归 样本较少情况下 规避异常值对回归系数的影响
已有 1 人评分经验 学术水平 热心指数 信用等级 收起 理由
zbin7451f + 100 + 5 + 5 + 5 精彩帖子

总评分: 经验 + 100  学术水平 + 5  热心指数 + 5  信用等级 + 5   查看全部评分

使用道具

10
xxff 发表于 2014-9-18 22:16:39 |只看作者 |坛友微信交流群
加权迭代最小二乘Iteratively Reweighted Least Square导论—MATLAB、Eviews、R为工具

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加JingGuanBbs
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-20 00:21