Professional Documents
Culture Documents
• or the winnings of a gambler who on each play of the game either wins or loses
one dollar.
Example
1 of 16 2024-03-08, 15:08
Markdown | 让排版变 Nice https://editor.mdnice.com/?outId=a8fbd1b6d90446b8...
❝
Find the probability that starting at 0, the chain will be in state i after 5 steps if
p=0.6
Solution:
• The Possible States that Random Walk may Stop after 5 steps are
2 of 16 2024-03-08, 15:08
Markdown | 让排版变 Nice https://editor.mdnice.com/?outId=a8fbd1b6d90446b8...
• We get
• As a Check
3 of 16 2024-03-08, 15:08
Markdown | 让排版变 Nice https://editor.mdnice.com/?outId=a8fbd1b6d90446b8...
• By Class Property from 2.4, they are either ALL Transient or ALL Recurrent
is Finite or Infinite
• On the other hand, we would be EVEN after Trails if and only if we won of
these and lost of these
• because each play of the game results in a win with probability and a loss
with probability ,
4 of 16 2024-03-08, 15:08
Markdown | 让排版变 Nice https://editor.mdnice.com/?outId=a8fbd1b6d90446b8...
Example
❝
Find the probability that the chain will return to state 0 .
Solution:
• Let
• Let
• Because the Markov chain will always increase by 1 with probability p or decrease
by 1 with probability 1 − p no matter what its current state, note that
where the final equation follows by noting that in order for the chain to ever go
from state 2 to state 0, it must first go to state 1 with probability ,
• In the case of the Symmetric Random Walk where p = 1/2, we can conclude
5 of 16 2024-03-08, 15:08
Markdown | 让排版变 Nice https://editor.mdnice.com/?outId=a8fbd1b6d90446b8...
that
By Symmetry,
Using , we get
when , the chain must return to -1 with probability and then to 0 with
probability
6 of 16 2024-03-08, 15:08
Markdown | 让排版变 Nice https://editor.mdnice.com/?outId=a8fbd1b6d90446b8...
Using , we get
2.1. Definition
• he goes broke or
• he attains a fortune of N dollars
for and
We can visualize this game as a finite state random walk on the integers between 0
and N
7 of 16 2024-03-08, 15:08
Markdown | 让排版变 Nice https://editor.mdnice.com/?outId=a8fbd1b6d90446b8...
• States 0 and N are called Absorbing States since once entered they are never
left.
• Therefore, This Markov chain has three classes, namely, {0}, {1, 2, ... , N −
1}, and {N},
• States 0 and N are Recurrent, and ALL other states are Transient
Example
❝
Starting with 5 dollars and p=0.45, and the Gambler's will stop if the fortune
attain 10 or 0 dollars,
• Find the probability that, the game will last less than 20 rounds?
Solution:
8 of 16 2024-03-08, 15:08
Markdown | 让排版变 Nice https://editor.mdnice.com/?outId=a8fbd1b6d90446b8...
https://matrix.reshish.com/power.php
• We get
• So, the probability that, the game will last less than 20 rounds is:
9 of 16 2024-03-08, 15:08
Markdown | 让排版变 Nice https://editor.mdnice.com/?outId=a8fbd1b6d90446b8...
❝
What is the probability that, starting with dollars , the Gambler's fortune will
attain before reaching 0?
Solution:
• after the first step, it's exactly the same game, except that the Gambler's
fortune is now either (win) and (lose)
• By Law of Total Probability (LOTP) , conditioning on the outcome of the initial play
• Since ,
• Hence,
• Since , we have
10 of 16 2024-03-08, 15:08
Markdown | 让排版变 Nice https://editor.mdnice.com/?outId=a8fbd1b6d90446b8...
• Then,
• Hence,
• As ,
11 of 16 2024-03-08, 15:08
Markdown | 让排版变 Nice https://editor.mdnice.com/?outId=a8fbd1b6d90446b8...
reach N;
Example
❝
What is the probability that, starting with dollars and p=0.45, the Gambler's
fortune will attain dollars before reaching 0?
Solution:
• Then, the probability that, starting with 5 dollars, the gambler's fortune will
reaching 10 before reaching 0 is:
Experiment in R
12 of 16 2024-03-08, 15:08
Markdown | 让排版变 Nice https://editor.mdnice.com/?outId=a8fbd1b6d90446b8...
N <- 10
p <- 0.45
nround <- 80
x <- rep(0,nround)
x[1] <- 5
for (i in 2:nround){
if (x[i-1]==0 || x[i-1]==N){
else{
plot(x,type='l',ylim=c(0,N))
13 of 16 2024-03-08, 15:08
Markdown | 让排版变 Nice https://editor.mdnice.com/?outId=a8fbd1b6d90446b8...
A path that starts at $5 and bounces up and down before being absorbed into state 0 or state N.
• suppose that two new drugs have been developed for treating a certain disease
• Drug has a cure rate
in the sense that each patient treated with drug will be cured with probability
.
• These cure rates, however, are NOT known, and suppose we are interested in a
method for deciding whether
• with one member of the pair receiving drug 1 and the other drug 2
• The results for each pair are determined , and the testing stops when
• the cumulative number of cures using one of the drugs exceeds the cumulative
number of cures when using the other
14 of 16 2024-03-08, 15:08
Markdown | 让排版变 Nice https://editor.mdnice.com/?outId=a8fbd1b6d90446b8...
• for a predetermined positive integer M the test stops after pair N where N is
the first value of n such that either
or
what is the probability that the test will Incorrectly assert that ?
To determine this probability, note that after each pair is checked the cumulative
difference of cures using drug 1 versus drug 2 will either
• go up by 1 with probability
since this is the probability that drug 1 leads to a cure and drug 2 does not, or
since this is the probability that both drugs lead to a cure or both drugs do not
15 of 16 2024-03-08, 15:08
Markdown | 让排版变 Nice https://editor.mdnice.com/?outId=a8fbd1b6d90446b8...
Hence, if we ONLY consider those pairs in which the Cumulative Difference changes ,
• a Gambler who wins each (one unit) bet with probability p will go down
M before going up M.
with
• So
Resources:
[1] Sheldon M. Ross, Introduction to Probability Models, Academic Press; 12th edition
(2019)
16 of 16 2024-03-08, 15:08