Está en la página 1de 6

Fila A.

Pregunta 4
Ventas Y x1 x2 x1*y x2*y x1^2 x2^2 y^2
3 36 9 108 27 1296 81 9
1.3 13 5 16.9 6.5 169 25 1.69
0.5 3 2 1.5 1 9 4 0.25
7.4 81 14 599.4 103.6 6561 196 54.76
5.9 78 13 460.2 76.7 6084 169 34.81
8.4 103 16 865.2 134.4 10609 256 70.56
5 64 12 320 60 4096 144 25

Sumas 31.5 378 71 2371.2 409.2 28824 875


Sumas^2 992.25 142884 5041 5622589.44 167444.64 830822976 765625
n 7
y promedio 4.5
Matriz de correlacion
variables
variables 1 2 3
1 1 0.9915 0.9780
2 1 0.9857
3 1

R^2
yest y-ypro y-yes (y-ypro)^2 (y-yes)^2 yest-yprom (yest-yprom)^2
3.0858 -1.5 -0.0858 2.25 0.0074 -1.4142 2.0001
1.2388 -3.2 0.0612 10.24 0.0037 -3.2612 10.6355
0.4160 -4 0.0840 16 0.0071 -4.0840 16.6793
6.6550 2.9 0.7450 8.41 0.5550 2.1550 4.6441
6.4066 1.4 -0.5066 1.96 0.2566 1.9066 3.6351
8.3930 3.9 0.0070 15.21 0.0000 3.8930 15.1554
5.3049 0.5 -0.3049 0.25 0.0930 0.8049 0.6478

31.5000 0.0000 0.0000 54.3200 0.9228 0.0000 53.3972 Suma


Obtencion de la ecuación
x1*x2 Matriz X Matriz Y
324 1 36 9 3
65 1 13 5 1.3
6 1 3 2 0.5
1134 1 81 14 7.4
1014 1 78 13 5.9
1648 1 103 16 8.4
768 1 64 12 5

196.07 4959 Matriz Xt


38443.4449 24591681 1 1 1 1 1
36 13 3 81 78
9 5 2 14 13

Matriz Xt.X Matriz inversa deXt.X


7 378 71 2.4276
378 28824 4959 0.0823
71 4959 875 -0.6635

Matriz Xt.Y Matriz b


31.5 0.1519
2371.2 0.0776
409.2 0.0157
Estimacion de ecuacion de regresion lineal multiple
Yest=0.1519+0.0776x1+0.0157x2

Coeficiente de determinación
R^2 0.9830
1 1
103 64
16 12

z inversa deXt.X
0.0823 -0.6635
0.0042 -0.0304
-0.0304 0.2271

esion lineal multiple


Fila B. Pregunta 2 (Especificamente se usa en el apartado b)
ventas Y Experiencia X1 C.TV X2 x1*y x2*y x1^2 x2^2
9 3 3 27 27 9 9
5 1 2 5 10 1 4
7 2 4 14 28 4 16
14 5 5 70 70 25 25
10 4 5 40 50 16 25

Suma 45 15 19 156 185 55 79


Suma^2 2025 225 361 24336 34225 3025 6241
n 5
Yp 9
Matriz de correlacion
variables
1 2 3
1 0.9791 0.7916
1 0.8489
1

Cliente ventas Y Ye Y - Ye (Y - Ye)^2 Y - Yp (Y - Yp)^2 Y - Yp


Pedro 9 9.29473684 -0.2947 0.08687 0 0 9.29474
Jose 5 4.94736842 0.0526 0.00277 -4 16 4.94737
Juan 7 6.56842105 0.4316 0.18626 -2 4 6.56842
Manuel 14 13.2736842 0.7263 0.52753 5 25 13.27368
Luis 10 10.9157895 -0.9158 0.83867 1 1 10.91579

Suma 45.0000 45.0000 0.0000 1.6421 0.0000 46.0000 45.0000


en el apartado b) Obtencion de la ecuación
y^2 x1*x2 Matriz X Matriz Y
81 9 1 3 3 9
25 2 1 1 2 5
49 8 1 2 4 7
196 25 1 5 5 14
100 20 1 4 5 10

matriz Xt
451 64 1 1 1 1 1
203401 4096 3 1 2 5 4
3 2 4 5 5

matriz Xt*X inversa de Xt*X


5 15 19 2.62105263
15 55 64 0.32631579
19 64 79 -0.89473684

matriz xty b= (InversaXtX)*XtY


45
(Y - Yp)^2 156
86.39213 185
24.47645
43.14416 Estimacion de ecuacion de regresion lineal multiple
176.19069 Yest=3.326+2.3579x1-0.684x2
119.15446
Coeficiente de determinacion
449.3579 R^2 0.9643
Xt(matriz transpuesta de X)

inversa de Xt*X
0.32631579 -0.89473684
0.35789474 -0.36842105
-0.36842105 0.52631579

Matriz b
3.32631579
2.35789474
-0.36842105

esion lineal multiple

También podría gustarte