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.

Monte Carlo<br />

Algoritmo <strong>de</strong> Metropolis-Hastings<br />

Algoritmo<br />

1 Empezamos con un valor inicial θ 0 , j = 1.<br />

2 Generamos un candidato θ C <strong>de</strong> la distribución g(θ|θ j−1 ).<br />

3 Calculamos el ratio<br />

R = f (θC )g(θ j−1 |θ C )<br />

f (θ j−1 )g(θ C |θ j−1 )<br />

4 Generamos u <strong>de</strong> una distribución uniforme (0, 1). Si u < R<br />

aceptamos el candidato θ j := θ C , en caso contrario θ j := θ j−1<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!