Description Usage Arguments Value Author(s) Examples
This function simulates the stationary probabilities from a transition probability matrix.
1 | MarkovChain(p,k,n)
|
p |
transition probability matrix |
k |
integer indicating the initial state of the chain |
n |
number of simulated steps |
Stationary probabilities for each state
Nina Louise Pedersen
Institute of Mathematics and Computer Science (IMADA)
University of Sourthern Denmark, (SDU)
npede14@student.sdu.dk
1 | MarkovChain(matrix(c(.5,.5,.5,.5),ncol=2,byrow=TRUE),1,1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.