Elementary Derivation of First-Passage Distribution

Abstract

One of the most intricate formulas relating to a Stochastic process known as Brownian motion specifies the probability density function of the time the process takes to reach, for the first time, a given state. There are several existing derivations thereof (a special case of inverse Gaussian distribution), most of them requiring sophisticated mathematical tools and rather complex reasoning. In this article, we present a simple derivation of the same result, based on elementary arguments and rudimentary mathematics only.

Share and Cite:

Vrbik, J. (2026) Elementary Derivation of First-Passage Distribution. Open Journal of Statistics, 16, 358-369. doi: 10.4236/ojs.2026.165017.

1. Introduction

We recall that Brownian motion, denoted X( t ) , is a time-homogeneous Markovian process of independent increments which has two parameters, d (drift) and c (diffusion coefficient); the main result states that the distribution of X( t ) , given that X( 0 )=a , is Normal with the mean of a+d⋅t and variance of c⋅t [1]. Graphically, t is typically displayed using the horizontal axis while the values of X( t ) are shown on the vertical scale (of the so-called state space).

It is intuitively obvious (and formally proven below) that, when a is positive and d is negative, the process must reach, sooner or later, State 0; it is a major and complex task (see [2] [3]) to prove that the exact time (denoted T ) of this event happening for the first time (i.e. of the first passage) is a random variable having inverse Gaussian distribution [4]. Simplifying the usual arguments and finding the corresponding probability density function (PDF) of T by elementary means is the goal of this article.

This is achieved by first discretizing both time (making each of its units into c k 2 discrete time steps) and state space (making each spatial unit into k discrete vertical steps), resulting in a much simpler process called random walk [5]. We can then easily solve the same problem using the discrete version to find the probability mass function (PMF) of a similarly defined first-passage time T ˜ (now, an integer-valued random variable), and then convert this discrete PMF to the continuous PDF of T by taking the k→∞ limit.

To underline the importance of first-passage distributions, we mention that they arise naturally whenever one is interested in the time required for a fluctuating quantity to reach a prescribed threshold, including problems in physics, finance, reliability, and biology.

Note that paragraphs and sections starting with the ■ prefix are optional and can be omitted without affecting our derivation of the main result (only in those sections, we occasionally use concepts and formulas which may be deemed less elementary).

2. Gambler’s Ruin Problem

The discrete version of the process has the following interesting interpretation: consider a gambler who starts with i monetary units (we call them dollars) and keeps on betting $1 on a flip of a biased coin (the probability of winning an individual round is p< 1 2 , of losing is q:=1−p ) until losing all his money (i.e. reaching State 0), assuming that his opponent has infinite resources. Each round of this game takes one discrete time step, while one dollar is the state-space unit.

To derive a formula for the probability that the game (which ends by the gambler getting broke) will take exactly n rounds, we consider all possible paths which take the gambler from State i to State 0 without visiting 0 on any previous occasion, and compute their total probability. The individual probabilities are easy: each such path must consist of exactly n−i 2 wins and n+i 2 losses (note that n must be even/odd when i is even/odd respectively, while n≥i ); therefore, it has the probability of p ( n−i )/2 q ( n+i )/2 .

To count how many such paths are there is more difficult: to avoid visiting State 0 before completing n rounds (or time steps), the last step must be a loss; we are then left with an easier (yet equivalent) task of establishing the number of paths that connect State i to State 1 in n−1 steps, while avoiding State 0. This is done in two steps: ignoring the last condition (i.e. allowing visits to 0), the number of such paths is ( n−1 n−i 2 ) , since any combination of n−i 2 wins and n+i−2 2 losses will do. We then need to subtract the number of those paths (from i to 1, in n−1 steps) which have visited State 0, at least once, prior to reaching State 1.

To count these, we use the following classical reflection principle (or André’s reflection method, see [5] [6]), which provides a convenient way of counting paths constrained by a boundary: visualize flipping the first part (up to and including the first visit to State 0) of any such path with respect to the time axis, while keeping its second part (from that point on) intact (see Figure 1).

Figure 1. Original (blue) and flipped (red) path.

This results in a path which starts at −i and ends up, after n−1 steps, in State 1 (necessarily visiting State 0); the important thing is that there is a one-to-one correspondence between paths of the newly created (red) set and those of the original (blue) set. Counting the number of paths of the former is easy: this time we need exactly n−i−2 2 wins and n+i 2 losses; the answer is thus ( n−1 n+i 2 ) . The number of paths contributing to the probability of the game taking exactly n rounds is thus

( n−1 n−i 2 )−( n−1 n+i 2 )= ( n−1 )! ( n−i 2 )!( n+i 2 −1 )! − ( n−1 )! ( n−i 2 −1 )!( n+i 2 )! = ( n−1 )! ( n−i 2 )!( n+i 2 )! ⋅( n+i 2 − n−i 2 )= i n ( n n+i 2 ) (1)

The resulting PMF of T ˜ is then

f( n )= i n ( n n+i 2 ) p ( n−i )/2 q ( n+i )/2 (2)

when n=i,i+2,i+4,i+6,i+8,⋯ (zero otherwise). This classical first-passage probability for a one-dimensional random walk can be found, in various forms, in standard treatments of random walks and probability theory, such as [5] [7] [8].

■ Note that an alternate way of expressing the same result is

f( i+2j )= ( i 2 ) ( j ) ( i+1 2 ) ( j ) ( i+1 ) ( j ) ⋅j! ⋅ 4 j p j q i+j (3)

where j=0,1,2,3,⋯ and w ( j ) :=w( w+1 )( w+2 )⋯( w+j−1 ) . This can be shown by replacing n by i+2j in (2) and expanding:

i i+2j ( i+2j i+j,j ) p j q i+j = i( i+2j−1 )( i+2j−2 )⋯( i+1 )i! ( i+j )( i+j−1 )⋯( i+1 )i!⋅j! p j q i+j = ( i+2j−1 2 )( i+2j−2 2 )⋯( i+1 2 ) i 2 ( i+j )( i+j−1 )⋯( i+1 )j! 4 j p j q i+j (4)

■ Probability Generating Function (PGF) of T ˜

The goal of this section is to prove that, when p≤ 1 2 , reaching State 0 becomes inevitable. This requires evaluating the following PGF of T ˜ (obtained by performing the corresponding summation)

P( z ):=E( z T ˜ )= ∑ j=0 ∞  f( i+2j ) z i+2j = q i z i   2 ℱ 1 ( i 2 , i+1 2 ;i+1;4pq z 2 ) (5)

at z=1 (which yields the probability of ever reaching State 0) and confirming that the answer is 1. Unfortunately, this form of PGF (containing 2 ℱ 1 , called hypergeometric function [9]) is not very suitable for our purpose (in addition to breaking our promise of using elementary functions only); luckily, there is an alternate way (more in the spirit of the current article) of deriving an equivalent version of the same PGF, which is then much easier to evaluate.

To find the alternate formula, we first introduce an infinite set of such PGFs (one for each possible value of i ), denoting them P i ( z ) (where i=0,1,2,3,⋯ ) and relating them to each other in the following manner: based on what happens in the next round of the game (there are just two possibilities) and assuming that we are now in State i , the formula of total probability tells us that

E( z T ˜ i )=p⋅E( z 1+ T ˜ i+1 )+q⋅E( z 1+ T ˜ i−1 ) (6)

where the first term corresponds to winning the round (the original T ˜ i then becomes 1+ T ˜ i+1 , since one time step has been taken and T ˜ i+1 more steps are still needed to reach State 0); a similar argument applies to the second term (when the round is lost). By the definition of PGF, (6) is equivalent to saying that

P i ( z )=pz P i+1 ( z )+qz P i−1 ( z ) (7)

which constitutes an infinite set of difference equations to be solved for all such P i ( z ) functions.

We solve this second-order linear difference equation by seeking a solution of the form P i ( z )= λ i [10], where λ must meet

λ i =pz λ i+1 +qz λ i−1 (8)

for all i , implying that λ must be a root of the following characteristic (quadratic, in this case) polynomial

λ=pz λ 2 +qz (9)

The superposition principle then implies that a general solution to (7) is a linear combination of the two individual solutions, namely

P i ( z )=A⋅ λ 1 i +B⋅ λ 2 i

where λ 1 and λ 2 are the two roots of (9) and A and B are yet to be established.

To find the A and B values, we need to assume that the opponent starts with N−i dollars and may thus lose the game as well. This means that our solution must also meet the following boundary conditions, namely P 0 ( z )=1 and P N ( z )=1 , indicating that, upon reaching either State 0 or State N , the game is over and no more rounds are to be played. It is easy to verify that

P i ( z )= λ 1 i ( 1− λ 2 N )− λ 2 i ( 1− λ 1 N ) λ 1 N − λ 2 N (10)

where

λ 1,2 = 1± 1−4pq z 2 2pz (11)

(roots of the characteristic polynomial) is the solution which meets (7) and both boundary conditions [5].

To get the solution we need (the opponent has infinite resources), we simply take the N→∞ limit of (10), getting

P i ( z )= λ 2 i = ( 1− 1−4pq z 2 2pz ) i (12)

since λ 1 > λ 2 when 0≤z≤1 . Note that (12) is the only linear combination of the two individual solutions which does not exceed 1 when 0≤z≤1 (a necessary condition of a PGF); using this condition, we could have proceeded to derive (12) more directly (but somehow less comprehensibly). Also note that we have effectively shown that (12) and (5) are identical functions.

To prove that visiting State 0 sooner or later is inevitable is now quite simple: showing that (12) is equal to 1 when z=1 (and p≤ 1 2 ) follows from

1−4pq = 1−4p+4 p 2 = ( 1−2p ) 2 =1−2p (13)

Note that, when p> 1 2 ,

P i ( 1 )= ( 1− ( 1−2p ) 2 2p ) i = ( 1−( 2p−1 ) 2p ) i = ( q p ) i (14)

Since this value is less than 1, the process may never reach State 0 and the gambler then keeps on winning indefinitely (with a probability given by, and thus explaining, the deficit).

3. Brownian-Motion Limit

To convert (2) into a PDF of the first-passage time T of a Brownian motion with drift d (assumed to be negative, i.e. d<0 ), diffusion coefficient c>0 , and starting in State a>0 , we proceed (as indicated in the Introduction) as follows:

  • change the amount of a single bet to 1 k , where k is a (large) integer; the initial State i is then replaced by a⋅k ,

  • play c⋅ k 2 rounds of the new game each unit of real time t ,

  • while setting the player’s probability of winning each round at

p:= 1 2 + d 2ck   ( < 1 2 ) (15)

This means that, in a single round, the distribution of change in the value of X( t ) , i.e. of its increment Δ , is

Δ

− 1 k

1 k

Pr

1 2 − d 2ck

1 2 + d 2ck

having the expected value of d c⋅ k 2 and variance equal to 1 k 2 − d 2 c 2 k 4 . This further implies that, at time t (after c k 2 t independent rounds have been played) the expected value of the total increment is d⋅t , with the corresponding variance of c⋅t− d 2 t c⋅ k 2 ; Brownian motion is then the limit of this process as k→∞ . Central Limit Theorem tells us that the distribution of X( t ) is Normal, with the mean of a+d⋅t and variance equal to c⋅t .

3.1. Stirling’s Formula

To find the corresponding limit of the T ˜ distribution, namely of (2), with the goal of getting the PDF of T , we need the following result

lnk!=( k+ 1 2 )lnk−k+ 1 2 ln( 2π )+⋯ (16)

where the ellipsis represents an expression which tends to 0 when k→∞ [8].

To prove it (following the same reference), we start with

k!= ∫ 0 ∞ x k e −x dx (17)

(proved easily using by-part integration) which, after the x=k⋅y substitution, becomes

k k ∫ 0 ∞ k⋅ y k exp( −ky )dy = k k+1 ∫ 0 ∞ exp( −k( y−lny ) )dy = k k+1 e −k ∫ 0 ∞ exp( −k( y−lny−1 ) )dy (18)

Taylor-expanding the integrand’s exponent at y=1 yields

−k⋅ ( y−1 ) 2 2 +k⋅ ( y−1 ) 3 3 −k⋅ ( y−1 ) 4 4 +⋯ (19)

while the integrand itself can then be expanded (and subsequently integrated), using the classical Laplace Method [11], as follows

∫ 0 ∞ exp( −k⋅ ( y−1 ) 2 2 )⋅( 1+k⋅ ( y−1 ) 3 3 −k⋅ ( y−1 ) 4 4 + k 2 ⋅ ( y−1 ) 6 2⋅ 3 2 +⋯ )dy = 2π 2πk ∫ − k ∞ exp( − u 2 2 )⋅( 1+ u 3 3 k − u 4 4k + u 6 2⋅ 3 2 k +⋯ )du (20)

after the y=1+ u k substitution. Note that the method exponentiates the first term of (19) directly (resulting in a Gaussian peak), while the remaining two terms, being 1 k and 1 k small respectively, are expanded accordingly; furthermore, for large k , it is legitimate to change the integral’s lower limit to −∞ . All we need now are the 0th, 3rd, 4th and 6th moments of the standard Normal distribution; these are equal to 1, 0, 3 and 15 respectively. The value of (20) is thus

2π k ⋅( 1− 3 4k + 5 6k +⋯ )= 2π k + 1 12 ⋅ 2π k 3 +⋯ (21)

For (18), and consequently for (17), this implies

k!≈ k k+1/2 e −k 2π ⋅( 1+ 1 12k +⋯ ) (22)

which is a re-statement of (16), with the extra 1 12k term indicating an error of the formula (ignored in our subsequent k→∞ limits). Note that this result is readily extended to non-integer positive k values when (17) is used as a definition of a factorial.

3.2. PDF of First-Passage Time

To find the PDF of the random variable T (continuous version of T ˜ , defined by T:= T ˜ k 2 t ), all we need is to replace i by ak , n by c k 2 t and p by 1 2 + d 2ck in (2), further divide by the discrete step of 2 c k 2 (converted from T ˜ to T scale), and take the k→∞ limit. This becomes easier when done with the ln of the PMF instead; we start with

ln( n n+i 2 )  = sub  ln( ct k 2 ! )−ln( ct k 2 +ak 2 ! )−ln( ct k 2 −ak 2 ! ) =( ct k 2 + 1 2 ) ln( ct k 2 ) _ −ct k 2 +ln 2π     −( ct k 2 +ak 2 + 1 2 )[ ln( ct k 2 ) _ −ln2+( a ctk − a 2 2 c 2 t 2 k 2 +⋯ ) ]      + ct k 2 +ak 2 −ln 2π     −( ct k 2 −ak 2 + 1 2 )[ ln( ct k 2 ) _ −ln2+( − a ctk − a 2 2 c 2 t 2 k 2 +⋯ ) ]      + ct k 2 −ak 2 −ln 2π = lim  − 1 2 ln( ct k 2 )+( ct k 2 +1 )ln2+ a 2 2ct − a 2 ct −ln 2π +⋯ (23)

where the two terms in parentheses ending with +⋯ represent expansions of ln( 1+ a ctk ) and ln( 1− a ctk ) ; note that the total coefficient of the underscored terms reduces to − 1 2 , while the boxed terms cancel out in full ( = sub and = lim imply: ‘after substitution’ and ‘after taking the k→∞ limit’, respectively).

Secondly

ln( i n )  = sub  lna−lnc−lnt−lnk (24)

and

n−i 2 lnp+ n+i 2 lnq  = sub   ct k 2 −ak 2 ln( 1 2 + d 2ck )+ ct k 2 +ak 2 ln( 1 2 − d 2ck )

ct k 2 −ak 2 ( −ln2+ d ck − d 2 2 c 2 k 2 +⋯ )+ ct k 2 +ak 2 ( −ln2− d ck − d 2 2 c 2 k 2 +⋯ ) = lim  −ct k 2 ln2− ad c − d 2 t 2c (25)

Finally, adding the re-scaling factor of

2lnk+lnc−ln2 (26)

yields the following total of the last four results (note that all k -related terms have either cancelled out or had a zero limit)

lnf( t )=− ( a+dt ) 2 2ct +ln a 2 2πc t 3 (27)

This is then easily converted to the PDF of T , namely

f( t )= a 2πc t 3 exp( − ( a+dt ) 2 2ct ) (28)

when t>0 (zero otherwise); note that the a and c parameters are positive while d must be negative. The corresponding distribution is called inverse Gaussian; it has a mean of a −d , variance equal to ac − d 3 , while 3 c −ad is its skewness. When d=0 , (28) gets reduced to a special case of Levy distribution (effectively the distribution of Y −2 , where Y is Normal with the mean of 0 and variance of c a 2 ).

Note that ∫ 0 ∞ f( t )dt =1 when the three parameters meet the above conditions; this result is inherited from (2). To find the total probability of (28) when d>0 requires its non-trivial integration; this can be bypassed by taking the k→∞ limit of (14) or, more easily, of its natural logarithm, thus getting

ak[ ln( 1 2 − d 2ck )−ln( 1 2 + d 2ck ) ]=ak( − 2d ck +⋯ )  = lim   −2ad c (29)

This implies that the probability of Brownian motion with such parameters never reaching State 0 is

1−exp( −2ad c ) (30)

3.3. ■ Moment Generating Function (MGF) of T

The usual way of deriving (28) is to find the corresponding MGF first (using a long sequence of intricate arguments), and then convert it to the corresponding PDF (yet another difficult task); the advantage of our approach is in bypassing this entirely and obtaining (28) directly from its discrete analog, as done already in this article.

Nevertheless, for completeness, we now show how the same MGF is almost effortlessly derived (again, from its discrete analog) by taking a limit of the PGF of T ˜ . All we need to do is to replace z in

P i ( z ):=E( z T ˜ )= ( 1− 1−4pq z 2 2pz ) i (31)

by exp( ϕ c k 2 ) , since the old time step now takes 1 c k 2 of the new time units (i.e. T= T ˜ c k 2 ), while recalling the definition of

M( ϕ ):=E( exp( ϕ⋅T ) ) (32)

Furthermore, making the usual i→ak and p→ 1 2 + d 2ck substitutions and taking the k→∞ limit (again, it is easier to work with lnM( ϕ ) instead) results in

ln P i ( exp( ϕ c k 2 ) ) = sub  ak[ ln( 1− 1−( 1− d 2 c 2 k 2 )( 1+ 2ϕ c k 2 +⋯ ) )−ln( 1+ d ck )− ϕ c k 2 ] =ak[ ln( 1− d 2 c 2 k 2 − 2ϕ c k 2 +⋯ )− d ck +⋯ ] =ak( − d 2 c 2 k 2 − 2ϕ c k 2 − d ck +⋯ )  = lim  − ad c − a d 2 −2cϕ c (33)

which agrees with the classical result of [3].

Rather than using this MGF to re-derive (28) (which would be, as already mentioned, quite difficult), we proceed in reverse, verifying that we can get the same MGF directly from (28). This happens to be much easier, since it is possible to bypass actual integration and proceed as follows

M( ϕ )= ∫ 0 ∞ f( t )exp( ϕ⋅t )dt = a 2πc ∫ 0 ∞ t −3/2 exp( − d 2 t 2 +2dat+ a 2 −2cϕ t 2 2ct )dt =exp( −ad−aD c )⋅ a 2πc ∫ 0 ∞ t −3/2 exp( − D 2 t 2 −2Dat+ a 2 2ct )dt =exp( −ad−aD c ) (34)

where D:= d 2 −2cϕ . The last step follows from the fact that

∫ 0 ∞ f( t )dt = a 2πc ∫ 0 ∞ t −3/2 exp( − d 2 t 2 +2dat+ a 2 2ct )dt =1 (35)

for any negative value of d , including −D ; (34) thus matches the previous result.

4. Conclusions

We have shown how the first-passage-time distribution of one-dimensional Brownian motion can be obtained from the corresponding problem for a simple discrete random walk. The essential idea is to discretize both space and time, solve the resulting gambler’s-ruin problem exactly, and then take a carefully chosen limit in which the spatial step tends to zero while the number of discrete time steps tends to infinity. In this way, a result that is not particularly transparent when derived directly from Brownian motion emerges naturally from a much simpler discrete problem.

The derivation also illustrates the close connection between random walks and Brownian motion. The discrete first-passage probability is obtained by elementary path counting, while the Brownian density follows from the appropriate diffusive scaling. The resulting density is the familiar inverse Gaussian first-passage distribution. The calculation therefore provides not a new first-passage formula, but a relatively direct derivation of a classical result and, in particular, an alternative route for readers who may find derivations based on differential equations or more advanced stochastic-process methods less accessible.

Several extensions of the present approach would be interesting. One natural direction is to consider a second absorbing boundary, leading to first-passage problems in a finite interval. Another is to replace the fixed boundary by a time-dependent one. It would also be interesting to investigate whether analogous discrete constructions can provide useful derivations for first-passage problems associated with other stochastic processes, or for related quantities such as the distribution of the maximum of a random walk or Brownian motion.

The restriction to one spatial dimension is another important limitation of the present treatment. Higher-dimensional first-passage problems are considerably richer, and it is not obvious how far the simple path-counting argument used here can be extended. Exploring discrete approximations to such problems may nevertheless provide an interesting bridge between random-walk methods and the corresponding Brownian-motion results.

Finally, the present derivation establishes the limiting distribution but does not address the rate at which the discrete first-passage distribution approaches its Brownian limit. Quantifying this convergence, and determining how large the number of discrete steps must be for the continuous approximation to be accurate, would be a useful subject for further work.

Thus, although the present calculation is deliberately restricted in scope, it suggests that discrete random walks can provide a particularly transparent starting point for understanding a wider class of first-passage problems.

Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper.

References

[1] Feller, W. (1971) An Introduction to Probability Theory and Its Applications, Vol. II. Wiley.
[2] Redner, S. (2001) A Guide to First-Passage Processes. Cambridge University Press.[CrossRef]
[3] Borodin, A.N. and Salminen, P. (2002) Handbook of Brownian Motion—Facts and Formulae. 2nd Edition, Birkhäuser.[CrossRef]
[4] Johnson, N.L., Kotz, S. and Balakrishnan, N. (1994) Continuous Univariate Distributions, Vol. 1. Wiley.
[5] Feller, W. (1968) An Introduction to Probability Theory and Its Applications (Vol. 1). 3rd Edition, Wiley.
[6] Comtet, L. (2011) Advanced Combinatorics: The Art of Finite and Infinite Expansions. Springer.[CrossRef]
[7] Spitzer, F. (1976) Principles of Random Walk. 2nd Edition, Springer.[CrossRef]
[8] Grimmett, G.R. and Stirzaker, D.R. (2001) Probability and Random Processes. 3rd Edition, Oxford University Press.[CrossRef]
[9] Andrews, G.E., Askey, R. and Roy, R. (1999) Special Functions. Cambridge University Press.[CrossRef]
[10] Elaydi S. (2005) An Introduction to Difference Equations. 3rd Edition, Springer.
[11] Wong, R. (2001) Asymptotic Approximations of Integrals. Society for Industrial and Applied Mathematics (SIAM). [Google Scholar] [CrossRef]

Copyright © 2026 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.