r的残差平方和等于21545.29 和eviews是一样的 eviews的估计方法 在estimate选择的时候是ls 出来的结果却是ml ...欺人太盛
但r强行使用“css”条件最小二乘估计结果也不如ml...
原因在eviews官方手册里面有解释:Box and Jenkins (1976) and Box, Jenkins, and Reinsel (2008, Section 7.1.2 p 232.) point out that conditional on pre-sample values for the AR and MA errors, the normal conditional likelihood function may be maximized by minimizing the sum of squares of the innovations.
----------------------------------------------------------分割------------------------------------------------------
在进行的估计的时候,若是使用最大似然估计,需要假设为正太分布,此时自由度缩小。(分母变小)
而使用普通线性回归最小二乘估计的时候,则没有这个问题。
因此Eviews在 Variable中把最大似然法估计法得残差方差写了出来。
而下方则是使用最小二乘估计得到的残差标准差 。
图右侧 R 中
x.fit\$residuals为残差序列
x.fit\$residuals^2 为残差平方
sum(x.fit\$residuals^2) 为残差平方和
x.fit\$sigma2 就是Eviews中的 SIGMASQ
参考文献:
1.http://www.math.pku.edu.cn/teachers/lidf/course/fts/ftsnotes/html/_ftsnotes/fts-armod.html#tslin-ar-est
2.http://forums.eviews.com/viewtopic.php?t=13058
3.http://www.eviews.com/help/helpintro.html#page/content/system-System_Estimation_Methods.html
4.王燕. 应用时间序列分析 : Applied time series analysis[M]. 2012.