Next Article in Journal
On Positive Recurrence of the Mn/GI/1/ Model
Next Article in Special Issue
Predicting Intensive Care Unit Patients’ Discharge Date with a Hybrid Machine Learning Model That Combines Length of Stay and Days to Discharge
Previous Article in Journal
Derivative-Free Families of With- and Without-Memory Iterative Methods for Solving Nonlinear Equations and Their Engineering Applications
Previous Article in Special Issue
A Unified Formal Framework for Factorial and Probabilistic Topic Modelling
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On the Height of One-Dimensional Random Walk

by
Mohamed Abdelkader
Department of Statistics and Operations Research, Faculty of Sciences, King Saud University, Riyadh 11451, Saudi Arabia
Mathematics 2023, 11(21), 4513; https://doi.org/10.3390/math11214513
Submission received: 3 October 2023 / Revised: 23 October 2023 / Accepted: 27 October 2023 / Published: 1 November 2023
(This article belongs to the Special Issue Advances of Applied Probability and Statistics)

Abstract

:
Consider the one-dimensional random walk X n : as it evolves (at each unit of time), it either increases by one with probability p or resets to 0 with probability 1 p . In the present paper, we analyze the law of the height statistics H n , corresponding to our model X n . Also, we prove that the limiting distribution of the walk X n is a shifted geometric distribution with parameter 1 p and find the closed forms of the mean and the variance of X n using the probability-generating function.
MSC:
60C05; 60F99; 60E05; 60G40

1. Introduction

Let ( X n ) n N be a discrete random walk with one dimension defined as follows: The walk starts from the origin at Time 0. After one unit of time, the process X n shifts by one positive unit with probability p ( 0 , 1 ) or resets to 0 with probability 1 p . We provide three examples of the evolution of our random walk until time n = 10:
0 p 1 p 2 1 p 0 p 1 p 2 p 3 p 4 p 5 p 6 p 7 ,
0 p 1 p 2 p 3 1 p 0 p 1 p 2 p 3 p 4 1 p 0 p 1 ,
0 p 1 1 p 0 1 p 0 1 p 0 1 p 0 p 1 p 2 1 p 0 1 p 0 1 p 0 ,
In the above examples, the height of the preceding walks are equal to 7, 4, and 2, respectively.
In this work, we are interested in analyzing the height statistics, denoted by H n , of the random walk X n . Our analysis of the height is based on the combinatorial analysis of the coefficient a ( n , r , k ) = Card I n , r , k , representing the number of ways to choose r distinct integers n 1 , , n r satisfying the following conditions:
I n , r , k = { 1 n 1 < < n r n } { max ( n i + 1 n i ) k , 1 i r } ,
such that n 1 = 1 and n r = n and based on the probability distribution of the return time, denoted by N n , of the random walk X n , given by
P ( N n = r ) = p n 1 p p r + 1 s = 1 n r 1 n 1 s r p s .
Our contribution in this current paper is finding a closed form of the distribution of the height statistics H n using a combinatorial analysis of the coefficient a ( n , r , k ) and the distribution of the return time N n of the random walk X n . The closed form of the probability distribution of H n is given by:
P H n k = p 2 n r = 1 n s = 1 n r 1 p s a ( n , r , k ) 1 p p 2 r + 1 n 1 s r I I n , r , k .
Furthermore, we study the statistical properties of the random walk X n , like the mean, the variance, and the limiting distribution of X n . Precisely, we prove that the limiting distribution of the random walk X n is a shifted geometric distribution with parameter 1 p , and we give the closed forms of the mean and the variance of X n .
This analysis of the height statistics is very important, and it is applicable to many aspects of renewable energy. For example, electricity today plays a very important role in daily activities and is very essential for transport, education, healthcare, and many other sectors. For this reason, controlling electricity consumption is necessary and is performed by estimating the maximum amount of electricity consumption. Electricity consumption is estimated via statistical methods such as time series models [1,2], regression models [3], and ARIMA models [4]. Furthermore, this maximum amount is similar to the height of the electricity consumption in a given period of time.
In the literature, the statistical properties of the height statistics are studied in one dimension via the kernel method and singularity analysis (see [5,6]). For example, we can mention the distribution of the ranked heights of the excursions of a Brownian bridge, investigated by Pitman and Yor in [7]. Similarly, Csaki and Hu analyzed the asymptotic properties of ranked heights in Brownian excursions in [8]. Also, Csaki and Hu analyzed the lengths and heights of random walk excursions in [9]. Furthermore, Katzenbeisser and Panny studied the maximal height of simple random walks, which were revisited in [10]. In addition, Banderier and Nicodème [11] studied the height of discrete bridges/meanders/excursions for bounded discrete walks. Also, Aguech, Althagafi, and Banderier in [12] analyzed the height of walks with resets and the Moran model.
This paper is organized as follows. In Section 2, we introduce our model in detail and define the return time and the height statistics, denoted by H n , of our random walk X n . In Section 3, we present our main result concerning the distribution of the height statistics of the random walk X n . In Section 4, we use the R program to find all possibilities of the integers n 1 , , n r satisfying the conditions defined in Equation (4) and compute the combinatorial coefficient for different values of n, r, and k. In Section 5, we prove that the limiting distribution of the random walk X n is a shifted geometric distribution with parameter 1 p . Also, we use the probability-generating function of the random walk X n to obtain their mean and variance. In Section 6, we present some conclusions concerning our results and some perspectives.

2. Definitions and Presentation of the Model

In this section, we define an elegant tool called the probability-generating function, which plays an important role in finding the mean and variance of the random walk. Next, we present our model: a one-dimensional random walk. Finally, we finish this section by providing definitions of some statistics like the return time and the height.
Let U be a discrete random variable with distribution P ( U = r ) = p r , r N . The probability-generating function, denoted by G, of the variable U is defined by:
G U ( u ) = E ( u U ) = r = 0 u r p r ,
for all u R such that | u | < 1 .
The probability-generating functions constitute an elegant tool to study the statistical characteristics of a random walk. Precisely, the probability density functions associated with discrete stochastic processes and their moments can be obtained from the derivatives of the probability-generating function. In fact, we can obtain the closed forms of the mean and the variance of the process if we derive the probability-generating function, at u = 1 . For more details, see [6,13,14].
Furthermore, we introduce the following important equations, which are related to the mean and variance of U and G U ( u ) :
E U = G U ( u ) u | u = 1 and V a r U = 2 G U ( u ) 2 u | u = 1 + E U E U 2 .
Consider the one-dimensional random walk X n . It starts from 0 at Time 0 (i.e., X 0 = 0 ), parameterized by a probability p ( 0 , 1 ) . It is given by the following system:
X n + 1 = X n + 1 with probability p , 0 with probability 1 p ,
where p ( 0 , 1 ) . We denote by the statistics N n the number of return times of the random walk X n to 0 up to time n and H n the height of the random walk X n :
N n = Card 1 k n , such   that , X k = 0 , H n = max ( X 1 , X 2 , , X n ) .

3. Main Result

The goal of this section is to obtain the distribution of H n . To reach this goal, we apply at first a very important result concerning the distribution of the return time N n of the random walk X n (see Theorem 3 in [15]). For the second setup, we analyze the joint distribution of H n , N n using the conditional probability and the marginal distribution of the return time N n . Finally, we deduce the marginal distribution of H n .
Now, we present a very important result concerning the distribution of the return time, N n , of the random walk X n .
Lemma 1
([15]). The exact distribution of N n is given by
P ( N n = r ) = p n 1 p p r + 1 s = 1 n r 1 n 1 s r p s .
Consider the following event H n k | N n = r representing the height statistics H n , bounded by k, given that the return time N n equals r of the random walk X n :
H n k | N n = r = I n , r , k { G 1 = n 1 , , G r = n r n r 1 , X n r + 1 X n 0 } ,
where G i are i.i.d. geometric random variables with parameter 1 p and
I n , r , k = { 1 n 1 < < n r n } { max ( n i + 1 n i ) k , 1 i r } ,
such that n 0 = 1 and n r + 1 = n . We define the combinatorial coefficient a n , r , k :
a ( n , r , k ) = Card I n , r , k ,
representing the number of ways to choose r distinct integers n 1 , , n r satisfying the conditions in Equation (4).
Remark 1.
The combinatorial coefficient a n , r , k depends on the parameters n, r, and k, where n represents the length of the random walk X n and a k integer less than n.
We present a closed form of the combinatorial coefficient a n , r , k in the next lemma.
Lemma 2.
The coefficient a n , r , k is given by
a n , r , k = z n j = 1 k z j r + 1 = z n r 1 j = 0 k 1 z j r + 1 ,
where [ z m ] G ( z ) stands for the coefficient of z m in the power series G ( z ) .
Proof. 
For all n 1 , , n r I n , r , k , let k 1 = n 1 , k i = n i + 1 n i and k r + 1 = n n r . It is obvious that identifying k 1 , , k r + 1 is equivalent to identifying n 1 , , n r , and then:
a n , r , k = k 1 , , k r + 1 1 , , k r + 1 , such   that , i = 1 r + 1 k i = n . = z n j = 1 k z j r + 1 .
Remark 2.
From Equation (6), the combinatorial coefficient a n , r , k is the coefficient of z n r 1 in the power series G ( z ) .
Next, we give some results about the height H n of the random walk X n . It represents the maximal height attained by the walk X n , in all of the past from 1 to n. This means that, for all n and for all k n , the values of X n are between 0 and k. For this purpose, firstly, we compute the joint distribution of the discrete return time N n and the height H n of the random walk X n . Secondly, for all k { 0 , , n 1 } and for all r { 1 , , n 1 } , we find the conditional probability of the height H n bounded by the integer k given that the return time N n equals r. Furthermore, we determine the probability of the intersection between the events { H n k } and { N n = r } . Finally, we deduce the marginal distribution of H n .
The next theorem leads to the conditional probability that the height H n of the random walk X n is bounded by k given that the return time N n equals r.
Theorem 1.
The conditional distribution of H n , given N n = r , is given by
P ( H n k | N n = r ) = I n , r , k P G 1 = n 1 , G 2 = n 2 n 1 , , G r = n r n r 1 , X n r + 1 X n 0 = a ( n , r , k ) p r 1 p n r ,
Proof. 
Using (3), we have
P ( H n k | N n = r ) = I n , r , k P ( { X 1 0 , X 2 0 , , X n 1 1 0 , X n 1 = 0 } { X n 1 + 1 0 , , X n 2 1 0 , X n 2 = 0 } { X n r 1 + 1 0 , , X n r 1 0 , X n r = 0 } { X n r + 1 0 , , X n r 1 0 , X n 0 } ) ,
where n r + 1 = n , n 1 = 1 , and i { 0 , 1 , , r } .
Using the conditional probability, we obtain
P ( H n k | N n = r ) = I n , r , k P { X n 0 , X 2 0 , , X n r + 1 0 } | { X n r = 0 } × P { X n r = 0 , X n r 1 0 , , X n r 1 1 0 , X n r 1 + 1 0 } | { X n r 1 = 0 } × P { X n r 1 = 0 , X n r 1 1 0 , , X n r 2 + 1 0 } | { X n r 2 = 0 } × P { X n 2 = 0 , , X n 2 1 0 , X n 1 + 1 0 } | { X n 1 = 0 } × P { X n 1 = 0 , , X n 1 1 0 , X 2 0 } .
Thus,
P ( H n k | N n = r ) = I n , r , k p n n r ( 1 p ) p n r n r 1 1 ( 1 p ) p n 2 n 1 1 ( 1 p ) p n 1 = a ( n , r , k ) ( 1 p ) r p n r .
From Theorem 1, we deduce the joint distribution of the following events { N n = r } and { H n k } .
Corollary 1.
The joint distribution of ( N n , H n ) satisfies the following relation:
P H n k , N n = r = a ( n , r , k ) p 2 n 1 p p 2 r + 1 s = 1 n r 1 n 1 s r p s ,
where a ( n , r , k ) is defined in Lemma 1.
Proof. 
One has
P H n k , N n = r = P ( H n k | N n = r ) P ( N n = r ) ,
Applying Lemma 1 and Theorem 1, we obtain
P H n k , N n = r = a ( n , r , k ) p 2 n 1 p p 2 r + 1 s = 1 n r 1 n 1 s r p s ,
where a ( n , r , k ) is defined in Lemma 1. □
We deduce here some information about the distribution of H n . By summing over r in Equation (7), we obtain the marginal distribution of H n , as follows:
Corollary 2.
The probability distribution of the height statistics H n of the random walk X n is given by the following equation:
P H n k = p 2 n r = 1 n s = 1 n r 1 p s a ( n , r , k ) 1 p p 2 r + 1 n 1 s r I I n , r , k ,
where I n , r , k is defined in Equation (4).

4. Simulation of the Combinatorial Coefficient a n , r , k

In this section, we use the R program to compute the combinatorial coefficient a ( n , r , k ) for different values of n, r, and k. In the first case, we find the value of the coefficient a n , r , k and count all the possibilities of the integers n 1 , , n r for n = 7 , k { 2 , 3 } and r { 4 , 5 , 6 } . In the second case, we determine the possibilities of the integers n 1 , , n r for n = 5 , k { 2 , 3 } and r { 3 , 4 } . Also, we list the values of the combinatorial coefficient a n , r , k for different values of n (4, 5, 6, and 7), r (2, 3, 4, and 5), and k (2, 3, 4, 5, and 6).
In Table 1, we find all the possibilities of the integers n 1 , , n r under the conditions defined in Equation (4) for different values of r and k when n equals 7 and compute the corresponding combinatorial coefficient a n , r , k . Precisely, in the first case, when n and k are fixed at 7 and 2, respectively, and the number r takes values of 4, 5, and 6, then the combinatorial coefficient a n , r , k takes the values 17, 12, and 7. This means that, when r increases, then the coefficient a n , r , k decreases. In the second case, if n and k equal 7 and 2 and r increases from 2 to 3, then the coefficient a n , r , k increases from 12 to 18, respectively. This means that the coefficient a n , r , k increases when k increases. Also, from Table 1, we observe that a n , r , k is fixed at 7 when r is near n and k byat least 2 ( r = 6 and k 2 ).
Table 2 lists all the possibilities of the integers n 1 , , n r under the conditions defined in Equation (4) for different values of r and k when n equals 5. Also, we deduce the value of the combinatorial coefficient a n , r , k for each list. Furthermore, Table 2 shows two cases of the increasing of the combinatorial coefficient a n , r , k , which depends on the parameters r (the number of integers n 1 , , n r ) and h (the bound of the height H n of the random walk X n ). Precisely, in the first case, when n and k are fixed at 5 and 2 and r increases from 3 to 4, then the combinatorial coefficient a n , r , k decreases from 8 to 5. This means that the coefficient a n , r , k decreases when r increases. In the second case, if n and r are equal to 5 and 3 and k increases from 2 to 3, then the coefficient a n , r , k increases from 8 to 10, respectively. This means the coefficient a n , r , k increases when k increases for fixed n and r.
Table 3 shows that the combinatorial coefficient a n , r , k depends on the three parameters n, r, and K. Precisely, this coefficient is increasing or decreasing if the parameters n, r, and p change. From Table 3, we distinguish three cases concerning the computation of a n , r , k :
In the first case, when n is increasing, r and k are fixed, then we observe that the coefficient a n , r , k increases. For example, if n takes values of 4, 5, 6, and 7 and r and k equal 2 and 4, then a n , r , k takes values of 6, 10, 14, and 16, respectively. Sometimes, this increasing of a n , r , k is very quick, and it takes values of 4, 5, 15, and 32 when n takes values of 4, 5, 6, and 7 and r and k equal 4 and 3, respectively. But, sometimes, a n , r , k decreases under the same conditions. For example, a n , r , k takes values of 5, 5, 3, and 1 when n equals 4, 5, 6, and 7 and r and k equal 2.
In the second case, the combinatorial coefficient a n , r , k decreases or increases when n and k are fixed but r increases. This means that there exists a maximal coefficient a n , r , k for special values of n, r, and k. Firstly, if n equals 5, k equals 3, and r takes values of 2, 3, and 4, then the coefficient a n , r , k increases from 9 to 10 and decreases to 5, respectively. Secondly, the coefficient a n , r , k increases from 3 to 11 and decreases to 6 when n equals 6, k equals 2, and r takes values of 2, 3, 4, and 5. Finally, the coefficient a n , r , k increases from 16 to 35 and decreases to 21 when n equals 7, k equals 4, and r takes values of 2, 3, 4, and 5.
In the third case, the combinatorial coefficient a n , r , k increases when n and r are fixed, but k increases. This means that a n , r , k and k are proportionally related. Firstly, if n equals 5, r equals 3, but k takes values of 1, 2, 3, and 4, then the coefficient a n , r , k equals 1, 8, 10, and 10, respectively. Secondly, if n equals 6, r equals 4, but k takes values of 2, 3, and 4, then the coefficient a n , r , k equals 11, 15, and 10, respectively. Finally, if n equals 7, r equals 3, but k takes values of 2, 3, 4, 5, and 6, then the coefficient a n , r , k equals 6, 25, 33, 35, and 35, respectively.
Furthermore, Table 3 shows that there exists a maximal combinatorial coefficient a n , r , k for special values of n, r, and k. Firstly, a n , r , k equals 6 when n = 4 , r = 2 , and k increases from 3 to n. Secondly, a n , r , k equals 10 when n = 5 , r = 2 , and k increases from 4 to n or r = 3 and k increases from 3 to n. Next, a n , r , k equals 20 when n = 6 , r = 3 , and k increases from 4 to n. Finally, a n , r , k equals 35 when n = 7 , r = 3 , and k increases from 5 to n or r = 4 and k increases from 4 to n.
Finally, we observe a very nice property of the combinatorial coefficient a n , r , k . This property depends on the parity of n and the length of the random walk X n . Precisely, we mention that, if n is an even number, r equals ( n / 2 ) , and k takes any value from r + 1 to n, then a n , r , k is maximal. For example, when n = 4 , r = 2 , and 3 k 4 or n = 6 , r = 3 , and 4 k 6 , the combinatorial coefficient a n , r , k is maximal and equals 10 and 20, respectively. But, if n is an odd number, r equals n 1 2 and k takes any value from r + 2 to n or r equals n + 1 2 and k takes any value from r to n, then a n , r , k is maximal. For the first example, when n = 5 , r = 2 , and 4 k 5 or r = 3 and 3 k 5 , the combinatorial coefficient a n , r , k is maximal and equals 10. For the second example, when n = 7 , r = 3 , and 5 k 7 or r = 4 and 4 k 7 , the combinatorial coefficient a n , r , k is maximal and equals 35.
We perform the computation of the combinatorial coefficient a n , r , k for different values of the parameters n, r, and k by the following setups:
First setup:
1.
We fix the three parameters n, r, and k;
2.
we initialize the combinatorial coefficient a n , r , k to 0;
3.
We fix the integers ( n 1 , , n r ) to (1, …, r), then we guarantee that the difference between two consecutive integers is less than k;
4.
We change n r by a value from r + 1 to n, and we stop if n r n r 1 > k ;
2.
When n r n r 1 k , then a n , r , k a n , r , k + 1 .
Second setup:
1.
We start with the integers ( n 1 , , n r 2 , n r , n r + 1 ) , which equal (1, …, r 2 , r, r + 1 ) such that the difference between two consecutive integers is less than or equal to k;
2.
We change n r + 1 by a value from r + 2 to n, and we stop if n r + 1 n r > k ;
3.
When n r n r 1 k , then a n , r , k a n , r , k + 1 ;
4.
a n , r , k a n , r , k + 1 .
Third setup:
1.
We repeat the same procedure from the first and second setups;
2.
The last choice of the integers ( n 1 , , n r ) is ( 1 , 1 + k , 2 + k , , n ) , then we guarantee that the difference between two consecutive integers is less than k;
3.
a n , r , k a n , r , k + 1 . If n 2 n 1 > k , we stop the procedure in the third setup.
Final setup:
1.
We repeat the preceding setups for n 1 from 2 to an integer c such that c 1 = k ;
2.
a n , r , k a n , r , k + 1 .

5. Distribution of the Random Walk X n

In this section, we analyze some statistical properties like the limiting distribution, the mean, and the variance of the random walk X n using a very nice tool called the probability-generating function. Firstly, we find the relation between the probabilities of the random walk X . at two consecutive times n and n + 1 using the conditional probability. Secondly, we determine a recursive equation between f n ( x ) and f n + 1 ( x ) , where f n ( x ) = E x X n represents the probability-generating function of X n . Next, we use f n ( x ) to prove that the random walk X n converges to a shifted geometric distribution with parameter 1 p asymptotically. Also, we derive f n ( x ) to obtain the mean and the variance of the random walk X n . Start by the definition of the probability mass function of X n . Denote, for all r { 0 , , n + 1 } ,
P n + 1 ( r ) = P X n + 1 = r .
The following lemma presents the recursion of the probabilities.
Lemma 3.
For all n 0 , we have
P n + 1 ( r ) = p P n ( r 1 ) , if r 1 , ( 1 p ) , if r = 0 .
Proof. 
This proof is based on the utility of the conditional probability that the Moran walk X . equals r at time n + 1 given that it equals l at time n, then:
1.
For r 1 , we have
P n + 1 ( r ) = P ( X n + 1 = r | X n = r 1 ) × P ( X n = r 1 ) = p P n ( r 1 ) ,
2.
For r = 0 , we have
P n + 1 ( r ) = l = 0 n P ( X n + 1 = r , X n = l ) = l = 1 n P ( X n + 1 = r | X n = l ) × P ( X n = l ) = ( 1 p ) l = 0 n P n ( l ) = 1 p .
Next, we define the sequence of polynomials f n ( x ) (for n N ) by the fact that the coefficient of x r in f n ( x ) is the probability that, at time n, the position of the process X . is at level r, that is
f n ( x ) = E x X n = r = 0 n x r P n ( r ) .
From Equation (9) and Lemma 3, we deduce a recursive equation relating f n + 1 ( x ) , f 0 ( x ) , and f n ( x ) . It is presented in the next proposition.
Proposition 1.
For all x R , the explicit expression of the sequence of polynomials f n ( x ) satisfies the following recurrence:
f n + 1 ( x ) = ( 1 p ) + p x f n ( x ) ,
with the initial condition f 0 ( x ) = P 0 ( 0 ) = 1 .
Proof. 
Using Equation (9) and for all n 1 , the function f n + 1 ( x ) can be developed as:
f n + 1 ( x ) = P n + 1 ( 0 ) + r = 1 n + 1 x r P n + 1 ( r ) .
Due to Lemma 3, we have:
r = 1 n + 1 x r P n + 1 ( r ) = p x f n ( x ) .
Now, we use Equation (10) to show that the random walk X n converges to a shifted geometric distribution with parameter 1 p asymptotically. It is introduced in the next theorem.
Theorem 2.
The limiting distribution of the process X n converges to a shifted geometric distribution with parameter 1 p , with a probability-generating function given by the following: for all n 0 ,
f n ( x ) = E x X n = ( p x ) n + ( 1 p ) 1 ( p x ) n 1 p x ,
for all x R , such that | 1 p x | < 1 .
Proof. 
Iterating the recursive equation defined in (10) n times, we obtain
f n ( x ) = E x X n = ( p x ) n + ( 1 p ) 1 ( p x ) n 1 p x ,
and passing to the limit of f n ( x ) , then we have
lim n f n ( x ) = lim n ( p x ) n + ( 1 p ) 1 ( p x ) n 1 p x , = 1 p 1 p x ;
this is exactly the generating function of a shifted geometric distribution with parameter 1 p . □
To derive the probability-generating function f n ( x ) given in Theorem 2, we deduce the closed expressions of the mean and the variance of the random walk X n .
Corollary 3.
The mean and the variance of the random walk X n are given by
E ( X n ) = p p n + 1 1 p ,
V a r X n = p ( 1 p ) 2 1 p n p n + 1 + ( 1 + 2 n ) ( 1 p ) .
Proof. 
The first derivative of f n ( x ) defined in Equation (11) with respect to x:
f n ( x ) x = n p n x n 1 ( 1 p ) n p n x n 1 1 p x + ( 1 p ) p 1 p n x n ( 1 p x ) 2 ,
evaluating at u = 1 ,
f n ( x ) x | x = 1 = p p n + 1 1 p .
Using Equation (1), we obtain
E X n = f n ( x ) x | x = 1 = p p n + 1 1 p .
To derive the variance of X n , we need to define the following sequences of functions:
K n ( x ) = x n 1 1 p x , L n ( x ) = 1 p n x n ( 1 p x ) 2 .
Observe that the first and second derivatives of f n ( x ) are given by
f n ( x ) x = n p n x n 1 n p n ( 1 p ) K n ( x ) + p ( 1 p ) L n ( x ) , 2 f n ( x ) u x = n ( n 1 ) p n x n 2 n p n ( 1 p ) K n ( x ) x + p ( 1 p ) L n ( x ) x .
The first derivative of K n ( x ) and L n ( x ) with respect to x at x = 1 is given by
K n ( x ) x | x = 1 = ( n 1 ) x n 2 1 p x + p x n 1 ( 1 p x ) 2 | x = 1 = ( n 1 ) 1 p + p ( 1 p ) 2 ,
L n ( u ) x | x = 1 = n p n x n 1 ( 1 p x ) 2 + 2 p ( 1 p n x n ) ( 1 p x ) 3 | x = 1 = n p n ( 1 p ) 2 + 2 p ( 1 p n ) ( 1 p ) 3 .
Combining Equations (14)–(16), we obtain
2 f n ( x ) u x | x = 1 = 2 n p n + 1 1 p + 2 p 2 ( 1 p n ) ( 1 p ) 2 .
Applying Equations (1), (12), and (17), we obtain
V a r ( X n ) = 2 n p n + 1 1 p + 2 p 2 ( 1 p n ) ( 1 p ) 2 + p p n + 1 1 p p p n + 1 1 p 2 .

6. Conclusions and Perspectives

In this current paper, we stated our main result concerning the height of the random walk X n . Precisely, we found the joint distribution between the height and the return time statistics. This is given by the following formula:
P H n k , N n = r = a ( n , r , k ) ( 1 p ) r p n r P N n = r ,
where a ( n , r , k ) is a combinatorial coefficient. Also, we analyzed this coefficient numerically using the R program and took some properties:
1.
If n increases and r and k are fixed, then the combinatorial coefficient a ( n , r , k ) increases;
2.
The combinatorial coefficient a n , r , k decreases or increases when n and k are fixed, but r increases. This means that there exists a maximal coefficient a n , r , k for special values of n, r, and k;
3.
The combinatorial coefficient a n , r , k increases when n and r are fixed, but k increases. This means that a n , r , k and k are proportionally related.
Also, we observe from Table 3 a very nice property of the combinatorial coefficient a n , r , k . This property depends on the parity of n and special values of r and k. Precisely, we mention that, if n is an even number, r equals ( n / 2 ) , and k takes any value from r + 1 to n, then a n , r , k is maximal. But, if n is an odd number, r equals n 1 2 , and k takes any value from r + 2 to n or r equals n + 1 2 and k takes any value from r to n, then a n , r , k is maximal.
Furthermore, we studied the statistical properties of the random walk X n like the limit distribution, the mean, and the variance. Firstly, we found the closed form of the probability-generating function of the random walk X n from the recursive equation defined in Equation (10). Next, we proved that the limiting distribution of X n is a shifted geometric distribution with parameter 1 p . Finally, we derived the probability-generating function of X n to obtain the closed forms of the mean and the variance of X n .
In the next work, we plan to work on the following questions:
1.
Can we find a closed form of the probability-generating function of the height?
2.
Can we explicitly calculate the mean and variance of the height statistics using the probability-generating function of H n ?

Funding

We thank the Deputyship for Research and Innovation, the “Ministry of Education”, in Saudi Arabia for funding this research (IFKSUOR3-331-1).

Data Availability Statement

The random samples were generated using the RStudio-2023.09.0 program.

Acknowledgments

The author extends appreciation to the Deputyship for Research and Innovation, the “Ministry of Education”, in Saudi Arabia for funding this research (IFKSUOR3-331-1).

Conflicts of Interest

The author declares no conflict of interest.

References

  1. Sarkodie, S.A. Estimating Ghana’s electricity consumption by 2030: An ARIMA forecast. Energy Sources Part B Econ. Plan. Policy 2017, 12, 936–944. [Google Scholar] [CrossRef]
  2. Chavez, S.G.; Bernat, J.X.; Coalla, H.L. Forecasting of energy production and consumption in Asturias (northern Spain). Energy 1999, 24, 183–198. [Google Scholar] [CrossRef]
  3. Kankal, M.; Akpınar, A.; Kömürcü, M.; Özşahin, I. Modeling and forecasting of Turkey’s energy. Consumption using socio-economic and demographic variables. Appl. Energy 2011, 88, 1927–1939. [Google Scholar] [CrossRef]
  4. Koutroumanidis, T.; Ioannou, K.; Arabatzis, G. Predicting fuelwood prices in Greece with the use of ARIMA models, artificial neural networks and a hybrid ARIMA–ANN model. Energy Policy 2009, 37, 3627–3634. [Google Scholar] [CrossRef]
  5. Banderier, C.; Flajolet, P. Basic analytic combinatorics of directed lattice paths. Theor. Sci. 2002, 281, 37–80. [Google Scholar] [CrossRef]
  6. Flajolet, P.; Sedgewick, R. Analytic Combinatorics; Cambridge University Press: Cambridge, UK, 2009. [Google Scholar]
  7. Jim Pitman, J.; Yor, M. On the distribution of ranked heights of excursions of a Brownian bridge. Ann. Probab. 2001, 29, 361–384. [Google Scholar] [CrossRef]
  8. Csaki, E.; Hu, Y. Asymptotic properties of ranked heights in Brownian excursions. J. Theor. Probab. 2001, 14, 77–96. [Google Scholar] [CrossRef]
  9. Csaki, E.; Hu, Y. Lengths and heights of random walk excursions. In Discrete Mathematics and Theoretical Computer Science; Discrete Random Walks: Paris, France, 2003; pp. 45–52. [Google Scholar]
  10. Katzenbeisser, W.; Panny, W. The maximal height of simple random walks revisited. J. Satistical Plan. Inference 2002, 101, 149–161. [Google Scholar] [CrossRef]
  11. Banderier, C.; Nicodème, P. Bounded discrete walks. In Discrete Mathematics and Theoretical Computer Science; Discrete Random Walks: Paris, France, 2010; pp. 35–48. [Google Scholar] [CrossRef]
  12. Althagafi, A.; Aguech, R.; Banderier, C. Height of walks with resets and the Moran model. Sémin. Lothar. Comb. 2023; submitted. [Google Scholar]
  13. Gao, K.; Yan, X.; Peng, R.; Xing, L. Economic design of a linear consecutively connected system considering cost and signal loss. IEEE Trans. Syst. Man Cybern. Syst. 2021, 51, 5116–5128. [Google Scholar] [CrossRef]
  14. Gao, K.; Peng, R.; Qu, C.L.; Xing, L.; Wang, S.; Wu, F. Linear system design with application in wireless sensor networks. J. Ind. Inf. Integr. 2022, 27, 100279. [Google Scholar] [CrossRef]
  15. Aguech, R.; Abdelkader, M. Two-Dimensional Moran Model: Final Altitude and Number of Resets. Mathematics 2023, 11, 3774. [Google Scholar] [CrossRef]
Table 1. All possibilities of the integers n 1 , , n r for n = 7 .
Table 1. All possibilities of the integers n 1 , , n r for n = 7 .
r = 4 , k = 2 r = 5 , k = 2 r = 5 , k = 3 r = 6 , k = 2
n 1 n 2 n 3 n 4 n 1 n 2 n 3 n 4 n 5 n 1 n 2 n 3 n 4 n 5 n 1 n 2 n 3 n 4 n 5 n 6
12351234512345123456
12461234612346123457
13451235612347123467
13461235712356123567
13561345612357124567
13571345712367134567
23451346712456234567
23462345612457
23562345712467
23572346713456
24562456713457
24573456713467
2467 14567
3456 23456
3457 23457
3467 23467
3567 23567
24567
Table 2. All possibilities of the integers n 1 , , n r for n = 5 .
Table 2. All possibilities of the integers n 1 , , n r for n = 5 .
r = 3 , k = 3 r = 3 , k = 2 r = 4 , k = 2
n 1 n 2 n 3 n 1 n 2 n 3 n 1 n 2 n 3 n 4
1231231234
1241241235
1251341245
1341351345
1352342345
145235
234245
235345
245
345
Table 3. The combinatorial coefficient a ( n , r , k ) for different values of n.
Table 3. The combinatorial coefficient a ( n , r , k ) for different values of n.
nrk a ( n , r , k ) nrk a ( n , r , k )
422563520
423664211
424664315
431264415
43246526
43347221
52257239
523972416
5241072520
5251072621
53117326
532873325
5331073433
5341073535
541273635
542574218
543574332
622374435
6231074535
6241475217
6251575321
632875421
6331875521
6342075621
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Abdelkader, M. On the Height of One-Dimensional Random Walk. Mathematics 2023, 11, 4513. https://doi.org/10.3390/math11214513

AMA Style

Abdelkader M. On the Height of One-Dimensional Random Walk. Mathematics. 2023; 11(21):4513. https://doi.org/10.3390/math11214513

Chicago/Turabian Style

Abdelkader, Mohamed. 2023. "On the Height of One-Dimensional Random Walk" Mathematics 11, no. 21: 4513. https://doi.org/10.3390/math11214513

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop