Markov Chains

Basics of Markov Chains

Background This post explores how to markov chains work and how to visulaize them in R. I use a R package specifically designed to visualize markov chains. I also represent these markov chains using tables. This is a reproducible example if you have R Studio just make sure you have installed the correct packages. library(markovchain) ## Warning: package ‘markovchain’ was built under R version 4.1.2 library(diagram) #Allows the use of exponential operators in matrix library(expm) ## Warning: package ‘expm’ was built under R version 4.