EJERCICIO 1 Carga Base de datos
options(scipen = 999999999)
load("C:/Base Datos/valuacion_1.RData")
EJERCICIO 2 Carga Base de datos
options(scipen = 999999999)
load("C:/Base Datos/valuacion_2.RData")
a)EJERCICIO 2-Intervalos de confianza 90%. 95%, 99%
#CONFIANZA 90%
confint(object = modelo.valuacion,parm = "area.construccion", level = .90)
## 5 % 95 %
## area.construccion 0.5667613 1.598436
#CONFIANZA 95%
confint(object = modelo.valuacion,parm = "area.construccion", level = .95)
## 2.5 % 97.5 %
## area.construccion 0.4599785 1.705219
#CONFIANZA 99%
confint(object = modelo.valuacion,parm = "area.construccion", level = .99)
## 0.5 % 99.5 %
## area.construccion 0.2376527 1.927545
#CONFIANZA 90%: Los resultados en un 90% de las ocasiones que se realize la estimacion el valor minimo del area esperado sera de 0.567 con un maximo de 1.598
#CONFIANZA 95%: Los resultados en un 95% de las ocasiones que se realize la estimacion el valor minimo del area esperado sera de 0.46 con un maximo de 1.7
#CONFIANZA 99%: Los resultados en un 99% de las ocasiones que se realize la estimacion el valor minimo del area esperado sera de 0.24 con un maximo de 1.93
b)EJERCICIO 2: P-Value
summary(modelo.valuacion)
##
## Call:
## lm(formula = especificacion, data = valuacion)
##
## Residuals:
## Min 1Q Median 3Q Max
## -103.792 -29.671 0.198 35.729 100.211
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 83.06212 68.78960 1.207 0.23952
## area.terreno 0.07220 0.01999 3.612 0.00146 **
## area.construccion 1.08260 0.30098 3.597 0.00152 **
## edad.construcion -1.25351 0.55150 -2.273 0.03269 *
## numero.habitaciones 10.69078 7.54184 1.418 0.16973
## numero.sanitarios 6.27936 18.47616 0.340 0.73704
## espacios.automovil 15.97085 16.75411 0.953 0.35038
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 52.84 on 23 degrees of freedom
## Multiple R-squared: 0.8472, Adjusted R-squared: 0.8074
## F-statistic: 21.26 on 6 and 23 DF, p-value: 0.00000002576
Como Nuestro P value es menor que 0.05 podemos decir que no se acepta nuestra Hipotesis Nula. Las variables que muestran relacion lineal parcial con valuacion son “area.Terreno”, “area.construccion” y “edad.construccion” siendo este significativa al 5%.
c)EJERCICIO 2: Hay significancia Global
library(stargazer)
stargazer(modelo.valuacion, title = "Regresion", type = "text", digits = 8)
##
## Regresion
## ===============================================
## Dependent variable:
## ---------------------------
## valuacion
## -----------------------------------------------
## area.terreno 0.07220178***
## (0.01998678)
##
## area.construccion 1.08259900***
## (0.30097800)
##
## edad.construcion -1.25350600**
## (0.55150420)
##
## numero.habitaciones 10.69078000
## (7.54183600)
##
## numero.sanitarios 6.27936400
## (18.47616000)
##
## espacios.automovil 15.97085000
## (16.75411000)
##
## Constant 83.06212000
## (68.78960000)
##
## -----------------------------------------------
## Observations 30
## R2 0.84723510
## Adjusted R2 0.80738330
## Residual Std. Error 52.83607000 (df = 23)
## F Statistic 21.25968000*** (df = 6; 23)
## ===============================================
## Note: *p<0.1; **p<0.05; ***p<0.01
El valor resultado en F(ANOVA) es igual a 21.26 (es diferente de 0, y es alto) eso quiere decir que es globalmente lineal en los parametros, tenemos evidencia que existe una relacion lineal entre la valuacion y todas sus variables exogenas
d)EJERCICIO 2: Matriz A P M (A, B, C)
matriz_X<-model.matrix(modelo.valuacion)
n_X<-nrow(matriz_X)
matriz_XX<-t(matriz_X)%*%matriz_X
#Matriz A
mat.A<-solve(matriz_XX)%*%t(matriz_X)
print(mat.A)
## 1 2 3
## (Intercept) -0.31688526026 -0.0823510117082 0.14685222786
## area.terreno -0.00001113381 0.0000006713081 -0.00005173287
## area.construccion -0.00039267365 -0.0005387645844 -0.00028182713
## edad.construcion 0.00255200842 0.0008253634975 0.00018794572
## numero.habitaciones -0.00044193452 0.0061845180880 -0.02821885683
## numero.sanitarios 0.12930447890 0.0584336711102 0.06197163729
## espacios.automovil 0.06310714695 0.0171506714979 0.06169500238
## 4 5 6
## (Intercept) -0.04134908815 0.14120210435 -0.284611808617
## area.terreno 0.00007936711 -0.00001398661 -0.000002651453
## area.construccion 0.00050684165 0.00026850789 0.000986242130
## edad.construcion -0.00240938932 -0.00079838238 0.003348902620
## numero.habitaciones 0.00974913038 0.00327484385 -0.012757203657
## numero.sanitarios 0.00197484030 -0.07169323655 0.048909236081
## espacios.automovil -0.05982715115 0.02197945179 -0.048236646625
## 7 8 9 10
## (Intercept) 0.129835549080 -0.06736739106 0.47751143253 0.0474604442
## area.terreno 0.000007399244 0.00008441596 0.00002648541 -0.0001550048
## area.construccion -0.000942656104 0.00082361881 -0.00096403604 0.0023850249
## edad.construcion -0.001233174451 -0.00360526797 -0.00176777590 -0.0020135471
## numero.habitaciones 0.013614749295 0.02252738642 -0.01265029878 -0.0060566585
## numero.sanitarios 0.036738357974 -0.02220657191 -0.05311261613 -0.0828647869
## espacios.automovil -0.044391573211 -0.08044144192 -0.01550985632 0.0119555324
## 11 12 13 14
## (Intercept) -0.06576061581 -0.0271032106 0.142413265782 0.35671130001
## area.terreno -0.00004754902 0.0001100217 -0.000008424983 -0.00006286041
## area.construccion 0.00111609235 -0.0011726518 0.001203642473 -0.00016029328
## edad.construcion -0.00049874358 0.0001364052 -0.001079753131 -0.00276220294
## numero.habitaciones 0.00539945826 0.0143292821 -0.028011605143 -0.02876516995
## numero.sanitarios -0.00313162373 0.0208195363 0.001663929083 0.06763513816
## espacios.automovil -0.08053148939 0.0249876238 -0.099950272288 -0.04004752877
## 15 16 17 18
## (Intercept) 0.34271023200 0.23087486365 0.10276158181 -0.2053307726
## area.terreno -0.00003002834 -0.00001039274 0.00008439331 0.0002000835
## area.construccion -0.00047531495 -0.00090721337 -0.00077128253 -0.0006844836
## edad.construcion 0.00054292171 -0.00209501341 -0.00022953920 0.0020285309
## numero.habitaciones -0.01737342502 0.03549440715 -0.00553829376 -0.0122968288
## numero.sanitarios -0.08103202543 -0.07579728572 0.01313430738 0.0495625543
## espacios.automovil 0.07700924128 -0.00842509184 0.01410830194 0.0608571309
## 19 20 21
## (Intercept) -0.03905947346 -0.48345449297 0.07094246845
## area.terreno 0.00001081555 -0.00002996255 -0.00004188686
## area.construccion -0.00064670962 -0.00028738666 0.00207253780
## edad.construcion 0.00050040891 0.00168666049 0.00158797225
## numero.habitaciones -0.01254238525 0.06811680269 -0.03280309526
## numero.sanitarios 0.15161524469 0.03244229018 -0.12465441819
## espacios.automovil -0.07750895470 -0.01885599834 0.02161826999
## 22 23 24
## (Intercept) -0.367330439464 -0.00915054007 -0.14196807796
## area.terreno -0.000034705268 0.00006921094 -0.00005136386
## area.construccion -0.000001219153 -0.00158075101 -0.00150553343
## edad.construcion 0.003992379226 0.00073626972 -0.00026301372
## numero.habitaciones 0.015445256094 0.02129758276 0.07176669289
## numero.sanitarios 0.067831729282 -0.00761685820 -0.04237986277
## espacios.automovil -0.006349644589 0.12130247730 0.13845175005
## 25 26 27 28
## (Intercept) -0.02625109892 -0.1265707616 0.145366985418 0.57532570137
## area.terreno -0.00008625795 0.0001013033 -0.000001187989 -0.00004293323
## area.construccion 0.00220601307 0.0009681140 -0.000222044067 -0.00029201439
## edad.construcion 0.00100306677 0.0018333561 -0.000422259293 -0.00272568746
## numero.habitaciones -0.03951608294 -0.0086756530 -0.011376675050 -0.01839900002
## numero.sanitarios -0.03228618733 -0.0579047143 0.036603251553 -0.08011051854
## espacios.automovil 0.03064653888 -0.0443715499 -0.055512484463 -0.02933249395
## 29 30
## (Intercept) 0.21438917047 0.16018671628
## area.terreno -0.00003770941 -0.00005439512
## area.construccion -0.00084473733 0.00013495758
## edad.construcion -0.00175040231 0.00269196059
## numero.habitaciones 0.01534699491 -0.02712393848
## numero.sanitarios -0.01379319165 -0.03005630517
## espacios.automovil 0.02743140380 0.01699163446
#Matriz B
mat.B<-matriz_X%*%mat.A
print(mat.B)
## 1 2 3 4 5
## 1 0.2765382391 0.11581931938 0.186071715 -0.007631962 -0.031501642
## 2 0.1158193194 0.06966059350 0.078791627 0.010974468 0.002191966
## 3 0.1860717146 0.07879162684 0.232111127 -0.026239157 0.005788239
## 4 -0.0076319616 0.01097446850 -0.026239157 0.213853491 0.037221300
## 5 -0.0315016419 0.00219196579 0.005788239 0.037221300 0.078350908
## 6 0.0766826820 0.04650402335 -0.012833869 -0.009267118 -0.010370592
## 7 0.0007036393 0.04619085187 0.006913862 0.040740178 0.007930060
## 8 -0.0483385700 -0.00602205047 -0.072480937 0.276548943 0.054057854
## 9 -0.1039031604 0.00007440184 0.004444010 0.003141979 0.056896349
## 10 0.0446649355 -0.00002741387 0.091185574 0.078315408 0.092668446
## 11 -0.0132970550 0.01742519659 -0.040101746 0.072114252 0.026549630
## 12 0.0378955739 0.04322198158 0.007666491 0.077279926 0.026721316
## 13 -0.0315005262 0.00516179620 0.002385690 0.090087641 0.018861314
## 14 0.0900336736 0.05884137561 0.183255795 0.048376975 -0.005553317
## 15 -0.0195369751 0.01082087762 0.071161441 -0.087608908 0.080384424
## 16 -0.1151637991 0.00167319939 -0.078226220 0.031666205 0.078016101
## 17 0.0306572652 0.03493907955 0.043160906 0.064673560 0.027979555
## 18 0.1274045440 0.05080354063 0.062572774 0.118544560 0.013645539
## 19 0.1347706182 0.09310863930 0.095152845 0.028665684 -0.065454060
## 20 0.0535731898 0.06320335602 -0.109454746 0.025940806 0.015329251
## 21 -0.0462654746 -0.03093969460 -0.006228719 -0.009804232 0.098977344
## 22 0.1166096599 0.07662141056 -0.006657043 -0.073700528 -0.016197411
## 23 0.0945724206 0.05593848187 0.079661046 0.008264113 0.055187720
## 24 0.0867248634 0.06229548467 0.035169560 -0.014476104 0.084583474
## 25 0.1131004295 0.01971583770 0.137648803 0.019543781 0.055018867
## 26 -0.0800298929 -0.01840226598 -0.125966159 0.080271440 0.053964732
## 27 0.0117889547 0.03907566040 0.031475764 0.024691349 0.002349287
## 28 -0.1242225716 -0.01285616697 0.020729694 -0.004037622 0.071967411
## 29 0.0207144975 0.03963764848 0.066283115 0.015843196 0.048887364
## 30 0.0030654080 0.02555677463 0.036558517 -0.133993626 0.035548570
## 6 7 8 9 10
## 1 0.076682682 0.0007036393 -0.048338570 -0.10390316040 0.04466493552
## 2 0.046504023 0.0461908519 -0.006022050 0.00007440184 -0.00002741387
## 3 -0.012833869 0.0069138621 -0.072480937 0.00444400990 0.09118557444
## 4 -0.009267118 0.0407401775 0.276548943 0.00314197885 0.07831540777
## 5 -0.010370592 0.0079300597 0.054057854 0.05689634946 0.09266844624
## 6 0.207552497 0.0140119896 -0.033281903 -0.03537582261 -0.01864369586
## 7 0.014011990 0.1193411341 0.044271307 0.08891732591 -0.05320999444
## 8 -0.033281903 0.0442713072 0.374365494 -0.01113164434 0.13179388415
## 9 -0.035375823 0.0889173259 -0.011131644 0.20283216259 -0.08685658219
## 10 -0.018643696 -0.0532099944 0.131793884 -0.08685658219 0.41350380960
## 11 0.094417852 0.0556278385 0.104610608 -0.00619915589 0.10806194855
## 12 0.001228344 0.0457727102 0.077295867 0.06188201952 -0.09935795082
## 13 0.080424823 0.0519083531 0.104317730 0.05299336840 0.06001066959
## 14 -0.041811221 0.0907067217 0.035413761 0.06517133296 0.09339540387
## 15 -0.013263221 -0.0001570678 -0.128439248 0.13144269974 0.00611077526
## 16 -0.042314201 0.0987991264 0.064561683 0.12927361283 0.00171617208
## 17 -0.001410294 0.0383114713 0.055214187 0.08016476147 -0.06897813169
## 18 0.038812887 -0.0396442033 0.098832964 0.00461465951 -0.12601505581
## 19 0.104926460 0.1222109067 -0.004659970 0.02505691688 -0.09456544559
## 20 0.123133505 0.0790249235 0.062987951 -0.07666332468 0.02891878289
## 21 0.095153126 -0.0864957671 -0.012300660 0.02115625512 0.15844007271
## 22 0.195380169 0.0425289053 -0.107919909 -0.04608877070 -0.04562343651
## 23 -0.053145932 0.0002339590 -0.008837748 0.04240094076 -0.03799364706
## 24 -0.087285464 0.0250013270 0.012007627 -0.02651716525 0.12428600370
## 25 0.069016951 -0.0887146809 0.012981042 -0.07517408529 0.26410917268
## 26 0.139988263 -0.0121030708 0.093653382 0.04952528466 -0.06069131797
## 27 0.057584908 0.0882383744 0.011906330 0.08126332598 -0.03817580274
## 28 -0.050007578 0.0851898332 -0.007228932 0.19540936611 0.01885192107
## 29 -0.058688265 0.0701617177 0.021949329 0.07318461131 0.06015792023
## 30 0.122880695 0.0175882690 -0.196128371 0.09806432755 -0.04605242581
## 11 12 13 14 15
## 1 -0.013297055 0.037895574 -0.031500526 0.0900336736 -0.0195369751
## 2 0.017425197 0.043221982 0.005161796 0.0588413756 0.0108208776
## 3 -0.040101746 0.007666491 0.002385690 0.1832557954 0.0711614414
## 4 0.072114252 0.077279926 0.090087641 0.0483769747 -0.0876089079
## 5 0.026549630 0.026721316 0.018861314 -0.0055533165 0.0803844241
## 6 0.094417852 0.001228344 0.080424823 -0.0418112207 -0.0132632206
## 7 0.055627839 0.045772710 0.051908353 0.0907067217 -0.0001570678
## 8 0.104610608 0.077295867 0.104317730 0.0354137614 -0.1284392483
## 9 -0.006199156 0.061882020 0.052993368 0.0651713330 0.1314426997
## 10 0.108061949 -0.099357951 0.060010670 0.0933954039 0.0061107753
## 11 0.141536180 -0.027906214 0.106689337 0.0346449079 -0.0489184652
## 12 -0.027906214 0.132056695 -0.009796969 -0.0163696229 0.0294610468
## 13 0.106689337 -0.009796969 0.154241614 0.0969503232 -0.0219771200
## 14 0.034644908 -0.016369623 0.096950323 0.2859029118 0.0008042517
## 15 -0.048918465 0.029461047 -0.021977120 0.0008042517 0.2072213011
## 16 0.054742627 0.045340683 0.008280169 -0.0130255625 0.0707463522
## 17 -0.027246618 0.104380403 0.020829555 0.0327593589 0.0500735197
## 18 -0.094092532 0.188508893 -0.016169832 -0.0573619066 0.0258775453
## 19 0.064591644 0.030240854 0.096792271 0.1756842739 -0.0681945280
## 20 0.136529199 0.020086119 -0.018907961 -0.1073664957 -0.0774015198
## 21 0.044442430 -0.025528063 0.059497272 -0.0903818891 0.1330924237
## 22 0.082470154 0.002537216 0.009023364 -0.0613825233 0.0029618276
## 23 -0.092349976 0.127595370 -0.100552862 -0.0343202643 0.1101028867
## 24 -0.015344422 0.055694034 -0.154337228 -0.0570402222 0.0747542656
## 25 0.042691601 -0.056524893 0.060647534 0.0602507888 0.0524007204
## 26 0.060055844 0.078908767 0.082089425 -0.1529394074 0.0342227216
## 27 0.057909634 0.023016106 0.086357190 0.0990812953 0.0142801066
## 28 0.029597777 0.003040388 0.078573295 0.1109320140 0.1339212674
## 29 0.013148635 0.028525414 -0.004898434 0.0937796574 0.0624489921
## 30 0.017598888 -0.012872503 0.032018197 -0.0184323909 0.1632076062
## 16 17 18 19 20 21
## 1 -0.115163799 0.030657265 0.12740454 0.134770618 0.053573190 -0.046265475
## 2 0.001673199 0.034939080 0.05080354 0.093108639 0.063203356 -0.030939695
## 3 -0.078226220 0.043160906 0.06257277 0.095152845 -0.109454746 -0.006228719
## 4 0.031666205 0.064673560 0.11854456 0.028665684 0.025940806 -0.009804232
## 5 0.078016101 0.027979555 0.01364554 -0.065454060 0.015329251 0.098977344
## 6 -0.042314201 -0.001410294 0.03881289 0.104926460 0.123133505 0.095153126
## 7 0.098799126 0.038311471 -0.03964420 0.122210907 0.079024923 -0.086495767
## 8 0.064561683 0.055214187 0.09883296 -0.004659970 0.062987951 -0.012300660
## 9 0.129273613 0.080164761 0.00461466 0.025056917 -0.076663325 0.021156255
## 10 0.001716172 -0.068978132 -0.12601506 -0.094565446 0.028918783 0.158440073
## 11 0.054742627 -0.027246618 -0.09409253 0.064591644 0.136529199 0.044442430
## 12 0.045340683 0.104380403 0.18850889 0.030240854 0.020086119 -0.025528063
## 13 0.008280169 0.020829555 -0.01616983 0.096792271 -0.018907961 0.059497272
## 14 -0.013025563 0.032759359 -0.05736191 0.175684274 -0.107366496 -0.090381889
## 15 0.070746352 0.050073520 0.02587755 -0.068194528 -0.077401520 0.133092424
## 16 0.209608760 0.021888898 -0.09533996 -0.035008222 0.124962541 -0.003839067
## 17 0.021888898 0.100708418 0.16592135 0.040803934 -0.049828843 0.001877936
## 18 -0.095339959 0.165921346 0.43213302 0.012428350 -0.099322501 0.045152830
## 19 -0.035008222 0.040803934 0.01242835 0.277659372 0.046547311 -0.137418384
## 20 0.124962541 -0.049828843 -0.09932250 0.046547311 0.389339984 -0.039165912
## 21 -0.003839067 0.001877936 0.04515283 -0.137418384 -0.039165912 0.301174915
## 22 0.007442220 -0.023945083 -0.02633301 0.112073157 0.229246783 0.031315888
## 23 0.042533505 0.097331596 0.19532036 -0.053404345 0.002046047 0.007829548
## 24 0.152500471 -0.004096546 -0.03529803 -0.112468245 0.221433447 -0.028325024
## 25 -0.106894785 -0.014085490 0.04296912 -0.039218653 -0.071062927 0.203986975
## 26 0.032599535 0.063528722 0.16349013 -0.042053599 0.051096606 0.178972120
## 27 0.040450906 0.036785686 -0.01611939 0.131022342 0.016896154 -0.022822875
## 28 0.140046741 0.039144128 -0.10036100 0.009403251 -0.081249005 0.048716169
## 29 0.100720739 0.027572089 -0.04809877 0.021833307 0.033952702 -0.035348496
## 30 0.032241569 0.010884628 -0.03287687 0.029473317 0.006174576 0.145078954
## 22 23 24 25 26
## 1 0.116609660 0.094572421 0.086724863 0.113100430 -0.080029893
## 2 0.076621411 0.055938482 0.062295485 0.019715838 -0.018402266
## 3 -0.006657043 0.079661046 0.035169560 0.137648803 -0.125966159
## 4 -0.073700528 0.008264113 -0.014476104 0.019543781 0.080271440
## 5 -0.016197411 0.055187720 0.084583474 0.055018867 0.053964732
## 6 0.195380169 -0.053145932 -0.087285464 0.069016951 0.139988263
## 7 0.042528905 0.000233959 0.025001327 -0.088714681 -0.012103071
## 8 -0.107919909 -0.008837748 0.012007627 0.012981042 0.093653382
## 9 -0.046088771 0.042400941 -0.026517165 -0.075174085 0.049525285
## 10 -0.045623437 -0.037993647 0.124286004 0.264109173 -0.060691318
## 11 0.082470154 -0.092349976 -0.015344422 0.042691601 0.060055844
## 12 0.002537216 0.127595370 0.055694034 -0.056524893 0.078908767
## 13 0.009023364 -0.100552862 -0.154337228 0.060647534 0.082089425
## 14 -0.061382523 -0.034320264 -0.057040222 0.060250789 -0.152939407
## 15 0.002961828 0.110102887 0.074754266 0.052400720 0.034222722
## 16 0.007442220 0.042533505 0.152500471 -0.106894785 0.032599535
## 17 -0.023945083 0.097331596 -0.004096546 -0.014085490 0.063528722
## 18 -0.026333010 0.195320358 -0.035298027 0.042969120 0.163490130
## 19 0.112073157 -0.053404345 -0.112468245 -0.039218653 -0.042053599
## 20 0.229246783 0.002046047 0.221433447 -0.071062927 0.051096606
## 21 0.031315888 0.007829548 -0.028325024 0.203986975 0.178972120
## 22 0.262833928 -0.007872520 0.052839612 0.009542911 0.070780663
## 23 -0.007872520 0.225596817 0.201614575 -0.001809897 0.009158869
## 24 0.052839612 0.201614575 0.439691165 -0.014884027 -0.097906477
## 25 0.009542911 -0.001809897 -0.014884027 0.288066471 0.022564841
## 26 0.070780663 0.009158869 -0.097906477 0.022564841 0.286532355
## 27 0.049886924 -0.031702302 -0.066527802 -0.021829830 0.021503970
## 28 -0.063982404 -0.009294211 -0.020527752 -0.023459939 0.004702078
## 29 -0.015303236 0.066984950 0.139994786 -0.011687778 -0.073420197
## 30 0.140911081 0.008910500 -0.033556189 0.051091136 0.085902639
## 27 28 29 30
## 1 0.011788955 -0.124222572 0.020714498 0.003065408
## 2 0.039075660 -0.012856167 0.039637648 0.025556775
## 3 0.031475764 0.020729694 0.066283115 0.036558517
## 4 0.024691349 -0.004037622 0.015843196 -0.133993626
## 5 0.002349287 0.071967411 0.048887364 0.035548570
## 6 0.057584908 -0.050007578 -0.058688265 0.122880695
## 7 0.088238374 0.085189833 0.070161718 0.017588269
## 8 0.011906330 -0.007228932 0.021949329 -0.196128371
## 9 0.081263326 0.195409366 0.073184611 0.098064328
## 10 -0.038175803 0.018851921 0.060157920 -0.046052426
## 11 0.057909634 0.029597777 0.013148635 0.017598888
## 12 0.023016106 0.003040388 0.028525414 -0.012872503
## 13 0.086357190 0.078573295 -0.004898434 0.032018197
## 14 0.099081295 0.110932014 0.093779657 -0.018432391
## 15 0.014280107 0.133921267 0.062448992 0.163207606
## 16 0.040450906 0.140046741 0.100720739 0.032241569
## 17 0.036785686 0.039144128 0.027572089 0.010884628
## 18 -0.016119393 -0.100361001 -0.048098769 -0.032876867
## 19 0.131022342 0.009403251 0.021833307 0.029473317
## 20 0.016896154 -0.081249005 0.033952702 0.006174576
## 21 -0.022822875 0.048716169 -0.035348496 0.145078954
## 22 0.049886924 -0.063982404 -0.015303236 0.140911081
## 23 -0.031702302 -0.009294211 0.066984950 0.008910500
## 24 -0.066527802 -0.020527752 0.139994786 -0.033556189
## 25 -0.021829830 -0.023459939 -0.011687778 0.051091136
## 26 0.021503970 0.004702078 -0.073420197 0.085902639
## 27 0.094608948 0.082626879 0.033817873 0.060560034
## 28 0.082626879 0.231324876 0.092969063 0.100081030
## 29 0.033817873 0.092969063 0.108007364 0.006870203
## 30 0.060560034 0.100081030 0.006870203 0.243645454
#Matriz c
mat.C<-diag(n_X)-mat.B
print(mat.C)
## 1 2 3 4 5
## 1 0.7234617609 -0.11581931938 -0.186071715 0.007631962 0.031501642
## 2 -0.1158193194 0.93033940650 -0.078791627 -0.010974468 -0.002191966
## 3 -0.1860717146 -0.07879162684 0.767888873 0.026239157 -0.005788239
## 4 0.0076319616 -0.01097446850 0.026239157 0.786146509 -0.037221300
## 5 0.0315016419 -0.00219196579 -0.005788239 -0.037221300 0.921649092
## 6 -0.0766826820 -0.04650402335 0.012833869 0.009267118 0.010370592
## 7 -0.0007036393 -0.04619085187 -0.006913862 -0.040740178 -0.007930060
## 8 0.0483385700 0.00602205047 0.072480937 -0.276548943 -0.054057854
## 9 0.1039031604 -0.00007440184 -0.004444010 -0.003141979 -0.056896349
## 10 -0.0446649355 0.00002741387 -0.091185574 -0.078315408 -0.092668446
## 11 0.0132970550 -0.01742519659 0.040101746 -0.072114252 -0.026549630
## 12 -0.0378955739 -0.04322198158 -0.007666491 -0.077279926 -0.026721316
## 13 0.0315005262 -0.00516179620 -0.002385690 -0.090087641 -0.018861314
## 14 -0.0900336736 -0.05884137561 -0.183255795 -0.048376975 0.005553317
## 15 0.0195369751 -0.01082087762 -0.071161441 0.087608908 -0.080384424
## 16 0.1151637991 -0.00167319939 0.078226220 -0.031666205 -0.078016101
## 17 -0.0306572652 -0.03493907955 -0.043160906 -0.064673560 -0.027979555
## 18 -0.1274045440 -0.05080354063 -0.062572774 -0.118544560 -0.013645539
## 19 -0.1347706182 -0.09310863930 -0.095152845 -0.028665684 0.065454060
## 20 -0.0535731898 -0.06320335602 0.109454746 -0.025940806 -0.015329251
## 21 0.0462654746 0.03093969460 0.006228719 0.009804232 -0.098977344
## 22 -0.1166096599 -0.07662141056 0.006657043 0.073700528 0.016197411
## 23 -0.0945724206 -0.05593848187 -0.079661046 -0.008264113 -0.055187720
## 24 -0.0867248634 -0.06229548467 -0.035169560 0.014476104 -0.084583474
## 25 -0.1131004295 -0.01971583770 -0.137648803 -0.019543781 -0.055018867
## 26 0.0800298929 0.01840226598 0.125966159 -0.080271440 -0.053964732
## 27 -0.0117889547 -0.03907566040 -0.031475764 -0.024691349 -0.002349287
## 28 0.1242225716 0.01285616697 -0.020729694 0.004037622 -0.071967411
## 29 -0.0207144975 -0.03963764848 -0.066283115 -0.015843196 -0.048887364
## 30 -0.0030654080 -0.02555677463 -0.036558517 0.133993626 -0.035548570
## 6 7 8 9 10
## 1 -0.076682682 -0.0007036393 0.048338570 0.10390316040 -0.04466493552
## 2 -0.046504023 -0.0461908519 0.006022050 -0.00007440184 0.00002741387
## 3 0.012833869 -0.0069138621 0.072480937 -0.00444400990 -0.09118557444
## 4 0.009267118 -0.0407401775 -0.276548943 -0.00314197885 -0.07831540777
## 5 0.010370592 -0.0079300597 -0.054057854 -0.05689634946 -0.09266844624
## 6 0.792447503 -0.0140119896 0.033281903 0.03537582261 0.01864369586
## 7 -0.014011990 0.8806588659 -0.044271307 -0.08891732591 0.05320999444
## 8 0.033281903 -0.0442713072 0.625634506 0.01113164434 -0.13179388415
## 9 0.035375823 -0.0889173259 0.011131644 0.79716783741 0.08685658219
## 10 0.018643696 0.0532099944 -0.131793884 0.08685658219 0.58649619040
## 11 -0.094417852 -0.0556278385 -0.104610608 0.00619915589 -0.10806194855
## 12 -0.001228344 -0.0457727102 -0.077295867 -0.06188201952 0.09935795082
## 13 -0.080424823 -0.0519083531 -0.104317730 -0.05299336840 -0.06001066959
## 14 0.041811221 -0.0907067217 -0.035413761 -0.06517133296 -0.09339540387
## 15 0.013263221 0.0001570678 0.128439248 -0.13144269974 -0.00611077526
## 16 0.042314201 -0.0987991264 -0.064561683 -0.12927361283 -0.00171617208
## 17 0.001410294 -0.0383114713 -0.055214187 -0.08016476147 0.06897813169
## 18 -0.038812887 0.0396442033 -0.098832964 -0.00461465951 0.12601505581
## 19 -0.104926460 -0.1222109067 0.004659970 -0.02505691688 0.09456544559
## 20 -0.123133505 -0.0790249235 -0.062987951 0.07666332468 -0.02891878289
## 21 -0.095153126 0.0864957671 0.012300660 -0.02115625512 -0.15844007271
## 22 -0.195380169 -0.0425289053 0.107919909 0.04608877070 0.04562343651
## 23 0.053145932 -0.0002339590 0.008837748 -0.04240094076 0.03799364706
## 24 0.087285464 -0.0250013270 -0.012007627 0.02651716525 -0.12428600370
## 25 -0.069016951 0.0887146809 -0.012981042 0.07517408529 -0.26410917268
## 26 -0.139988263 0.0121030708 -0.093653382 -0.04952528466 0.06069131797
## 27 -0.057584908 -0.0882383744 -0.011906330 -0.08126332598 0.03817580274
## 28 0.050007578 -0.0851898332 0.007228932 -0.19540936611 -0.01885192107
## 29 0.058688265 -0.0701617177 -0.021949329 -0.07318461131 -0.06015792023
## 30 -0.122880695 -0.0175882690 0.196128371 -0.09806432755 0.04605242581
## 11 12 13 14 15
## 1 0.013297055 -0.037895574 0.031500526 -0.0900336736 0.0195369751
## 2 -0.017425197 -0.043221982 -0.005161796 -0.0588413756 -0.0108208776
## 3 0.040101746 -0.007666491 -0.002385690 -0.1832557954 -0.0711614414
## 4 -0.072114252 -0.077279926 -0.090087641 -0.0483769747 0.0876089079
## 5 -0.026549630 -0.026721316 -0.018861314 0.0055533165 -0.0803844241
## 6 -0.094417852 -0.001228344 -0.080424823 0.0418112207 0.0132632206
## 7 -0.055627839 -0.045772710 -0.051908353 -0.0907067217 0.0001570678
## 8 -0.104610608 -0.077295867 -0.104317730 -0.0354137614 0.1284392483
## 9 0.006199156 -0.061882020 -0.052993368 -0.0651713330 -0.1314426997
## 10 -0.108061949 0.099357951 -0.060010670 -0.0933954039 -0.0061107753
## 11 0.858463820 0.027906214 -0.106689337 -0.0346449079 0.0489184652
## 12 0.027906214 0.867943305 0.009796969 0.0163696229 -0.0294610468
## 13 -0.106689337 0.009796969 0.845758386 -0.0969503232 0.0219771200
## 14 -0.034644908 0.016369623 -0.096950323 0.7140970882 -0.0008042517
## 15 0.048918465 -0.029461047 0.021977120 -0.0008042517 0.7927786989
## 16 -0.054742627 -0.045340683 -0.008280169 0.0130255625 -0.0707463522
## 17 0.027246618 -0.104380403 -0.020829555 -0.0327593589 -0.0500735197
## 18 0.094092532 -0.188508893 0.016169832 0.0573619066 -0.0258775453
## 19 -0.064591644 -0.030240854 -0.096792271 -0.1756842739 0.0681945280
## 20 -0.136529199 -0.020086119 0.018907961 0.1073664957 0.0774015198
## 21 -0.044442430 0.025528063 -0.059497272 0.0903818891 -0.1330924237
## 22 -0.082470154 -0.002537216 -0.009023364 0.0613825233 -0.0029618276
## 23 0.092349976 -0.127595370 0.100552862 0.0343202643 -0.1101028867
## 24 0.015344422 -0.055694034 0.154337228 0.0570402222 -0.0747542656
## 25 -0.042691601 0.056524893 -0.060647534 -0.0602507888 -0.0524007204
## 26 -0.060055844 -0.078908767 -0.082089425 0.1529394074 -0.0342227216
## 27 -0.057909634 -0.023016106 -0.086357190 -0.0990812953 -0.0142801066
## 28 -0.029597777 -0.003040388 -0.078573295 -0.1109320140 -0.1339212674
## 29 -0.013148635 -0.028525414 0.004898434 -0.0937796574 -0.0624489921
## 30 -0.017598888 0.012872503 -0.032018197 0.0184323909 -0.1632076062
## 16 17 18 19 20 21
## 1 0.115163799 -0.030657265 -0.12740454 -0.134770618 -0.053573190 0.046265475
## 2 -0.001673199 -0.034939080 -0.05080354 -0.093108639 -0.063203356 0.030939695
## 3 0.078226220 -0.043160906 -0.06257277 -0.095152845 0.109454746 0.006228719
## 4 -0.031666205 -0.064673560 -0.11854456 -0.028665684 -0.025940806 0.009804232
## 5 -0.078016101 -0.027979555 -0.01364554 0.065454060 -0.015329251 -0.098977344
## 6 0.042314201 0.001410294 -0.03881289 -0.104926460 -0.123133505 -0.095153126
## 7 -0.098799126 -0.038311471 0.03964420 -0.122210907 -0.079024923 0.086495767
## 8 -0.064561683 -0.055214187 -0.09883296 0.004659970 -0.062987951 0.012300660
## 9 -0.129273613 -0.080164761 -0.00461466 -0.025056917 0.076663325 -0.021156255
## 10 -0.001716172 0.068978132 0.12601506 0.094565446 -0.028918783 -0.158440073
## 11 -0.054742627 0.027246618 0.09409253 -0.064591644 -0.136529199 -0.044442430
## 12 -0.045340683 -0.104380403 -0.18850889 -0.030240854 -0.020086119 0.025528063
## 13 -0.008280169 -0.020829555 0.01616983 -0.096792271 0.018907961 -0.059497272
## 14 0.013025563 -0.032759359 0.05736191 -0.175684274 0.107366496 0.090381889
## 15 -0.070746352 -0.050073520 -0.02587755 0.068194528 0.077401520 -0.133092424
## 16 0.790391240 -0.021888898 0.09533996 0.035008222 -0.124962541 0.003839067
## 17 -0.021888898 0.899291582 -0.16592135 -0.040803934 0.049828843 -0.001877936
## 18 0.095339959 -0.165921346 0.56786698 -0.012428350 0.099322501 -0.045152830
## 19 0.035008222 -0.040803934 -0.01242835 0.722340628 -0.046547311 0.137418384
## 20 -0.124962541 0.049828843 0.09932250 -0.046547311 0.610660016 0.039165912
## 21 0.003839067 -0.001877936 -0.04515283 0.137418384 0.039165912 0.698825085
## 22 -0.007442220 0.023945083 0.02633301 -0.112073157 -0.229246783 -0.031315888
## 23 -0.042533505 -0.097331596 -0.19532036 0.053404345 -0.002046047 -0.007829548
## 24 -0.152500471 0.004096546 0.03529803 0.112468245 -0.221433447 0.028325024
## 25 0.106894785 0.014085490 -0.04296912 0.039218653 0.071062927 -0.203986975
## 26 -0.032599535 -0.063528722 -0.16349013 0.042053599 -0.051096606 -0.178972120
## 27 -0.040450906 -0.036785686 0.01611939 -0.131022342 -0.016896154 0.022822875
## 28 -0.140046741 -0.039144128 0.10036100 -0.009403251 0.081249005 -0.048716169
## 29 -0.100720739 -0.027572089 0.04809877 -0.021833307 -0.033952702 0.035348496
## 30 -0.032241569 -0.010884628 0.03287687 -0.029473317 -0.006174576 -0.145078954
## 22 23 24 25 26
## 1 -0.116609660 -0.094572421 -0.086724863 -0.113100430 0.080029893
## 2 -0.076621411 -0.055938482 -0.062295485 -0.019715838 0.018402266
## 3 0.006657043 -0.079661046 -0.035169560 -0.137648803 0.125966159
## 4 0.073700528 -0.008264113 0.014476104 -0.019543781 -0.080271440
## 5 0.016197411 -0.055187720 -0.084583474 -0.055018867 -0.053964732
## 6 -0.195380169 0.053145932 0.087285464 -0.069016951 -0.139988263
## 7 -0.042528905 -0.000233959 -0.025001327 0.088714681 0.012103071
## 8 0.107919909 0.008837748 -0.012007627 -0.012981042 -0.093653382
## 9 0.046088771 -0.042400941 0.026517165 0.075174085 -0.049525285
## 10 0.045623437 0.037993647 -0.124286004 -0.264109173 0.060691318
## 11 -0.082470154 0.092349976 0.015344422 -0.042691601 -0.060055844
## 12 -0.002537216 -0.127595370 -0.055694034 0.056524893 -0.078908767
## 13 -0.009023364 0.100552862 0.154337228 -0.060647534 -0.082089425
## 14 0.061382523 0.034320264 0.057040222 -0.060250789 0.152939407
## 15 -0.002961828 -0.110102887 -0.074754266 -0.052400720 -0.034222722
## 16 -0.007442220 -0.042533505 -0.152500471 0.106894785 -0.032599535
## 17 0.023945083 -0.097331596 0.004096546 0.014085490 -0.063528722
## 18 0.026333010 -0.195320358 0.035298027 -0.042969120 -0.163490130
## 19 -0.112073157 0.053404345 0.112468245 0.039218653 0.042053599
## 20 -0.229246783 -0.002046047 -0.221433447 0.071062927 -0.051096606
## 21 -0.031315888 -0.007829548 0.028325024 -0.203986975 -0.178972120
## 22 0.737166072 0.007872520 -0.052839612 -0.009542911 -0.070780663
## 23 0.007872520 0.774403183 -0.201614575 0.001809897 -0.009158869
## 24 -0.052839612 -0.201614575 0.560308835 0.014884027 0.097906477
## 25 -0.009542911 0.001809897 0.014884027 0.711933529 -0.022564841
## 26 -0.070780663 -0.009158869 0.097906477 -0.022564841 0.713467645
## 27 -0.049886924 0.031702302 0.066527802 0.021829830 -0.021503970
## 28 0.063982404 0.009294211 0.020527752 0.023459939 -0.004702078
## 29 0.015303236 -0.066984950 -0.139994786 0.011687778 0.073420197
## 30 -0.140911081 -0.008910500 0.033556189 -0.051091136 -0.085902639
## 27 28 29 30
## 1 -0.011788955 0.124222572 -0.020714498 -0.003065408
## 2 -0.039075660 0.012856167 -0.039637648 -0.025556775
## 3 -0.031475764 -0.020729694 -0.066283115 -0.036558517
## 4 -0.024691349 0.004037622 -0.015843196 0.133993626
## 5 -0.002349287 -0.071967411 -0.048887364 -0.035548570
## 6 -0.057584908 0.050007578 0.058688265 -0.122880695
## 7 -0.088238374 -0.085189833 -0.070161718 -0.017588269
## 8 -0.011906330 0.007228932 -0.021949329 0.196128371
## 9 -0.081263326 -0.195409366 -0.073184611 -0.098064328
## 10 0.038175803 -0.018851921 -0.060157920 0.046052426
## 11 -0.057909634 -0.029597777 -0.013148635 -0.017598888
## 12 -0.023016106 -0.003040388 -0.028525414 0.012872503
## 13 -0.086357190 -0.078573295 0.004898434 -0.032018197
## 14 -0.099081295 -0.110932014 -0.093779657 0.018432391
## 15 -0.014280107 -0.133921267 -0.062448992 -0.163207606
## 16 -0.040450906 -0.140046741 -0.100720739 -0.032241569
## 17 -0.036785686 -0.039144128 -0.027572089 -0.010884628
## 18 0.016119393 0.100361001 0.048098769 0.032876867
## 19 -0.131022342 -0.009403251 -0.021833307 -0.029473317
## 20 -0.016896154 0.081249005 -0.033952702 -0.006174576
## 21 0.022822875 -0.048716169 0.035348496 -0.145078954
## 22 -0.049886924 0.063982404 0.015303236 -0.140911081
## 23 0.031702302 0.009294211 -0.066984950 -0.008910500
## 24 0.066527802 0.020527752 -0.139994786 0.033556189
## 25 0.021829830 0.023459939 0.011687778 -0.051091136
## 26 -0.021503970 -0.004702078 0.073420197 -0.085902639
## 27 0.905391052 -0.082626879 -0.033817873 -0.060560034
## 28 -0.082626879 0.768675124 -0.092969063 -0.100081030
## 29 -0.033817873 -0.092969063 0.891992636 -0.006870203
## 30 -0.060560034 -0.100081030 -0.006870203 0.756354546