Differences between revisions 4 and 5
 ⇤ ← Revision 4 as of 2009-10-29 14:25:06 → Size: 6153 Editor: StéphaneAdjemian Comment: ← Revision 5 as of 2009-11-03 10:41:20 → ⇥ Size: 6133 Editor: StéphaneAdjemian Comment: Deletions are marked like this. Additions are marked like this. Line 102: Line 102: \begin{eqnarray*}\theta^{'(i)}\sim(\theta_i|\theta_{-i},k,y)\propto \begin{cases} p(\theta^{'(k')}|y,k',\theta^{(k)}) & \text{if } i=k'\\p(\theta^{'(i)}) & \text{if } i\not= k' $$\theta^{'(i)}\sim (\theta_i|\theta_{-i},k,y) \propto \begin{cases} p(\theta^{(k')}|y,k',\theta^{(k)}) \mbox{, if } i=k' \\ \\ p(\theta^{(i)}) \mbox{, if } i\neq k' Line 107: Line 108: \end{eqnarray*}$$

Reversible Jump MCMC routines in Dynare

• Functions

• Structures

• Notes on the algorithmrjmcmc

Introduction

Bayesian model selection is performed on the basis of the posterior model probabilities which can be evaluate in this case by considering the models parameters as unknown and updating at each iteration of the MCMC knowing the model index k. To be more precise, the dimensionality of the parameter space represents an unknown parameter.

Let be the parameters vector associated with the model of order k. There's three kind of possible move which can be described.

In steps 1 and 2, we go from a model k to an other one of different length k' with the probability . The dimension matching requirement (Green, 1995) set dim(k)+dim(q(u))=dim(k')+dim(q(u')) where the function q(.) is the proposal and u an additional random vector. In the literature, we call a "birth move" the fact that dim(k')>dim(k), otherwise this is a "death move".

In the last step, we stay within a same model. In that case, a standard MH can be run.

Algorithm

I. choose initial values

II. for i=1,N

i. Birth move: if

go from k to k'=k+n by drawing n values from a random vector u of length n

if

• k=k'

end if

ii. Death move: else if

deterministic step to go from k to k'=k-n

if

• k=k'

end if

iii. else

• end if

end

footnote: The proposal distribution for changes in model order has the following expression:

or

latex error! exitcode was 1 (signal 0), transscript follows:

This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=latex)
entering extended mode
LaTeX2e <2017/01/01> patch level 3
Babel <3.9r> and hyphenation patterns for 3 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.dfu)
(/usr/share/texlive/texmf-dist/tex/latex/base/ot1enc.dfu)
(/usr/share/texlive/texmf-dist/tex/latex/base/omsenc.dfu)))
! Misplaced alignment tab character &.
l.8        exp(-\lambda)|k'-k| &
& \text{if } k'\not=k \\
! Misplaced alignment tab character &.
l.8        exp(-\lambda)|k'-k| &&
\text{if } k'\not=k \\
! Undefined control sequence.
l.8        exp(-\lambda)|k'-k| && \text
{if } k'\not=k \\
! Misplaced alignment tab character &.
l.9        0 &
& \text{if } k'=k
! Misplaced alignment tab character &.
l.9        0 &&
\text{if } k'=k
! Undefined control sequence.
l.9        0 && \text
{if } k'=k
(see the transcript file for additional information)
Output written on latex_5b1d33c68b58ad0e0588ebe637d2cca5d99b7f29_p.dvi (1 page,
500 bytes).


The symmetry of the distribution leads the ratio of model prior densities to be 1

Acceptation Probabilities

we assume here that the proposal distribution is the parameters prior density.

Consider

where the proposal distribution is and is called "pseudo-prior".

Under the assumption of a symmetric random-walk proposal distribution, we can derive the acceptance ratio.

The Jacobian cancel since the transformation let unchanged the scale of parameters vectors.

using the definition of joint posterior distribution:

Precisely the full posterior distribution for the composite model space can be expressed as

It depends only upon the corresponding parameters , for a particular k. represents all parameters not used by model k. Hence, is this "pseudo-prior" which is not used by k.

Assuming p(k) follows a uniform distribution, the ratio and the common parameters prior in the ratio prior densities cancel. If we consider the case where is iid gaussian, the priors for the common model terms cancel leaving for a birth move:

• Knowing that and the fact that

the reverse transformation is deterministic (ie is empty and .

• We have finally:

and

DynareWiki: ReversibleJumpMCMC (last edited 2018-10-17 15:56:59 by StéphaneAdjemian)