MarkovChain: Markov Chain

Description Usage Arguments Value Author(s)

View source: R/MarkovChain.R

Description

This function simulates the stationary distribution of a Markov Chain.

Usage

1
MarkovChain(p,k,n)

Arguments

p

Transition probability matrix

k

integer indicating the initial state of the chain

n

number of simulated steps

Value

Returns a table of the stationary probabilities of each state.

Author(s)

Katrine Eriksen and Katrine Bach
Department of mathematics and computer science (IMADA)
University of Southern Denmark
kater13@student.sdu.dk and kabac13@student.sdu.dk


Katrinebch/ExamST516 documentation built on May 7, 2019, 12:29 p.m.