A couple of weeks ago, I had a discussion with a practitioner, working in some financial company, about ruin, and infinite time. And it reminded me a weird result. Well, not a weird result, but a result I found disturbing, at first, when I was a student (that I rediscovered with the eyes of someone dealing with computational issues, seeing here a difficult theoretical question). Consider a simple ruin problem. A player has wealth . Then he flips a coin: tails he has a gain of 1, heads he experiences a loss of 1. At time
, his wealth is
where
is associated to the
th coin:
is equal to 1 with probability
(tails), and -1 with probability
(heads). It is also possible to write
where can be interpreted as the net gain of the player. In order to get a good understanding of results that can be obtained. Assume
to be given. Let
denote the number of heads and
the number of tails. Then
, while
. Let
denote the number of paths to go from point A (wealth
at time
) to point B (wealth
at time
). Note that this is a Markovian problem, that can be modeled using Markov chains

But here, we will focus on combinatorial results. Hence,
In order to derive probabilities to reach , let
denote the number of paths going from
to
. And let
denote the number of paths going from
to
that do reach
at some point between
and
. Using a simple reflexion property, then if
and
are positive,

Based on those reflexions, two results can be derived (focusing on probability, instead of counting paths). First, we can obtain that
(given that n and x have the same parity). The second result we can obtain is that
Based on those two expressions, if denotes the first time
become null, given
,
then
This can be computed easily,
> x=10 > p=.55 > ProbN=function(n){ + pb=0 + if(abs(n-x) %% 2 == 0) + pb=x/n*choose(n,(n+x)/2)*(1-p)^((n+x)/2)*(p)^((n-x)/2) + return(pb)} > plot(Vectorize(ProbN)(1:1000),type="s")

That looks nice… But if we look closer, we can wonder what
would be ? Since we have the distribution of a probabilty measure, we might expect one. But here
> sum(Vectorize(ProbN)(1:1000)) [1] 0.134385

And this is not due to calculation mistakes that we do not get 1 here. Actually, we should write
which might be interpreted as the probability of ruin, starting from , that we denote
from now on. The term on the left can be approximated using monte-carlo simulations
> p=.55 > x=10 > m=1000 > simul=10000 > S=sample(c(-1,1),size=m*simul,replace=TRUE,prob=c(1-p,p)) > MS=matrix(S,simul,m) > for(k in 2:m) MS[,k]=MS[,k]+MS[,k-1] > T0=function(vm) which(vm<=(-x))[1] > MTmin=apply(MS,1,T0) > mean(is.na(MTmin)==FALSE) [1] 0.1328
To check the validity of the relationship above, a simple (theoretical) recursive formula can be derived for the term on the right (ruin probability), namely
with a boundary conditions , and
. Then is comes that
Note that it might be tricky to check using monte carlo simulation… since we cannot have an infinite number of runs. And we’re dealing precisely with things that do occur when time is infinite. Actually, we can still check convergence, considering an upper limit for the number of runs, and then letting
go to infinity. Note that an explicit formula can then be derived (using additional border condition
)
Using the following code, it is possible to calculate ruin probability, in order to estimate .
> MSmin=apply(MS,1,min) > mean(MSmin<=(-x)) [1] 0.1328 > (((1-p)/p)^x-((1-p)/p)^m)/(1-((1-p)/p)^m) [1] 0.1344306
The following graph shows the evolution of ruin probability as a function of initial wealth (with monte carlo simulation, with a fixed horizon – including a confidence interval – versus the analytical expression)

Hence, with stopping times, one should remember that
and that those two terms can be approximated simply using simulations or standard approximations.


Consider almost the same problem as the one mentioned above. Except that now, it is not 98 nuns that are getting in the plane, but 98 Hells Angels. So the problem here is that Hells Angels are slightly less polite than nuns. When they find someone seating on the seat they should have, they do not shyly move to another seat, but they grunt and then our scatter brained man (who is actually seating in their seat) has to move somewhere else. And the question is the same: you are the 100th person to get in the plane, what is the probability that someone is seated at your seat ?Any idea….?
denote the probability that, at time
, our shy guy is sitting in my seat. When he gets in the plane, the probability that he gets to my seat is




. The animator can either open door 2 or door 3:
denote the event that the car is behind door
, and
the event that the animator opens door
. So, if he opens door 2, the probability that the car is behind door 3 is


we get, similarly






) while

doors,


doors (or boxes), the candidate chooses
doors, and the animator opens
(out of the
remaining doors). Then, behind each door chosen by the candidate, the probability does not change

to