Description Usage Arguments Value Author(s)
Implements Metropolis sampling for an arbitrary discrete probability distribution
1 | random_walk(pd, start, num_steps)
|
pd |
function containing discrete probability function on the integers 1, 2, ... |
start |
starting value of algorithm |
num_steps |
number of iterations of algorithm |
A vector of simulated values
Jim Albert
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.