Formulas Linear Regression PDF
Formulas Linear Regression PDF
regression
Estimated mean at X_ 0 a + b X0
(X0 -X)_2
Variance [ n + !
1
2
] 5 2
(Xi -X)
y 5 7 9 6 8
y^ 6 6.5 7 7.5 8
r=y- y^ -1 0.5 2 -1.5 0
i=1
SSE = 1+0.25+4+2.25=7.5
SSE is also Syy - S2xy /Sxx = Syy - b2 Sxx =
10-52 /10
Variance of b:
unusual t.
data a; input x y @@; cards;
15 27 39 46 58
;
proc reg; model Y =X / p;
run;
Dependent Variable: y
Analysis of Variance
Sum of Mean
Source DF Squares Square F Value Pr > F
Model 1 2.50000 2.50000 1.00 0.3910
Error 3 7.50000 2.50000
Corr Total 4 10.00000
Parameter Estimates
Parameter Standard
Variable DF Estimate Error t Value Pr > |t|
Intercept 1 5.50000 1.65831 3.32 0.0452
x 1 0.50000 0.50000 1.00 0.3910
Output Statistics
Dep Var Predicted
Obs y Value Residual