Como interpreto estos datos datos?
Publicado por Bloodaxe (1 intervención) el 03/02/2007 14:21:19
Hola vereis.. Para obteneter el page Rank de 10 paginas he tenido que meter la matriz modelizada segun los datos que me dan.
La matriz es la siguiente:
A=[0 1/2 0 1/10 1/10 1/10 0 0 0 0; 0 0 0 1/10 1/10 1/10 1/2 1/3 0 0; 1/2 1/2 0 1/10 1/10 1/10 1/2 1/3 0 0; 0 0 1/3 1/10 1/10 1/10 0 0 0 0; 0 0 1/3 1/10 1/10 1/10 0 0 1/2 0; 0 0 1/3 1/10 1/10 1/10 0 0 1/2 0; 1/2 0 0 1/10 1/10 1/10 0 1/3 0 0; 0 0 0 1/10 1/10 1/10 0 0 0 1/2; 0 0 0 1/10 1/10 1/10 0 0 0 1/2; 0 0 0 1/10 1/10 1/10 0 0 0 0]
con resultado :
A=
Columns 1 through 7
0 0.5000 0 0.1000 0.1000 0.1000 0
0 0 0 0.1000 0.1000 0.1000 0.5000
0.5000 0.5000 0 0.1000 0.1000 0.1000 0.5000
0 0 0.3333 0.1000 0.1000 0.1000 0
0 0 0.3333 0.1000 0.1000 0.1000 0
0 0 0.3333 0.1000 0.1000 0.1000 0
0.5000 0 0 0.1000 0.1000 0.1000 0
0 0 0 0.1000 0.1000 0.1000 0
0 0 0 0.1000 0.1000 0.1000 0
0 0 0 0.1000 0.1000 0.1000 0
Columns 8 through 10
0 0 0
0.3333 0 0
0.3333 0 0
0 0 0
0 0.5000 0
0 0.5000 0
0.3333 0 0
0 0 0.5000
0 0 0.5000
0 0 0
Y entonces ahora tengo que calcular los valores y vectores propios. (corregidme si lo he hecho mal)
>> eig(A)
ans =
1.0000
-0.2500 + 0.4330i
-0.2500 - 0.4330i
0.0534 + 0.2909i
0.0534 - 0.2909i
-0.0000
-0.1534 + 0.2678i
-0.1534 - 0.2678i
-0.0000
-0.0000
>> [v,e]=eig(A)
v =
Columns 1 through 4
-0.2547 0.5774 0.5774 0.0535 - 0.2009i
-0.2997 -0.2887 + 0.5000i -0.2887 - 0.5000i 0.2213 + 0.0498i
-0.5769 -0.0000 - 0.0000i -0.0000 + 0.0000i 0.0539 - 0.4532i
-0.2972 0.0000 + 0.0000i 0.0000 - 0.0000i -0.5882
-0.3759 -0.0000 + 0.0000i -0.0000 - 0.0000i 0.0474 - 0.1003i
-0.3759 -0.0000 + 0.0000i -0.0000 - 0.0000i 0.0474 - 0.1003i
-0.2847 -0.2887 - 0.5000i -0.2887 + 0.5000i 0.0092 - 0.0652i
-0.1573 -0.0000 - 0.0000i -0.0000 + 0.0000i 0.1262 + 0.3591i
-0.1573 -0.0000 - 0.0000i -0.0000 + 0.0000i 0.1262 + 0.3591i
-0.1049 0.0000 + 0.0000i 0.0000 - 0.0000i -0.0968 + 0.1518i
Columns 5 through 8
0.0535 + 0.2009i 0.0000 0.1729 - 0.0155i 0.1729 + 0.0155i
0.2213 - 0.0498i -0.0000 -0.2026 + 0.1434i -0.2026 - 0.1434i
0.0539 + 0.4532i 0.0000 0.0011 + 0.0822i 0.0011 - 0.0822i
-0.5882 -0.8165 -0.1153 - 0.2300i -0.1153 + 0.2300i
0.0474 + 0.1003i 0.4082 0.4523 0.4523
0.0474 + 0.1003i 0.4082 0.4523 - 0.0000i 0.4523 + 0.0000i
0.0092 + 0.0652i 0.0000 0.0257 - 0.2622i 0.0257 + 0.2622i
0.1262 - 0.3591i -0.0000 -0.2973 + 0.2335i -0.2973 - 0.2335i
0.1262 - 0.3591i -0.0000 -0.2973 + 0.2335i -0.2973 - 0.2335i
-0.0968 - 0.1518i 0.0000 -0.1917 - 0.1849i -0.1917 + 0.1849i
Columns 9 through 10
0.0000 0.0000
-0.0000 -0.0000
0.0000 0.0000
-0.8165 -0.8165
0.4082 0.4082
0.4082 0.4082
0.0000 0.0000
-0.0000 -0.0000
-0.0000 -0.0000
0.0000 0.0000
e =
Columns 1 through 4
1.0000 0 0 0
0 -0.2500 + 0.4330i 0 0
0 0 -0.2500 - 0.4330i 0
0 0 0 0.0534 + 0.2909i
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
Columns 5 through 8
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0.0534 - 0.2909i 0 0 0
0 -0.0000 0 0
0 0 -0.1534 + 0.2678i 0
0 0 0 -0.1534 - 0.2678i
0 0 0 0
0 0 0 0
Columns 9 through 10
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
-0.0000 0
0 -0.0000
>> trace(A)
ans =
0.3000
>> v*e*v'
ans =
Columns 1 through 7
-0.1064 0.4603 0.1571 -0.0136 0.0804 0.0804 -0.1203
-0.1177 -0.0903 0.0993 0.1290 0.0923 0.0923 0.4495
0.1575 0.2371 0.3530 0.0238 0.2113 0.2113 0.1732
0.1684 0.0273 0.3241 0.1049 0.2148 0.2148 0.1081
0.0680 0.1904 0.2324 0.0347 0.0798 0.0798 0.0394
0.0680 0.1904 0.2324 0.0347 0.0798 0.0798 0.0394
0.4297 -0.0862 0.1750 0.0248 0.1690 0.1690 -0.1064
0.0049 -0.0168 0.0106 0.2187 0.0233 0.0233 0.0954
0.0049 -0.0168 0.0106 0.2187 0.0233 0.0233 0.0954
0.0575 -0.0310 0.0698 0.0816 0.1102 0.1102 0.0477
Columns 8 through 10
0.0951 0.0951 0.0069
0.0634 0.0634 0.0833
0.1261 0.1261 0.0449
-0.1292 -0.1292 -0.0467
0.1710 0.1710 0.0177
0.1710 0.1710 0.0177
0.0317 0.0317 -0.0170
-0.0036 -0.0036 0.1016
-0.0036 -0.0036 0.1016
-0.0680 -0.0680 -0.0073
Y me dicen que : "el vector propio asociado al valor propio mayor es el que
te da el orden de las páginas."
Entonces como puedo interpretar todo lo que he sacado (si es que lo he sacado bien)?
perdonen las molestias, la verdad es que no entiendo mucho el matlab.. y atmpoco se me da muy bien el tema de de vectores propios y demas..
Muchas gracias
La matriz es la siguiente:
A=[0 1/2 0 1/10 1/10 1/10 0 0 0 0; 0 0 0 1/10 1/10 1/10 1/2 1/3 0 0; 1/2 1/2 0 1/10 1/10 1/10 1/2 1/3 0 0; 0 0 1/3 1/10 1/10 1/10 0 0 0 0; 0 0 1/3 1/10 1/10 1/10 0 0 1/2 0; 0 0 1/3 1/10 1/10 1/10 0 0 1/2 0; 1/2 0 0 1/10 1/10 1/10 0 1/3 0 0; 0 0 0 1/10 1/10 1/10 0 0 0 1/2; 0 0 0 1/10 1/10 1/10 0 0 0 1/2; 0 0 0 1/10 1/10 1/10 0 0 0 0]
con resultado :
A=
Columns 1 through 7
0 0.5000 0 0.1000 0.1000 0.1000 0
0 0 0 0.1000 0.1000 0.1000 0.5000
0.5000 0.5000 0 0.1000 0.1000 0.1000 0.5000
0 0 0.3333 0.1000 0.1000 0.1000 0
0 0 0.3333 0.1000 0.1000 0.1000 0
0 0 0.3333 0.1000 0.1000 0.1000 0
0.5000 0 0 0.1000 0.1000 0.1000 0
0 0 0 0.1000 0.1000 0.1000 0
0 0 0 0.1000 0.1000 0.1000 0
0 0 0 0.1000 0.1000 0.1000 0
Columns 8 through 10
0 0 0
0.3333 0 0
0.3333 0 0
0 0 0
0 0.5000 0
0 0.5000 0
0.3333 0 0
0 0 0.5000
0 0 0.5000
0 0 0
Y entonces ahora tengo que calcular los valores y vectores propios. (corregidme si lo he hecho mal)
>> eig(A)
ans =
1.0000
-0.2500 + 0.4330i
-0.2500 - 0.4330i
0.0534 + 0.2909i
0.0534 - 0.2909i
-0.0000
-0.1534 + 0.2678i
-0.1534 - 0.2678i
-0.0000
-0.0000
>> [v,e]=eig(A)
v =
Columns 1 through 4
-0.2547 0.5774 0.5774 0.0535 - 0.2009i
-0.2997 -0.2887 + 0.5000i -0.2887 - 0.5000i 0.2213 + 0.0498i
-0.5769 -0.0000 - 0.0000i -0.0000 + 0.0000i 0.0539 - 0.4532i
-0.2972 0.0000 + 0.0000i 0.0000 - 0.0000i -0.5882
-0.3759 -0.0000 + 0.0000i -0.0000 - 0.0000i 0.0474 - 0.1003i
-0.3759 -0.0000 + 0.0000i -0.0000 - 0.0000i 0.0474 - 0.1003i
-0.2847 -0.2887 - 0.5000i -0.2887 + 0.5000i 0.0092 - 0.0652i
-0.1573 -0.0000 - 0.0000i -0.0000 + 0.0000i 0.1262 + 0.3591i
-0.1573 -0.0000 - 0.0000i -0.0000 + 0.0000i 0.1262 + 0.3591i
-0.1049 0.0000 + 0.0000i 0.0000 - 0.0000i -0.0968 + 0.1518i
Columns 5 through 8
0.0535 + 0.2009i 0.0000 0.1729 - 0.0155i 0.1729 + 0.0155i
0.2213 - 0.0498i -0.0000 -0.2026 + 0.1434i -0.2026 - 0.1434i
0.0539 + 0.4532i 0.0000 0.0011 + 0.0822i 0.0011 - 0.0822i
-0.5882 -0.8165 -0.1153 - 0.2300i -0.1153 + 0.2300i
0.0474 + 0.1003i 0.4082 0.4523 0.4523
0.0474 + 0.1003i 0.4082 0.4523 - 0.0000i 0.4523 + 0.0000i
0.0092 + 0.0652i 0.0000 0.0257 - 0.2622i 0.0257 + 0.2622i
0.1262 - 0.3591i -0.0000 -0.2973 + 0.2335i -0.2973 - 0.2335i
0.1262 - 0.3591i -0.0000 -0.2973 + 0.2335i -0.2973 - 0.2335i
-0.0968 - 0.1518i 0.0000 -0.1917 - 0.1849i -0.1917 + 0.1849i
Columns 9 through 10
0.0000 0.0000
-0.0000 -0.0000
0.0000 0.0000
-0.8165 -0.8165
0.4082 0.4082
0.4082 0.4082
0.0000 0.0000
-0.0000 -0.0000
-0.0000 -0.0000
0.0000 0.0000
e =
Columns 1 through 4
1.0000 0 0 0
0 -0.2500 + 0.4330i 0 0
0 0 -0.2500 - 0.4330i 0
0 0 0 0.0534 + 0.2909i
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
Columns 5 through 8
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0.0534 - 0.2909i 0 0 0
0 -0.0000 0 0
0 0 -0.1534 + 0.2678i 0
0 0 0 -0.1534 - 0.2678i
0 0 0 0
0 0 0 0
Columns 9 through 10
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
-0.0000 0
0 -0.0000
>> trace(A)
ans =
0.3000
>> v*e*v'
ans =
Columns 1 through 7
-0.1064 0.4603 0.1571 -0.0136 0.0804 0.0804 -0.1203
-0.1177 -0.0903 0.0993 0.1290 0.0923 0.0923 0.4495
0.1575 0.2371 0.3530 0.0238 0.2113 0.2113 0.1732
0.1684 0.0273 0.3241 0.1049 0.2148 0.2148 0.1081
0.0680 0.1904 0.2324 0.0347 0.0798 0.0798 0.0394
0.0680 0.1904 0.2324 0.0347 0.0798 0.0798 0.0394
0.4297 -0.0862 0.1750 0.0248 0.1690 0.1690 -0.1064
0.0049 -0.0168 0.0106 0.2187 0.0233 0.0233 0.0954
0.0049 -0.0168 0.0106 0.2187 0.0233 0.0233 0.0954
0.0575 -0.0310 0.0698 0.0816 0.1102 0.1102 0.0477
Columns 8 through 10
0.0951 0.0951 0.0069
0.0634 0.0634 0.0833
0.1261 0.1261 0.0449
-0.1292 -0.1292 -0.0467
0.1710 0.1710 0.0177
0.1710 0.1710 0.0177
0.0317 0.0317 -0.0170
-0.0036 -0.0036 0.1016
-0.0036 -0.0036 0.1016
-0.0680 -0.0680 -0.0073
Y me dicen que : "el vector propio asociado al valor propio mayor es el que
te da el orden de las páginas."
Entonces como puedo interpretar todo lo que he sacado (si es que lo he sacado bien)?
perdonen las molestias, la verdad es que no entiendo mucho el matlab.. y atmpoco se me da muy bien el tema de de vectores propios y demas..
Muchas gracias
Valora esta pregunta


0