| 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 | Diagnosis |
|---|
| 68 | \end_layout |
|---|
| 69 | |
|---|
| 70 | \begin_layout Standard |
|---|
| 71 | Cuando ya se dispone de una cadena de Markov para un modelo comienza la |
|---|
| 72 | etapa de diagnosis que certifique la calidad de los resultados obtenidos |
|---|
| 73 | e informe de la potencia alcanzable por las ulteriores inferencias que |
|---|
| 74 | se puedan extraer de él. |
|---|
| 75 | \end_layout |
|---|
| 76 | |
|---|
| 77 | \begin_layout Section |
|---|
| 78 | \begin_inset LatexCommand label |
|---|
| 79 | name "sub:Convergencia" |
|---|
| 80 | |
|---|
| 81 | \end_inset |
|---|
| 82 | |
|---|
| 83 | Convergencia de la cadena de Markov |
|---|
| 84 | \end_layout |
|---|
| 85 | |
|---|
| 86 | \begin_layout Standard |
|---|
| 87 | Lo primero que hay que comprobar antes de poder hacer ningún otro tipo de |
|---|
| 88 | inferencia es que la cadena de Markov recién construida ha convergido a |
|---|
| 89 | un punto La diagnosis de convergencia debe cerciorarse de que la etapa |
|---|
| 90 | de simulaciones desechadas (burning) ha sido en efecto suficiente para |
|---|
| 91 | asegurar la convergencia del paseo aleatorio hacia la distribución a posteriori. |
|---|
| 92 | Se debe comprobar también que la secuencia simulada para cada parámetros |
|---|
| 93 | no esté pobremente mezclada (poorly mixing) y que no exista una alta correlació |
|---|
| 94 | n en dicha secuencia. |
|---|
| 95 | El paquete CODA de R dispone de métodos de diagnosis de convergencia como |
|---|
| 96 | los de Geweke, Gelman & Rubin, Raftery & Lewis y otros que se describen |
|---|
| 97 | en |
|---|
| 98 | \begin_inset LatexCommand cite |
|---|
| 99 | key "CODA-Convergence-diagnosis-output-analysis" |
|---|
| 100 | |
|---|
| 101 | \end_inset |
|---|
| 102 | |
|---|
| 103 | . |
|---|
| 104 | Los tests más confiables son los que, como el de Gelman & Rubin, toman |
|---|
| 105 | dos o más cadenas creadas a partir de distintos valores iniciales, pero |
|---|
| 106 | son también los más complicados de utilizar y pueden suponer un coste de |
|---|
| 107 | simulación extra muy alto al multiplicar el burning asà como una compleja |
|---|
| 108 | logÃstica informática de procesamiento. |
|---|
| 109 | De los tests de una sola cadena el más completo es el de Raftery & Lewis |
|---|
| 110 | pues da estimaciones bastante aceptables del burning y el thinning. |
|---|
| 111 | \end_layout |
|---|
| 112 | |
|---|
| 113 | \begin_layout Section |
|---|
| 114 | \begin_inset LatexCommand label |
|---|
| 115 | name "sub:Significacion" |
|---|
| 116 | |
|---|
| 117 | \end_inset |
|---|
| 118 | |
|---|
| 119 | Significación de los parámetros |
|---|
| 120 | \end_layout |
|---|
| 121 | |
|---|
| 122 | \begin_layout Standard |
|---|
| 123 | Un parámetro es necesario o significativo en un modelo si realmente el modelo |
|---|
| 124 | con dicho parámetro es mejor que sin él. |
|---|
| 125 | Hay por tanto tantas formas de definir la significación como de comparar |
|---|
| 126 | la calidad de modelos. |
|---|
| 127 | Por otra parte no parece muy eficiente estimar todos los modelos con y |
|---|
| 128 | sin cada uno de los parámetros. |
|---|
| 129 | La medida que se utiliza para medir esta significación es la probabilidad |
|---|
| 130 | de que el parámetro sea cero. |
|---|
| 131 | Cuando la distribución del parámetro es aproximadamente normal esta probabilida |
|---|
| 132 | d se puede medir como el p-value del clásico test de significación de la |
|---|
| 133 | t-Student para una muestra. |
|---|
| 134 | En el caso de BSR se tendrán parámetros cuya distribución marginal a posteriori |
|---|
| 135 | sea normal o normal truncada para los parámetros lineales y de omitidos, |
|---|
| 136 | chi cuadradas para la varianza y otras distribuciones de las que ni siquiera |
|---|
| 137 | se tiene una representación analÃtica, como los parámetros ARMA y los de |
|---|
| 138 | los filtros no lineales. |
|---|
| 139 | Por esta razón se precisa un test de significación más general como es |
|---|
| 140 | el |
|---|
| 141 | \begin_inset LatexCommand htmlurl |
|---|
| 142 | name "One Sample Sign Test" |
|---|
| 143 | target "http://www.alglib.net/statistics/hypothesistesting/signtest.php" |
|---|
| 144 | |
|---|
| 145 | \end_inset |
|---|
| 146 | |
|---|
| 147 | que es el de mayor potencia dentro de los tests no paramétricos válidos |
|---|
| 148 | para cualquier distribución |
|---|
| 149 | \begin_inset LatexCommand cite |
|---|
| 150 | key "Small-Sample-Power-of-the-One-Sample-Wilcoxon-Test-for-Non-Normal-Shift-Alternatives" |
|---|
| 151 | |
|---|
| 152 | \end_inset |
|---|
| 153 | |
|---|
| 154 | . |
|---|
| 155 | \end_layout |
|---|
| 156 | |
|---|
| 157 | \begin_layout Section |
|---|
| 158 | \begin_inset LatexCommand label |
|---|
| 159 | name "sub:Correlación" |
|---|
| 160 | |
|---|
| 161 | \end_inset |
|---|
| 162 | |
|---|
| 163 | Alta correlación múltiple entre parámetros |
|---|
| 164 | \end_layout |
|---|
| 165 | |
|---|
| 166 | \begin_layout Standard |
|---|
| 167 | Si en la cadena de Markov se resta la media de las realizaciones de cada |
|---|
| 168 | columna y se multiplica su traspuesta por sà misma se obtiene la matriz |
|---|
| 169 | de covarianzas muestrales de los parámetros. |
|---|
| 170 | Si la longitud de la cadena es mucho mayor que el número de variables se |
|---|
| 171 | tendrá una estimación insesgada de la matriz de covarianzas poblacional |
|---|
| 172 | (ver |
|---|
| 173 | \begin_inset LatexCommand htmlurl |
|---|
| 174 | target "http://en.wikipedia.org/wiki/Estimation_of_covariance_matrices" |
|---|
| 175 | |
|---|
| 176 | \end_inset |
|---|
| 177 | |
|---|
| 178 | ). |
|---|
| 179 | Dividiendo filas y columnas por su correspondiente elemento diagonal se |
|---|
| 180 | obtiene la matriz de correlaciones muestrales y calculando su descomposición |
|---|
| 181 | de Jordan se puede comprobar si hay autovalores cercanos a la unidad. |
|---|
| 182 | Se toma el autovector |
|---|
| 183 | \begin_inset Formula $v$ |
|---|
| 184 | \end_inset |
|---|
| 185 | |
|---|
| 186 | correspondiente al mÃnimo autovalor |
|---|
| 187 | \begin_inset Formula $\lambda$ |
|---|
| 188 | \end_inset |
|---|
| 189 | |
|---|
| 190 | y se pretende contrastar la hipótesis de que es nulo, |
|---|
| 191 | \begin_inset Formula $\lambda=0$ |
|---|
| 192 | \end_inset |
|---|
| 193 | |
|---|
| 194 | , es decir que existe colinealidad entre las variables |
|---|
| 195 | \begin_inset Formula $\Upsilon$ |
|---|
| 196 | \end_inset |
|---|
| 197 | |
|---|
| 198 | |
|---|
| 199 | \begin_inset Formula \begin{equation} |
|---|
| 200 | v^{T}\cdot\Upsilon=\lambda\cdot\Upsilon=0\end{equation} |
|---|
| 201 | |
|---|
| 202 | \end_inset |
|---|
| 203 | |
|---|
| 204 | |
|---|
| 205 | \end_layout |
|---|
| 206 | |
|---|
| 207 | \begin_layout Standard |
|---|
| 208 | Si se toma una componente no nula cualquiera |
|---|
| 209 | \begin_inset Formula $v_{k}\neq0$ |
|---|
| 210 | \end_inset |
|---|
| 211 | |
|---|
| 212 | , la ecuación anterior es equivalente a |
|---|
| 213 | \begin_inset Formula \begin{equation} |
|---|
| 214 | \underset{j\neq k}{\sum}v_{j}\cdot\Upsilon_{j}=-v_{k}\cdot\Upsilon_{k}\end{equation} |
|---|
| 215 | |
|---|
| 216 | \end_inset |
|---|
| 217 | |
|---|
| 218 | |
|---|
| 219 | \end_layout |
|---|
| 220 | |
|---|
| 221 | \begin_layout Standard |
|---|
| 222 | Para contrastar la hipótesis asà expresada se puede usar el test no paramétrico |
|---|
| 223 | como el |
|---|
| 224 | \begin_inset LatexCommand htmlurl |
|---|
| 225 | name "Mann-Whitney U-test" |
|---|
| 226 | target "http://www.alglib.net/statistics/hypothesistesting/mannwhitneyu.php" |
|---|
| 227 | |
|---|
| 228 | \end_inset |
|---|
| 229 | |
|---|
| 230 | |
|---|
| 231 | \end_layout |
|---|
| 232 | |
|---|
| 233 | \begin_layout Standard |
|---|
| 234 | Si el p-value es mayor que cierto umbral se procede a repetir el test para |
|---|
| 235 | el siguiente autovalor para detectar otras posibles colinealidades. |
|---|
| 236 | \end_layout |
|---|
| 237 | |
|---|
| 238 | \begin_layout Section |
|---|
| 239 | \begin_inset LatexCommand label |
|---|
| 240 | name "sub:Normalidad" |
|---|
| 241 | |
|---|
| 242 | \end_inset |
|---|
| 243 | |
|---|
| 244 | Normalidad e independencia de los residuos |
|---|
| 245 | \end_layout |
|---|
| 246 | |
|---|
| 247 | \begin_layout Standard |
|---|
| 248 | La hipótesis fundamental del modelo es que los residuos estandarizados de |
|---|
| 249 | cada segmento de regresión tienen distribución multinormal estándar independien |
|---|
| 250 | te. |
|---|
| 251 | Como los residuos no son conocidos sino que se deben calcular para cualquier |
|---|
| 252 | posible combinación de parámetros lo que se hará es hacer las comprobaciones |
|---|
| 253 | para los residuos correspondientes a los valores medios de los parámetros |
|---|
| 254 | en la cadena de Markov. |
|---|
| 255 | Para contrastar la normalidad se puede usar un test como el |
|---|
| 256 | \begin_inset LatexCommand htmlurl |
|---|
| 257 | name "Jarque-Bera test" |
|---|
| 258 | target "http://www.alglib.net/statistics/hypothesistesting/jarqueberatest.php" |
|---|
| 259 | |
|---|
| 260 | \end_inset |
|---|
| 261 | |
|---|
| 262 | . |
|---|
| 263 | Para la independencia el test más completo y usado es el |
|---|
| 264 | \begin_inset LatexCommand htmlurl |
|---|
| 265 | name "Ljung-Box test" |
|---|
| 266 | target "http://en.wikipedia.org/wiki/Ljung-Box_test" |
|---|
| 267 | |
|---|
| 268 | \end_inset |
|---|
| 269 | |
|---|
| 270 | |
|---|
| 271 | \end_layout |
|---|
| 272 | |
|---|
| 273 | \begin_layout Standard |
|---|
| 274 | |
|---|
| 275 | \color red |
|---|
| 276 | Detector de outliers. |
|---|
| 277 | \end_layout |
|---|
| 278 | |
|---|
| 279 | \begin_layout Standard |
|---|
| 280 | |
|---|
| 281 | \color red |
|---|
| 282 | Detector de heterocedasticidad. |
|---|
| 283 | \end_layout |
|---|
| 284 | |
|---|
| 285 | \begin_layout Section |
|---|
| 286 | \begin_inset LatexCommand label |
|---|
| 287 | name "sub:Raices_ARMA_unitarias" |
|---|
| 288 | |
|---|
| 289 | \end_inset |
|---|
| 290 | |
|---|
| 291 | Polinomios ARMA no estacionarios |
|---|
| 292 | \end_layout |
|---|
| 293 | |
|---|
| 294 | \begin_layout Standard |
|---|
| 295 | Dada una realización de los coeficientes de un polinomio AR ó MA de grado |
|---|
| 296 | máximo 2, es trivial calcular el módulo de sus raÃces reales o complejas. |
|---|
| 297 | Si se repite el proceso para cada fila de la cadena de Markov simulada |
|---|
| 298 | previamente entonces se obtienen cadenas de Markov de los módulos de las |
|---|
| 299 | raÃces y se puede aplicar el anteriormente nombrado |
|---|
| 300 | \begin_inset LatexCommand htmlurl |
|---|
| 301 | name "One Sample Sign Test" |
|---|
| 302 | target "http://www.alglib.net/statistics/hypothesistesting/signtest.php" |
|---|
| 303 | |
|---|
| 304 | \end_inset |
|---|
| 305 | |
|---|
| 306 | para contrastar si es igual a 1. |
|---|
| 307 | \end_layout |
|---|
| 308 | |
|---|
| 309 | \end_body |
|---|
| 310 | \end_document |
|---|