WOLFRAM NOTEBOOK

WOLFRAM|DEMONSTRATIONS PROJECT

A Reluctant Random Walk

total number of cards
10
initial number of cards
5
max steps to simulate
10000
seed
1
There are
n
cards labeled 1, 2, ...,
n
. Initially, the cards are randomly divided between two players, A and B. For example, if
n
is even, each player could get half of the cards. At each move of the game, one of the numbers from 1 to
n
is chosen at random and the player with this card must give it to the other player. The game continues until one of the player has all the cards. This Demonstration shows games for one of the players, with expected duration and probability of ruin.
This process is a discrete-time Markov chain with two absorbing barriers. The corresponding walk is said to be reluctant because the process hesitates before stopping. Indeed, the more the walker approaches one of the absorbing barriers, the lower the probability becomes that the next move is toward this barrier. The result is that the game lasts a long time on average.
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.