Skip to content

Phil-Barv/Visualizing-Transition-Matrices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visualizing Transition Matrices


A Markov Chain describes a sequence of states where the probability of transitioning from states depends only on the current state. In this github repo, I create a transition matrix for a 5-node network system, show below, to model foot traffic in 3-hr time steps beginning from an equally likelihood distribution v = (0.2, 0.2, 0.2, 0.2, 0.2).


Five Node Network System

The gif below shows the decay of the system to the static distribution (0.15, 0.04, 0.26, 0.43, 0.12). The R code for simulating the Markov Chain and creating the visualizations is provided here in this repo.


System Convergence Gif

About

Animation of Markov Chain matrices converging to the standard distribution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages