Description Usage Arguments Value Author(s) Examples
This function takes 3 arguments to simulate the stationary probabilities from a transition probability matrix.
1 | mc.discrete(p,k,n)
|
p |
is a transition probability matrix for Markov Chain simulation. |
k |
is a single integer number that states which state the simulation starts at. |
n |
is a single natural number that decides how many simulation steps is to be done. |
Returns a vector of values corresponding to the stationary probability for each state in the given transition probability matrix.
Nguyen Khanh Le Ho & Emil H. Andersen
Department of Mathematics and Computer Science (IMADA)
University of Southern Denmark, Denmark
emila14@student.sdu.dk
ngho14@student.sdu.dk
1 | mc.discrete(matrix(c(0,0,0,0.4,0.7,0.5,0.6,0.3,0.5),nrow=3,ncol=3),1,100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.