Next Article in Journal
Dynamics of Persistent Epidemic and Optimal Control of Vaccination
Previous Article in Journal
A Hybrid MCDM Approach Based on Fuzzy MEREC-G and Fuzzy RATMI
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Two-Dimensional Moran Model: Final Altitude and Number of Resets

Department of Statistics and Operations Research, King Saud University, Riyadh 11451, Saudi Arabia
*
Authors to whom correspondence should be addressed.
Mathematics 2023, 11(17), 3774; https://doi.org/10.3390/math11173774
Submission received: 5 June 2023 / Revised: 24 August 2023 / Accepted: 29 August 2023 / Published: 2 September 2023
(This article belongs to the Section Probability and Statistics)

Abstract

:
In this paper, we consider a two-dimension symmetric random walk with reset. We give, in the first part, some results about the distribution of every component. In the second part, we give some results about the final altitude Z n . Finally, we analyse the statistical properties of N n X , the number of resets (the number of returns to state 1 after n steps) of the first component of the random walk. As a principal tool in these studies, we use the probability generating function.
MSC:
60C05; 60F99; 60E05; 60G40

1. Introduction

The two-dimensional Moran model is a simple discrete process used in many fields to describe the evolution of two discrete random walks in each unit of time.
Moran’s random walk model can be applied in the field of renewable energy. Many renewable energy situations can be modelled as Moran’s random walk. This modelling has the advantage of minimizing expenses to guarantee the proper functioning of such a system by avoiding surprise breakdowns. In certain ecosystems, and more particularly in certain tropical forests, different species with the same ecological requirements coexist in the same environment. For example, some forests have more than a hundred different tree species on one hectare. To explain this astonishing diversity, scientists have constructed models in which community composition is solely based on the stochastic dispersal of individuals. The mathematical model studied in our paper is in line with this. It was suggested by M. Kalyuzhni [1] in an article where he justifies its relevance. It is known as Moran’s model in a random environment. It is therefore a question of studying a process of birth and death which takes into account environmental hazards (climates, diseases, etc.) that randomly favour or disadvantage certain species.
In this work, our goal is to study the statistical properties of some discrete statistics such as the limiting distributions, the mean and the variance of two discrete walks in our model, X n and Y n , and the maximum of two walks Z n (called final altitude) using very elegant tools called probability generating functions. Also, we analyse the return time, N n X , of the random walk X n and find its mean and variance.
In the literature, these properties of discrete random walks are studied in one dimension and in higher dimensions via the kernel method and singularity analysis (see [2,3]). For example, for one dimension, if one focuses on articles which play a role in our analysis, Banderier and Flajolet have proven in [2] that the limiting distribution of the final altitude of a random meander of length n converges to a Rayleigh distribution (drift δ = 0 ) and normal distribution ( δ > 0 ). Furthermore, the height of discrete bridges/meanders/excursions for bounded discrete walks has been analysed by Banderier and Nicodème [4]. Also, Aguech, Althagafi, and Banderier in [5] have studied the height of walks with resets and the Moran Model. Similar extremal parameters were studied for trees in [6,7], and by Gafni [8] for the asymptotic distribution of the length of the longest run of consecutive equal parts. Finally, Banderier and Wallner treated the number of catastrophes of a random excursion of size n, which converges to a Gaussian, Rayleigh, or discrete distribution depending on the drift (see Theorem 4.12 in [9]).
For higher dimensions, still in connection with our model, we can mention the two-dimensional Moran model, investigated by Abdelkader and Althagafi in [10], where they showed that the age of each component converges to a shifted geometric distribution in law. Furthermore, the limiting distribution for the lifetime of an individual converges to a (shifted) geometric distribution in law, proven by Itoh and Mahmoud [11]. Itoh, Mahmoud, and Takahashi in [12] proved that the wavelength converges, in distribution, to a convolution of geometric random variables. Other papers are related to the Moran process (in biology and population genetics); see, e.g., [13,14,15]. The models in the papers [16,17] can be modelled as a Moran process.
This paper is organized as follows. In Section 2, we present our model in detail and define some statistics. In Section 3, in order to obtain the probability generating functions of the random walks, X n and Y n , we give some recursive equations for the sequence of multivariate polynomials in our model. We show that the two Moran random walks X n and Y n converge to shifted geometric distributions in law asymptotically. Also, we calculate their means and variances using the probability generating function of the random walks X n and Y n . In Section 4, we study the statistical properties of the maximum age, Z n , between two random walks X n and Y n . In Section 5, we analyse the number of returns up to time n, N n X . We start with a simulation of the random walk N n X with different lengths: 100, 1000, 10,000, and 100,000 according to the initial probability q using R software. Also, we obtain the distribution and the probability generating function. In Section 6, we determine the general probability generating function of the two-dimensional random walk, which can be useful to extract the distribution of the height H n . In Section 7, we present some conclusions concerning our results and some perspectives. In Appendix A, we give some technical lemmas useful for studying the final altitude.

2. Definitions and Presentation of the Model

In this section, we introduce our model: the two-dimensional symmetric Moran model. We define some statistics such as the final altitude, the height, and the return time. We present an elegant tool called the probability generating function, which plays an important role in finding the statistical properties of discrete random walks.

2.1. Presentation of the Model

Our model is presented as follows: At time 0, the random walk starts from the origin. After one unit of time, (a) the first random walk shifts by one positive unit, but the second random walk returns to 1 with probability 1 q ; (b) the second walk shifts by one positive unit, but the first random walk returns to 1 with same probability 1 q ; (c) the two random walks shift by one positive unit with probability 2 q 1 , where q ( 1 / 2 , 1 ) . Mathematically, our model is given by the following system: for all n N
( X n + 1 , Y n + 1 ) = ( 1 + X n , 1 ) , with probability 1 q , ( 1 , 1 + Y n ) , with probability 1 q , ( 1 + X n , 1 + Y n ) , with probability 2 q 1 ,
where q ( 1 / 2 , 1 ) . The process ( X n , Y n ) is considered a stochastic process with dimension two defined on the state space S 2 = { 0 , , n } 2 , and started from the initial state ( X 0 , Y 0 ) = ( 0 , 0 ) .

2.2. Definitions

In this subsection, we present some definitions concerning some discrete random walks.
  • The final altitude, Z n , of the two-dimensional Moran random walk is defined by
    n N , Z n = max ( X n , Y n ) ,
  • The height, H n , of the two-dimensional Moran random walk is defined by
    n N , H n = max ( Z 0 , Z 1 , Z 2 , , Z n ) ,
  • The return time, N n X , of the Moran random walk X . equals the number when X . returns to 1.
where Z 0 = 0 , H 0 = 0 and N 0 X = N 1 X = 0 .
Our goal is to study the statistical properties of the following discrete random walks: X n , Y n , Z n , H n , N n X . Precisely, we want to find their limiting distributions, their means, and their variances. As mentioned before, as a tool, we use the probability generating function.
Definition 1.
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 .
Due to their numerous uses, probability generating functions constitute an elegant tool to study the characteristic of a distribution. Mainly, 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, the mean and the variance of the process (the first and second centred moments of the distribution of U) are related to the derivatives of the probability generating function at u = 1 . More precisely, the next folklore lemma explains this link.
Lemma 1
([3]). Let G U be the probability generating function of a the discrete random process U. For all k N , the k t h factorial moment of U is given by
k G U ( u ) k u | u = 1 = E U ( U 1 ) ( U 2 ) ( U k + 1 ) .
In addition, if the limits of G U ( u ) u and 2 G U ( u ) 2 u exist at u = 1 , then we have the following two 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 .

3. Distributions of X n and Y n

In this section, firstly, we derive a conditional probability of the position of the process defined in (1) at time ( n + 1 ) given that we know its position at time n. Secondly, we determine the sequence of multivariate polynomials, denoted by f n ( x , y ) = E x X n y Y n , and find the recursive equation related to this sequence between two consecutive times n and n + 1 . Finally, we show that the two symmetric random Moran walks X n and Y n converge to the shifted geometric distribution, and we compute their means and variances. Using the definitions in Section 2, we define the joint probability mass function of ( X n , Y n ) . Denote, for all r, s { 0 , , n + 1 } ,
P n + 1 ( r , s ) = P X n + 1 = r , Y n + 1 = s ,
this is the probability that the process is in the position r , s at time n + 1 .
We start this section with a technical lemma. It involves a recursive equation between the probability of our model for two consecutive times, n and n + 1 , to be used in Theorem 1. It is based on the following conditional probability:
Lemma 2.
For all n 2 , we have
P n + 1 ( r , s ) = ( 2 q 1 ) P n ( r 1 , s 1 ) , i f r 2 , s 2 , ( 1 q ) l = 1 n P n ( l , s 1 ) , i f r = 1 , s 2 , ( 1 q ) k = 1 n P n ( r 1 , k ) , i f s = 1 , r 2 .
Proof. 
This proof is based on the utility of the conditional probability that the Moran walks X and Y are aged r and s at time n + 1 , given that they are aged l and k at time n, and then
  • For r 2 and s 2 , we have
    P n + 1 ( r , s ) = P ( X n + 1 = r , Y n + 1 = s ) = P ( X n + 1 = r , Y n + 1 = s , X n = r 1 , Y n = s 1 ) = P ( X n + 1 = r , Y n + 1 = s | X n = r 1 , Y n = s 1 ) × P ( X n = r 1 , Y n = s 1 ) = ( 2 q 1 ) P n ( r 1 , s 1 ) ,
  • For r = 1 and s 2 , we have:
    P n + 1 ( 1 , s ) = l = 1 n P ( X n + 1 = 1 , Y n + 1 = s , X n = l , Y n = s 1 ) = l = 1 n P ( X n + 1 = 1 , Y n + 1 = s | X n = l , Y n = s 1 ) × P ( X n = l , Y n = s 1 ) = ( 1 q ) l = 1 n P n ( l , s 1 ) ,
  • For r 2 and s = 1 , we have by symmetry:
    P n + 1 ( r , 1 ) = ( 1 q ) k = 1 n P n ( r 1 , k ) .
Remark 1.
Consider two consecutive times n and ( n + 1 ) , r and s days, starting from 1 to ( n + 1 ) , and the ages of two components X and Y are equal at time n + 1 , respectively. We give some comments on the different cases of the age of two components X and Y at time n + 1 :
  • If r 2 and s 2 , then the probability that X and Y are aged r and s at time ( n + 1 ) is equal to the probability that ( X , Y ) is aged ( r 1 , s 1 ) days at the preceding time n multiplied by ( 2 q 1 ) .
  • If r = 1 and s 2 , the probability that ( X , Y ) is aged ( 1 , s ) days equals ( 1 q ) multiplied by the sum of all probabilities of X and Y that are aged l and s 1 days at time n, where l starts from 1 to n, respectively.
  • If r 2 and s = 1 , the probability that ( X , Y ) is aged ( r , 1 ) days equals ( 1 q ) multiplied by the sum of all probabilities of X and Y that are aged r 1 and k days at time n, where k starts from 1 to n, respectively.
Next, we define the sequence of multivariate polynomials f n ( x , y ) (for n N ) associated with the two-dimensional process ( X n , Y n ) , by
f n ( x , y ) = E x X n y Y n = r = 0 n s = 0 n x r y s P n ( r , s ) .
The coefficient of x r y s in f n ( x , y ) represents the probability that the position of the two-dimensional process ( X , Y ) is at level ( r , s ) at time n.
When x = y = 1 , we have the special case
f n ( 1 , 1 ) = r = 0 n s = 0 n P n ( r , s ) = 1 .
By Equation (4) and Lemma 2, we deduce a recursive equation related to f n + 1 ( x , y ) , f n ( x , 1 ) , f n ( 1 , y ) , and f n ( x , y ) . It is presented in the next proposition.
Proposition 1.
For all ( x , y ) R 2 , the explicit expression of the sequence of multivariate polynomials f n ( x , y ) holds the following recurrence:
f n + 1 ( x , y ) = ( 1 q ) x y f n ( x , 1 ) + ( 1 q ) x y f n ( 1 , y ) + ( 2 q 1 ) x y f n ( x , y ) , f 0 ( x , y ) = P 0 ( 0 , 0 ) = 1 .
Proof. 
Using Equation (4) and for all n 1 , the function f n + 1 ( x , y ) can be developed as
f n + 1 ( x , y ) = r = 2 n + 1 s = 2 n + 1 x r y s P n + 1 ( r , s ) A + y r = 1 n + 1 x r P n + 1 ( r , 1 ) B + x s = 1 n + 1 y s P n + 1 ( 1 , s ) C .
Due to Lemma (2), we can compute A , B , and C as follows:
A = ( 2 q 1 ) r = 2 n + 1 s = 2 n + 1 x r y s P n ( r 1 , s 1 ) = ( 2 q 1 ) r = 1 n s = 1 n x r + 1 y s + 1 P n ( r , s ) = ( 2 q 1 ) x y r = 0 n s = 0 n x r y s P n ( r , s ) = ( 2 q 1 ) x y f n ( x , y ) ,
C = ( 1 q ) s = 1 n + 1 l = 1 n y s P n ( l , s 1 ) = y ( 1 q ) s = 0 n l = 0 n y s P n ( r , s ) = ( 1 q ) y f n ( 1 , y ) ,
finally, via symmetry, we deduce
B = ( 1 q ) x f n ( x , 1 ) .
We obtain Equation (6) by combining Equations (7) and (10). □
In this part, we study some statistical characteristics such that the probability generating function, the asymptotic distribution, the mean, and the variance of the final altitude of each component X n and Y n at time n can be obtained. Precisely, we start by finding the probability generating function of each component f n X ( x ) = E x X n = f n ( x , 1 ) and f n Y ( y ) = E y Y n = f n ( 1 , y ) . Next, we show that the final altitude of the two random walks X n and Y n converge to a shifted geometric distribution asymptotically. Finally, we finish this section by computing the mean and the variance of the two random walks. The following theorem introduces the probability generating function and the asymptotic limit distributions of X n and Y n .
Theorem 1.
X n and Y n converge to a shifted geometric distribution with parameter ( 1 q ) in law asymptotically, with the same probability generating function given by the following: for all n 0
f n ( x ) = E x X n = ( q x ) n + ( 1 q ) x q n x n + 1 1 q x ,
for all x R , such that | 1 q x | < 1 .
Proof. 
Using Equations (5) and (6) with y = 1 , we obtain
f n ( x , 1 ) = ( 1 q ) x f n 1 ( x , 1 ) + ( 1 q ) x f n 1 ( 1 , 1 ) + ( 2 q 1 ) x f n 1 ( x , 1 ) = ( 1 q ) x f n 1 ( 1 , 1 ) + q x f n 1 ( x , 1 ) = ( 1 q ) x + q x f n 1 ( x , 1 ) .
We iterate f n ( x , 1 ) n times and we obtain
E x X n = f n ( x , 1 ) = ( 1 q ) x s = 0 n 1 ( q x ) s + ( q x ) n = ( q x ) n + ( 1 q ) x q n x n + 1 1 q x .
Hence, passing to the limit of f n ( x , 1 ) , we the have
lim n f n ( x , 1 ) = lim n ( q x ) n + ( 1 q ) x ( 1 q ) n x n + 1 1 q x = ( 1 q ) x 1 q x ,
it is exactly the generating function of a shifted geometric distribution with parameter 1 q .
By symmetry, we have
lim n f n ( 1 , y ) = lim n q y n + ( 1 q ) y ( 1 q ) n y n + 1 1 q y = ( 1 q ) y 1 q y .
Theorem 1 leads us to find the explicit expressions of the means and variances of X n and Y n , which depend on the first and the second derivatives of the probability generating function f n ( u ) , u = x , y .
Corollary 1.
The means and the variances of X n and Y n are given by
E X n = E Y n = 1 q n 1 q ,
and
V a r X n = V a r Y n = 1 ( 1 q ) 2 q q n q n + ( 2 n q 1 ) ( 1 q ) .
Proof. 
Calculating the first derivative of f n ( u , 1 ) defined in Equation (11) with respect to u,
f n ( u ) u = u q n u n + ( 1 q ) u q n u n + 1 1 q u = n q n u n 1 + ( 1 q ) 1 ( n + 1 ) q n u n 1 q u + ( 1 q ) q u q n u n + 1 ( 1 q u ) 2 ,
evaluating with u = 1 ,
f n ( u ) u | u = 1 = n q n + ( 1 q ) 1 ( n + 1 ) q n 1 q + ( 1 q ) q 1 q n ( 1 q ) 2 = n q n + 1 ( n + 1 ) q n + q ( 1 q n ) 1 q = 1 q n 1 q .
Using Equation (2), we obtain
E X n = E Y n = f n ( u ) u | u = 1 = 1 q n 1 q .
To derive the variance of X n and Y n , we need to define the following sequences of functions:
K n ( u ) = 1 q n u n 1 q u , L n ( u ) = u n 1 q u , M n ( u ) = u q n u n + 1 ( 1 q u ) 2 .
Observe that
f n ( u ) u = n q n u n 1 + ( 1 q ) K n ( u ) n ( 1 q ) q n L n ( u ) + ( 1 q ) q M n ( u ) ,
using Equation (16) and computing the second derivative of f n ( u ) with respect u, one has
2 f n ( u ) u 2 = n q n ( u n 1 ) u + ( 1 q ) K n ( u ) u n ( 1 q ) q n L n ( u ) u + ( 1 q ) q M n ( u ) u .
The first derivatives of the functions K n ( u ) , L n ( u ) , and M n ( u ) are given by
K n ( u ) u = n q n u n 1 1 q u + q 1 q n u n ( 1 q u ) 2 , L n ( u ) u = n u n 1 1 q u + q u n ( 1 q u ) 2 , M n ( u ) u = 1 ( n + 1 ) q n u n ( 1 q u ) 2 + 2 q u q n u n + 1 ( 1 q u ) 3 .
Let u = 1 and multiply by ( 1 q ) , n ( 1 q ) q n , and ( 1 q ) q , respectively, we can obtain
( 1 q ) K n ( u ) u | u = 1 = ( 1 q ) n q n 1 q + q 1 q n ( 1 q ) 2 = n q n + q ( 1 q n ) 1 q , n ( 1 q ) q n L n ( u ) u | u = 1 = n ( 1 q ) q n n 1 q + q ( 1 q ) 2 = n 2 q n + n q n + 1 1 q , ( 1 q ) q M n ( u ) u | u = 1 = q ( 1 q ) 1 ( n + 1 ) q n ( 1 q ) 2 + 2 q 1 q n ( 1 q ) 3 = q 1 ( n + 1 ) q n ( 1 q ) + 2 q 2 ( 1 q n ) ( 1 q ) 2 .
Replacing, in Equation (17), the first derivatives of K n ( u ) , L n ( u ) , and M n ( u ) , with respect the variable u, with 1, we obtain
2 f n ( u ) u 2 | u = 1 = n ( n 1 ) q n n q n + q ( 1 q n ) 1 q n 2 q n n q n + 1 1 q + q ( n + 1 ) q n + 1 ( 1 q ) + 2 q 2 ( 1 q n ) ( 1 q ) 2 = 2 n q n + q ( 1 q n ) 1 q 2 n q n + 1 1 q + q 1 q q n + 1 1 q + 2 q 2 ( 1 q n ) ( 1 q ) 2 .
Using the following equalities,
2 n q n + 2 n q n + 1 1 q = 2 n q n 1 q ,
q ( 1 q n ) 1 q + q 1 q q n + 1 1 q + 2 q 2 ( 1 q n ) ( 1 q ) 2 = 2 q ( 1 q n ) ( 1 q ) 2 ,
and combining Equations (18)–(20), the second derivative of f n ( u ) evaluated at u = 1 is given by
2 f n ( u ) u 2 | u = 1 = 2 n q n 1 q + 2 q ( 1 q n ) ( 1 q ) 2 .
Applying Equation (2), and using Equations (13) and (18), we obtain
V a r ( X n ) = V a r ( Y n ) = 2 n q n 1 q + 2 q ( 1 q n ) ( 1 q ) 2 + 1 q n 1 q 1 q n 1 q 2 = 1 ( 1 q ) 2 2 n q n + 2 n q n + 1 + 2 q 2 q n + 1 + 1 ( 1 q ) 2 1 q q n + q n + 1 1 + 2 q n q 2 n = 1 ( 1 q ) 2 q q n q n + ( 2 n 1 ) ( 1 q ) .

4. Statistical Properties of the Maximum Age Z n

In this section, we analyse the final altitude of the maximum age, Z n = max ( X n , Y n ) , between two components at time n. Precisely, we determine the explicit form of Φ n ( v ) , the probability generating function of Z n . It is defined as follows: for all v R such that | v | 1
Φ n ( v ) = E v Z n = s = 0 n v s P Z n = s .

4.1. Moment Generating Function of Z n

In the following theorem, we give the explicit expression of Φ n ( v ) :
Theorem 2.
The probability generating function, Φ n ( v ) , of the final altitude Z n between the two components X n and Y n is given by the following expression:
For all v [ 1 , 1 ] and for all n N * ,
Φ n ( v ) = 2 q n ( 2 q 1 ) n 1 v n + 2 ( 1 q ) q v 2 q n v n + 1 1 q v 2 ( 1 q ) 1 ( 2 q 1 ) v ( 2 q 1 ) v 2 ( 2 q 1 ) n 1 v n ,
with Φ 0 ( v ) = 1 .
Proof. 
The probability generating function, Φ n ( v ) , of the final altitude Z n = max ( X n , Y n ) , can be developed as follows: n N * , v R
Φ n ( v ) = r = 1 n v r P ( Z n = r ) = r = 1 n v r P ( X n = r , Y n r ) + P ( X n < r , Y n = r ) = 2 r = 1 n s = 1 r v r P ( X n = r , Y n = s ) s = 1 n v r P ( X n = Y n = r ) ,
and
P ( X n = n , Y n = n ) = ( 2 q 1 ) n 1 , where n 1 .
Using the last equation and Equation (A8), in Appendix A, we deduce that for all n 1
Φ n ( v ) = 2 q n ( 2 q 1 ) n 1 v n + 2 ( 1 q ) 1 q v q v 2 q n v n + 1 2 ( 1 q ) 1 ( 2 q 1 ) v ( 2 q 1 ) v 2 ( 2 q 1 ) n 1 v n .
Remark 2.
The probability generating function Φ n ( v ) of the random walk Z n , satisfies
Φ n ( v ) = 2 S n ( v ) ( 2 q 1 ) n 1 v n ,
where S n ( v ) is given in Appendix A. The coefficient ( 2 q 1 ) n 1 represents the probability that both random walks X n and Y n are always increasing from ( 1 , 1 ) at time 1 to ( n , n ) at time n with probability ( 2 q 1 ) . Also, this probability equals 1 when n = 1 , (i.e., P 1 ( 1 , 1 ) = P 0 ( 0 , 0 ) = 1 ). The coefficient 2 in Equation (23) reflects the symmetry between X n and Y n .

4.2. Moments of Z n

Due to the explicit form of Φ n ( v ) and using the first and the second derivatives in v = 1 , we are able to compute the mean and the variance of the final altitude Z n .
Corollary 2.
The explicit expressions of the mean and the variance of the final altitude Z n are given by
E ( Z n ) = 1 2 ( 1 q ) 3 4 q n + ( 2 q 1 ) n , V a r ( Z n ) = 1 2 ( 1 q ) 2 1 + 6 q + 8 q n ( n 1 ) q n + ( 2 q 1 ) n 2 n ( 1 q ) + ( 2 q 1 ) + 1 2 ( 1 q ) 3 4 q n + ( 2 q 1 ) n 1 2 ( 1 q ) 3 4 q n + ( 2 q 1 ) n 2 .
Proof. 
In order to obtain the mean and the variance of Z n , we need to compute the first and the second derivatives of the probability generating function, Φ n ( v ) , given in Theorem 2. Next, we evaluate two derivatives of Φ n ( v ) at v = 1 .
Define the following sequences of functions: n 1 , v R such that q v < 1 and ( 2 q 1 ) v < 1
H n ( v ) = 1 1 q v q v 2 q n v n + 1 , L n ( v ) = 1 1 ( 2 q 1 ) v ( 2 q 1 ) v 2 ( 2 q 1 ) n 1 v n .
The first derivative of Φ n ( v ) defined in Theorem 2 with respect v is given by
Φ n ( v ) v = v { 2 q n ( 2 q 1 ) n 1 v n + 2 ( 1 q ) 1 q v q v 2 q n v n + 1 2 ( 1 q ) 1 ( 2 q 1 ) v ( 2 q 1 ) v 2 ( 2 q 1 ) n 1 v n } = n 2 q n ( 2 q 1 ) n 1 v n 1 + 2 ( 1 q ) H n ( v ) v 2 ( 1 q ) L n ( v ) v ,
where
H n ( v ) v = 1 1 q v 2 q v ( n + 1 ) q n v n + 1 ( 1 q v ) 2 q 2 v 2 q n + 1 v n + 1 , L n ( v ) v = 1 1 ( 2 q 1 ) v 2 ( 2 q 1 ) v n ( 2 q 1 ) n 1 v n 1 + 1 ( 1 ( 2 q 1 ) v ) 2 ( 2 q 1 ) 2 v 2 ( 2 q 1 ) n v n ,
and evaluating at v = 1 , we obtain
2 ( 1 q ) H n ( v ) v | v = 1 = 2 ( 1 q ) 2 q ( n + 1 ) q n 1 q + q 2 q n + 1 ( 1 q ) 2 = 4 q 2 ( n + 1 ) q n + 2 ( q 2 q n + 1 ) 1 q ,
2 ( 1 q ) L n ( v ) v | v = 1 = 2 ( 1 q ) 2 ( 2 q 1 ) n ( 2 q 1 ) n 1 1 ( 2 q 1 ) + ( 2 q 1 ) 2 ( 2 q 1 ) n ( 1 ( 2 q 1 ) ) 2 = 2 ( 2 q 1 ) n ( 2 q 1 ) n 1 + ( 2 q 1 ) 2 ( 2 q 1 ) n ( 1 ( 2 q 1 ) ) .
By combining Equations (25)–(27), we obtain
Φ n ( v ) v | u = 1 = 2 n q n n ( 2 q 1 ) n 1 + 4 q 2 ( n + 1 ) q n + 2 ( q 2 q n + 1 ) 1 q 2 ( 2 q 1 ) + n ( 2 q 1 ) n 1 ( 2 q 1 ) 2 ( 2 q 1 ) n 2 ( 1 q ) = 1 2 ( 1 q ) 3 4 q n + ( 2 q 1 ) n .
Using Equations (2) and (28), we obtain
E Z n = Φ n ( v ) v | v = 1 = 1 2 ( 1 q ) 3 4 q n + ( 2 q 1 ) n .
Observe that
2 Φ n ( v ) 2 v = n ( n 1 ) 2 q n ( 2 q 1 ) n 1 v n 2 + 2 ( 1 q ) 2 H n ( v ) 2 v 2 ( 1 q ) 2 L n ( v ) 2 v .
The second derivative of the function H n ( v ) can be computed as
2 H n ( v ) 2 v = v 1 1 q v 2 q v ( n + 1 ) q n v n + 1 ( 1 q v ) 2 q 2 v 2 q n + 1 v n + 1 = 1 1 q v 2 q n ( n + 1 ) q n v n 1 + 1 ( 1 q v ) 2 2 q 2 v ( n + 1 ) q n + 1 v n + 1 ( 1 q v ) 2 2 q 2 v ( n + 1 ) q n + 1 v n + 1 ( 1 q v ) 3 2 q 3 v 2 2 q n + 2 v n + 1 .
We evaluate 2 H n ( v ) 2 v at v = 1 , and we multiply it by 2 ( 1 q ) to obtain
2 ( 1 q ) 2 H n ( v ) 2 v | v = 1 = 2 ( 1 q ) 2 q n ( n + 1 ) q n 1 q + 2 q 2 ( n + 1 ) q n + 1 ( 1 q ) 2 + 2 ( 1 q ) 2 q 2 ( n + 1 ) q n + 1 ( 1 q ) 2 + 2 q 3 2 q n + 2 ( 1 q ) 3 = 4 q 2 n ( n + 1 ) q n + 8 q 2 4 ( n + 1 ) q n + 1 ( 1 q ) + 4 q 3 4 q n + 2 ( 1 q ) 2 .
The second derivative of the function L n ( v ) is given by
2 L n ( v ) 2 v = 2 2 v 2 ( 2 q 1 ) v n ( 2 q 1 ) n 1 v n 1 1 ( 2 q 1 ) v + ( 2 q 1 ) 2 v 2 ( 2 q 1 ) n v n ( 1 ( 2 q 1 ) v ) 2 = 1 1 ( 2 q 1 ) v 2 ( 2 q 1 ) n ( n 1 ) ( 2 q 1 ) n 1 v n 2 + 2 q 1 ( 1 ( 2 q 1 ) v ) 2 2 ( 2 q 1 ) v n ( 2 q 1 ) n 1 v n 1 + 1 ( 1 ( 2 q 1 ) v ) 2 2 ( 2 q 1 ) 2 v n ( 2 q 1 ) n v n 1 + 2 ( 2 q 1 ) ( 1 ( 2 q 1 ) v ) 3 ( 2 q 1 ) 2 v 2 ( 2 q 1 ) n v n .
The last second derivative evaluated at v = 1 gives
2 L n ( v ) 2 v | v = 1 = 1 2 ( 1 q ) 2 ( 2 q 1 ) n ( n 1 ) ( 2 q 1 ) n 1 + 2 q 1 4 ( 1 q ) 2 2 ( 2 q 1 ) n ( 2 q 1 ) n 1 + 1 4 ( 1 q ) 2 2 ( 2 q 1 ) 2 n ( 2 q 1 ) n + ( 2 q 1 ) 4 ( 1 q ) 3 ( 2 q 1 ) 2 ( 2 q 1 ) n .
We simplify 2 L n ( v ) 2 v | v = 1 , and we multiply it by 2 ( 1 q ) to obtain
2 ( 1 q ) 2 L n ( v ) 2 v | v = 1 = 2 ( 2 q 1 ) n ( n 1 ) ( 2 q 1 ) n 1 + 1 ( 1 q ) 2 ( 2 q 1 ) 2 n ( 2 q 1 ) n + 1 2 ( 1 q ) 2 ( 2 q 1 ) 3 ( 2 q 1 ) n + 1 .
Since
n ( n 1 ) 2 q n ( 2 q 1 ) n 1 2 n ( n + 1 ) q n + n ( n 1 ) ( 2 q 1 ) n 1 = 4 n q n ,
by (31)–(33), we deduce
2 Φ n ( v ) 2 v | v = 1 = 4 n q n 2 ( 2 q 1 ) + 8 q 2 4 ( n + 1 ) q n + 1 ( 1 q ) + 4 q 3 4 q n + 2 ( 1 q ) 2 1 ( 1 q ) 2 ( 2 q 1 ) 2 n ( 2 q 1 ) n 1 2 ( 1 q ) 2 ( 2 q 1 ) 3 ( 2 q 1 ) n + 1 .
Define A q by
A q = 1 1 q 8 q 2 2 ( 2 q 1 ) 2 + 1 2 ( 1 q ) 2 8 q 3 ( 2 q 1 ) 3 2 ( 2 q 1 ) + 4 q .
Via a simple calculation, we obtain
A q = 1 2 ( 1 q ) 2 ( 1 + 6 q ) .
Since
4 n q n 1 1 q 4 ( n + 1 ) q n + 1 4 q n + 1 ( 1 q ) 2 = 4 q n ( 1 q ) 2 ( n 1 ) q n ,
1 1 q n ( 2 q 1 ) n + 1 2 ( 1 q ) 2 ( 2 q 1 ) n + 1 = ( 2 q 1 ) n 2 ( 1 q ) 2 2 n ( 1 q ) + ( 2 q 1 ) ,
and combining Equations (34)–(37), we obtain
2 Φ n ( v ) 2 v | v = 1 = 1 2 ( 1 q ) 2 ( 1 + 6 q + 8 q n ( n 1 ) q n + ( 2 q 1 ) n 2 n ( 1 q ) + ( 2 q 1 ) ) .
The variance of Z n is finally obtained using Equations (2), (24), and (38). □

5. Return Time N n X of the Random Walk X n

In this section, we analyse the number of return times N n X at time n of the process ( X . ) to position 1 at time n. Precisely, we start with a simulation of the process N n X and determine the explicit form of G n ( x ) , i.e., the probability generating function of N n X .

5.1. Simulations of N n X

In this subsection, we give some simulations with R-program using N n X with different lengths: 100, 1000, 10,000, and 100,000 for different values of the given probabilities q = 0.6 , 0.75 , 0.9 .
Figure 1 shows that the return time, N X n , of the random walk, X, with length 100 is increasing from 0 to 40 from time 0 to time 100, when the random walk X alternates between 0 and 9 with initial probability q equal to 0.6. Also, we observe that the return time of random walk N n X with lengths 1000, 10,000, and 100,000 is increasing from 0 to 400, 4000, and 40,000, when the evolution of the random walk, X, is about 0 (very small variation in X), respectively.
Figure 2 shows that the return time, N X n , of the random walk, X, with length 100 is increasing from 0 to 40 from time 0 to time 100, when the evolution of the random walk X alternates between 0 and at most 12 with initial probability q equal to 0.75. Also, we observe that the return time of random walk N n X with length 1000 is increasing from 0 to 300, when the evolution of the random walk, X, alternates between 0 and 25. Furthermore, Figure 2 shows that the return time of random walk N n X with lengths 10,000 and 100,000 is increasing from 0 to 2500 and 25,000, when the evolution of the random walk X is about 0, respectively.
Figure 3 shows that the return time, N X n , of the random walk, X, with length 100 is increasing slowly from 0 to 10 from time 0 to time 100, when the evolution of the random walk X alternates between 0 and 17 with initial probability q equal to 0.9 . Also, it shows that the return time of random walk N n X with length 1000 is increasing from 0 to 100, when the evolution of the random walk X alternates between 0 and 50. Furthermore, we observe that the return time of random walk N n X with lengths 10,000 and 100,000 is increasing from 0 to 1000 and from 0 to 10,000, when the evolution of the random walk X alternates between 0 and 80, and about 0, respectively.

5.2. Probability Distribution of N n X

In this section, we give the probability distribution of N n X .
Theorem 3.
The exact distribution of N n X is given by
P ( N n X = k ) = q n 1 q q k + 1 s = 1 n k 1 n 1 s k q s .
Remark 3.
Through an easy computation, we prove that this probability can be given by
P ( N n X = k ) = q n k 1 k ! x n 1 x k x 1 ( k ) | x = q 1 ,
where for a k differentiable function g, the notation g ( k ) denotes the k t h derivative of g.
Proof. 
For the proof of Theorem 3, we start by computing the joint distribution of the discrete return time N n X and the discrete random walk X. To this end, for all k { 0 , , n 2 } and for all s { 1 , , n 1 } , we compute, as a first step, the probability of intersection between the return time equal to k, and the random walk equal to s. As a second step, we deduce the marginal distribution of N n X .
Consider N n X the number of visits of the process X . to the state 1 up to time n.
( N n X = k | X n = s ) = X . increases from time n s + 1 to time n , X . has k resets from time 2 to time n s .
We start by giving the joint distribution of N n X , X n . □
Lemma 3.
The joint distribution of ( N n X , X n ) satisfies the following relation:
P ( N n x = k , X n = s ) = ( 1 q ) q s P B i n ( n 1 s , 1 q ) = k ,
and is given as
P ( N n x = k , X n = s ) = n 1 s k ( 1 q ) k + 1 q n + s k 1 if k { 1 , , n s 1 } , 0 otherwise ,
where B i n ( n 1 s , 1 q ) is a binomial distribution with parameters n 1 s and 1 q .
Proof. 
Using Equation (39), we have
P ( N n X = k | X n = s ) = n s 1 k ( 1 q ) k q n 1 k if k { 1 , n 1 s } , 0 otherwise .
By Theorem 1, X n follows a shifted geometric distribution with parameter 1 q
P ( X n = s ) = q s ( 1 q ) .
We conclude the proof by using the fact that
P ( N n X = k , X n = s ) = P ( N n x = k | X n = s ) P ( X n = s ) .
By summing with respect to s and using the known distribution of X n , we deduce the result of Theorem 3.
Remark 4.
In the particular cases,
  • If k = n 2 , we obtain
    P N n X = n 2 = q 2 1 q n 1 ,
  • If k = 1 , we obtain
    P N n X = 1 = q n 2 1 q n 2 n 1 2 ,
  • If k = 0 , we obtain
    P N n X = 0 = q 2 n + q n q n + 1 q 2 n 1 1 q .
  • If the return time of X equals 0 ( k = 0 ), then the probability that the random walk X is strictly increasing from time 0 to time n equals q n 1 for any age of the random walk Y at time n.
  • If the return time of X equals n 2 ( k = n 2 ), given that the age of X increases from 0 at time 0 to n 2 at time n 2 , the probability that the age of X equals 1 at time n 1 comes from the probability of X at time n 2 multiplied by ( 1 q ) .
Remark 5.
The probability generating function G n ( x ) of N n X can be expressed, and we prove that it is given by
G n ( x ) = 1 n x q + x [ q n 1 ( q 1 ) ( q + x ) x k = 0 n 2 1 q k x q 1 k n k n k g n , k , q n q 2 n + 1 x q 1 n + x q 2 n ] ,
where the function g n , k , q is the well-known hyper-geometric function given by
g n , k , q = h y p e r g e o m 1 , n ; [ n k ] ; q 1 .
From G n ( x ) , we can compute the mean and the variance of N n X , but the expressions are very complicated.

6. The Probability Generating Function of the Random Walks X n and Y n

Next, consider the generating function associated to the above Moran process defined in (1), where the time is encoded by the exponent of t:
F ( t , x , y ) : = n 0 E x X n y Y n t n = n 0 f n ( x , y ) t n , ( x , y ) R 2 .
Starting from the functional equation defined in (6) and using the kernel method (for more details view [2,18]), we obtain the PGF. It is very important to obtain this the probability generating function because it contains all information about the past of the random walk; in particular, it will be very useful for studying the height H n . This point will be one of our objectives in a future work.
Theorem 4.
The probability generating function of the final altitude of the two-dimensional Moran walk is given as follows: for all ( x , y ) R 2 such that | t | < 1 , | t x y | < 1 / ( 2 q 1 ) , | t x | < 1 / q and | t y | < 1 / q
F ( t , x , y ) = 1 + Q ( x , y ) t 1 t 1 ( 2 q 1 ) t x y ,
where
Q ( x , y ) = ( 1 q ) x y 1 t ( 1 ( 1 q ) x ) 1 q t x + ( 1 q ) x y 1 t ( 1 ( 1 q ) y ) 1 q t y .
Proof. 
By Equation (4), and for all n 1 , we have
f n ( x , y ) = ( 1 q ) x y f n 1 ( x , 1 ) + ( 1 q ) x y f n 1 ( 1 , y ) + ( 2 q 1 ) x y f n 1 ( x , y ) .
Using the following identities
n 1 f n 1 ( 1 , x 2 ) t n = t n 0 f n ( 1 , x 2 ) t n = t F ( t , 1 , x 2 ) , n 1 f n 1 ( x 1 , 1 ) t n = t n 0 f n ( x 1 , 1 ) t n = t F ( t , x 1 , 1 ) , n 1 f n 1 ( x 1 , x 2 ) t n = t n 0 f n ( x 1 , x 2 ) t n = t F ( t , x 1 , x 2 ) ,
the probability generating function F ( t , x , y ) satisfies the recursive equation
F ( t , x , y ) = 1 + ( 1 q ) x y t F ( t , 1 , y ) + ( 1 q ) x y t F ( t , x , 1 ) + ( 2 q 1 ) x y t F ( t , x , y ) .
From Equation (47), F ( t , x , 1 ) and F ( t , 1 , y ) are given by
F ( t , x , 1 ) = 1 1 q t x + ( 1 q ) t x 1 q t x F ( t , 1 , 1 ) ,
F ( t , 1 , y ) = 1 1 q t y + ( 1 q ) t y 1 q t y F ( t , 1 , 1 ) .
From Equations (47)–(49), we obtain
1 ( 2 q 1 ) x y t F ( t , x , y ) = 1 + t ( 1 q ) 2 t x y 2 1 q t y + ( 1 q ) 2 t x 2 y 1 q t x F ( t , 1 , 1 ) + t ( 1 q ) x y 1 q t y + ( 1 q ) x y 1 q t x .
Since F ( t , 1 , 1 ) = 1 / ( 1 t ) for | t | < 1 , we deduce
1 ( 2 q 1 ) x y t F ( t , x , y ) = 1 + ( 1 q ) 2 t x y 2 1 q t y + ( 1 q ) 2 t x 2 y 1 q t x t 1 t + ( 1 t ) ( 1 q ) x y 1 q t y + ( 1 q ) x y 1 q t x t 1 t = 1 + ( 1 q ) x y 1 t ( 1 q x ) 1 q t x t 1 t + ( 1 q ) x y 1 t ( 1 q y ) 1 q t y t 1 t .
Divide Equation (50) by ( ( 1 ( 2 q 1 ) x y t ) ; this concludes the proof. □
Remark 6.
The term 1 t p x 1 x 2 in Equation (46) is called the kernel factor.
Remark 7.
We can factorize the probability generating function given by Equation (46) as
F ( t , x , y ) = 1 1 Q ( x , y ) t 1 1 t 1 Q ( x , y ) 1 1 ( 2 q 1 ) t x y ,
with Q ( 1 , 1 ) = 2 ( 1 q ) .
From the previous theorem, we can find the probability generating function of two random Moran walks X n and Y n .
Corollary 3.
The probability generating functions, denoted by F X ( t , x ) : = F ( t , x , 1 ) and F Y ( t , y ) F ( t , 1 , y ) : = , of X n and Y n are given by
F X ( t , x ) = 1 1 ( 2 q 1 ) t x 1 + ( 1 q ) x + ( 1 q ) x 1 t ( 1 ( 1 q ) x ) 1 q t x ,
and
F Y ( t , y ) = F ( t , y ) = 1 1 ( 2 q 1 ) t y 1 + ( 1 q ) y + ( 1 q ) y 1 t ( 1 ( 1 q ) y ) 1 q t y ,
( x , y ) R 2 such that | t x | < 1 / ( 2 q 1 ) , | t y | < 1 / ( 2 q 1 ) , where | t | < 1 .
Proof. 
The proof is a direct consequence of the previous theorem: if we take x = 1 in (46), then we obtain the expression of the probability generating function of X n , and similarly for Y n . □
The previous result is very important. It allows us to know the probability generating function of the two-dimensional walk X n , Y n . Combining Equations (45), (52), and (53), and evaluating at t = 1 , then we have the expressions of f n ( x , 1 ) and f n ( 1 , y ) .

7. Conclusions and Perspectives

In this current paper, we use very useful tools called probability generating functions to find the statistical properties, i.e., the mean, the variance, and the limiting distribution, of the random walks X n , Y n , Z n , and N n X . Firstly, we prove that both symmetric random Moran walks X n and Y n converge to a shifted geometric distribution with parameter ( 1 q ) using the probability generating functions asymptotically. Also, the means and the variances of X n and Y n are calculable explicitly using the same tools. Secondly, we use the symmetry of two random walks X n and Y n to find the statistical properties of the maximum age Z n between two components, such as the mean and the variance, derived from the probability generating function. Finally, we analyse the return time, N n X , of the random Moran walk X n . From the simulation of N n X , we observe that the return time is affected according to the initial probability q and the length of the random walk. Precisely, we distinguish two cases:
  • When the initial probability q approaches 1 (q = 0.9), the return time with a small length ( n = 100 ) is increasing slowly and remains lower than the final altitude of X n at time n (see Figure 3). In this case, the Moran random walk increases often and returns to 1 few times. That means the number of increases in X n is greater than the number of times that N n X returns to 1.
  • When the length of the random walk X n is very large, ( n = 1000 ) or 10,000 or 100,000, the return time N n X is not affected by the initial probability q and increases quickly (see Figure 1, Figure 2 and Figure 3). In this case, the Moran random walk often returns to 1 but X n alternates between 1 and at most 50. That means the number of times that X n returns to 1 is greater than the increase in X n .
Here, the initial probability q represents the probability that the random walk X n increases. This increase in X n happens intwo ways: in the first way, X n increases but Y n stops at 1 with probability ( 1 q ) ; in the second, both walks X n and Y n increase in the same time with probability ( 2 q 1 ) (see Equation (1)).
In the next work, we will use the probability generating function to study the statistical properties of the height statistics, H n . Precisely, we will find the distribution of H n and compute its mean and variance based on the return time N n X . Firstly, we will start with the following conditional probability:
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 ,
where the random walk H n is bounded by an integer k > 0 given that the random walk N n X equals r 1 . Secondly, we will try to obtain the joint distribution of ( H n , N n X ) . Finally, we can extract the distribution of the bounded random walk H n and determine its statistical properties.

Author Contributions

Conceptualization, R.A. and M.A.; Methodology, M.A.; Software, R.A. and M.A.; Formal analysis, R.A. and M.A.; Writing—original draft, R.A. and M.A. All authors have read and agreed to the published version of the manuscript.

Funding

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

Data Availability Statement

Not applicable.

Acknowledgments

The authors extend their appreciation to the Deputyship for Research and Innovation, "Ministry of Education", in Saudi Arabia for funding this research (IFKSUOR3-105-1).

Conflicts of Interest

The authors declare that they have no conflict of interest.

Appendix A. Technical Lemmas

In this subsection, we study the following sequences of polynomials, R n ( v ) , T n ( v ) , N n ( v ) , and S n ( v ) , defined by
R n ( v ) : = r = 1 n v r P ( X n = r , Y n = 1 ) = r = 1 n v r P n ( r , 1 ) ,
T n ( v ) : = r = 2 n s = 2 r v r P ( X n = r , Y n = s ) = r = 2 n s = 2 r v r P n ( r , s ) , N n ( v ) : = r = 1 n s = r + 1 n v r P ( X n = r , Y n = s ) = r = 1 n s = r + 1 n v r P n ( r , s ) , S n ( v ) : = r = 1 n s = 1 r v r P ( X n = r , Y n = s ) = r = 1 n s = 1 r v r P n ( r , s ) ,
where R 0 ( v ) = 0 , T 0 ( v ) = T 1 ( v ) = 0 , N 0 ( v ) = N 1 ( v ) = 0 , and S 0 ( v ) = 0 .
The sequence S n ( v ) is essential for the proof of Theorem 2. The sequences R n ( v ) , T n ( v ) , N n ( v ) are needed to study S n ( v ) .
The expressions of these sequences are given in the following lemmas.
Lemma A1.
The sequence of polynomials N n ( v ) holds the following recursive equation: for all n 1 ,
N n ( v ) = ( 1 q ) v + ( 2 q 1 ) v N n 1 ( v ) ,
and, then, the explicit form of N n ( v ) is given by
N n ( v ) = ( 1 q ) v ( 2 q 1 ) n 1 v n 1 ( 2 q 1 ) v ,
for all v R such that | ( 1 p ) v | < 1 .
Proof. 
Developing the sequence of polynomials N n ( v )
N n ( v ) : = r = 1 n s = r + 1 n v r P n ( r , s ) = s = 2 n v P n ( 1 , s ) + r = 2 n s = r + 1 n v r P n ( r , s ) ,
applying Lemma 2
s = 2 n v P n ( 1 , s ) = v ( 1 q ) r = 1 n 1 s = 2 n P n 1 ( r , s 1 ) = v ( 1 q ) r = 1 n 1 s = 1 n 1 P n 1 ( r , s ) ,
and using
r = 0 n 1 s = 0 n 1 P n 1 ( r , s ) = f n 1 ( 1 , 1 ) = 1 ,
we obtain
s = 2 n v P n ( 1 , s ) = v ( 1 q ) r = 0 n 1 s = 0 n 1 P n 1 ( r , s ) = v ( 1 q ) ,
and
r = 2 n s = r + 1 n v r P n ( r , s ) = ( 2 q 1 ) v r = 1 n 1 s = r + 1 n 1 v r P n 1 ( r , s ) : = ( 2 q 1 ) v N n 1 ( v ) .
Combining Equations (A2)–(A4), we obtain
N n ( v ) = ( 1 q ) v + ( 2 q 1 ) v N n 1 ( v ) .
The last equation is iterated n times, and the equation defined in (A1) is proved. □
The next lemma is used to compute the sequence of polynomials T n ( v ) when the final ages of two components, X n and Y n , are started at time 2 from ( 2 , 2 ) and are finished at two different times, n and r, where r < n , respectively. It is introduced as follows:
Lemma A2.
The sequence of polynomials T n ( v ) verifies the following recursive equation: for all n 2
T n ( v ) = ( 2 q 1 ) v f n 1 ( v , 1 ) N n 1 ( v ) .
Its explicit expression is given by
T n ( v ) = ( 2 q 1 ) q n 1 v n + ( 2 q 1 ) ( 1 q ) v 2 q n 1 v n + 1 1 q v ( 2 q 1 ) ( 1 q ) v 2 ( 2 q 1 ) n 2 v n 1 ( 2 q 1 ) v ,
for all v R such that | ( 2 q 1 ) v | < 1 and | q v | < 1 .
Proof. 
Applying Lemma 2,
T n ( v ) : = r = 2 n s = 2 r v r P n ( r , s ) = ( 2 q 1 ) v r = 1 n 1 s = 1 r v r P n 1 ( r , s ) ,
and using Equation defined in (4), with x = v and y = 1 ,
T n ( v ) = ( 2 q 1 ) v r = 1 n 1 s = 1 n 1 v r P n 1 ( r , s ) r = 1 n 1 s = r + 1 n 1 v r P n 1 ( r , s ) = ( 2 q 1 ) v f n 1 ( v , 1 ) N n 1 ( v ) ,
hence, the explicit expression of T n ( v ) is obtained directly from Equations (11) and (A1). □
Lemma A3.
The sequence of polynomials R n ( v ) satisfies the following: for all n 1
R n ( v ) = ( 1 q ) v f n 1 ( v , 1 ) , w h e r e q = 1 ( p / 2 ) ,
the explicit form of R n ( v ) is given by
R n ( v ) = ( 1 q ) n 1 v n + ( 1 q ) 2 v 2 q n 1 v n + 1 1 q v ,
for all v R such that | q v | < 1 .
Proof. 
Using Lemma 2 and Equation (4), we have
R n ( v ) = ( 1 q ) v r = 0 n 1 s = 1 n 1 v r P n 1 ( r , s ) = ( 1 q ) v f n 1 ( v , 1 ) ,
also, the explicit expression of R n ( v ) is obtained directly from Equation (11). □
Lemma A4.
The sequence of polynomials S n ( v ) satisfies the following: for all n 1
S n ( v ) = q v f n 1 ( v , 1 ) ( 1 p ) v N n 1 ( v ) ,
the form of S n ( v ) is given by
S n ( v ) = ( q v ) n + 1 q 1 q v q v 2 q n v n + 1 1 q 1 ( 2 q 1 ) v ( 2 q 1 ) v 2 ( 2 q 1 ) n 1 v n ,
for all v R such that | q v | < 1 and | ( 2 q 1 ) v | < 1 .
Proof. 
Developing the sequence of polynomials S n ( v )
S n ( v ) : = r = 1 n s = 1 r v r P n ( r , s ) = r = 1 n v r P n ( r , 1 ) + r = 2 n s = 2 r v r P n ( r , s ) = R n ( v ) + T n ( v ) ,
using Lemmas A2 and A4, we obtain
S n ( v ) = ( 1 q ) v f n 1 ( v , 1 ) + ( 2 q 1 ) v f n 1 ( v , 1 ) ( 2 q 1 ) v N n 1 ( v ) = q v f n 1 ( v , 1 ) ( 2 q 1 ) v N n 1 ( v ) .
The explicit expression of S n ( v ) is obtained by combining Equations (11) and (A1). □
Remark A1.
Consider two consecutive times n and ( n 1 ) , r and s days, the age of two components X and Y at time n, respectively. We present some remarks concerning the sequences of polynomials N n ( v ) , T n ( v ) , R n ( v ) , and S n ( v ) .
(1)
From Equation (A3), if X is aged 1 day at time n and the age of Y is strictly increasing from 2 to n, we deduce
s = 2 n P n ( 1 , s ) = ( 1 q ) = P 2 ( 1 , 2 ) .
By symmetry, we have
r = 2 n P n ( r , 1 ) = ( 1 q ) = P 2 ( 2 , 1 ) .
(2)
The sequence T n ( v ) is given by the multiplication between ( 2 q 1 ) v and the difference between the explicit expressions of the probability generating function f n 1 ( v , 1 ) and the sequence of polynomials N n 1 ( v ) .
(3)
The sequence R n ( v ) is expressed by the product between ( 1 q ) v and the explicit expression of the probability generating function f n 1 ( v , 1 ) .
(4)
The sequence S n ( v ) is expressed from the explicit expressions of two sequences T n ( v ) and R n ( v ) . The sequence S n ( v ) depends on the probability generating function f n 1 ( v , 1 ) and the sequence of polynomials N n 1 ( v ) .

References

  1. Kalyuzhny, M.; Kadmon, R.; Shnerb, N. A neutral theory with environmental stochasticity explains static and dynamic properties of ecological communities. Ecol. Lett. 2015, 18, 572–580. [Google Scholar] [CrossRef] [PubMed]
  2. Banderier, C.; Flajolet, P. Basic analytic combinatorics of directed lattice paths. Theor. Sci. 2002, 281, 37–80. [Google Scholar] [CrossRef]
  3. Flajolet, P.; Sedgewick, R. Analytic Combinatorics; Cambridge University Press: Cambridge, UK, 2009. [Google Scholar]
  4. Banderier, C.; Nicodème, P. Bounded discrete walks. Discret. Math. Theor. Comput. Sci. Proceeding AOFA 2010, 15, 35–48. [Google Scholar] [CrossRef]
  5. Aguech, R.; Althagafi, A.; Banderier, C. Height of walks with resets and the Moran model. Séminaire Lotharingien de Combinatoire 2023. accepted. [Google Scholar]
  6. Bruijn, N.G.; Knuth, D.E.; Rice, S.O. The average height of planted plane trees. In Graph Theory and Computing; Academic Press: Cambridge, MA, USA, 1972; pp. 15–22. [Google Scholar] [CrossRef]
  7. Drmota, M. Random Trees. In An Interplay between Combinatorics and Probability; Springer: Berlin/Heidelberg, Germany, 2009. [Google Scholar]
  8. Gafni, A. Longest run of equal parts in a random integer composition. Discret. Math. 2015, 338, 236–247. [Google Scholar] [CrossRef]
  9. Banderier, C.; Wallner, M. Lattice paths with catastrophes. Discret. Math. Theor. Comput. Sci. 2017, 19, 32. [Google Scholar] [CrossRef]
  10. Althagafi, A.; Abdelkader, M. Two-dimensional Moran model. Symmetry 2023, 15, 1046. [Google Scholar] [CrossRef]
  11. Itoh, Y.; Mahmoud, H.M. Age statistics in the Moran population model. Stat. Probab. Lett. 2005, 74, 21–30. [Google Scholar] [CrossRef]
  12. Itoh, Y.; Mahmoud, H.M.; Takahashi, D. A stochastic model for solitons. Random Struct. Algorithms 2004, 24, 51–64. [Google Scholar] [CrossRef]
  13. Cordero, F.; Véchambre, G. Moran models and Wright-Fisher diffusions with selection and mutation in a one-sided random environment. Adv. Appl. Probab. 2023, 55, 701–767. [Google Scholar] [CrossRef]
  14. Huillet, T.; Möhle, M. Duality and asymptotics for a class of nonneutral discrete Moran models. J. Appl. Probab. 2009, 46, 866–893. [Google Scholar] [CrossRef]
  15. Huillet, T.E. Random walk Green kernels in the neutral Moran model conditioned on survivors at a random time to origin. Math. Popul. Stud. 2016, 23, 164–200. [Google Scholar] [CrossRef]
  16. Faragó, A. Approximating general discrete stochastic processes by Markov chains. J. Stat. Comput. Sci. 2022, 1, 135–145. [Google Scholar]
  17. Flajolet, P.; Guillemin, F. The formal theory of birth-and-death processes, lattice path combinatorics and continued fractions. Adv. Appl. Probab. 2000, 32, 750–778. [Google Scholar] [CrossRef]
  18. Banderier, C. Combinatoire Analytique des Chemins et des Cartes. Ph.D. Thesis, Université Paris VI, Paris, France, 2001. [Google Scholar]
Figure 1. Return time of X (in red) and the random walk X (in green) of lengths 1000 and 500 and for q = 0.6 .
Figure 1. Return time of X (in red) and the random walk X (in green) of lengths 1000 and 500 and for q = 0.6 .
Mathematics 11 03774 g001
Figure 2. Return time of X (in red) and the random walk X (in green) of lengths 1000 and 500 and for q = 0.75 .
Figure 2. Return time of X (in red) and the random walk X (in green) of lengths 1000 and 500 and for q = 0.75 .
Mathematics 11 03774 g002
Figure 3. Return time of X (in red) and the random walk X (in green) of lengths 1000 and 500 and for q = 0.9 .
Figure 3. Return time of X (in red) and the random walk X (in green) of lengths 1000 and 500 and for q = 0.9 .
Mathematics 11 03774 g003
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

Aguech, R.; Abdelkader, M. Two-Dimensional Moran Model: Final Altitude and Number of Resets. Mathematics 2023, 11, 3774. https://doi.org/10.3390/math11173774

AMA Style

Aguech R, Abdelkader M. Two-Dimensional Moran Model: Final Altitude and Number of Resets. Mathematics. 2023; 11(17):3774. https://doi.org/10.3390/math11173774

Chicago/Turabian Style

Aguech, Rafik, and Mohamed Abdelkader. 2023. "Two-Dimensional Moran Model: Final Altitude and Number of Resets" Mathematics 11, no. 17: 3774. https://doi.org/10.3390/math11173774

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