Stochastic Processes: Random Walk Analysis
Stochastic Processes: Random Walk Analysis
Solution Task 1
61 5
( 0|
6=0X= 0= )( ) =
3 2616
Seaτ = min(n > 0 | X = 0), then the sought probability can be written as
( = 6| 0= 0)
For a trajectory to be at the origin in step 6, it had to have gone up 3 times and
1
downloaded 3 times. Like in this case = = 2, the probability of each of those
1
trajectories is, so it is only necessary to count how many trajectories meet that
26
they return for the first time to the origin in the sixth step.
Analyzing the trajectories, we see that only the 4 trajectories that are present
above meet the criteria. Therefore, the sought probability is given by
4 1
( = 6| 0= 0= ) =4
22
6
3. Show that the moment generating function of the variable of the random walk
simple about Z is
∑ − −
( )= ( =1 )= (∏ )= ∏( ) =∏ ( + )=( + )
=1 1 =1
( + − ) = ( + − ) −1 ( − − )
Therefore,
2) 2(
( ) = ( − =) −2 ( − ) 2 − ( + −) 2 − 2( )2
2
= − ( − )+ = 1 (− −( ) ) = (1 - p + q 1 )(
2 +p-q )
= (2 )(2 ) = 4npq.
4. Probability of ruin for the second player. If we now consider the game from the point of
view of player B, then it is the same random walk only now the capital
initial is N - k and the probability of winning in each bet is q. Substitute these parameters in
the solution to the gambler's problem and check that the probability of ruin for player B,
denoted by − , es la que aparece abajo. Verifique además que + − = 1, that is to say,
the probability that eventually the game will end with the ruin of one of the players
it's one.
−( − )
− = =
( / ) − −( / ) ( / ) (( / ) − - 1 ) ( / ) − -1 ( / ) -1
− = = = =
1 - (/ ) ( / ) (( / ) − - 1 ) ( / ) − -1 ( / ) -1
Casep = 1/2:
−
+ − = + = equals 1
Casep ≠ 1/2:
( /) −( )/ ( / ) − 1( /) −( ) / (− ) / + ( 1 )1− /
+ − = + = =
1 − (/ ) ( / ) -1 1 − (/ ) 1 - (/ )
=1
5. (5/100 extra points on the first partial) Demonstrate that the average duration of the game in
the problem of the player's ruin is always less than or equal to /2, that( is, for
) 2 each
= 1,2, … , , it is fulfilled that ≤ /2both
( in)the symmetric case (2 pts) and in the non
2
symmetric (3 pts).
Case symmetric =
= ( − )
Solving the equation = 0to find the point where reaches the maximum,
we have
N - 2k = 0 ⇒ k = N/2
≤ ( )( − ) N/2( )2
2 2
Symmetrical house ≠