20.01.2015 Views

Descargar PDF Curso 02 - Instituto de Economía y Finanzas

Descargar PDF Curso 02 - Instituto de Economía y Finanzas

Descargar PDF Curso 02 - Instituto de Economía y Finanzas

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Muestreo <strong>de</strong> Gibbs<br />

Monte Carlo<br />

Algoritmo<br />

1 Empezamos con unos valores iniciales <strong>de</strong> θ 0 1 , θ0 2 . j = 1<br />

2 Generamos una observación θ j 1<br />

<strong>de</strong> la distribución condicionada<br />

f (θ 1 |θ j−1<br />

2<br />

).<br />

3 Generamos una observación θ j 2<br />

<strong>de</strong> la distribución condicionada<br />

f (θ 2 |θ j 1 ).<br />

4 Siguiente paso j := j + 1 y volvemos al paso 2.<br />

Obtenemos una ca<strong>de</strong>na <strong>de</strong> Markov (θ 0 1 , θ0 2 ), (θ1 1 , θ1 2 ), . . . , (θn 1 , θn 2 ) con<br />

distribución estacionaria f (θ 1 , θ 2 ).<br />

Decartando las primeras observaciones generadas, nos quedamos con la<br />

muestra aleatoria <strong>de</strong> la distribución a posteriori conjunta.<br />

(Univ. Carlos III <strong>de</strong> Madrid) Estadística bayesiana 22-03-11 12 / 42

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!