Regression

You might also like

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 4

Calculations x y (xi-x̄) (yi-ȳ) (xi-x̄)(yi-ȳ) (yi-ȳ)² (xi-x̄)²

95 85 17 8 136 64 289
85 95 7 18 126 324 49
80 70 2 -7 -14 49 4
70 65 -8 -12 96 144 64
60 70 -18 -7 126 49 324
Sum 390 385 0 0 470 630 730
Mean 78 77 0 0 86 126 146

To check our manual calculations we can use solver ☟☟☟ Final Answers
SUMMARY OUTPUT R² 0.480322
R 0.693053
Regression Statistics MAE 7.232877
Multiple R 0.693053 MSE 65.47945
R Square 0.480322 RMSE 8.091937
Adjusted R Square 0.307096 SE 10.44665
Standard Error 10.44665
Observations 5

ANOVA
df SS MS F Significance F
Regression 1 302.6027 302.6027 2.772803 0.19446749
Residual 3 327.3973 109.1324
Total 4 630

Coefficients
Standard Error t Stat P-value Lower 95% Upper 95%Lower 95.0%
Intercept 26.78082 30.51824 0.877535 0.444799 -70.3418387 123.9035 -70.34184
X Variable 1 0.643836 0.386648 1.665174 0.194467 -0.58665002 1.874321 -0.58665

RESIDUAL OUTPUT PROBABILITY OUTPUT

Observation Predicted Y Residuals Percentile Y


1 87.94521 -2.945205 10 65
2 81.50685 13.49315 30 70
3 78.28767 -8.287671 50 70
4 71.84932 -6.849315 70 85
5 65.41096 4.589041 90 95

Another way to check the answers is to use functions


0.643835616438356 b
26.7808219178082 a
0.480321809088933 R²
0.6930525298193 R
We can noitce that all numbers in the 3 ways are the same
b=sum(xi-x̄)(yi-ȳ)/sum (xi-x̄)² a=ȳ-bx̄ regression equation Ŷ
0.643835616438356 26.78082192 Ŷ=26.78+0.643835x 87.94521
81.50685
78.28767
71.84932
65.41096
385

Upper 95.0%
123.903482556664
1.87432125113805
(yi-Ŷ) (yi-Ŷ)² ABS(yi-Ŷ) r²=1-sum(yi-Ŷ)²/sum(yi-ȳ)² MAE
-2.945205 8.67423531619442 2.94520547945206 0.480321809088933 7.232877
13.49315 182.065115406268 13.4931506849315
-8.287671 68.6854944642521 8.2876712328767
-6.849315 46.9131169074874 6.84931506849316
4.589041 21.059298179771 4.58904109589041
0 327.397260273972 36.1643835616438
MSE RMSE Se
65.47945 8.091937 109.1324
10.44665

You might also like