Mathematics, Probability, Data Science, Stochastic Process, Artificial Intelligence.
is in the states in between. Below is a matrix showing his movement: random_walk <- matrix(c(1, .5, 0, 0, 0, 0, 0, .5, 0, 0, 0, .5, 0, .5, 0, 0, 0, .5, 0, 0, 0, 0, 0, .5, 1), nrow = 5, ncol = 5) random_walk [,0] [,1] [,2] [,3] [,4] [0,] 1.0 0.0 0.0 0.0 0.0 [1,] 0.5 0.0 0.5 0.0 0.0 [2,] 0.0 0.5 0.0