| 1 | #LyX 1.5.3 created this file. For more info see http://www.lyx.org/ |
|---|
| 2 | \lyxformat 276 |
|---|
| 3 | \begin_document |
|---|
| 4 | \begin_header |
|---|
| 5 | \textclass amsbook |
|---|
| 6 | \begin_preamble |
|---|
| 7 | \usepackage{a4wide} |
|---|
| 8 | %\documentclass[spanish]{article} |
|---|
| 9 | \usepackage{babel} |
|---|
| 10 | \usepackage{a4wide} |
|---|
| 11 | \usepackage{varioref} |
|---|
| 12 | \usepackage{amssymb} |
|---|
| 13 | \usepackage{latexsym} |
|---|
| 14 | \usepackage{amssymb} |
|---|
| 15 | \usepackage{amsmath} |
|---|
| 16 | |
|---|
| 17 | \usepackage{graphics} |
|---|
| 18 | \usepackage{graphicx} |
|---|
| 19 | \usepackage{ulem} |
|---|
| 20 | \usepackage{color} |
|---|
| 21 | \usepackage{multicol} |
|---|
| 22 | \usepackage{longtable} |
|---|
| 23 | |
|---|
| 24 | %\usepackage{makeidx} |
|---|
| 25 | \usepackage{hyperref} |
|---|
| 26 | \makeindex |
|---|
| 27 | |
|---|
| 28 | \hypersetup{urlbordercolor=0 0 0,pdfborder=0 0 1 [3 2]} |
|---|
| 29 | \end_preamble |
|---|
| 30 | \language spanish |
|---|
| 31 | \inputencoding auto |
|---|
| 32 | \font_roman default |
|---|
| 33 | \font_sans default |
|---|
| 34 | \font_typewriter default |
|---|
| 35 | \font_default_family default |
|---|
| 36 | \font_sc false |
|---|
| 37 | \font_osf false |
|---|
| 38 | \font_sf_scale 100 |
|---|
| 39 | \font_tt_scale 100 |
|---|
| 40 | \graphics default |
|---|
| 41 | \paperfontsize default |
|---|
| 42 | \spacing single |
|---|
| 43 | \papersize default |
|---|
| 44 | \use_geometry false |
|---|
| 45 | \use_amsmath 1 |
|---|
| 46 | \use_esint 0 |
|---|
| 47 | \cite_engine basic |
|---|
| 48 | \use_bibtopic false |
|---|
| 49 | \paperorientation portrait |
|---|
| 50 | \secnumdepth 3 |
|---|
| 51 | \tocdepth 3 |
|---|
| 52 | \paragraph_separation indent |
|---|
| 53 | \defskip medskip |
|---|
| 54 | \quotes_language english |
|---|
| 55 | \papercolumns 1 |
|---|
| 56 | \papersides 1 |
|---|
| 57 | \paperpagestyle default |
|---|
| 58 | \tracking_changes false |
|---|
| 59 | \output_changes false |
|---|
| 60 | \author "" |
|---|
| 61 | \author "" |
|---|
| 62 | \end_header |
|---|
| 63 | |
|---|
| 64 | \begin_body |
|---|
| 65 | |
|---|
| 66 | \begin_layout Chapter |
|---|
| 67 | \begin_inset LatexCommand label |
|---|
| 68 | name "cha:Definición-de-la-clase-de-modelos-admisibles-en-BSR" |
|---|
| 69 | |
|---|
| 70 | \end_inset |
|---|
| 71 | |
|---|
| 72 | Definición de la clase de modelos admisibles en BSR |
|---|
| 73 | \end_layout |
|---|
| 74 | |
|---|
| 75 | \begin_layout Standard |
|---|
| 76 | Se formula el tipo de modelos que es capaz de tratar BSR en la forma más |
|---|
| 77 | general posible, asà como el método de Gibbs por bloques aplicado para |
|---|
| 78 | la simulación. |
|---|
| 79 | \end_layout |
|---|
| 80 | |
|---|
| 81 | \begin_layout Section |
|---|
| 82 | Evolución de la modelación en TOL |
|---|
| 83 | \end_layout |
|---|
| 84 | |
|---|
| 85 | \begin_layout Standard |
|---|
| 86 | Uno de los tipos de modelos más utilizados en la previsión de series temporales |
|---|
| 87 | es el modelo ARIMA con función de transferencia lineal (omega) |
|---|
| 88 | \begin_inset Foot |
|---|
| 89 | status open |
|---|
| 90 | |
|---|
| 91 | \begin_layout Standard |
|---|
| 92 | Ver |
|---|
| 93 | \begin_inset LatexCommand cite |
|---|
| 94 | key "Box-Jenkins" |
|---|
| 95 | |
|---|
| 96 | \end_inset |
|---|
| 97 | |
|---|
| 98 | |
|---|
| 99 | \end_layout |
|---|
| 100 | |
|---|
| 101 | \end_inset |
|---|
| 102 | |
|---|
| 103 | . |
|---|
| 104 | El estimador máximo verosÃmil de TOL para esta clase de modelos es la función |
|---|
| 105 | Estimate y durante años ha servido para modelar fenómenos realmente complicados |
|---|
| 106 | , gracias a su eficiencia de cálculo y a su facilidad de manejo, el tratamiento |
|---|
| 107 | de omitidos en el output, etc. |
|---|
| 108 | Sin embargo, presenta graves problemas inherentes al propio método de estimació |
|---|
| 109 | n máximo verosÃmil. |
|---|
| 110 | \end_layout |
|---|
| 111 | |
|---|
| 112 | \begin_layout Standard |
|---|
| 113 | El más grave de todos ocurre cuando existen correlaciones múltiples entre |
|---|
| 114 | grupos de variables de forma que los parámetros capturan bien el efecto |
|---|
| 115 | conjunto pero no el particular de cada uno. |
|---|
| 116 | Variables que deberÃan dar valores positivos se estiman como negativos |
|---|
| 117 | y al revés simplemente porque ocurren casi de la misma forma que otros |
|---|
| 118 | efectos de signo contrario. |
|---|
| 119 | A veces es suficiente reformular los inputs de forma que sean lo más ortogonale |
|---|
| 120 | s entre sà que sea posible, pero otras veces no es viable hacerlo sin perder |
|---|
| 121 | expresabilidad en el modelo o simplemente no hay datos suficientes en la |
|---|
| 122 | muestra para poder distinguir inputs muy distintos en el fondo pero iguales |
|---|
| 123 | en la forma para la muestra disponible. |
|---|
| 124 | En estos casos es necesario que el analista pueda expresar toda la información |
|---|
| 125 | a priori de que disponga para ayudar al estimador. |
|---|
| 126 | En general si no se dispone de una adecuada información a priori, al hacer |
|---|
| 127 | previsiones, el modelo funciona de forma muy distinta si éstas son extramuestra |
|---|
| 128 | les o intramuestrales. |
|---|
| 129 | En general, cuanto más información a priori fidedigna haya menos discrepancia |
|---|
| 130 | se encontrará. |
|---|
| 131 | Mucho cuidado con inventarse información a priori no justificada porque |
|---|
| 132 | eso es seguro mucho peor que no dar ninguna información. |
|---|
| 133 | Hubo algún intento de introducir mecanismos en este sentido para el estimador |
|---|
| 134 | MLE pero no se llegó a ningún resultado aceptable. |
|---|
| 135 | \end_layout |
|---|
| 136 | |
|---|
| 137 | \begin_layout Standard |
|---|
| 138 | Por razones de diferente tipo, a veces se conoce el signo o un intervalo |
|---|
| 139 | de dominio de determinados parámetros, o bien que el efecto de unos debe |
|---|
| 140 | ser mayor que el de otros (relaciones de orden), o, en general, se conoce |
|---|
| 141 | cualquier tipo de restricción lineal. |
|---|
| 142 | Este tipo de restricciones complican la convergencia de los métodos de |
|---|
| 143 | optimización usados en MLE por lo que nunca se consiguió incorporarlos |
|---|
| 144 | adecuadamente. |
|---|
| 145 | \end_layout |
|---|
| 146 | |
|---|
| 147 | \begin_layout Standard |
|---|
| 148 | A la hora de manejar datos de clientes reales es muy frecuente que falten |
|---|
| 149 | datos, no sólo de las series output a analizar, sino también de los inputs |
|---|
| 150 | empleados en su explicación. |
|---|
| 151 | Para un estimador MLE esto supone una fuente más de no linealidad que complica |
|---|
| 152 | aún más la implementación y la convergencia del método. |
|---|
| 153 | \end_layout |
|---|
| 154 | |
|---|
| 155 | \begin_layout Standard |
|---|
| 156 | Por los mismos motivos nunca llegaron a funcionar debidamente en el MLE |
|---|
| 157 | otros sistemas de componentes no lineales, como funciones de transferencia |
|---|
| 158 | amortiguadas (deltas) y otras propias del negocio en cuestión que no es |
|---|
| 159 | posible ajustar a una forma no lineal paramétrica concreta sino que pueden |
|---|
| 160 | tener formas arbitrarias cualesquiera. |
|---|
| 161 | \end_layout |
|---|
| 162 | |
|---|
| 163 | \begin_layout Standard |
|---|
| 164 | Lo anterior se refiere a la descripción del modelo de regresión univariante |
|---|
| 165 | de un nodo de observación concreto, como puede ser cada uno de los puntos |
|---|
| 166 | de venta de un producto concreto, o cada una de las variantes de un producto |
|---|
| 167 | o cualquier tipo de entidad que se quiera analizar en detalle. |
|---|
| 168 | Pero también existen relaciones entre los parámetros de diferentes nodos |
|---|
| 169 | de observación. |
|---|
| 170 | Estas relaciones pueden ser expresadas a veces mediante una estructura |
|---|
| 171 | jerárquica lineal mediante hiperparámetros no observables que se agrupan |
|---|
| 172 | en nodos que llamaremos latentes y que se relacionan linealmente con los |
|---|
| 173 | parámetros de los nodos obervados, o bien, con otros hiperparámetros de |
|---|
| 174 | nodos latentes de niveles inferiores. |
|---|
| 175 | Estas estructuras dan lugar a un aumento brutal del número de variables |
|---|
| 176 | que un sistema MLE no puede soportar. |
|---|
| 177 | \end_layout |
|---|
| 178 | |
|---|
| 179 | \begin_layout Standard |
|---|
| 180 | Este tipo de modelos jerárquicos se pueden ver como un caso particular de |
|---|
| 181 | regresión lineal sparse, una vez filtrados el resto de efectos (ARIMA, |
|---|
| 182 | omitidos, ...) de los nodos observacionales. |
|---|
| 183 | Pero existen otras clases de modelos, como las redes bayesianas en los |
|---|
| 184 | que las relaciones entre los parámetros e hiperparámetros no tienen porqué |
|---|
| 185 | darse sólo en un sentido jerárquico, sino de forma arbitraria, manteniéndose |
|---|
| 186 | sin embargo la caracterÃstica sparse de la matriz de diseño conjunta. |
|---|
| 187 | No es posible ni siquiera soñar con un estimador MLE capaz de trabajar |
|---|
| 188 | con estas clases de modelos. |
|---|
| 189 | En esta generalización, lo que realmente es común a todas ellas es que |
|---|
| 190 | existen nodos de información o segmentos de regresión, observados o no, |
|---|
| 191 | que introducen ecuaciones de regresión que involucran a parámetros del |
|---|
| 192 | llamado bloque lineal, que pueden estar sujetos a restricciones de desigualdad |
|---|
| 193 | lineal. |
|---|
| 194 | Cada uno de estos segmentos tienen asociado un vector de residuos que puede |
|---|
| 195 | tener o no una estructura de serie temporal, estructura ARIMA, datos omitidos, |
|---|
| 196 | filtros no lineales, etc. |
|---|
| 197 | \end_layout |
|---|
| 198 | |
|---|
| 199 | \begin_layout Standard |
|---|
| 200 | Todas estas razones han llevado a la conclusión irrevocable de que es preciso |
|---|
| 201 | un sistema de estimación bayesiana basado en simulaciones de Montecarlo |
|---|
| 202 | de cadenas de Markov (MCMC) generadas con métodos como Gibbs o Metropolis-Hasti |
|---|
| 203 | ngs. |
|---|
| 204 | Varios han sido los intentos de implementación de estos sistemas, destacando |
|---|
| 205 | entre todos BLR y HLM, y aunque los resultados han sido en general de una |
|---|
| 206 | alta calidad, no se puede decir lo mismo respecto a la generalidad de los |
|---|
| 207 | modelos admitidos ni de la eficiencia en los cálculos. |
|---|
| 208 | \end_layout |
|---|
| 209 | |
|---|
| 210 | \begin_layout Section |
|---|
| 211 | Formalización de la clase de modelos de BSR |
|---|
| 212 | \begin_inset LatexCommand label |
|---|
| 213 | name "sec:clase_modelos_BSR" |
|---|
| 214 | |
|---|
| 215 | \end_inset |
|---|
| 216 | |
|---|
| 217 | |
|---|
| 218 | \end_layout |
|---|
| 219 | |
|---|
| 220 | \begin_layout Standard |
|---|
| 221 | A continuación se va a describir el modelo de regresión con restricciones |
|---|
| 222 | lineales subdivisible en |
|---|
| 223 | \begin_inset Formula $K$ |
|---|
| 224 | \end_inset |
|---|
| 225 | |
|---|
| 226 | segmentos de regresión cuyo único nexo en común es el vector |
|---|
| 227 | \begin_inset Formula $\beta\in\mathbb{R}^{n}$ |
|---|
| 228 | \end_inset |
|---|
| 229 | |
|---|
| 230 | de los parámetros a estimar en el bloque lineal conjunto de la regresión. |
|---|
| 231 | Para el |
|---|
| 232 | \begin_inset Formula $k$ |
|---|
| 233 | \end_inset |
|---|
| 234 | |
|---|
| 235 | -ésimo segmento de regresión, sean |
|---|
| 236 | \begin_inset Formula $Y^{\left(k\right)}\in\mathbb{R}^{M_{k}}$ |
|---|
| 237 | \end_inset |
|---|
| 238 | |
|---|
| 239 | el vector de output original a analizar, y |
|---|
| 240 | \begin_inset Formula $X^{\left(k\right)}\in\mathbb{R}^{M_{k}\times n}$ |
|---|
| 241 | \end_inset |
|---|
| 242 | |
|---|
| 243 | la matriz de inputs originales explicativos del segmento. |
|---|
| 244 | La relación de regresión no se da, en general, sobre estos términos originales |
|---|
| 245 | sino que se precisa hacer una serie de filtrados que se describen a continuació |
|---|
| 246 | n. |
|---|
| 247 | \end_layout |
|---|
| 248 | |
|---|
| 249 | \begin_layout Standard |
|---|
| 250 | Tanto el input como el output originales pueden tener omitidos, los cuales |
|---|
| 251 | deben ser sustituidos por ceros, para permitir realizar las operaciones |
|---|
| 252 | aritméticas y algebraicas necesarias para su simulación y filtrado. |
|---|
| 253 | Llamaremos |
|---|
| 254 | \begin_inset Formula $v^{\left(k\right)}$ |
|---|
| 255 | \end_inset |
|---|
| 256 | |
|---|
| 257 | y |
|---|
| 258 | \begin_inset Formula $u^{\left(k\right)}$ |
|---|
| 259 | \end_inset |
|---|
| 260 | |
|---|
| 261 | a los vectores de parámetros correspondientes a los omitidos del output |
|---|
| 262 | y el input respectivamente, y |
|---|
| 263 | \begin_inset Formula $\delta^{v^{\left(k\right)}}$ |
|---|
| 264 | \end_inset |
|---|
| 265 | |
|---|
| 266 | y |
|---|
| 267 | \begin_inset Formula $\delta^{u^{\left(k\right)}}$ |
|---|
| 268 | \end_inset |
|---|
| 269 | |
|---|
| 270 | a los operadores lineales de ubicación |
|---|
| 271 | \begin_inset Foot |
|---|
| 272 | status open |
|---|
| 273 | |
|---|
| 274 | \begin_layout Standard |
|---|
| 275 | Se aconseja no pararse ahora demasiado en los detalles que se explicarán |
|---|
| 276 | bien a fondo en el capÃtulo |
|---|
| 277 | \begin_inset LatexCommand ref |
|---|
| 278 | reference "sub:MissingBlock_Antecedentes" |
|---|
| 279 | |
|---|
| 280 | \end_inset |
|---|
| 281 | |
|---|
| 282 | |
|---|
| 283 | \end_layout |
|---|
| 284 | |
|---|
| 285 | \end_inset |
|---|
| 286 | |
|---|
| 287 | . |
|---|
| 288 | De esta manera resultan el output y los inputs filtrados de omitidos, o |
|---|
| 289 | simplemente filtrados sin más |
|---|
| 290 | \end_layout |
|---|
| 291 | |
|---|
| 292 | \begin_layout Standard |
|---|
| 293 | \begin_inset Formula \begin{equation} |
|---|
| 294 | \begin{array}{c} |
|---|
| 295 | \check{Y}^{\left(k\right)}=Y^{\left(k\right)}+\delta^{v^{\left(k\right)}}\cdot v^{\left(k\right)}\end{array}\end{equation} |
|---|
| 296 | |
|---|
| 297 | \end_inset |
|---|
| 298 | |
|---|
| 299 | |
|---|
| 300 | \begin_inset Formula \begin{equation} |
|---|
| 301 | \check{X}^{\left(k\right)}=X^{\left(k\right)}+\delta^{u^{\left(k\right)}}\cdot u^{\left(k\right)}\end{equation} |
|---|
| 302 | |
|---|
| 303 | \end_inset |
|---|
| 304 | |
|---|
| 305 | |
|---|
| 306 | \end_layout |
|---|
| 307 | |
|---|
| 308 | \begin_layout Standard |
|---|
| 309 | La relación entre ambos es lo que define propiamente el segmento de regresión |
|---|
| 310 | lineal en los parámetros lineales |
|---|
| 311 | \begin_inset Formula \begin{equation} |
|---|
| 312 | \begin{array}{c} |
|---|
| 313 | \check{Y}^{\left(k\right)}=\check{X}^{\left(k\right)}\beta+w^{\left(k\right)}\end{array}\end{equation} |
|---|
| 314 | |
|---|
| 315 | \end_inset |
|---|
| 316 | |
|---|
| 317 | |
|---|
| 318 | \end_layout |
|---|
| 319 | |
|---|
| 320 | \begin_layout Standard |
|---|
| 321 | El vector |
|---|
| 322 | \begin_inset Formula $w^{\left(k\right)}\in\mathbb{R}^{M_{k}}$ |
|---|
| 323 | \end_inset |
|---|
| 324 | |
|---|
| 325 | es el que se llamará ruido ARIMA o ruido sin diferenciar del segmento. |
|---|
| 326 | Si se define la matriz |
|---|
| 327 | \begin_inset Formula $\triangle^{\left(k\right)}\in\mathbb{R}^{m_{k}\times M_{k}}$ |
|---|
| 328 | \end_inset |
|---|
| 329 | |
|---|
| 330 | como el operador lineal de rango |
|---|
| 331 | \begin_inset Formula $m_{k}\leq M_{k}$ |
|---|
| 332 | \end_inset |
|---|
| 333 | |
|---|
| 334 | de filtrado determinista, normalmente definido como la matriz de Toeplitz |
|---|
| 335 | correspondiente a un polinomio de raÃces unitarias, se obtendrá el ruido |
|---|
| 336 | ARMA o ruido diferenciado |
|---|
| 337 | \begin_inset Formula $z^{\left(k\right)}\in\mathbb{R}^{m_{k}}$ |
|---|
| 338 | \end_inset |
|---|
| 339 | |
|---|
| 340 | |
|---|
| 341 | \begin_inset Formula \begin{equation} |
|---|
| 342 | \begin{array}{c} |
|---|
| 343 | z^{\left(k\right)}=\triangle^{\left(k\right)}w^{\left(k\right)}\end{array}\end{equation} |
|---|
| 344 | |
|---|
| 345 | \end_inset |
|---|
| 346 | |
|---|
| 347 | |
|---|
| 348 | \end_layout |
|---|
| 349 | |
|---|
| 350 | \begin_layout Standard |
|---|
| 351 | Si no hay estructuras de este tipo se establece |
|---|
| 352 | \begin_inset Formula $m_{k}=M_{k}$ |
|---|
| 353 | \end_inset |
|---|
| 354 | |
|---|
| 355 | y |
|---|
| 356 | \begin_inset Formula $\triangle^{\left(k\right)}=I_{m_{k}}$ |
|---|
| 357 | \end_inset |
|---|
| 358 | |
|---|
| 359 | . |
|---|
| 360 | La distribución de este ruido ARMA viene dada por la ecuación en diferencias |
|---|
| 361 | del modelo ARMA |
|---|
| 362 | \begin_inset Foot |
|---|
| 363 | status open |
|---|
| 364 | |
|---|
| 365 | \begin_layout Standard |
|---|
| 366 | Más detalles en el capÃtulo |
|---|
| 367 | \begin_inset LatexCommand ref |
|---|
| 368 | reference "sub:ArmaBlock_Antecedentes" |
|---|
| 369 | |
|---|
| 370 | \end_inset |
|---|
| 371 | |
|---|
| 372 | |
|---|
| 373 | \end_layout |
|---|
| 374 | |
|---|
| 375 | \end_inset |
|---|
| 376 | |
|---|
| 377 | |
|---|
| 378 | \end_layout |
|---|
| 379 | |
|---|
| 380 | \begin_layout Standard |
|---|
| 381 | \begin_inset Formula \begin{equation} |
|---|
| 382 | \begin{array}{c} |
|---|
| 383 | \phi^{\left(k\right)}\left(B\right)z_{t}^{\left(k\right)}=\theta^{\left(k\right)}\left(B\right)e_{t}^{\left(k\right)}\\ |
|---|
| 384 | e^{\left(k\right)}\sim N\left(0,\sigma_{k}^{2}I_{m_{k}}\right)\end{array}\end{equation} |
|---|
| 385 | |
|---|
| 386 | \end_inset |
|---|
| 387 | |
|---|
| 388 | siendo |
|---|
| 389 | \begin_inset Formula $\sigma_{k}^{2}\in\mathbb{R}^{+}$ |
|---|
| 390 | \end_inset |
|---|
| 391 | |
|---|
| 392 | el parámetro varianza |
|---|
| 393 | \begin_inset Foot |
|---|
| 394 | status open |
|---|
| 395 | |
|---|
| 396 | \begin_layout Standard |
|---|
| 397 | Más detalles en |
|---|
| 398 | \begin_inset LatexCommand ref |
|---|
| 399 | reference "sub:SigmaBlock_Antecedentes" |
|---|
| 400 | |
|---|
| 401 | \end_inset |
|---|
| 402 | |
|---|
| 403 | |
|---|
| 404 | \end_layout |
|---|
| 405 | |
|---|
| 406 | \end_inset |
|---|
| 407 | |
|---|
| 408 | de |
|---|
| 409 | \begin_inset Formula $e^{\left(k\right)}\in\mathbb{R}^{m_{k}}$ |
|---|
| 410 | \end_inset |
|---|
| 411 | |
|---|
| 412 | , los residuos incorrelados del segmento. |
|---|
| 413 | En algunos segmentos puede venir prefijado el valor de la varianza como |
|---|
| 414 | un dato a priori del modelo en lugar de como un parámetro a simular. |
|---|
| 415 | \end_layout |
|---|
| 416 | |
|---|
| 417 | \begin_layout Standard |
|---|
| 418 | Sea |
|---|
| 419 | \family roman |
|---|
| 420 | \series medium |
|---|
| 421 | \shape up |
|---|
| 422 | \size normal |
|---|
| 423 | \emph off |
|---|
| 424 | \bar no |
|---|
| 425 | \noun off |
|---|
| 426 | \color none |
|---|
| 427 | la matriz |
|---|
| 428 | \family default |
|---|
| 429 | \series default |
|---|
| 430 | \shape default |
|---|
| 431 | \size default |
|---|
| 432 | \emph default |
|---|
| 433 | \bar default |
|---|
| 434 | \noun default |
|---|
| 435 | \color inherit |
|---|
| 436 | |
|---|
| 437 | \begin_inset Formula \begin{equation} |
|---|
| 438 | \left.L^{\left(k\right)}\right.^{-1}=\frac{1}{\sigma_{k}}L^{-1}\left(\phi^{\left(k\right)},\theta^{\left(k\right)},m_{k}\right)\end{equation} |
|---|
| 439 | |
|---|
| 440 | \end_inset |
|---|
| 441 | |
|---|
| 442 | |
|---|
| 443 | \family roman |
|---|
| 444 | \series medium |
|---|
| 445 | \shape up |
|---|
| 446 | \size normal |
|---|
| 447 | \emph off |
|---|
| 448 | \bar no |
|---|
| 449 | \noun off |
|---|
| 450 | \color none |
|---|
| 451 | de descomposición simétrica de la matriz de covarianzas del modelo ARMA |
|---|
| 452 | \family default |
|---|
| 453 | \series default |
|---|
| 454 | \shape default |
|---|
| 455 | \size default |
|---|
| 456 | \emph default |
|---|
| 457 | \bar default |
|---|
| 458 | \noun default |
|---|
| 459 | \color inherit |
|---|
| 460 | |
|---|
| 461 | \begin_inset Foot |
|---|
| 462 | status open |
|---|
| 463 | |
|---|
| 464 | \begin_layout Standard |
|---|
| 465 | Más detalles en |
|---|
| 466 | \begin_inset LatexCommand ref |
|---|
| 467 | reference "sub:Condicionamiento-a-los-ARMA" |
|---|
| 468 | |
|---|
| 469 | \end_inset |
|---|
| 470 | |
|---|
| 471 | |
|---|
| 472 | \end_layout |
|---|
| 473 | |
|---|
| 474 | \end_inset |
|---|
| 475 | |
|---|
| 476 | . |
|---|
| 477 | Si se premultiplican por ella el output e input filtrados y diferenciados |
|---|
| 478 | \family roman |
|---|
| 479 | \series medium |
|---|
| 480 | \shape up |
|---|
| 481 | \size normal |
|---|
| 482 | \emph off |
|---|
| 483 | \bar no |
|---|
| 484 | \noun off |
|---|
| 485 | \color none |
|---|
| 486 | |
|---|
| 487 | \family default |
|---|
| 488 | \series default |
|---|
| 489 | \shape default |
|---|
| 490 | \size default |
|---|
| 491 | \emph default |
|---|
| 492 | \bar default |
|---|
| 493 | \noun default |
|---|
| 494 | \color inherit |
|---|
| 495 | |
|---|
| 496 | \begin_inset Formula \begin{equation} |
|---|
| 497 | \begin{array}{c} |
|---|
| 498 | Y^{'\left(k\right)}=\left.L^{\left(k\right)}\right.^{-1}\triangle^{\left(k\right)}\check{Y}^{\left(k\right)}\\ |
|---|
| 499 | X^{'\left(k\right)}=\left.L^{\left(k\right)}\right.^{-1}\triangle^{\left(k\right)}\check{X}^{\left(k\right)}\end{array}\end{equation} |
|---|
| 500 | |
|---|
| 501 | \end_inset |
|---|
| 502 | |
|---|
| 503 | se obtiene la expresión del segmento de regresión lineal estandarizada |
|---|
| 504 | \end_layout |
|---|
| 505 | |
|---|
| 506 | \begin_layout Standard |
|---|
| 507 | \begin_inset Formula \begin{equation} |
|---|
| 508 | \begin{array}{c} |
|---|
| 509 | Y^{'\left(k\right)}=X^{'\left(k\right)}\check{\beta}+\epsilon^{\left(k\right)}\\ |
|---|
| 510 | \epsilon^{\left(k\right)}\sim N\left(0,I_{m_{k}}\right)\end{array}\end{equation} |
|---|
| 511 | |
|---|
| 512 | \end_inset |
|---|
| 513 | |
|---|
| 514 | donde |
|---|
| 515 | \begin_inset Formula $\epsilon^{\left(k\right)}=\frac{1}{\sigma_{k}}e^{\left(k\right)}\in\mathbb{R}^{m_{k}}$ |
|---|
| 516 | \end_inset |
|---|
| 517 | |
|---|
| 518 | son los residuos estandarizados del segmento. |
|---|
| 519 | \end_layout |
|---|
| 520 | |
|---|
| 521 | \begin_layout Standard |
|---|
| 522 | Si se definen de forma conjunta para todos los segmentos de regresión, los |
|---|
| 523 | vectores de output y residuos conjuntos y la matriz conjunta de inputs, |
|---|
| 524 | |
|---|
| 525 | \begin_inset Formula \begin{equation} |
|---|
| 526 | \begin{array}{c} |
|---|
| 527 | \left.Y^{'}\right.^{T}=\left(\left.Y^{'\left(1\right)}\right.^{T},\ldots,\left.Y^{'\left(K\right)}\right.^{T}\right)\\ |
|---|
| 528 | \epsilon^{T}=\left(\epsilon^{\left(1\right)T},\ldots,\epsilon^{\left(K\right)T}\right)\\ |
|---|
| 529 | X^{'}=\left(X^{'(1)},\ldots,X^{'(K)}\right)\end{array}\end{equation} |
|---|
| 530 | |
|---|
| 531 | \end_inset |
|---|
| 532 | |
|---|
| 533 | se obtiene la regresión lineal principal conjunta del modelo |
|---|
| 534 | \end_layout |
|---|
| 535 | |
|---|
| 536 | \begin_layout Standard |
|---|
| 537 | \begin_inset Formula \begin{equation} |
|---|
| 538 | \begin{array}{c} |
|---|
| 539 | Y^{'}=X^{'}\cdot\check{\beta}^{T}+\epsilon\\ |
|---|
| 540 | \epsilon\sim N\left(0,I_{m}\right)\\ |
|---|
| 541 | m={\displaystyle \sum_{k=1}^{K}m_{k}}\end{array}\end{equation} |
|---|
| 542 | |
|---|
| 543 | \end_inset |
|---|
| 544 | |
|---|
| 545 | donde el vector conjunto de parámetros estará sujeto opcionalmente a un |
|---|
| 546 | sistema de inecuaciones lineales arbirarias de la forma |
|---|
| 547 | \end_layout |
|---|
| 548 | |
|---|
| 549 | \begin_layout Standard |
|---|
| 550 | \begin_inset Formula \begin{equation} |
|---|
| 551 | \begin{array}{c} |
|---|
| 552 | C\cdot\check{\beta}\leq c\end{array}\end{equation} |
|---|
| 553 | |
|---|
| 554 | \end_inset |
|---|
| 555 | |
|---|
| 556 | siendo |
|---|
| 557 | \begin_inset Formula $C\in\mathbb{R}^{\rho\times n}$ |
|---|
| 558 | \end_inset |
|---|
| 559 | |
|---|
| 560 | la matriz de coeficientes de restricción y |
|---|
| 561 | \begin_inset Formula $c\in\mathbb{R}^{\rho}$ |
|---|
| 562 | \end_inset |
|---|
| 563 | |
|---|
| 564 | el vector de frontera, ambos conocidos y fijos |
|---|
| 565 | \begin_inset Foot |
|---|
| 566 | status open |
|---|
| 567 | |
|---|
| 568 | \begin_layout Standard |
|---|
| 569 | Más detalles en |
|---|
| 570 | \begin_inset LatexCommand ref |
|---|
| 571 | reference "sub:LinearBlock_Antecedentes" |
|---|
| 572 | |
|---|
| 573 | \end_inset |
|---|
| 574 | |
|---|
| 575 | |
|---|
| 576 | \end_layout |
|---|
| 577 | |
|---|
| 578 | \end_inset |
|---|
| 579 | |
|---|
| 580 | |
|---|
| 581 | \end_layout |
|---|
| 582 | |
|---|
| 583 | \begin_layout Standard |
|---|
| 584 | En resumen, es posible clasificar los sÃmbolos empleados asegún su papel |
|---|
| 585 | en la simulación |
|---|
| 586 | \end_layout |
|---|
| 587 | |
|---|
| 588 | \begin_layout Itemize |
|---|
| 589 | |
|---|
| 590 | \emph on |
|---|
| 591 | Datos |
|---|
| 592 | \emph default |
|---|
| 593 | : vienen dados en la propia definición del modelo y son |
|---|
| 594 | \begin_inset Formula $C,c,Y^{\left(k\right)},X^{\left(k\right)},\triangle^{\left(k\right)},\delta^{v^{\left(k\right)}},\delta^{u^{\left(k\right)}}$ |
|---|
| 595 | \end_inset |
|---|
| 596 | |
|---|
| 597 | y algunos |
|---|
| 598 | \begin_inset Formula $\sigma_{k}^{2}$ |
|---|
| 599 | \end_inset |
|---|
| 600 | |
|---|
| 601 | prefijados |
|---|
| 602 | \end_layout |
|---|
| 603 | |
|---|
| 604 | \begin_layout Itemize |
|---|
| 605 | |
|---|
| 606 | \emph on |
|---|
| 607 | Parámetros |
|---|
| 608 | \emph default |
|---|
| 609 | : son los valores que se quieren simular para poder hacer luego inferencia |
|---|
| 610 | bayesiana sobre ellos o sobre funciones de ellos, lo cual incluye al resto |
|---|
| 611 | de los |
|---|
| 612 | \begin_inset Formula $\sigma_{k}^{2}$ |
|---|
| 613 | \end_inset |
|---|
| 614 | |
|---|
| 615 | no prefijados y a |
|---|
| 616 | \begin_inset Formula $\beta,\alpha^{\left(k\right)},\phi^{\left(k\right)},\theta^{\left(k\right)},v^{\left(k\right)},u^{\left(k\right)}$ |
|---|
| 617 | \end_inset |
|---|
| 618 | |
|---|
| 619 | |
|---|
| 620 | \end_layout |
|---|
| 621 | |
|---|
| 622 | \begin_layout Itemize |
|---|
| 623 | |
|---|
| 624 | \emph on |
|---|
| 625 | Ruidos |
|---|
| 626 | \emph default |
|---|
| 627 | : son variables aleatorias cuya distribución se propone como hipótesis del |
|---|
| 628 | modelo y son |
|---|
| 629 | \begin_inset Formula $w^{\left(k\right)},z^{\left(k\right)},e^{\left(k\right)},\epsilon^{\left(k\right)}$ |
|---|
| 630 | \end_inset |
|---|
| 631 | |
|---|
| 632 | |
|---|
| 633 | \end_layout |
|---|
| 634 | |
|---|
| 635 | \begin_layout Itemize |
|---|
| 636 | |
|---|
| 637 | \emph on |
|---|
| 638 | Filtros |
|---|
| 639 | \emph default |
|---|
| 640 | : son variables auxiliares que se hacen necesarias durante la simulación |
|---|
| 641 | de las diferentes componentes, como |
|---|
| 642 | \begin_inset Formula $\check{Y}^{\left(k\right)},\check{X}^{\left(k\right)},Y^{'\left(k\right)},X^{'\left(k\right)}$ |
|---|
| 643 | \end_inset |
|---|
| 644 | |
|---|
| 645 | y otras que irán surgiendo en la explicación detallada de cada bloque. |
|---|
| 646 | \end_layout |
|---|
| 647 | |
|---|
| 648 | \begin_layout Section |
|---|
| 649 | Extensiones de la clase de modelos BSR |
|---|
| 650 | \end_layout |
|---|
| 651 | |
|---|
| 652 | \begin_layout Standard |
|---|
| 653 | Esta clase de modelos recién presentada puede ser ampliada mediante comoposición |
|---|
| 654 | con otros modelos de tipo BSR o de otro tipo, como de bloques no lineales, |
|---|
| 655 | heterocedasticidad, etc. |
|---|
| 656 | De hecho, tanto la parte ARIMA como los omitidos podrÃan haber sido considerado |
|---|
| 657 | s como extensiones de la clase de modelos lineales, pero la estrecha relación |
|---|
| 658 | entre todos estos bloques y las múltiples implicaciones entre sus respectivos |
|---|
| 659 | filtrados hacen que sean más eficientes los algoritmos si se consideran |
|---|
| 660 | dentro de un mismo marco. |
|---|
| 661 | Cuando quepa duda de sobre qué se está hablando se especificará bien la |
|---|
| 662 | clase básica de modelos BSR o bien la clase extendida de modelos BSR. |
|---|
| 663 | \end_layout |
|---|
| 664 | |
|---|
| 665 | \begin_layout Section |
|---|
| 666 | \begin_inset LatexCommand label |
|---|
| 667 | name "sub:El-modelo-jerárquico" |
|---|
| 668 | |
|---|
| 669 | \end_inset |
|---|
| 670 | |
|---|
| 671 | El modelo jerárquico lineal HLM |
|---|
| 672 | \end_layout |
|---|
| 673 | |
|---|
| 674 | \begin_layout Standard |
|---|
| 675 | A continuación se verá cómo el modelo jerárquico se puede expresar como |
|---|
| 676 | un caso particular de la clase de modelos recién descrita. |
|---|
| 677 | \end_layout |
|---|
| 678 | |
|---|
| 679 | \begin_layout Standard |
|---|
| 680 | Los nodos observacionales admitirÃan opcionalmente parte ARIMA, datos omitidos |
|---|
| 681 | y filtros no lineales. |
|---|
| 682 | Todos los parámetros de este nivel son propiedad exclusiva de cada nodo |
|---|
| 683 | observacional, incluidos los del bloque lineal, por lo que no hay ningún |
|---|
| 684 | parámetro en común entre nodos observacionales. |
|---|
| 685 | \end_layout |
|---|
| 686 | |
|---|
| 687 | \begin_layout Standard |
|---|
| 688 | La ecuación tÃpica de un nodo latente es de la forma |
|---|
| 689 | \begin_inset Formula \begin{equation} |
|---|
| 690 | \begin{array}{c} |
|---|
| 691 | \vartheta\sim N\left(X\cdot\eta,\sigma^{2}I\right)\end{array}\end{equation} |
|---|
| 692 | |
|---|
| 693 | \end_inset |
|---|
| 694 | |
|---|
| 695 | |
|---|
| 696 | \end_layout |
|---|
| 697 | |
|---|
| 698 | \begin_layout Standard |
|---|
| 699 | El sÃmbolo |
|---|
| 700 | \begin_inset Formula $\eta$ |
|---|
| 701 | \end_inset |
|---|
| 702 | |
|---|
| 703 | de los hiperparámetros del nodo latente formará parte del bloque lineal |
|---|
| 704 | |
|---|
| 705 | \begin_inset Formula $\beta$ |
|---|
| 706 | \end_inset |
|---|
| 707 | |
|---|
| 708 | general del modelo y el sÃmbolo |
|---|
| 709 | \begin_inset Formula $\vartheta$ |
|---|
| 710 | \end_inset |
|---|
| 711 | |
|---|
| 712 | es un vector de parámetros del bloque lineal de nodos previamente definidos, |
|---|
| 713 | es decir, bien parámetros |
|---|
| 714 | \begin_inset Formula $\beta$ |
|---|
| 715 | \end_inset |
|---|
| 716 | |
|---|
| 717 | o |
|---|
| 718 | \begin_inset Formula $\alpha$ |
|---|
| 719 | \end_inset |
|---|
| 720 | |
|---|
| 721 | |
|---|
| 722 | \size larger |
|---|
| 723 | \color red |
|---|
| 724 | |
|---|
| 725 | \size default |
|---|
| 726 | \color inherit |
|---|
| 727 | de nodos observacionales, o bien hiperparámetros |
|---|
| 728 | \begin_inset Formula $\eta$ |
|---|
| 729 | \end_inset |
|---|
| 730 | |
|---|
| 731 | de nodos latentes previos. |
|---|
| 732 | La varianza |
|---|
| 733 | \begin_inset Formula $\sigma^{2}$ |
|---|
| 734 | \end_inset |
|---|
| 735 | |
|---|
| 736 | puede ser un valor conocido dado o bien un parámetro a estimar, aunque |
|---|
| 737 | esto último puede dar problemas de convergencia si no hay suficiente superficie |
|---|
| 738 | de respuesta, es decir si hay pocas observaciones con respecto al número |
|---|
| 739 | de variables. |
|---|
| 740 | |
|---|
| 741 | \end_layout |
|---|
| 742 | |
|---|
| 743 | \begin_layout Standard |
|---|
| 744 | Si se reescribe la ecuación del nodo latente de esta forma |
|---|
| 745 | \begin_inset Formula \begin{equation} |
|---|
| 746 | \begin{array}{c} |
|---|
| 747 | 0=\vartheta-X\cdot\eta+e\\ |
|---|
| 748 | e\sim N\left(0,\sigma^{2}I\right)\end{array}\end{equation} |
|---|
| 749 | |
|---|
| 750 | \end_inset |
|---|
| 751 | |
|---|
| 752 | es decir, si se define el vector de output como |
|---|
| 753 | \begin_inset Formula $0$ |
|---|
| 754 | \end_inset |
|---|
| 755 | |
|---|
| 756 | , entonces se puede escribir como un segmento de regresión de BSR muy simple, |
|---|
| 757 | sin parte ARIMA, ni datos omitidos ni filtro no lineal. |
|---|
| 758 | \end_layout |
|---|
| 759 | |
|---|
| 760 | \begin_layout Standard |
|---|
| 761 | La ecuación tÃpica de un nodo a priori es de la forma |
|---|
| 762 | \begin_inset Formula \begin{equation} |
|---|
| 763 | \begin{array}{c} |
|---|
| 764 | \vartheta\sim N\left(\mu,\sigma^{2}I\right)\end{array}\end{equation} |
|---|
| 765 | |
|---|
| 766 | \end_inset |
|---|
| 767 | |
|---|
| 768 | |
|---|
| 769 | \end_layout |
|---|
| 770 | |
|---|
| 771 | \begin_layout Standard |
|---|
| 772 | El sÃmbolo |
|---|
| 773 | \begin_inset Formula $\vartheta$ |
|---|
| 774 | \end_inset |
|---|
| 775 | |
|---|
| 776 | es un vector de parámetros del bloque lineal de nodos previamente definidos, |
|---|
| 777 | es decir, bien parámetros |
|---|
| 778 | \begin_inset Formula $\beta$ |
|---|
| 779 | \end_inset |
|---|
| 780 | |
|---|
| 781 | o |
|---|
| 782 | \begin_inset Formula $\alpha$ |
|---|
| 783 | \end_inset |
|---|
| 784 | |
|---|
| 785 | |
|---|
| 786 | \size larger |
|---|
| 787 | \color red |
|---|
| 788 | |
|---|
| 789 | \size default |
|---|
| 790 | \color inherit |
|---|
| 791 | de nodo observacionales , o bien hiperparámetros |
|---|
| 792 | \begin_inset Formula $\eta$ |
|---|
| 793 | \end_inset |
|---|
| 794 | |
|---|
| 795 | de nodos latentes previos. |
|---|
| 796 | La varianza |
|---|
| 797 | \begin_inset Formula $\sigma^{2}$ |
|---|
| 798 | \end_inset |
|---|
| 799 | |
|---|
| 800 | suele ser un valor conocido dado en este tipo de nodos, aunque perfectamente |
|---|
| 801 | podrÃa ser un parámetro a estimar, con los mismos problemas referidos para |
|---|
| 802 | los nodos latentes. |
|---|
| 803 | \end_layout |
|---|
| 804 | |
|---|
| 805 | \begin_layout Standard |
|---|
| 806 | Si se reescribe la ecuación del nodo latente de esta forma |
|---|
| 807 | \begin_inset Formula \begin{equation} |
|---|
| 808 | \begin{array}{c} |
|---|
| 809 | \mu=\vartheta+e\\ |
|---|
| 810 | e\sim N\left(0,\sigma^{2}I\right)\end{array}\end{equation} |
|---|
| 811 | |
|---|
| 812 | \end_inset |
|---|
| 813 | |
|---|
| 814 | es decir, si se define el vector de output como |
|---|
| 815 | \begin_inset Formula $\mu$ |
|---|
| 816 | \end_inset |
|---|
| 817 | |
|---|
| 818 | , entonces se puede escribir como un segmento de regresión de BSR muy simple, |
|---|
| 819 | sin parte ARIMA, ni datos omitidos ni filtro no lineal. |
|---|
| 820 | \end_layout |
|---|
| 821 | |
|---|
| 822 | \begin_layout Standard |
|---|
| 823 | El bloque lineal de un modelo HLM tendrÃa pues la siguiente forma de regresión |
|---|
| 824 | lineal con residuos independientes |
|---|
| 825 | \end_layout |
|---|
| 826 | |
|---|
| 827 | \begin_layout Standard |
|---|
| 828 | \begin_inset Formula \begin{equation} |
|---|
| 829 | \left(\begin{array}{c} |
|---|
| 830 | Y^{O}\\ |
|---|
| 831 | Y^{L}\\ |
|---|
| 832 | Y^{P}\end{array}\right)=\left(\begin{array}{cc} |
|---|
| 833 | X^{O} & 0\\ |
|---|
| 834 | \nabla_{O}^{L} & -X^{L}\\ |
|---|
| 835 | \nabla_{O}^{P} & \nabla_{L}^{P}\end{array}\right)\cdot\left(\begin{array}{c} |
|---|
| 836 | \beta\\ |
|---|
| 837 | \vartheta\end{array}\right)+\left(\begin{array}{c} |
|---|
| 838 | e^{O}\\ |
|---|
| 839 | e^{L}\\ |
|---|
| 840 | Ye^{P}\end{array}\right)\end{equation} |
|---|
| 841 | |
|---|
| 842 | \end_inset |
|---|
| 843 | |
|---|
| 844 | |
|---|
| 845 | \begin_inset Formula \begin{equation} |
|---|
| 846 | Y=\left(\begin{array}{c} |
|---|
| 847 | Y^{O}\\ |
|---|
| 848 | Y^{L}\\ |
|---|
| 849 | Y^{P}\end{array}\right)=\left(\begin{array}{c} |
|---|
| 850 | Y^{O_{1}}\\ |
|---|
| 851 | \vdots\\ |
|---|
| 852 | Y^{O_{K_{O}}}\\ |
|---|
| 853 | 0\\ |
|---|
| 854 | \vdots\\ |
|---|
| 855 | 0\\ |
|---|
| 856 | \mu^{P_{1}}\\ |
|---|
| 857 | \vdots\\ |
|---|
| 858 | \mu^{P_{K_{P}}}\end{array}\right)\end{equation} |
|---|
| 859 | |
|---|
| 860 | \end_inset |
|---|
| 861 | |
|---|
| 862 | |
|---|
| 863 | \end_layout |
|---|
| 864 | |
|---|
| 865 | \begin_layout Standard |
|---|
| 866 | \begin_inset Formula \begin{equation} |
|---|
| 867 | X=\left(\begin{array}{cc} |
|---|
| 868 | X^{O} & 0\\ |
|---|
| 869 | \nabla_{O}^{L} & X^{L}\\ |
|---|
| 870 | \nabla_{O}^{P} & \nabla_{L}^{P}\end{array}\right)=\left(\begin{array}{cccccc} |
|---|
| 871 | X^{O_{1}} & \cdots & 0 & 0 & \cdots & 0\\ |
|---|
| 872 | \vdots & \ddots & \vdots & \vdots & & \vdots\\ |
|---|
| 873 | 0 & \cdots & X^{O_{K_{O}}} & 0 & \cdots & 0\\ |
|---|
| 874 | \nabla_{O_{1}}^{L_{1}} & \cdots & \nabla_{O_{K_{O}}}^{L_{1}} & -X^{L_{1}} & \cdots & 0\\ |
|---|
| 875 | \vdots & & \vdots & \vdots & \ddots & \vdots\\ |
|---|
| 876 | \nabla_{O_{1}}^{L_{K_{L}}} & \cdots & \nabla_{O_{K_{O}}}^{L_{S_{L}}} & 0 & \cdots & -X^{L_{K_{L}}}\\ |
|---|
| 877 | \nabla_{O_{1}}^{P_{1}} & \cdots & \nabla_{O_{K_{O}}}^{P_{1}} & \nabla_{L_{1}}^{P_{1}} & \cdots & \nabla_{L_{K_{L}}}^{P_{1}}\\ |
|---|
| 878 | \vdots & & \vdots & \vdots & & \vdots\\ |
|---|
| 879 | \nabla_{O_{1}}^{P_{K_{P}}} & \cdots & \nabla_{O_{K_{O}}}^{P_{K_{P}}} & \nabla_{L_{1}}^{P_{K_{P}}} & \cdots & \nabla_{L_{K_{L}}}^{P_{K_{P}}}\end{array}\right)\label{eq:hlm_X_blocks}\end{equation} |
|---|
| 880 | |
|---|
| 881 | \end_inset |
|---|
| 882 | |
|---|
| 883 | |
|---|
| 884 | \begin_inset Formula \begin{equation} |
|---|
| 885 | e=\left(\begin{array}{c} |
|---|
| 886 | e^{O}\\ |
|---|
| 887 | e^{L}\\ |
|---|
| 888 | e^{P}\end{array}\right)=\left(\begin{array}{c} |
|---|
| 889 | e^{O_{1}}\\ |
|---|
| 890 | \vdots\\ |
|---|
| 891 | e^{O_{K_{O}}}\\ |
|---|
| 892 | e^{L_{1}}\\ |
|---|
| 893 | \vdots\\ |
|---|
| 894 | e^{L_{K_{L}}}\\ |
|---|
| 895 | e^{P_{1}}\\ |
|---|
| 896 | \vdots\\ |
|---|
| 897 | e^{P_{K_{P}}}\end{array}\right)\wedge e^{k}\sim N\left(0,\sigma_{k}^{2}I\right)\end{equation} |
|---|
| 898 | |
|---|
| 899 | \end_inset |
|---|
| 900 | |
|---|
| 901 | |
|---|
| 902 | \end_layout |
|---|
| 903 | |
|---|
| 904 | \begin_layout Standard |
|---|
| 905 | Los Ãndices |
|---|
| 906 | \begin_inset Formula $O_{1}=1,\ldots,O_{K_{O}}$ |
|---|
| 907 | \end_inset |
|---|
| 908 | |
|---|
| 909 | se refieren a los segmentos de regresión correspondientes a los nodos observaci |
|---|
| 910 | onales, |
|---|
| 911 | \begin_inset Formula $L_{1}=O_{K_{O}}+1,\ldots,L_{K_{L}}=O_{K_{O}}+O_{K_{L}}$ |
|---|
| 912 | \end_inset |
|---|
| 913 | |
|---|
| 914 | a los latentes y |
|---|
| 915 | \begin_inset Formula $P_{1}=O_{K_{O}}+O_{K_{L}+1},\ldots,P_{K_{P}}=K$ |
|---|
| 916 | \end_inset |
|---|
| 917 | |
|---|
| 918 | , de forma que todos los segmentos existentes son |
|---|
| 919 | \begin_inset Formula $K=K_{O}+K_{L}+K_{P}$ |
|---|
| 920 | \end_inset |
|---|
| 921 | |
|---|
| 922 | . |
|---|
| 923 | \end_layout |
|---|
| 924 | |
|---|
| 925 | \begin_layout Standard |
|---|
| 926 | Las dimensiones de los bloques son las siguientes |
|---|
| 927 | \end_layout |
|---|
| 928 | |
|---|
| 929 | \begin_layout Standard |
|---|
| 930 | \begin_inset Formula \begin{equation} |
|---|
| 931 | \begin{array}{c} |
|---|
| 932 | X^{O_{j}}\in\mathbb{R}^{m_{O_{j}}\times n_{O_{j}}}\\ |
|---|
| 933 | X^{L_{j}}\in\mathbb{R}^{m_{L_{j}}\times n_{L_{j}}}\\ |
|---|
| 934 | \nabla_{i}^{L_{j}}\in\mathbb{R}^{m_{L_{j}}\times n_{O_{i}}}\\ |
|---|
| 935 | \nabla_{i}^{P_{j}}\in\mathbb{R}^{m_{P_{j}}\times n_{O_{i}}}\\ |
|---|
| 936 | n_{O}={\displaystyle \sum_{k=1}^{K_{O}}n_{O_{k}}}\wedge n_{L}={\displaystyle \sum_{k=1}^{K_{L}}n_{L_{k}}}\wedge n=n_{O}+n_{L}\\ |
|---|
| 937 | m_{O}={\displaystyle \sum_{k=1}^{K_{O}}m_{O_{k}}}\wedge m_{L}={\displaystyle \sum_{k=1}^{K_{L}}m_{L_{k}}}\wedge m_{P}={\displaystyle \sum_{k=1}^{K_{P}}m_{P_{k}}}\wedge m=m_{O}+m_{L}+m_{P}\end{array}\end{equation} |
|---|
| 938 | |
|---|
| 939 | \end_inset |
|---|
| 940 | |
|---|
| 941 | |
|---|
| 942 | \end_layout |
|---|
| 943 | |
|---|
| 944 | \begin_layout Standard |
|---|
| 945 | Las matrices de coeficientes que ligan los nodos observacionales con los |
|---|
| 946 | latentes |
|---|
| 947 | \begin_inset Formula $\nabla_{O_{j}}^{L_{i}}$ |
|---|
| 948 | \end_inset |
|---|
| 949 | |
|---|
| 950 | , al igual que las de |
|---|
| 951 | \begin_inset Formula $\nabla_{O_{j}}^{P_{i}}$ |
|---|
| 952 | \end_inset |
|---|
| 953 | |
|---|
| 954 | y los |
|---|
| 955 | \begin_inset Formula $\nabla_{L_{j}}^{P_{i}}$ |
|---|
| 956 | \end_inset |
|---|
| 957 | |
|---|
| 958 | , son todas ellas diagonales con valores 1 ó 0 y estan conjuntamente restringida |
|---|
| 959 | s a que sólo una de entre todas ellas puede tener un 1 en una fila dada, |
|---|
| 960 | y lo mismo para una columna especÃfica. |
|---|
| 961 | Es decir, una variable sólo puede estar relacionada con una sola ecuación |
|---|
| 962 | de un nodo, bien latente bien a priori. |
|---|
| 963 | Es decir, el bloque de |
|---|
| 964 | \begin_inset Formula $X$ |
|---|
| 965 | \end_inset |
|---|
| 966 | |
|---|
| 967 | |
|---|
| 968 | \begin_inset Formula \begin{equation} |
|---|
| 969 | \nabla_{O}^{*}=\left(\begin{array}{c} |
|---|
| 970 | \nabla_{O}^{L}\\ |
|---|
| 971 | \nabla_{O}^{P}\end{array}\right)\end{equation} |
|---|
| 972 | |
|---|
| 973 | \end_inset |
|---|
| 974 | |
|---|
| 975 | tiene todas las celdas nulas excepto un máximo de |
|---|
| 976 | \begin_inset Formula $n_{O}$ |
|---|
| 977 | \end_inset |
|---|
| 978 | |
|---|
| 979 | celdas iguales a 1. |
|---|
| 980 | Análogamente el bloque |
|---|
| 981 | \begin_inset Formula \begin{equation} |
|---|
| 982 | \nabla_{*}^{P}=\left(\begin{array}{cc} |
|---|
| 983 | \nabla_{O}^{P} & \nabla_{L}^{P}\end{array}\right)\end{equation} |
|---|
| 984 | |
|---|
| 985 | \end_inset |
|---|
| 986 | |
|---|
| 987 | tiene todas las celdas nulas excepto un máximo de |
|---|
| 988 | \begin_inset Formula $n=n_{O}+n_{L}$ |
|---|
| 989 | \end_inset |
|---|
| 990 | |
|---|
| 991 | celdas iguales a 1; y al mismo tiempo |
|---|
| 992 | \begin_inset Formula $\nabla_{L}^{P}$ |
|---|
| 993 | \end_inset |
|---|
| 994 | |
|---|
| 995 | tiene todas las celdas nulas excepto un máximo de |
|---|
| 996 | \begin_inset Formula $n_{L}$ |
|---|
| 997 | \end_inset |
|---|
| 998 | |
|---|
| 999 | . |
|---|
| 1000 | La finalidad de estas restricciones es que se asegure que no existen ecuaciones |
|---|
| 1001 | incongruentes entre sà para un mismo parámetro hijo. |
|---|
| 1002 | \end_layout |
|---|
| 1003 | |
|---|
| 1004 | \begin_layout Standard |
|---|
| 1005 | Se pone ahora de manifiesto la estructura sparse el modelo HLM de la que |
|---|
| 1006 | se venÃa hablando anteriormente. |
|---|
| 1007 | \end_layout |
|---|
| 1008 | |
|---|
| 1009 | \begin_layout Section |
|---|
| 1010 | \begin_inset LatexCommand label |
|---|
| 1011 | name "sec:El-modelo-jerárquico-combinado" |
|---|
| 1012 | |
|---|
| 1013 | \end_inset |
|---|
| 1014 | |
|---|
| 1015 | El modelo jerárquico lineal de output combinado HLM-OC |
|---|
| 1016 | \end_layout |
|---|
| 1017 | |
|---|
| 1018 | \begin_layout Standard |
|---|
| 1019 | Una generalización del modelo jerárquico que aparece de forma bastante natural |
|---|
| 1020 | es aquella en la que el output de un nodo latente o a priori no es directamente |
|---|
| 1021 | un único parámetro de un nodo hijo sino que puede ser cualquier combinación |
|---|
| 1022 | lineal de parámetros hijo. |
|---|
| 1023 | La estructura matricial de bloques es exactamente igual que la expresada |
|---|
| 1024 | en la ecuación |
|---|
| 1025 | \begin_inset LatexCommand ref |
|---|
| 1026 | reference "eq:hlm_X_blocks" |
|---|
| 1027 | |
|---|
| 1028 | \end_inset |
|---|
| 1029 | |
|---|
| 1030 | , sólo que ahora las matrices de bloque |
|---|
| 1031 | \begin_inset Formula $\nabla_{*}^{*}$ |
|---|
| 1032 | \end_inset |
|---|
| 1033 | |
|---|
| 1034 | no tienen porqué ser de valores 1 ó 0, sino que pueden tener valores arbitrario |
|---|
| 1035 | s, aunque eso sÃ, se mantienen las mismas restricciones entre ellas, es |
|---|
| 1036 | decir, si un parámetro aparece en uno de esos bloques no deberÃa aparecer |
|---|
| 1037 | en ningún otro, y además deben ser todas ellas de rango completo igual |
|---|
| 1038 | al número de filas de cada una. |
|---|
| 1039 | \end_layout |
|---|
| 1040 | |
|---|
| 1041 | \begin_layout Standard |
|---|
| 1042 | La ecuación del nodo latente con output combinado serÃa de la forma |
|---|
| 1043 | \begin_inset Formula \begin{equation} |
|---|
| 1044 | \begin{array}{c} |
|---|
| 1045 | \nabla\cdot\vartheta\sim N\left(X\cdot\eta,\sigma^{2}I\right)\end{array}\end{equation} |
|---|
| 1046 | |
|---|
| 1047 | \end_inset |
|---|
| 1048 | |
|---|
| 1049 | reescribible como |
|---|
| 1050 | \begin_inset Formula \begin{equation} |
|---|
| 1051 | \begin{array}{c} |
|---|
| 1052 | 0=\nabla\cdot\vartheta-X\cdot\eta+e\\ |
|---|
| 1053 | e\sim N\left(0,\sigma^{2}I\right)\end{array}\end{equation} |
|---|
| 1054 | |
|---|
| 1055 | \end_inset |
|---|
| 1056 | |
|---|
| 1057 | |
|---|
| 1058 | \end_layout |
|---|
| 1059 | |
|---|
| 1060 | \begin_layout Standard |
|---|
| 1061 | La ecuación del nodo a priori con output combinado serÃa de la forma |
|---|
| 1062 | \begin_inset Formula \begin{equation} |
|---|
| 1063 | \begin{array}{c} |
|---|
| 1064 | \nabla\cdot\vartheta\sim N\left(\mu,\sigma^{2}I\right)\end{array}\end{equation} |
|---|
| 1065 | |
|---|
| 1066 | \end_inset |
|---|
| 1067 | |
|---|
| 1068 | reescribible como |
|---|
| 1069 | \begin_inset Formula \begin{equation} |
|---|
| 1070 | \begin{array}{c} |
|---|
| 1071 | \mu=\nabla\cdot\vartheta-X\cdot\eta+e\\ |
|---|
| 1072 | e\sim N\left(0,\sigma^{2}I\right)\end{array}\end{equation} |
|---|
| 1073 | |
|---|
| 1074 | \end_inset |
|---|
| 1075 | |
|---|
| 1076 | |
|---|
| 1077 | \end_layout |
|---|
| 1078 | |
|---|
| 1079 | \begin_layout Standard |
|---|
| 1080 | Resulta evidente que no deja de ser un caso particular de la clase de modelos |
|---|
| 1081 | de BSR, e incluso lo seguirÃa siendo sin cumplir esas restricciones, las |
|---|
| 1082 | cuales tienen por único objetivo el asegurar que los modelos son congruentes. |
|---|
| 1083 | A veces, por comodidad, se relajará la notación y se llamará simplemente |
|---|
| 1084 | modelo jerárquico a esta generalización. |
|---|
| 1085 | \end_layout |
|---|
| 1086 | |
|---|
| 1087 | \begin_layout Section |
|---|
| 1088 | Simulación de Gibbs |
|---|
| 1089 | \end_layout |
|---|
| 1090 | |
|---|
| 1091 | \begin_layout Standard |
|---|
| 1092 | El método de simulación de Gibbs |
|---|
| 1093 | \begin_inset Foot |
|---|
| 1094 | status open |
|---|
| 1095 | |
|---|
| 1096 | \begin_layout Standard |
|---|
| 1097 | Ver |
|---|
| 1098 | \begin_inset LatexCommand cite |
|---|
| 1099 | key "Bayesian-Data-Analysis" |
|---|
| 1100 | |
|---|
| 1101 | \end_inset |
|---|
| 1102 | |
|---|
| 1103 | |
|---|
| 1104 | \end_layout |
|---|
| 1105 | |
|---|
| 1106 | \end_inset |
|---|
| 1107 | |
|---|
| 1108 | consiste en tomar cada variable o bloque de variables del cual se conoce |
|---|
| 1109 | un método de simulación para su distribución condicionada al resto de variables |
|---|
| 1110 | del modelo. |
|---|
| 1111 | Luego se actualizan los valores de ese bloque y toda aquella información |
|---|
| 1112 | auxiliar derivada de las mismas para pasar a simular otro bloque. |
|---|
| 1113 | Existen diversas estrategias para el orden de los bloques: ciclos, secuencias |
|---|
| 1114 | simétricas, selección aleatoria simple, selección de permutaciones aleatorias, |
|---|
| 1115 | etc. |
|---|
| 1116 | EmpÃricamente se ha observado que el mejor orden para esta clase de modelos |
|---|
| 1117 | es el siguiente: |
|---|
| 1118 | \end_layout |
|---|
| 1119 | |
|---|
| 1120 | \begin_layout Enumerate |
|---|
| 1121 | Bloques de output omitidos |
|---|
| 1122 | \end_layout |
|---|
| 1123 | |
|---|
| 1124 | \begin_layout Enumerate |
|---|
| 1125 | Bloques de input omitidos |
|---|
| 1126 | \end_layout |
|---|
| 1127 | |
|---|
| 1128 | \begin_layout Enumerate |
|---|
| 1129 | Bloques ARMA |
|---|
| 1130 | \end_layout |
|---|
| 1131 | |
|---|
| 1132 | \begin_layout Enumerate |
|---|
| 1133 | Bloque de varianzas |
|---|
| 1134 | \end_layout |
|---|
| 1135 | |
|---|
| 1136 | \begin_layout Enumerate |
|---|
| 1137 | Bloque lineal |
|---|
| 1138 | \end_layout |
|---|
| 1139 | |
|---|
| 1140 | \begin_layout Standard |
|---|
| 1141 | La simulación de cada bloque supone una serie de actuaciones sobre ciertas |
|---|
| 1142 | componentes del modelo que se ven afectadas por los cambios en dicho bloque. |
|---|
| 1143 | Por ejemplo, al cambiar los omitidos del output |
|---|
| 1144 | \begin_inset Formula $v^{\left(k\right)}$ |
|---|
| 1145 | \end_inset |
|---|
| 1146 | |
|---|
| 1147 | se modifica el output filtrado |
|---|
| 1148 | \begin_inset Formula $\check{Y}^{\left(k\right)}$ |
|---|
| 1149 | \end_inset |
|---|
| 1150 | |
|---|
| 1151 | y por tanto el diferenciado |
|---|
| 1152 | \begin_inset Formula $Y^{'\left(k\right)}$ |
|---|
| 1153 | \end_inset |
|---|
| 1154 | |
|---|
| 1155 | , y lo mismo le ocurre a éste último si se tocan los parámetros ARMA del |
|---|
| 1156 | output. |
|---|
| 1157 | Es de vital importancia por tanto que estén perfectamente identificados |
|---|
| 1158 | todas las componentes auxiliares que comunican a unos bloques con otros |
|---|
| 1159 | y que el orden de simulación esté perfectamente establecido para que los |
|---|
| 1160 | condicionamientos se propaguen adecuadamente. |
|---|
| 1161 | \end_layout |
|---|
| 1162 | |
|---|
| 1163 | \end_body |
|---|
| 1164 | \end_document |
|---|