Log-concavity in planar random walks
Abstract.
We prove log-concavity of exit probabilities of lattice random walks in certain planar regions.
1. Introduction
In the study of random walks, there is a fundamental idea based on its Markovian property: when some “life event” happens to the walk, the future trajectory of the walk can be changed, and this transformation can be exploited to obtain both quantitative and qualitative conclusions on the random walk distributions. These “life events” can be rather mundane, for example the first time when the walk returns to the starting point, crosses with some other random walk, enters an obstacle, etc. On the other hand, the conclusions can be quite remarkable and include the classical reflection principle, and the Karlin–McGregor formula also known as the Lindström–Gessel–Viennot lemma in the discrete setting, see 5.3.
In this paper we use a variation on this approach for random walks in simply connected planar regions. The conclusion is qualitative in some sense that at the end we prove log-concavity of a certain natural exit probability distribution. We chose to present a discrete version of the result rather than the (somewhat cleaner) continuous version as the former is more powerful and amenable to generalizations (see Section 4), while the latter follows easily by taking limits.
Theorem 1 (Special case of Theorem 7).
Let be a simply connected region in the plane whose boundary is comprised of two vertical intervals , and two -monotone lattice paths , see Figure 1. We assume that and for some .
Let be the nearest neighbor lattice random walk which starts at the origin , and is absorbed whenever tries to exit the region . Denote by the first time such that , and let be the probability that . Then is log-concave:

In particular, the theorem implies that the sequence is unimodal (see e.g. [Brä]). This also points to the difficulty of proving the result by a direct calculation, as in general there is no natural point at which the probability maximizes. We refer to as exit probabilities, since one can think of them as probabilities the walks exits the region through different points on the interval .
Perhaps surprisingly, Theorem 1 is a byproduct of our recent work [CPP2] on the Stanley inequality for the case of posets of width two; in fact, we obtain the inequality as a corollary of the theorem (see 5.1).
2. Proof of Theorem 1
We start with the following combinatorial result. Throughout this section, a lattice path is a path in , possibly self-intersecting along vertices and edges.
Lemma 2.
In the conditions of Theorem 1, let and be six points on the boundary of the region , such that
and suppose , where . Then there is an injection
where
, , , and are lattice paths which lie inside ,
the sum of numbers of horizontal edges in and which project onto , is equal to
the sum of numbers of horizontal edges in and which project onto , for all ,
the sum of numbers of vertical edges in and which project onto , is equal to
the sum of numbers of vertical edges in and which project onto , for all .
Here by project we mean the vertical projection onto the -axis. By adding the edge and vertex count equalities above over all and , we conclude that injection preserves the total length of these paths:
Proof of Lemma 2.
The proof is an explicit construction of the injection , illustrated in Figure 2. See also Figure 3 in the next section for a detailed construction of each step.
We start with the lattice paths and drawn inside the region . Note that by the definition of the points in the lemma, we have .
Let and let . By the assumption in the lemma, lies above on the line spanned by . Denote by the lattice path formed by following interval down from , then path and then interval up to . Let be the lattice path obtained by shifting up at distance . Similarly, let be the lattice path obtained by shifting up at distance .
Note that the path starts below and ends above . Thus intersects at least once, where the intersection points could be multiple and include . Order these points of intersection according to the order in which they appear on , and denote by the last such point of intersection. Finally, denote by the last part of the path between and , and note that lies above the -monotone lattice path .
Denote by the lattice path , starting at , following up, then and ending by following down to . Let be the lattice path obtained by shifting up at distance . By the same argument as above, path start above and ends below . Denote by the last point of intersection of and according to the order on which they appear on . Finally, denote by the last part of the path between and , and note that lies below the -monotone lattice path .
(3) Observe that lies above since shifting both paths down gives lying above , respectively. Also, the path lies below and above by definition. Since is below , we have that and lie on different sides of . Thus lattice paths and must intersect in the connected component of the region between and that contains interval . There could be many such intersections, of course, including multiple intersections when the paths form loops.
Lemma 3 (Fomin [Fom, Thm 6.1]).
Let and be two intersecting paths between boundary points of the simply connected region . Let be an intersection point, and suppose
by which we mean that separates into two paths: and , where . Then there is a well defined key intersection point as above, such that the map is an injection, where the pair of paths is obtained from by a swap at :
The lemma is a special case of the (much more general) result by Fomin; below we include a proof sketch for completeness. Denote by the key intersection of paths and defined by the lemma. Finally, denote by the last part of the path between and , and by the last part of the path between and .

(4) Denote by the lattice path without the last part . In the notation of the lemma, define to be the path followed by .
(5) Let be the point on obtained by shifting down at distance , and denote by the last part of the path between and . Similarly, let be the path obtained shifting down at distance the path . Denote by the lattice path without the last part . In the notation of the lemma, define to be the path followed by .
Claim: The map constructed above is an injection.
To prove the claim, we consider the inverse of . Start with a pair of lattice paths and follow the steps as above after relabeling , . This construction will not work at all cases as the shifted paths are no longer guaranteed to intersect because of topological considerations. However, when , the construction will work for the same reason and produce the pair of lattice paths as in the steps –. Here we are using the key intersection point in step to ensure the construction is well defined and can be inverted at this step. We see that is an involution between pairs of lattice paths and the pairs of paths , which intersect as in after the translations in and . The details are straightforward.
Finally, the projection conditions on as in the lemma are straightforward. Indeed, we effectively swap parts of lattice paths: with , and with . Since path is shifted path , and path is shifted path , this implies both conditions. ∎
Proof of Theorem 1.
In the notation of Lemma 2, set , so both points lie at the origin. Further, set , and , so , and . In this case, the injection shows that the number of pairs of lattice paths and , is less of equal than the number of lattice paths , squared.
We are not done, however, as our paths overcount the paths implied by the probabilities in the theorem, since we consider only the first time by the lattice random walk is at . Recall that preserves the number of horizontal edges which project onto point and onto . The assumption in the theorem that is the first time the walk is at can be translated as having exactly one of point and exactly one edge corresponding to the last step of the walk . Therefore, this property is also preserved under . This completes the proof. ∎
Remark 4.
The level of generality in Lemma 2 may seem like an overkill as we only use a special case in the proof of the theorem. In reality, explaining the special case needed for Theorem 1 is no easier than the general case in the lemma. In fact, setting only makes it more difficult to keep track of the paths. Furthermore, other properties in the lemma are used heavily in the next section.
Sketch of proof of Lemma 3.
Let be a simply connected region and let be a lattice walk in , where . Define a loop-erased walk by removing cycles as they appear in . Formally, take the first self-intersection point , where , and remove part . Repeat this until the resulting path has no self-intersections.
Suppose are points on the boundary (oriented clockwise) and in this order. For a pair of paths , , , note that and intersect by planarity, and so do and . Let be the intersection point of and which lies closest to along the path . Note that point can appear multiple times on .
Consider the point such that the edge in is not deleted in . Similarly, choose the first on . This defines the key intersection of paths and . As in the lemma, swap the future of these paths to obtain paths . To see that the map in an injection, note that it is invertible on all pairs such that intersects . We omit the details. ∎
Remark 5.
3. Large example and subtleties in the proof
The construction in the proof above may seem excessively complicated at first, given that the map is easy to define in the example in Figure 2. Indeed, in that case one can simply shift up to define path , find the last (only in this case) intersection point with , and swap the futures of these paths as we do in and . Voila!
Unfortunately, this simplistic approach does not work for multiple reasons. Let’s count them here:
(i) Path does not have to be inside . This is why we defined point in .
(ii) Path does not have to be inside . This is why we defined path and point in .
(iii) Paths and do not have to intersect at all. This is why we defined path in .
(iv) Paths and do have to intersect for geometric reason, since . On the other hand, paths and intersect for topological reasons. This is why in we consider a connected component of between paths and . Note that the latter can in fact intersect, possibly multiple times.
(v) Paths and can have multiple loops intersecting each other in multiple ways. There is no natural way to define the “last intersection” which would be easy to reverse. This is why in we invoked Lemma 3, whose proof requires loop-erased walk and symmetry breaking.111In the first draft of the paper we were not aware of the issue (v), only to discover it when lecturing on the result.
To help the reader understand the issues (i), (ii) and (iv), consider a large example in Figure 3. Here paths and intersect multiple times in step defining . Then, in step , path intersects the boundary multiple times. Note that is defined as the last intersection along path , not along . The same property applies to , even if in the example it is the last intersection on both paths.
What exactly goes wrong in (v) in the definition of is rather subtle and we leave this as an exercise to the reader. Note that there is no issue similar to (v) in the definition of points and , since the boundaries are -monotone.
Remark 6.
Note that we explicitly use -monotonicity of the boundary paths . In 4.5 below, we address what happens when the boundary is not -monotone.






4. Generalizations and applications
4.1. General transition probabilities
In the notation of the introduction, consider a more general random walk which moves to neighbors with general (not necessarily uniform) transition probabilities:
with obvious constraints , and
for all . We say these transition probabilities are -invariant if they are translation invariant with respect to vertical shifts:
Theorem 7.
Let be the lattice region as in Theorem 1. Let be the lattice random walk which starts at the origin , moves according to -invariant transition probabilities , as above, and is absorbed whenever tries to exit the region . Denote by the first time such that , and let be the probability that . Then is log-concave:
4.2. Monotone walks
Let be a random walk as above with -invariant transition probabilities. We say that the walk is monotone if for all .
Corollary 8.
Let be the lattice region as in Theorem 1, and let be a vertical interval, . Fix points and . Let be a monotone lattice random walk which starts at point , moves according to -invariant transition probabilities , as above, is absorbed whenever tries to exit the region , and arrives at at time : . Denote by the first time such that , and let be the probability that . Then is log-concave:
Proof.
Define two regions: and . Note that the regions are overlapping along interval and interval , see Figure 4. Suppose is the unique edge of the lattice path which projects onto . In the notation of Theorem 7, we have
where and are the exit probabilities in the region and in the region rotated . Since are log-concave by Theorem 7, so is , as desired. ∎

4.3. General lattices
One can further generalize random walks from to general lattices. For example, we can include steps and -invariant transition probabilities
such that , for all and . One can view this result as a random walk on the triangular lattice instead, see Figure 4. Both the statement and the proof of Theorem 7 extend verbatim once the reader observes that all lattice paths which must intersect for topological reasons do in fact intersect at lattice points.
Similarly, one can use this approach and general transition probabilities to set some of them zero and obtain random walks on other lattices. For example, one can obtain the square–octagon lattice as in the figure by restricting the walks to vertices of the lattice. Theorem 7 applies to this case then. We omit the details.
4.4. Dyck and Schröder paths
In the context of enumerative combinatorics, it is natural to consider lattice paths with steps and . Such paths are called Dyck paths. When step is added, such paths are called Schröder paths.
Fix two points and and two nonintersecting Dyck paths . Note that , since otherwise there are no such paths. Denote by the region between these paths. Let , and denote by the number of Dyck paths which lie inside and contain point .
Corollary 9.
In the notation above, the sequence is log-concave:
Proof sketch.
The proof follows verbatim the proof of Corollary 8 via two observations. First, the vertical translation and topological properties used in the proof of Lemma 2 work with diagonal steps. Second, the intersection points of the paths are at the ends of the steps, not midway, because the Dyck paths here have endpoints on the underlying grid spanned by and which is invariant under the translation. ∎
Similarly, fix two nonintersecting Schröder paths , and denote by the region between these paths. Let , and denote by the number of Schröder paths which lie inside and contain point . The same argument as above gives the following.
Corollary 10.
In the notation above, the sequence is log-concave:
Remark 11.
Note that this result does not directly apply to the, otherwise similar, Motzkin paths, with steps , and . The reason is that the intersection points used in the injection in Lemma 2 might no longer be on the underlying lattice points and appear in the middle of the steps, e.g. at .
Example 12.
Take , , so . Fix maximal and minimal Dyck paths
Set , which makes the picture symmetric. Then Corollary 9 implies log-concavity of binomial coefficients . On the other hand, for the Schröder paths , Corollary 10 implies log-concavity of Delannoy numbers , see [OEIS, A008288], a new enumerative result, see 5.5.
4.5. Boundary matters
First, let us note that both Theorem 1 and Theorem 7 easily extend to regions without either or both of the boundaries . In this case the vertical boundaries become either rays of lines, and the region is an infinite strip in one or two directions, see Figure 5.
Corollary 13.
In the notation of Theorem 1, let be an infinite strip with one or two ends. Then the exit probability distribution is log-concave.
The proof follows immediately from Theorem 1 by taking a sequence of regions where the boundary goes to infinity, i.e. , and noting that log-concavity is preserved in the limit. Alternatively, one can easily modify the proof of Lemma 2 to work for unbounded regions; in fact the construction simplifies in that case. We omit the details.
One can also ask whether the -monotonicity assumption in the theorem can be dropped. Note that the proof of Lemma 2 breaks in step as the shifted path no longer has to lie inside , see Figure 5. Although we do not believe that Theorem 1 extends to non-monotone boundaries, it would be interesting to find a formal counterexample.

Example 14.
In the notation above, let and consider an infinite strip between two lines which forms a ladder graph as in Figure 5. When restricted to , the nearest neighbor random walk moves along with equal probability of going up or down, until it eventually moves to the right, at which point it stops. In this case the exit probabilities can be calculated explicitly:
for all . A direct calculation gives:
Thus, log-concavity is an equality at all . We leave it as an exercise to the reader to give a direct bijective proof of this fact. Note that these equalities disappear for , cf. 5.7.
5. Final remarks
5.1.
Log-concavity of the number of monotone lattice paths as in Corollary 8 is equivalent to the Stanley inequality for posets of width two, as noted in [CFG, GYY]. For general posets, the Stanley inequality was proved in [Sta1]. An explicit injection in the width two case was given in [CFG] and generalized by the authors [CPP1, CPP2]. The construction in [CPP2] was the basis of this paper.
5.2.
Except for the special case of monotone lattice paths and monotone boundary discussed above, we are not aware of the problem even being considered before. The generality of our results is then rather surprising given that even simple special cases appear to be new (see below).
5.3.
The reflection principle is due to Mirimanoff (1923), and is often misattributed to André, see [Ren]. It is described in numerous textbooks, both classical [Fel, Spi] and modern [LL, MP]. For the Karlin–McGregor formula (1959) and its generalizations, including the Brownian motion version of Fomin’s result (Lemma 3), see e.g. [LL, Ch. 9]. For the Lindström–Gessel–Viennot lemma and applications to enumeration of lattice paths, see the original paper [GV] and the extensive treatment in [GJ, 5.4]. It is also related to a large body of work on tilings in the context of integrable probability, see [Gor]. For the algebraic combinatorics context of Fomin’s result in connection with total positivity, see [Pos, 5].
5.4.
Note also that the log-concavity of exit probabilities does not seem to be a consequence of any standard non-combinatorial approaches. For example, the real-rootedness fails already for Delannoy numbers , see 4.4. We refer to [Bre, Sta2] for surveys of classical methods on unimodality and log-concavity, and to [Pak] for a short popular introduction to combinatorial methods. See also surveys [Brä, Huh] for more recent results and advanced algebraic and analytic tools.
5.5.
In the context of Example 12, Dyck, Schröder and Motzkin paths play a fundamental role in enumerative combinatorics in connection with the Catalan numbers [OEIS, A000108], Schröder numbers [OEIS, A006318] and Motzkin numbers [OEIS, A001006], respectively. Ballot numbers and Delannoy numbers appear in exactly the same context. We refer to [Sta3, Ch. 5] for numerous properties of these numbers.
While binomial coefficients and ballot numbers are trivially log-concave via explicit formulas, the log-concavity of Delannoy numbers appears to be new. Non-real-rootedness in this case suggests that already this special case is rather nontrivial. It would be interesting to see if log-concavity of Delannoy numbers can be established directly, in the style of basic combinatorial proofs in [Sag].
5.6.
There is a large literature on exact and asymptotic counting of various walks in the quarter plane with small steps, see e.g. [Bou, BM]. Most notably, both Kreweras walks (1965) and Gessel walks (2000) fit our framework, while some others do not. It would be interesting to further explore this connection.
5.7.
In the context of 4.5 and Example 14, consider a simple random walk constrained to a strip , reflected at , and with no top/bottom boundaries. This special case is especially elegant. The exit probabilities , as , converge to the hyperbolic secant distribution, which is log-concave in .222See the MathOverflow answer: https://mathoverflow.net/a/395065/4040. This is in sharp contrast with the case of a simple random walk which starts at the origin, but is not constrained to be in the halfplane. Denote by the hitting probabilities of the point on the line . In this case it is well known that hitting probabilities , as , converge to the Cauchy distribution, see e.g. [Spi, p. 156], which is not log-concave (in ).
Acknowledgements
We are grateful to Robin Pemantle for interesting discussions on the subject, and to Timothy Budd for his help resolving the MathOverflow question. Nikita Gladkov pointed out a subtle issue in step of the construction in the previous version of this paper, necessitating the addition of Lemma 3. We are also thankful to Per Alexandersson and Cyril Banderier for helpful remarks on the paper. We also thank the anonymous referees for useful comments to improve presentation. The last two authors were partially supported by the NSF.
References
- [Bou] M. Bousquet-Mélou, Counting walks in the quarter plane, in Trends Math., Birkhäuser, Basel, 2002, 49–67.
- [BM] M. Bousquet-Mélou and M. Mishna, Walks with small steps in the quarter plane, in Contemp. Math. 520, AMS, Providence, RI, 2010, 1–39.
- [Brä] P. Brändén, Unimodality, log-concavity, real-rootedness and beyond, in Handbook of enumerative combinatorics, CRC Press, Boca Raton, FL, 2015, 437–483.
- [Bre] F. Brenti, Unimodal, log-concave and Pólya frequency sequences in combinatorics, Mem. AMS 81 (1989), no. 413, 106 pp.
- [CPP1] S. H. Chan, I. Pak and G. Panova, The cross–product conjecture for width two posets, preprint (2021), 30 pp; arXiv: 2104.09009.
- [CPP2] S. H. Chan, I. Pak and G. Panova, Extensions of the Kahn–Saks inequality for posets of width two, preprint (2021), 24 pp.; arXiv:2106.07133.
- [CFG] F. R. K. Chung, P. C. Fishburn and R. L. Graham, On unimodality for linear extensions of partial orders, SIAM J. Algebraic Discrete Methods 1 (1980), 405–410.
- [Fel] W. Feller, An introduction to probability theory and its applications, vol. I (Third ed.), John Wiley, New York, 1968, 509 pp.
- [Fom] S. Fomin, Loop-erased walks and total positivity, Trans. AMS 353 (2001), 3563–3583.
- [GV] I. M. Gessel and X. Viennot, Binomial determinants, paths, and hook length formulae, Adv. Math. 58 (1985), 300–321.
- [Gor] V. Gorin, Lectures on random tilings, monograph draft, Nov. 25, 2019, 191 pp.; https://tinyurl.com/w22x6qq .
- [GJ] I. P. Goulden and D. M. Jackson, Combinatorial enumeration, Wiley, New York, 1983, 569 pp.
- [GYY] R. L. Graham, A. C. Yao and F. F. Yao, Some monotonicity properties of partial orders, SIAM J. Algebraic Discrete Methods 1 (1980), 251–258.
- [Huh] J. Huh, Combinatorial applications of the Hodge–Riemann relations, in Proc. ICM Rio de Janeiro, Vol. IV, World Sci., Hackensack, NJ, 2018, 3093–3111.
- [LL] G. F. Lawler and V. Limic, Random walk: a modern introduction, Cambridge Univ. Press, Cambridge, UK, 2010, 364 pp.
- [MP] P. Mörters and Y. Peres, Brownian motion, Cambridge Univ. Press, Cambridge, UK, 2010, 403 pp.
- [Pak] I. Pak, Combinatorial inequalities, Notices AMS 66 (2019), 1109–1112; an expanded version of the paper is available at https://tinyurl.com/py8sv5v6.
- [Pos] A. Postnikov, Total positivity, Grassmannians, and networks, preprint (2006), 79 pp.; arXiv:math/0609764.
- [Ren] M. Renault, Lost (and found) in translation, Amer. Math. Monthly 115 (2008), 358–363.
- [Sag] B. E. Sagan, Inductive and injective proofs of log concavity results, Discrete Math. 68 (1988), 281–292.
- [OEIS] N. J. A. Sloane, The online encyclopedia of integer sequences, oeis.org.
- [Spi] F. Spitzer, Principles of random walk (Second ed.), Springer, New York, 1976, 408 pp.
- [Sta1] R. P. Stanley, Two combinatorial applications of the Aleksandrov--Fenchel inequalities, J. Combin. Theory, Ser. A 31 (1981), 56--65.
- [Sta2] R. P. Stanley, Log-concave and unimodal sequences in algebra, combinatorics, and geometry, in Graph theory and its applications, New York Acad. Sci., New York, 1989, 500--535.
- [Sta3] R. P. Stanley, Enumerative Combinatorics, vol. 1 (Second ed.) and vol. 2, Cambridge Univ. Press, 2012 and 1999.