Dear All,
I have the following symmetric matrix:
I want its inverse. So I use:
THe following is the result:
It looks to me that something is strange. Nonetheless, if my matrix algebra is correct, if I multiply the original matrix by its inverse, I should get the identity matrix. This is what I got:
I cannot understand what is going on. I assume that there is something wrong with my commands. I would be grateful for any help you may provide.
Best,
Dario
I have the following symmetric matrix:
Code:
symmetric V_diff[11,11]
pc_culture urb_rate1850 school countryname1 countryname2 countryname3 countryname4 countryname5
pc_culture .06447299
urb_rate1850 -.05278748 .01628029
school -.01874854 .01102653 .00363522
countryname1 4.5903346 -3.0965529 -1.1290617 301.73363
countryname2 2.1064027 -.7624796 -.36318082 117.9168 26.429972
countryname3 -.85005066 1.2145158 .40800901 -80.140974 -52.851368 -4.1350514
countryname4 2.3099423 -1.3619878 -.51357007 144.96865 50.376108 -45.701961 67.589369
countryname5 -.07604234 .67402019 .2123714 -28.60747 -32.117323 -17.134995 -20.746305 -21.352163
countryname6 3.1871472 -1.809098 -.69833247 198.38592 67.085994 -64.338675 91.943415 -30.135964
countryname7 1.8894841 -1.0291854 -.39089213 115.11489 36.858158 -40.093335 52.603569 -20.17471
countryname8 4.1191875 -2.9437497 -1.0622745 276.82325 113.61946 -67.176435 134.80566 -20.069622
countryname6 countryname7 countryname8
countryname6 124.86398
countryname7 71.298498 40.350407
countryname8 184.94091 107.99118 252.38147
Code:
mat B = syminv(V_diff)
Code:
symmetric B[11,11]
pc_culture urb_rate1850 school countryname1 countryname2 countryname3 countryname4 countryname5
pc_culture 0
urb_rate1850 0 0
school 0 0 0
countryname1 0 0 0 .00331418
countryname2 0 0 0 0 0
countryname3 0 0 0 0 0 0
countryname4 0 0 0 0 0 0 0
countryname5 0 0 0 0 0 0 0 0
countryname6 0 0 0 0 0 0 0 0
countryname7 0 0 0 0 0 0 0 0
countryname8 0 0 0 0 0 0 0 0
countryname6 countryname7 countryname8
countryname6 0
countryname7 0 0
countryname8 0 0 0
Code:
. mat C = V_diff*B
. mat list C
C[11,11]
pc_culture urb_rate1850 school countryname1 countryname2 countryname3 countryname4 countryname5
pc_culture 0 0 0 .0152132 0 0 0 0
urb_rate1850 0 0 0 -.01026254 0 0 0 0
school 0 0 0 -.00374192 0 0 0 0
countryname1 0 0 0 1 0 0 0 0
countryname2 0 0 0 .39079768 0 0 0 0
countryname3 0 0 0 -.26560173 0 0 0 0
countryname4 0 0 0 .48045242 0 0 0 0
countryname5 0 0 0 -.09481035 0 0 0 0
countryname6 0 0 0 .65748695 0 0 0 0
countryname7 0 0 0 .38151162 0 0 0 0
countryname8 0 0 0 .91744247 0 0 0 0
countryname6 countryname7 countryname8
pc_culture 0 0 0
urb_rate1850 0 0 0
school 0 0 0
countryname1 0 0 0
countryname2 0 0 0
countryname3 0 0 0
countryname4 0 0 0
countryname5 0 0 0
countryname6 0 0 0
countryname7 0 0 0
countryname8 0 0 0
Best,
Dario

Comment