You are on page 1of 19

y : Games won (per 14 - game season)

x 1 : Rushing yards (season)


x 2 : Passing yards (season)
x 3 : Punting average (yards/punt)
x 4 : Field goal percentage (FGs made/FGs attempted 2season)
x 5 : Turnover differential (turnovers acquired – turnovers lost)
x 6 : Penalty yards (season)
x 7 : Percent rushing (rushing plays/total plays)
x 8 : Opponents ’ rushing yards (season)
x 9 : Opponents ’ passing yards (season)

xo= 1800
yo^= 9.1430703856
β0 = 21.7882508824
β^1= -0.0070251003
CI(90%)
tα/2,n-2= 1.70561792
MSres= 5.72584508
1/n= 0.03571429
x-= 2110.14286
Sxx= 3608611.43
(xo-x-)^2/Sxx= 0.02665529
sqrt(MSres(1+1/n+((xo-x-)^2/Sxx)))= 2.46636648
LS 4.93639152
LI 13.3497493
TABLE B.1 National Football League 1976 Team Performance
Team y y^2 x1
Washington 10 100 2113
Minnesota 11 121 2003
New England 11 121 2957
Oakland 13 169 2285
Pittsburgh 10 100 2971
Baltimore 11 121 2309
Los Angeles 10 100 2528
Dallas 11 121 2147
Atlanta 4 16 1689
Buffalo 2 4 2566
Chicago 7 49 2363
Cincinnati 10 100 2109
Cleveland 9 81 2295
Denver 9 81 1932
Detroit 6 36 2213
Green Bay 5 25 1722
Houston 5 25 1498
Kansas City 5 25 1873
Miami 6 36 2118
New Orleans 4 16 1775
New York Giants 3 9 1904
New York Jets 3 9 1929
Philadelphia 4 16 2080
St. Louis 10 100 2301
San Diego 6 36 2040
San Francisco 8 64 2447
Seattle 2 4 1416
Tampa Bay 0 0 1503
x2 x3 x4 x5 x6 x7 x8 x9
1985 38.9 64.7 4 868 59.7 2205 1917
2855 38.8 61.3 3 615 55 2096 1575
1737 40.1 60 14 914 65.6 1847 2175
2905 41.6 45.3 -4 957 61.4 1903 2476
1666 39.2 53.8 15 836 66.1 1457 1866
2927 39.7 74.1 8 786 61 1848 2339
2341 38.1 65.4 12 754 66.1 1564 2092
2737 37 78.3 -1 761 58 1821 1909
1414 42.1 47.6 -3 714 57 2577 2001
1838 42.3 54.2 -1 797 58.9 2476 2254
1480 37.3 48 19 984 67.5 1984 2217
2191 39.5 51.9 6 700 57.2 1917 1758
2229 37.4 53.6 -5 1037 58.8 1761 2032
2204 35.1 71.4 3 986 58.6 1709 2025
2140 38.8 58.3 6 819 59.2 1901 1686
1730 36.6 52.6 -19 791 54.4 2288 1835
2072 35.3 59.3 -5 776 49.6 2072 1914
2929 41.1 55.3 10 789 54.3 2861 2496
2268 38.2 69.6 6 582 58.7 2411 2670
1983 39.3 78.3 7 901 51.7 2289 2202
1792 39.7 38.1 -9 734 61.9 2203 1988
1606 39.7 68.8 -21 627 52.7 2592 2324
1492 35.5 68.8 -8 722 57.8 2053 2550
2835 35.3 74.1 2 683 59.7 1979 2110
2416 38.7 50 0 576 54.9 2048 2628
1638 39.9 57.1 -8 848 65.3 1786 1776
2649 37.4 56.3 -22 684 43.8 2876 2524
1503 39.3 47 -9 875 53.5 2560 2241
1. y= β0 + β1x + ε
(x8-x-)^2 x8^2 y(x8-x-) yx8 y^ e^2 β0 = 21.7882509
8997.87755 4862025 948.571429 22050 6.29790477 13.7055091 β^1= -0.0070251
200.020408 4393216 -155.57143 23056 7.0636407 15.4949245
69244.1633 3411409 -2894.5714 20317 8.81289067 4.78344721
42908.1633 3621409 -2692.8571 24739 8.41948506 20.9811171
426595.592 2122849 -6531.4286 14570 11.5526798 2.4108145
68718.8776 3415104 -2883.5714 20328 8.80586557 4.81422589
298272.02 2446096 -5461.4286 15640 10.8009941 0.64159147
83603.5918 3316041 -3180.5714 20031 8.99554328 4.01784674
217955.592 6640929 1867.42857 10308 3.68456747 0.09949768
133851.449 6130576 731.714286 4952 4.3941026 5.73172725
15912.0204 3936256 -883 13888 7.85045193 0.72326849
37304.1633 3674889 -1931.4286 19170 8.32113365 2.81859221
121900.735 3101121 -3142.2857 15849 9.4170493 0.17393012
160915.592 2920681 -3610.2857 15381 9.78235451 0.61207858 2. ANOVA & signficance
43740.7347 3613801 -1254.8571 11406 8.43353526 5.92209385
31633.1633 5234944 889.285714 11440 5.71482145 0.51096971
1454.87755 4293184 -190.71429 10360 7.23224311 4.9829093
563786.449 8185321 3754.28571 14305 1.68943899 10.9598142
90515.0204 5812921 1805.14286 14466 4.85073412 1.32081207
31989.8776 5239521 715.428571 9156 5.70779635 2.91656838
8622.44898 4853209 278.571429 6609 6.31195497 10.9690458
232186.306 6718464 1445.57143 7776 3.57919097 0.33546218
3265.30612 4214809 -228.57143 8212 7.36572002 11.3280712
17198.449 3916441 -1311.4286 19790 7.88557744 4.47078278
3861.73469 4194304 -372.85714 12288 7.40084552 1.96236816
105068.592 3189796 -2593.1429 14288 9.24142179 1.54112806
586537.163 8271376 1531.71429 5752 1.58406249 0.17300401
202371.449 6553600 0 0 3.80399418 14.4703717
3. CI(95%) for β1

4. R^2

5. CI(95%) of a mean response y for x=2000


Least square method
x-= 2110.1428571 n= 28
y-= 6.9642857143
Σxi^2 (Σxi)^2/n Σxi^2- (Σxi)^2/n
Σ(xi-x-)^2= 3608611.4286 128284292 124675681 3608611.42857 Sxx

Σyixi (Σyi)(Σxi)/n
Σyi(xi-x-)= -25350.857143 386127 411477.857 -25350.857143 Sxy

Σyi^2-ny-^2 β1^Sxy
SSres= 148.8719722 326.964286 178.092314 148.871972203
SStot= 326.96428571
SSregr= 178.09231351
MSres= 5.7258450847 σ^2
MSregr= 178.09231351
ANOVA table
S of Var SS DoF MS Fo
Regression 178.09231351 1 178.092314 31.1032364439
Residual 148.8719722 26 5.72584508
Total 326.96428571 27

Fα,1,n-2= 4.2252012731
β1 es diferente de 0

Si quisiera evaluar la significancia de la regresión con un t-test


se(β^1) 0.0012596496
t0= -5.5770275635
tα/2,n-2= 2.0555294386
β1 es diferente de 0

tα/2,n-2= 2.0555294386
β^1= -0.0070251003
LS -0.009614347
LI -0.0044358535

SSregr/SStot= 0.5446843013
54.40%

mean response y for x=2000


µ(y|x)^= 7.7380503304
tα/2,n-2= 2.0555294386
MSres= 5.7258450847
1/n= 0.0357142857
(xo-x-)^2= 12131.44898
Sxx= 3608611.4286
sqr(MSres(1/n+(xo-x-)^2/Sxx))= 0.4730154792
LI= 6.7657530879
LS= 8.7103475729
TABLE B.3 Gasoline Mileage Performance for 32
Automobile y
Apollo 18.9
Omega 17
Nova 20
Monarch 18.25
Duster 20.07
Jenson Conv. 11.2
Skyhawk 22.12
Monza 21.47
Scirocco 34.7
Corolla SR-5 30.4
Camaro 16.5
Datsun B210 36.5
Capri II 21.5
Pacer 19.7
Babcat 20.3
Granada 17.8
Eldorado 14.39
Imperial 14.89
Nova LN 17.8
Valiant 16.41
Starfire 23.54
Cordoba 21.47
TransAM 16.59
Corolla E-5 31.9
Astre 29.4
Mark IV 13.27
Celica GT 23.9
Charger SE 19.73
Cougar 13.9

Elite 13.27
Matador 13.77
Corvette 16.5
ne Mileage Performance for 32 Automobiles
y^2 x1 x2 x3 x4 x5 x6 x7
357.21 350 165 260 8:1 2.56:1 4 3
289 350 170 275 8.5:1 2.56:1 4 3
400 250 105 185 8.25:1 2.73:1 1 3
333.0625 351 143 255 8:1 3:1 2 3
402.8049 225 95 170 8.4:1 2.76:1 1 3
125.44 440 215 330 8.2:1 2.88:1 4 3
489.2944 231 110 175 8:1 2.56:1 2 3
460.9609 262 110 200 8.5:1 2.56:1 2 3
1204.09 89.7 70 81 8.2:1 3.9:1 2 4
924.16 96.9 75 83 9:1 4.3:1 2 5
272.25 350 155 250 8.5:1 3.08:1 4 3
1332.25 85.3 80 83 8.5:1 3.89:1 2 4
462.25 171 109 146 8.2:1 3.22:1 2 4
388.09 258 110 195 8:1 3.08:1 1 3
412.09 140 83 109 8.4:1 3.4:1 2 4
316.84 302 129 220 8:1 3:1 2 3
207.0721 500 190 360 8.5:1 2.73:1 4 3
221.7121 440 215 330 8.2:1 2.71:1 4 3
316.84 350 155 250 8.5:1 3.08:1 4 3
269.2881 318 145 255 8.5:1 2.45:1 2 3
554.1316 231 110 175 8:1 2.56:1 2 3
460.9609 360 180 290 8.4:1 2.45:1 2 3
275.2281 400 185 NA 7.6:1 3.08:1 4 3
1017.61 96.9 75 83 9:1 4.3:1 2 5
864.36 140 86 NA 8:1 2.92:1 2 4
176.0929 460 223 366 8:1 3:1 4 3
571.21 133.6 96 120 8.4:1 3.91:1 2 5
389.2729 318 140 255 8.5:1 2.71:1 2 3
193.21 351 148 243 8:1 3.25:1 2 3

176.0929 351 148 243 8:1 3.26:1 2 3


189.6129 360 195 295 8.25:1 3.15:1 4 3
272.25 350 165 255 8.5:1 2.73:1 4 3
x8 x9 x10 x11 (x1-x-)^2 y(x1-x-) y^ e^2
200.3 69.9 3910 A 4260.00973 1233.57938 17.1275403 3.14161333
199.6 72.9 2860 A 4260.00973 1109.56875 17.1275403 0.01626653
196.7 72.2 3510 A 1206.25973 -694.625 21.8703685 3.4982784
199.9 74 3890 A 4391.54723 1209.40469 17.080112 1.36863785
194.1 71.8 3365 M 3567.82223 -1198.8062 23.0560756 8.91664732
184.5 69 4215 A 24108.3847 1739.01 12.8589949 2.75226419
179.3 65.4 3020 A 2887.04723 -1188.5353 22.7715059 0.42445991
179.3 65.4 3180 A 516.709727 -488.03994 21.3012291 0.0284836
155.7 64 1905 M 38037.1885 -6767.5844 29.4731221 27.3202522
165.2 65 2320 M 35280.5785 -5710.07 29.1316385 1.60874089
195.4 74.4 3885 A 4260.00973 1076.93438 17.1275403 0.39380685
160.6 62.2 2009 M 39772.8235 -7279.2406 29.6818066 46.4877616
170.4 66.9 2655 M 12934.7972 -2445.2219 25.6172028 16.9513589
171.5 77 3375 A 714.559727 -526.60563 21.4909423 3.20747419
168.8 69.4 2700 M 20947.1347 -2938.0444 27.0874795 46.0698786
199.9 74 3890 A 298.209727 307.38375 19.4040979 2.57312993
224.1 79.8 5290 A 46340.6347 3097.71731 10.013298 19.1555203
231 79.7 5185 A 24108.3847 2311.95169 12.8589949 4.12498159
196.7 72.2 3910 A 4260.00973 1161.78375 17.1275403 0.45220203
197.6 71 3660 A 1106.80973 545.940188 18.6452453 4.99632174
179.3 65.4 3050 A 2887.04723 -1264.8336 22.7715059 0.59058321
214.2 76.3 4250 A 5665.38473 1616.02006 16.6532575 23.2010084
196 73 3850 A 13286.8847 1912.30856 14.7561262 3.36309306
165.2 61.8 2275 M 35280.5785 -5991.8169 29.1316385 7.66382538
176.4 65.4 2150 M 20947.1347 -4255.0988 27.0874795 5.34775085
228 79.8 5430 A 30719.1347 2325.81631 11.9104293 1.84843251
171.5 63.4 2535 M 22840.6547 -3612.0369 27.3910206 12.1872245
215.3 76.3 4370 A 1106.80973 656.392438 18.6452453 1.17669267
215.5 78.5 4540 A 4391.54723 921.135625 17.080112 10.1131126

216.1 78.5 4715 A 4391.54723 879.386313 17.080112 14.5169537


209.3 77.4 4215 A 5665.38473 1036.45069 16.6532575 8.31317379
185.2 69 3660 A 4260.00973 1076.93438 17.1275403 0.39380685
1. y= β0 + β1x + ε Least square method
β0 = 33.727439 x-= 284.73125 n= 32
β^1= -0.0474283 y-= 20.223125

Σ(xi-x-)^2= 424701.049 Sxx

Σyi(xi-x-)= -20142.841 Sxy

Σyi^2-ny-^2 β1^Sxy
SSres= 282.203737 1237.54409 955.34035 282.203737
SStot= 1237.54409
SSregr= 955.34035
MSres= 9.40679125
MSregr= 955.34035
2. ANOVA & signficance ANOVA table
S of Var SS DoF MS Fo
Regression 955.34035 1 955.34035 101.558579
Residual 282.203737 30 9.40679125
Total 1237.54409 31

Fα,1,n-2= 4.17087679
β1 es diferente de 0

Si quisiera evaluar la significancia de la regresión con un t-test


se(β^1) 0.00470629
t0= -10.077628
tα/2,n-2= 2.04227246
β1 es diferente de 0

3. R^2 SSregr/SStot= 0.7719647

77.20%

5. CI(95%) of a mean response y for x= 275


µ(y|x)^= 20.6846615
tα/2,n-2= 2.04227246
MSres= 9.40679125
1/n= 0.03125
(xo-x-)^2= 94.6972266
Sxx= 424701.049
sqr(MSres(1/n+(xo-x-)^2/Sxx0.54411368
LI= 19.5734331
LS= 21.7958898
This only considers the error of the model
6. PREDICTION
xo= 275
yo^= 20.6846614697
β0 = 33.7274390321
β^1= -0.047428282
CI(95%)
tα/2,n-2= 2.04227246
MSres= 9.40679125
1/n= 0.03125
x-= 284.73125
Sxx= 424701.049
(xo-x-)^2/Sxx= 0.00022297
sqrt(MSres(1+1/n+((xo-x-)^23.11493996
LS 14.3231054
LI 27.0462175
It's wider because it considers also
the error associated to future observations

Análisis de regresión: y vs. x10


Análisis de Varianza
Fuente GL SC Sec. Contribución SC Ajust. MC Ajust. Valor F
Regresión 1 871.62 70.43% 871.616 871.616 71.46
  x10 1 871.62 70.43% 871.616 871.616 71.46
Error 30 365.93 29.57% 365.928 12.198
  Falta de ajuste 26 361.92 29.24% 361.915 13.92 13.88
  Error puro 4 4.01 0.32% 4.013 1.003
Total 31 1237.54 100.00%
Resumen del modelo
R-cuad. R-cuad.
S R-cuad. (ajustado) PRESS (pred)
3.49251 70.43% 69.45% 433.448 64.98%
Coeficientes
Término Coef EE del coef. IC de 95% Valor T Valor p FIV
Constante 39.96 2.42 (35.03, 44.89) 16.55 0
x10 -0.005552 0.000657
(-0.006893, -0.004211) -8.45 0 1
Ecuación de regresión
y = 39.96 - 0.005552 x10
Ajustes y diagnósticos para observaciones poco comunes
EE de Resid
Obs y Ajuste ajuste IC de 95% Resid est.
2 17 24.084 0.768(22.516, 25.652) -7.084 -2.08
12 36.5 28.809 1.189(26.381, 31.236) 7.691 2.34
Obs DFITS
2 -0.498089 R
12 0.92193 R
Residuo grande R

Gráficas de residuos para y

Both models look acceptable to me, I would decide based on R^2, x1 is a better regressor.
Análisis de regresión: y vs. x1
Análisis de Varianza
Fuente GL SC Sec. Contribución
Regresión 1 955.3 77.20%
  x1 1 955.3 77.20%
Error 30 282.2 22.80%
  Falta de ajuste 18 177.8 14.37%
  Error puro 12 104.4 8.43%
Total 31 1237.5 100.00%
Resumen del modelo
R-cuad.
S R-cuad. (ajustado) PRESS
3.06705 77.20% 76.44% 337.77
Coeficientes
EE del
Término Coef coef. IC de 95%
Constante 33.73 1.45 (30.78, 36.68)
x1 -0.04743 0.00471 (-0.05704, -0.03782)
Ecuación de regresión
y = 33.73 - 0.04743 x1
Ajustes y diagnósticos para observaciones poco comunes
EE de
Obs y Ajuste ajuste
12 36.5 29.682 1.084
15 20.3 27.087 0.871
Obs DFITS
12 0.979704 R
15 -0.740709 R
Residuo grande R

Gráficas de residuos para y

Predicción para y
Ecuación de regresión
y = 33.73 - 0.04743 x1
Configuración
Valor de
Variable configuración
x1 275
Predicción
Ajuste EE de ajuste IC de 95% IP de 95%
20.6847 0.544114 (19.5734, 21.7959) (14.3231, 27.0462)
Valor p
0
0

0.01
Resid D de
elim. AA Cook
-2.21 0.048352 0.11
2.55 0.115818 0.36
SC Ajust. MC Ajust. Valor F Valor p
955.3 955.34 101.56 0
955.3 955.34 101.56 0
282.2 9.407
177.8 9.879 1.14 0.42
104.4 8.698

R-cuad.
(pred)
72.71%

Valor T Valor p FIV


23.33 0
-10.08 0 1

Resid Resid D de
IC de 95% Resid est. elim. AA Cook
(27.468, 31.895) 6.818 2.38 2.59 0.124899 0.4
(25.310, 28.865) -6.787 -2.31 -2.5 0.080572 0.23

You might also like