Description Usage Arguments Details Value
A Gaussian random-walk proposal kernel with identity covariance matrix
1 | random.walk(from, ...)
|
from |
State to start from |
... |
Other arguments passed on to
|
This is an example of a proposal kernel for the
Metropolis-Hastings MH
and the
Particle-Marginal Metropolis Hastings
ParticleMarginalMH
algorithms.
All it does is take one random Gaussian step around the
current state: random.walk <- function(from, ...)
rmvnorm(n=1, mean=from, ...)
The user is invited to write his own proposal kernel based on this simple example. At the very least, it is recommended to tune the covariance matrix used.
New state randomly sampled from a multivariate Gaussian
centered on from
with, by default, unit covariance
matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.