Sie sind auf Seite 1von 4

PROBLEMA 9.

4
Para los datos de la prueba de energía solar en la tabla B.2 del apéndice:
a) Usar la selección en avance para especificar un modelo de regresión de
subconjunto.
b) Aplicar la eliminación en reversa para especificar un modelo de regresión de
subconjunto.
c) Usar regresión por pasos para especificar un modelo de regresión de
subconjunto.
d) Aplicar el método de todas las regresiones posibles a los datos. Evaluar Cp y
MSE para cada modelo. ¿Cuál modelo de subconjunto recomienda el lector?
e) Comparar y describir las diferencias de los modelos producidos por las
estrategias de selección de variables en las partes a) a d).

i x1 x2 x3 X4 x5 Y
1 783.35 33.53 40.55 16.66 13.2 271.8
2 748.45 36.5 36.19 16.46 14.11 264
3 648.45 34.66 37.31 17.66 15.68 238.8
4 827.8 33.13 35.52 17.5 10.53 230.7
5 860.45 35.75 33.71 16.4 11 251.6
6 875.15 34.46 34.14 16.28 11.31 257.9
7 909.45 34.6 34.85 16.06 11.96 263.9
8 905.55 35.38 35.89 15.93 12.58 266.5
9 756 35.85 33.53 16.6 10.66 229.1
10 769.35 35.68 33.79 16.41 10.85 239.3
11 793.5 35.35 34.72 16.17 11.41 258
12 801.65 35.04 35.22 15.92 11.91 257.6
13 819.65 34.07 36.5 16.04 12.85 267.3
14 808.55 32.2 37.6 16.19 13.58 267
15 774.95 34.32 37.89 16.62 14.21 259.6
16 711.85 31.08 37.71 17.37 15.56 240.4
17 694.85 35.73 37 18.12 15.83 227.2
18 638.1 34.11 36.76 18.53 16.41 196
19 774.55 34.79 34.62 15.54 13.1 278.7
20 757.9 35.77 35.4 15.7 13.63 272.3
21 753.35 36.44 35.96 16.45 14.51 267.4
22 704.7 37.82 36.26 17.62 15.38 254.5
23 666.8 35.07 36.34 18.12 16.1 224.7
24 568.55 35.26 35.9 19.05 16.73 181.5
25 653.1 35.56 31.84 16.51 10.58 227.5
26 704.05 35.73 33.16 16.02 11.28 253.6
27 709.6 36.46 33.83 15.89 11.91 263
28 726.9 36.26 34.89 15.83 12.65 265.8
29 697.15 37.2 36.27 16.71 14.06 263.8
k p VARIABLES R^2 SSRm SSE(p) MSRm Cp F(Rm) p_valor B0 B1 B2 B3 B4 B5
0 1 - 0 0 9619.19439 343.542657 170.691466 0 1 - - - - - -
1 2 x1 0.3898 5723.173 8958.756 331.806 159.118 17.249 0.00029481 117.005 0.176
1 2 x2 0.0105 153.807 14528.121 538.079 273.579 0.286 0.5972713 191.588 1.654
1 2 x3 0.0046 67.194 14614.735 541.286 275.359 0.124 0.72732565 218.282 0.880
1 2 x4 0.7205 10578.685 4103.244 151.972 59.329 69.609 5.935E-09 607.103 -21.402
1 2 x5 0.1233 1810.081 12871.848 476.735 239.539 3.797 0.0618125 304.260 -4.130
2 3 x1,x2 0.4421 6491.104 8190.824 315.032 145.336 10.302 0.00050708 -24.929 0.189 3.768
2 3 x1,x3 0.4023 5907.108 8774.821 337.493 157.338 8.751 0.00124142 63.317 0.178 1.460
2 3 x1,x4 0.7317 10742.123 3939.806 151.531 57.970 35.445 3.741E-08 540.921 0.039 -19.186
2 3 x1,x5 0.3904 5731.783 8950.145 344.236 160.941 8.325 0.0016055 108.529 0.181 0.354
2 3 x2,x3 0.0258 1810.081 14303.348 550.129 270.959 0.344 0.71204872 94.604 2.607 1.783
2 3 x2,x4 0.7205 10578.800 4103.128 157.813 61.327 33.517 6.3433E-08 605.362 0.046 -21.394
2 3 x2,x5 0.1296 1903.309 12778.619 491.485 239.623 1.936 0.16447918 258.162 1.290 -4.069
2 3 x3,x4 0.8772 12878.300 1803.629 69.370 14.068 92.823 1.4512E-12 474.299 5.509 -25.204
2 3 x3,x5 0.2741 4023.940 10657.989 409.923 196.041 4.908 0.01554526 119.236 6.638 -8.024
2 3 x4,x5 0.8202 12042.212 2639.717 101.528 31.251 59.305 2.0515E-10 664.629 -28.882 5.095
3 4 x1,x2,x3 0.5007 7351.750 7330.178 293.207 129.648 8.358 0.00051028 -231.804 0.201 5.801 3.543
3 4 x1,x2,x4 0.7335 10769.245 3912.683 156.507 59.413 22.937 2.3615E-07 502.168 0.045 0.748 -18.708
3 4 x1,x2,x5 0.4483 6582.168 8099.760 323.990 145.464 6.772 0.00169489 -64.762 0.207 4.074 1.183
3 4 x1,x3,x4 0.8775 12883.729 1798.199 71.928 15.956 59.707 1.5422E-11 463.385 0.007 5.449 -24.748
3 4 x1,x3,x5 0.4109 6032.262 8649.666 345.987 156.766 5.812 0.0037125 61.525 0.151 2.851 -2.062
3 4 x1,x4,x5 0.8606 12635.301 2046.627 81.865 21.062 51.448 7.7052E-11 543.979 0.077 -25.863 6.032
3 4 x2,x3,x4 0.9116 13383.711 1298.217 51.929 5.681 85.911 2.6737E-13 318.755 3.325 6.699 -25.417
3 4 x2,x3,x5 0.3788 5561.601 9120.327 364.813 166.439 5.812 0.0037125 -190.277 6.097 9.928 -9.666
3 4 x2,x4,x5 0.8202 12042.431 2639.498 105.580 33.246 38.020 1.8125E-09 667.043 -0.063 -28.895 5.097
3 4 x3,x4,x5 0.8871 13024.897 1657.031 66.281 13.055 65.503 5.5779E-12 521.757 4.480 -27.438 2.006
4 5 x1,x2,x3,x4 0.9176 13472.365 1209.563 50.398 5.859 66.829 1.1742E-12 252.366 0.031 3.757 6.600 -23.518
4 5 x1,x2,x3,x5 0.5253 7711.968 6969.960 290.415 124.245 6.639 0.00095693 -264.264 0.156 6.378 6.157 -3.567
4 5 x1,x2,x4,x5 0.8661 12715.934 1965.994 81.916 21.405 38.808 3.7864E-10 476.967 0.088 1.294 -25.153 6.139
4 5 x1,x3,x4,x5 0.8941 13126.853 1555.075 64.795 12.960 50.648 2.3382E-11 490.482 0.037 3.652 -26.262 3.024
4 5 x2,x3,x4,x5 0.9127 13400.346 1281.583 53.399 7.339 62.737 2.339E-12 347.202 3.084 6.240 -26.212 0.727
5 6 x1,x2,x3,x4,x5 0.9238 13562.803 1119.125 48.658 6.000 55.748 4.2772E-12 292.206 0.047 3.352 5.340 -24.607 1.913
a) MÉTODO DE AVANCE
1° PASO
Analizamos el p_valor de las todas variables solo x1 y x4 tienen
contribución significativa, encontrando que la mayor es de x4, por lo que
será la primera que ingrese al modelo.
𝑌̂ = 607.103 − 21.402𝑋4
2° PASO
Seleccionamos aquella variable que tenga mayor contribución parcial
significativa del modelo, teniendo ya la variable x4.
𝑆𝑆𝑅 (𝑋𝑖⁄𝑋𝑗) = 𝑆𝑆𝑅(𝑋𝑖 𝑋𝑗) − 𝑆𝑆𝑅(𝑋𝑗)
𝑆𝑆𝑅 (𝑋𝑖⁄𝑋𝑗)
𝑋𝑖
𝐹 ( ⁄𝑋𝑗) =
𝑀𝑆𝐸(𝑋𝑖, 𝑋𝑗)
𝑝𝑣𝑎𝑙𝑜𝑟 = 𝑑𝑖𝑠𝑡𝑟. 𝑓. 𝑐𝑑(𝑥, 𝑔. 𝑙. 1, 𝑔. 𝑙. 2)

PARA X1: PARA X3:


SSR(X1/X4) 8932.041945 SSR(X3/X4) 2299.614928
F(X1/X4) 58.94531686 F(X3/X4) 33.14983048
p_valor 3.79189E-08 p_valor 4.61116E-06

PARA X2: PARA X4:


SSR(X2/X4) 0.115470264 SSR(X5/X4) 1463.527048
F(X2/X4) 0.000731692 F(X5/X4) 14.4150711
p_valor 0.978626562 p_valor 0.000792614

Por lo tanto, ingresa x1, ya que tiene mayor contribución estando x4 en


el modelo.
𝑌̂ = 540.921 + 0.039𝑋1 − 19.186𝑋4
3° PASO
Seleccionamos aquella variable que tenga mayor contribución parcial
significativa del modelo, teniendo ya las variables X1 y X4 dentro del
modelo.

PARA X2:
SSR(X2/X1 X4) 27.12270369
F(X2/X1 X4) 0.173299909
p_valor 0.680747881 PARA X5:
PARA X3: SSR(X5/X1 X4) 1893.17852
SSR(X3/X1 X4) 2141.606196 F(X5/X1 X4) 23.1255918
F(X3/X1 X4) 29.77431436 p_valor 6.1137E-05
p_valor 1.14917E-05

Entonces, seleccionaremos a x3, ya que tiene mejor contribución junto a


x1 y x4 en el siguiente modelo.
𝑌̂ = 463.385 + 0.007𝑋1 + 5.449𝑋3 − 24.748𝑋4
4° PASO
Será ver si existe otra variable significativa para que ingrese al modelo.

PARA X2: PARA X5:


SSR(X2/X1 X3 X4) 588.6365267 SSR(X5/X1 X3 X4) 243.124434
F(X2/X1 X3 X4) 11.67965443 F(X5/X1 X3 X4) 3.7522219
p_valor 0.002589108 p_valor 0.06630604

Entonces ingresa X2 ya que tiene contribución significante; por lo que el


modelo queda de la siguiente forma:
𝑌̂ = 252.366 + 0.031𝑋1 + 3.757𝑋2 + 6.600𝑋3 − 23.518𝑋4

Das könnte Ihnen auch gefallen