SUMMARY OUTPUT
Regression Statistics
Multiple R 0.950582466066985
R Square 0.903607024793991
Adjusted R Square 0.88432842975279
Standard Error 7.207449691411
Observations 25
ANOVA
df SS MS F Significance F
Regression 4 9739.2933789 2434.8233447 46.87099982 6.950524E-10
Residual 20 1038.9466211 51.947331054
Total 24 10778.24
Coefficients Standard Error t Stat P-value Lower 95%
Intercept 143.867187883838 6.0436980666 23.804496237 3.795908E-16 131.26025463
Age -1.11717705702269 0.1383417792 -8.075485681 1.007923E-07 -1.405752952
Severity -0.586210982919263 0.1355563482 -4.324481963 0.000329473 -0.86897657
Surg-Med 0.414874716890377 3.0077870738 0.1379335394 0.891672213 -5.859259176
Anxiety 1.30635101459554 1.0840545218 1.2050602514 0.242245817 -0.954947093
RESIDUAL OUTPUT
Observation Predicted Satisfaction Residuals
1 55.8552377322774 12.144762268
2 82.4806372284897 -5.4806372285
3 88.1120040239267 7.8879959761
4 82.9213179904894 -2.9213179905
5 46.566206539373 -3.5662065394
6 47.2091186047352 -3.2091186047
7 30.6921770715725 -4.6921770716
8 81.3887963979627 6.611203602
9 93.1322342068623 -18.132234207
10 61.1307259816372 -4.1307259816
11 65.6696334597038 -9.6696334597
12 83.2199361889803 4.780063811
13 86.8411632312327 1.1588367688
14 101.173453241284 0.8265467587
15 83.2784750450936 4.7215249549
16 65.7717568307704 4.2282431692
17 49.7361380024766 2.2638619975
18 42.5541197694555 0.4458802305
19 47.6628567125246 -1.6628567125
20 55.8126685692081 0.1873314308
21 51.1894754116189 7.8105245884
22 25.4345265137567 0.5654734862
23 61.0834066976433 -9.0834066976
24 80.2486499284283 2.7513500716
25 68.8352846204965 6.1647153795
Upper 95% Lower 95.0% Upper 95.0%
156.47412114 131.26025463 156.47412114
-0.828601162 -1.405752952 -0.828601162
-0.303445395 -0.86897657 -0.303445395
6.6890086101 -5.859259176 6.6890086101
3.5676491219 -0.954947093 3.5676491219
x1 x2 x3 x4 y
yhat res
1
Age
55
Severity Surg-Med Anxiety Satisfaction
50 0 2.1 68 55.85524 12.14476
𝑌=𝛽_0+𝛽_1 𝑥
1 46 24 1 2.8 77 82.48064 -5.480637 𝑥_4+𝜖
1 30 46 1 3.3 96 88.112 7.887996 alpha
1 35 48 1 4.5 80 82.92132 -2.921318 n
1 59 58 0 2.0 43 46.56621 -3.566207 k
1 61 60 0 5.1 44 47.20912 -3.209119 p
1 74 65 1 5.5 26 30.69218 -4.692177 t_alpha_2
1 38 42 1 3.2 88 81.3888 6.611204
1 27 42 0 3.1 75 93.13223 -18.13223 Confidence interval on slo
1 51 50 1 2.4 57 61.13073 -4.130726
1 53 38 1 2.2 56 65.66963 -9.669633 𝛽 ̂_𝑗−𝑡_(𝛼∕2,𝑛−
1 88 83.21994 4.780064
1
41
37
30
31
0
0
2.1
1.9 88 86.84116 1.158837
∙𝑠𝑒(𝛽 ̂_𝑗 )
1 24 34 0 3.1 102 101.1735 0.826547
1 42 30 0 3.0 88 83.27848 4.721525 Intercept
1 50 48 1 4.2 70 65.77176 4.228243 Age
1 58 61 1 4.6 52 49.73614 2.263862 Severity
1 60 71 1 5.3 43 42.55412 0.44588 Surg-Med
1 62 62 0 7.2 46 47.66286 -1.662857 Anxiety
1 68 38 0 7.8 56 55.81267 0.187331
1 70 41 1 7.0 59 51.18948 7.810525 Confidence interval on th
1 79 66 1 6.2 26 25.43453 0.565473
1 63 31 1 4.1 52 61.08341 -9.083407 𝜇 ̂_(𝑌|𝑥_0 )−𝑡
1 39 42 0 3.5 83 80.24865 2.75135 +𝑡_(𝛼∕2,𝑛−𝑝
1 49 40 1 2.1 75 68.83528 6.164715
x0
From problem 12-9 in your textbook
XtXinv
0.703141 -0.006493 -0.007714 -0.01176141 0.007063
-0.006493 0.000368 -0.000122 -0.00152775 -0.00147
-0.007714 -0.000122 0.000354 -0.00054222 -0.000515
-0.011761 -0.001528 -0.000542 0.174152991 0.004274 Prediction interval on a fu
0.007063 -0.00147 -0.000515 0.004273921 0.022622
𝑦 ̂_0±𝑡_(𝛼∕2,𝑛
_𝟎′(𝑿^′ 𝑿)^(−
x0
𝑌=𝛽_0+𝛽_1 𝑥_1+𝛽_2 𝑥_2+𝛽_3 𝑥_3+𝛽_4
𝑥_4+𝜖
0.05
25
4
5
2.085963
Confidence interval on slope and intercept
𝛽 ̂_𝑗−𝑡_(𝛼∕2,𝑛−𝑝)∙𝑠𝑒(𝛽 ̂_𝑗 )≤𝛽_𝑗≤𝛽 ̂_𝑗+𝑡_(𝛼∕2,𝑛−𝑝)
∙𝑠𝑒(𝛽 ̂_𝑗 )
coeff. se lower 95% upper 95%
beta0 143.8672 6.043698 131.2603 156.4741
beta1 -1.117177 0.138342 -1.405753 -0.828601
beta2 -0.586211 0.135556 -0.868977 -0.303445
beta3 0.414875 3.007787 -5.859259 6.689009
beta4 1.306351 1.084055 -0.954947 3.567649
Confidence interval on the mean response
𝜇 ̂_(𝑌|𝑥_0 )−𝑡_(𝛼∕2,𝑛−𝑝) √(𝜎 ̂^2 𝒙_𝟎′(𝑿^′ 𝑿)^(−1) 𝒙_𝟎 )≤𝜇_(𝑌|𝑥_0 )≤𝜇 ̂_(𝑌|𝑥_
+𝑡_(𝛼∕2,𝑛−𝑝) √(𝜎 ̂^2 𝒙_𝟎′(𝑿^′ 𝑿)^(−1) 𝒙_𝟎 )
x0 1 (intercept) se 7.21 𝜇 ̂_(𝑌|
x1 45 years old muY|x0_hat 75.7 𝑥_0 )=𝒙_𝟎′𝜷 ̂
x2 35 severity lower 95% 69.8
x3 0 surg-med upper 95% 81.6
x4 2 anxiety
Prediction interval on a future observation
𝑦 ̂_0±𝑡_(𝛼∕2,𝑛−𝑝) √(𝜎 ̂^2 ( 〖𝟏 +𝒙 〗
_𝟎′(𝑿^′ 𝑿)^(−1) 𝒙_𝟎 ) )
x0 1 (intercept)
x1 45 years old y0_hat 75.7 𝑦 ̂_0=𝒙_𝟎′𝜷
x2 35 severity ̂
x3 0 surg-med lower 95% 59.53
x4 2 anxiety upper 95% 91.85
_(𝑌|𝑥_0 )≤𝜇 ̂_(𝑌|𝑥_0 )