Mathematics, Probability, Data Science, Stochastic Process, Artificial Intelligence.
of getting home. As we might expect, the middle state, state 2, leads to either absorbing state with equal probability. What if the drunkard sobered up a little and now has a .75 chance of walking towards his home, and a .25 chance of going towards the sea? random_walk_2 <- matrix(c(1, .25, 0, 0,