mathematica的结果
{
{"", "DF", "SS", "MS", "F\[Hyphen]Statistic", "P\[Hyphen]Value"},
{x1, 1, 81.1052, 81.1052, 0.773533, 0.383419},
{x2, 1, 18.3613, 18.3613, 0.175119, 0.67743},
{x3, 1, 157.723, 157.723, 1.50427, 0.225877},
{x4, 1, 0., 0., 0., 1.},
{"Error", 49, 5137.67, 104.85, , },
{"Total", 53, 5394.86, , , }
}
并不能剔除错误数据,R和minitab就可以,有什么方法验证数据么?
剔除错误数据的结果
{
{"", "DF", "SS", "MS", "F\[Hyphen]Statistic", "P\[Hyphen]Value"},
{x1, 1, 81.1052, 81.1052, 0.789319, 0.37856},
{x2, 1, 18.3613, 18.3613, 0.178693, 0.674311},
{x3, 1, 157.723, 157.723, 1.53497, 0.221153},
{"Error", 50, 5137.67, 102.753, , },
{"Total", 53, 5394.86, , , }
}
具体项x1,x2,x3还是和minitab和R不太一样
minitab结果
Regression Analysis: y versus x1, x2, x3, x4
The following terms cannot be estimated and were removed:
x4
Analysis of Variance
Source DF Adj SS Adj MS F-Value P-Value
Regression 3 257.19 85.730 0.83 0.481
x1 1 47.99 47.992 0.47 0.497
x2 1 0.55 0.548 0.01 0.942
x3 1 157.72 157.723 1.53 0.221
Error 50 5137.67 102.753
Lack-of-Fit 21 1073.88 51.137 0.36 0.990
Pure Error 29 4063.79 140.131
Total 53 5394.86
R结果
Residuals: Min 1Q Median 3Q Max -11.222 -5.821 -2.546 3.171 40.750 Coefficients: (1 not defined because of singularities) Estimate Std. Error t value Pr(>|t|)(Intercept) 4.1945 3.9749 1.055 0.296x1 0.3862 0.5652 0.683 0.497x2 0.2308 3.1590 0.073 0.942x3 3.7072 2.9922 1.239 0.221x4 NA NA NA NAResidual standard error: 10.14 on 50 degrees of freedomMultiple R-squared: 0.04767,Adjusted R-squared: -0.009466 F-statistic: 0.8343 on 3 and 50 DF, p-value: 0.4814