楼主: wangzhenyujoy
130069 64

[经济] 一元线性回归模型中残差平方和的自由度为什么是n-2 [推广有奖]

21
筱筱洁 发表于 2010-10-18 19:53:14 |只看作者 |坛友微信交流群
可以这样理解,自由与约束、限制是相对应的,我们在利用普通最小二乘法(OLS)进行参数估计时,为了使残差的平方和最小,对残差序列施加了两个限制条件(即:当一阶偏导数等于0时所得出的关于参数的两个方程),因而自由度自然就为n-2了

使用道具

22
zhaowenxingge 发表于 2010-10-24 21:16:29 |只看作者 |坛友微信交流群
学到了些东西

使用道具

23
dhwang 发表于 2012-1-10 12:27:20 |只看作者 |坛友微信交流群
模型中有两个系数需要估计。在利用OLS进行参数估计时,由一阶条件推出了两个关于残差的限制方程,即残差均值为零,残差与x的样本协方差为零。残差总共有n个,如果知道其中的n-2个,必能根据那两个限制方程求解到剩下的n个残差。因此,有2个参数是不自由的。不自由参数个数取决于模型中需要估计系数的个数。

使用道具

24
deamoo12 发表于 2012-1-10 17:46:43 |只看作者 |坛友微信交流群
还是不太明白

使用道具

25
fttj2009 发表于 2012-1-10 22:46:53 |只看作者 |坛友微信交流群
不太清楚,不过应该是自由度越高越好

使用道具

26
daowu123 发表于 2012-1-11 17:39:20 |只看作者 |坛友微信交流群
  n-k-1    n 为序列个数,k为自变量个数,那个1是截距项。。

使用道具

27
klsnoopy1 发表于 2012-1-19 13:24:03 |只看作者 |坛友微信交流群
再问自由度。。。。

使用道具

28
moonriver520 发表于 2012-1-20 17:45:57 |只看作者 |坛友微信交流群

使用道具

29
smslike123 发表于 2012-4-23 03:13:11 |只看作者 |坛友微信交流群
wikipedia的解释:
http://en.wikipedia.org/wiki/Degrees_of_freedom_(statistics)
An only slightly less simple example is that of least squares estimation of a and b in the model

where εi and hence Yi are random. Let  and  be the least-squares estimates of a and b. Then the residuals

are constrained to lie within the space defined by the two equations


One says that there are n − 2 degrees of freedom for error.
The capital Y is used in specifying the model, and lower-case y in the definition of the residuals. That is because the former are hypothesized random variables and the latter are data.
We can generalise this to multiple regression involving p parameters and covariates (e.g. p − 1 predictors and one mean), in which case the cost in degrees of freedom of the fit is p.

说句实话,大家都是在一个层面上的理解,主要通过自然语言进行解释。而实际上,真正的数学推导并没有给出。

使用道具

感觉这个帖子已经讲得很清楚了,受教了。
专业立身

使用道具

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

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

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

GMT+8, 2024-4-28 22:18