WOLFRAM LANGUAGE FEATURED EXAMPLE
Analyze a Tennis Game
In a game of tennis between two players, suppose the probability of the server winning a point is . Visualize the random walk graph for , with 17 states.
Find the probability of the server winning the game for
Find the mean time to absorption, that is, the number of points played:
Find the mean number of states visited:
Find the average number of times the score will be tied at deuce: