scieee AI-readable full text Open interactive document viewer

On the generalized logistic random differential equation: Theoretical analysis and numerical simulations with real-world data

Bevia, Vicente; Calatayud, Julia; Cortés, Juan Carlos; Jornet, Marc

Abstract

Based on the previous literature about the random logistic and Gompertz models, the aim of this paper is to extend the investigations to the generalized logistic differential equation in the random setting. First, this is done by rigorously constructing its solution in two different ways, namely, the sample-path approach and the mean-square calculus. Secondly, the probability density function at each time instant is derived in two ways: by applying the random variable transformation technique and by solving the associated Liouville’s partial differential equation. It is also proved that both the stochastic solution and its density function converge, under specific conditions, to the corresponding solution and density function of the logistic and Gompertz models, respectively. The investigation finishes showing some examples, where a number of computational techniques are combined to construct reliable approximations of the probability density of the stochastic solution. In particular, we show, step-by-step, how our findings can be applied to a real-world problem.

Full text

Communications in Nonlinear Science and Numerical Simulation 116 (2023) 106832 Contents lists available at ScienceDirect Communications in Nonlinear Science and Numerical Simulation journal homepage: www.elsevier.com/locate/cnsns Research paper On the generalized logistic random differential equation: Theoretical analysis and numerical simulations with real-world data V. Bevia a,∗, J. Calatayud b, J.-C. Cortés a, M. Jornet c aInstituto Universitario de Matemática Multidisciplinar, Universitat Politècnica de València, Camino de Vera s/n, 46022, Valencia, Spain bDepartment of Mathematics, Universitat Jaume I, Av. Vicent Sos Baynat, s/n, 12071, Castellón, Spain cDepartment of Mathematics, Universitat de València, Dr Moliner 50, 46100, Burjassot, Spain article info Article history: Received 1 October 2021 Received in revised form 24 July 2022 Accepted 23 August 2022 Available online 27 August 2022 Keywords: Generalized logistic differential equation Random differential equation Sample-path and mean-square solution Probability density function Convergence Real-world application abstract Based on the previous literature about the random logistic and Gompertz models, the aim of this paper is to extend the investigations to the generalized logistic differential equation in the random setting. First, this is done by rigorously constructing its solution in two different ways, namely, the sample-path approach and the mean-square calculus. Secondly, the probability density function at each time instant is derived in two ways: by applying the random variable transformation technique and by solving the associated Liouville’s partial differential equation. It is also proved that both the stochastic solution and its density function converge, under specific conditions, to the corresponding solution and density function of the logistic and Gompertz models, respectively. The investigation finishes showing some examples, where a number of computational techniques are combined to construct reliable approximations of the probability density of the stochastic solution. In particular, we show, step-by-step, how our findings can be applied to a real-world problem. ©2022 The Author(s). Published by Elsevier B.V. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/). 1. Introduction This paper is a contribution to the field of random differential equations. These are defined as classical differential equations whose coefficients and initial conditions are random variables or stochastic processes, and the solution is a differentiable stochastic process [1–3]. Due to the existence of different types of limits in probability theory, such solution may have different interpretations: sample-path, mean-square, etc. The sample-path notion, which refers to the trajectories of the solution, is the weakest and the usual one in a computational setting [1,4–7] The statistical content of the solution is of interest. When the interest relies on the moments, different techniques may be used: Monte Carlo simulation, based on sampling and calculating the statistics of the sample; perturbation expansions, based on Taylor’s expansions around a parameter with a certain radius of convergence; generalized polynomial chaos expansions, constructed from orthogonal polynomials; etc. [8,9]. On the other hand, for the explicit computation of the probability density function (PDF), the Random Variable Transformation (RVT) technique has been of use in the literature when a closed-form solution exists [10–12]. This method has been applied to the solution of the logistic random differential equation [13,14]. A complementary approach is based on the resolution of the Liouville’s partial differential ∗Corresponding author. E-mail addresses: [email protected] (V. Bevia), [email protected] (J. Calatayud), [email protected] (J.-C. Cortés), [email protected] (M. Jornet). https://doi.org/10.1016/j.cnsns.2022.106832 1007-5704/©2022 The Author(s). Published by Elsevier B.V. This is an open access article under the CC BY-NC-ND license (http://creativecommons. org/licenses/by-nc-nd/4.0/). V. Bevia, J. Calatayud, J.-C. Cortés et al. Communications in Nonlinear Science and Numerical Simulation 116 (2023) 106832 equation (PDE) [15–19]. A recent application of Liouville’s equation can be found for the Gompertz random differential equation [20]. The logistic differential equation has been generalized in different senses to better modeling the dynamics of realworld phenomena where it has been applied. This generalization has included its reformulation in terms of fractional derivatives; the substitution of the contagion rate term by a power-law function, etc. [21–23]. In this paper, we deal with the following generalization of the logistic differential equation Y′(t)=AY(t)(1−(Y(t) K)B),t≥t0,Y(t0)=Y0.(1.1) As usual, tis interpreted as the time. The parameter Ais the growth rate, Kis the carrying capacity, and Bis a power that controls how fast the limiting number Kis approached. When B=1, the classical logistic differential equation is obtained. And when Btends to 0, the Gompertz equation is given. Indeed, given A,B>0, we put ˆ A=AB, and then (1.1) can be written as Y′(t)= ˆ A BY(t)(1−(Y(t) K)B).(1.2) Now, let us calculate the limit as B→0+of the following term that defines the right-hand side of the above equation: lim B→0+(1−(Y(t) K)B) B=lim B→0+−(Y(t) K)B ln (Y(t) K)= − ln (Y(t) K)=ln (K Y(t)). As a consequence, as B→0+, the differential equation (1.1) can be expressed as Y′(t)=ˆ AY(t) ln (K Y(t)), which corresponds to the Gompertz model [24,25]. The incorporation of the power Ballows for more flexible S-shaped curves to model growth phenomena over time. Examples of application include tumor growth [26–29] and diseases such as SARS [30,31], dengue fever [32], influenza H1N1 [33], Zika [34], Ebola [35], and COVID-19 [36–39]. We investigate the random counterpart of (1.1), in order to extend the previous literature on the logistic random differential equation [13,14] and the Gompertz random differential equation [20]. It is assumed that B>0, K>0, Y0∈ [0,K](almost surely) and Aare random variables on a common underlying and complete probability space (Ω,F,P). Due to uncertainty propagation, the solution Y(t) is a differentiable stochastic process. The randomness of the parameters arises from the uncertainty inherent to the problem that in principle cannot be reduced by additional knowledge [9]. The organization of the remaining part of the paper is the following. In Section 2, the sample-path and mean-square solution to (1.1) is rigorously found. In Section 3, the PDF of the solution is obtained in two ways, by the RVT technique and by solving the Liouville’s PDE. In Section 4, the behavior of the solution, when the power tends to 1 or 0, is examined (through the mean-square convergence and also via the convergence of the densities) to replicate the deterministic counterpart. In Section 5, we illustrate our main findings with two examples that include a real-world application. Finally, in Section 6, the main conclusions are drawn. 2. Stochastic solution In this section, we investigate the existence and uniqueness of a stochastic solution to the generalized logistic random differential equation model (1.1). Two notions of solution are treated: sample-path solution and mean-square solution. 2.1. Sample-path solution It is known that Y(t) is a sample-path solution to (1.1) if Yis a stochastic process [i.e. measurable from (Ω,F) to (R,Borel sets) for each t≥t0] and its trajectories solve (1.1) on [t0,∞) in a deterministic sense [2, chapter 3], [1, Appendix I]. The construction of the sample-path solution is usually straightforward; one merely solves the deterministic problem and checks that the conditions for being a sample-path solution (measurability and common time domain for the trajectories) are satisfied. In the present case, model (1.1) corresponds to a Bernoulli differential equation. After the standard change of variables X=Y−B, a linear differential equation is derived for X. At the end, the solution to (1.1) becomes Y(t)=K [1+(−1+(K Y0)B)e−AB(t−t0)]1/B.(2.1) When 0 ≤Y0≤Kalmost surely Y(t), which is defined by (2.1), is the sample-path solution and it lies within [0,K] almost surely, for every t≥t0. 2 V. Bevia, J. Calatayud, J.-C. Cortés et al. Communications in Nonlinear Science and Numerical Simulation 116 (2023) 106832 2.2. Mean-square solution It is known that Y(t) is a mean-square solution to (1.1) when the derivative in (1.1) (and in general any limit) is considered in the metric of the Lebesgue space L2(Ω,dP), [2, chapter 4], [1,3]. This space is Hilbert with the inner product (Y1,Y2)↦→ E[Y1Y2] = ∫ΩY1Y2dP, where Edenotes the expectation operator. It consists of the random variables with finite variance. The norm of L2(Ω,dP) is denoted by ∥·∥2. Mean-square convergence is of great interest because convergence in this setting implies convergence of the two most sought moments of a stochastic process: the mean and the variance [1]. Among the remaining Lebesgue spaces (Lp(Ω,dP),∥·∥p), the case p= ∞, whose norm ∥·∥∞corresponds to the almost surely least upper bound (essential supremum), will be needed. Let us see that the sample-path solution defined by (2.1) is also the mean-square solution on [t0,∞), whenever ∥A∥∞<∞,B>0 almost surely, ∥B∥∞<∞, 0 ≤Y0≤Kalmost surely, and 0 < κ0≤K≤κ1<∞almost surely, where κ0and κ1are constant. Let F(Y, ω)=A(ω)Y(1−(Y K(ω))B(ω)),Y∈ [0,K(ω)], ω ∈Ω. Fix an ω∈Ω. By the triangular inequality and the mean value theorem, it is easy to see that F(·, ω) is Lipschitz on [0,K(ω)], with Lipschitz constant ∥A∥∞(1 +κ1∥B∥∞/κ0): |F(Y1, ω)−F(Y2, ω)|=⏐⏐⏐⏐⏐ A(ω)Y1(1−(Y1 K(ω))B(ω))−A(ω)Y2(1−(Y2 K(ω))B(ω))⏐⏐⏐⏐⏐ ≤ |A(ω)∥Y1−Y2|(1−Y1 K(ω))B(ω) +|A(ω)|Y2⏐⏐⏐⏐⏐(1−Y1 K(ω))B(ω) −(1−Y2 K(ω))B(ω)⏐⏐⏐⏐⏐ ≤ ∥ A∥∞|Y1−Y2|+ ∥ A∥∞|Y2|∥B∥∞ κ0 |Y1−Y2| ≤ ∥ A∥∞(1+κ1∥B∥∞ κ0)|Y1−Y2|. By Tietze extension theorem [40, Th. 1], F(·, ω) can be extended to a Lipschitz map ˜ F(·, ω):R→Rwith Lipschitz constant ∥A∥∞(1 +κ1∥B∥∞/κ0). Consider Y′(t)=˜ F(Y(t)). By [2, Th. 4.3], [1, Th. 5.1.2], the Lipschitz condition on the whole Rimplies that the problem Y′(t)=˜ F(Y(t)), Y(t0)=Y0, possesses a unique mean-square solution on [t0,∞). Any mean-square solution is equivalent to the sample-path solution [41, Th. 3(a)], which is (2.1) precisely. Then (2.1) is the mean-square solution. This completes the proof. 3. Two methods for computing the PDF of the solution stochastic process In this section, we compute the PDF of Y(t), denoted as fY(t)(y). By definition, the PDF is a non-negative Borel measurable function characterized by P[Y(t)∈B] = ∫BfY(t)(y) dyfor any Borel set Bin R. Two complementary techniques are employed: the application of the RVT method and the resolution of the Liouville’s PDE. The former requires the computation of a Jacobian, while the latter needs the resolution of the continuity equation. The computation of the PDF is advantageous since it allows for the computation of any one-dimensional moment E[(Y(t))k] = ∫∞ −∞ ykfY(t)(y) dy,k=1,2,..., (3.1) provided it exists. In particular, the mean (case k=1) and the variance (from k=2), V[Y(t)] = E[(Y(t))2] − (E[Y(t)])2. 3.1. First method: RVT technique Let (Y0,K,A,B) be an absolutely continuous random vector with a certain joint probability distribution, f(Y0,K,A,B). Fix t≥t0. To apply the technique, we need a transformation that relates the inputs, (Y0,K,A,B), to the output, Y(t). The transformation mapping is the following: g(Y0,K,A,B)=⎛ ⎜ ⎜ ⎜ ⎝ K [1+(−1+(K Y0)B)e−AB(t−t0)]1/B,K,A,B⎞ ⎟ ⎟ ⎟ ⎠ , 3 V. Bevia, J. Calatayud, J.-C. Cortés et al. Communications in Nonlinear Science and Numerical Simulation 116 (2023) 106832 where the auxiliary components K,Aand Bhave been conveniently chosen. The inverse mapping is computed easily: h(Y,K,A,B)=⎛ ⎜ ⎝ K [1+(−1+(K Y)B)eAB(t−t0)]1/B,K,A,B⎞ ⎟ ⎠. The Jacobian of his the determinant of the matrix of first partial derivatives of h: Jh(Y,K,A,B)=∂Y0 ∂Y=K1+BeAB(t−t0) YB+1[1+(−1+(K Y)B)eAB(t−t0)]1/B+1>0. Such positivity holds because 0 <Y<Kand B>0 almost surely. By the RVT formula [12], [42, Th. 2.1.5], and after marginalizing with respect to K,Aand B, the PDF of Y(t) is obtained in a semi-implicit manner through a triple integral: fY(t)(y)=∫D(K,A,B) f(Y0,K,A,B)⎛ ⎜ ⎝ K [1+(−1+(K Y)B)eAB(t−t0)]1/B,K,A,B⎞ ⎟ ⎠ ×K1+BeAB(t−t0) YB+1[1+(−1+(K Y)B)eAB(t−t0)]1/B+1dKdAdB.(3.2) Here D(K,A,B)denotes the support of (K,A,B). The PDF (3.2) is the general formula. Sometimes, it may be simplified. First, if Y0,K,Aand Bare independent random variables, then the joint PDF f(Y0,K,A,B)factorizes: f(Y0,K,A,B)=fY0×fK×fA×fB. In consequence, the PDF of the solution can be expressed via an expectation fY(t)(y)=∫DB∫DA∫DK fY0⎛ ⎜ ⎜ ⎜ ⎝ K [1+(−1+(K y)B)eAB(t−t0)]1/B⎞ ⎟ ⎟ ⎟ ⎠ fK(K)fA(A)fB(B) ×K1+BeAB(t−t0) yB+1[1+(−1+(K y)B)eAB(t−t0)]1/B+1dKdAdB =E⎡ ⎢ ⎢ ⎢ ⎣ fY0⎛ ⎜ ⎜ ⎜ ⎝ K [1+(−1+(K y)B)eAB(t−t0)]1/B⎞ ⎟ ⎟ ⎟ ⎠ K1+BeAB(t−t0) yB+1[1+(−1+(K y)B)eAB(t−t0)]1/B+1⎤ ⎥ ⎥ ⎥ ⎦ . Note that this is a parametric approximation of the PDF because it is obtained as an expectation of a transformation of the input random variables (A,B,K). This PDF representation is beneficial since Monte Carlo simulation can be easily applied by sampling the involved random variables and then computing the expectation that approximates the PDF [43]. Secondly, if an input random variable (Y0,K,Aor B) is discrete, rather than absolutely continuous, its PDF may be viewed in a generalized sense. For example, if Kis discrete, then fK(k)=∑ i kiδ0(k−ki), where ki>0 are the mass points of the discrete random variable Kand δ0is the Dirac delta function (everywhere zero but with infinite value at the origin and integral equal to 1). The integral over DKwould become a sum over the points {ki}i. 3.2. Second method: Liouville’s PDE The procedure and the notation from [20] are replicated. Let us denote model (1.1) as Y′(t)=g(Y(t),K,A,B), 4 V. Bevia, J. Calatayud, J.-C. Cortés et al. Communications in Nonlinear Science and Numerical Simulation 116 (2023) 106832 where g(Y,K,A,B)=AY (1−(Y K)B).(3.3) This g, and later h, are different to those from the previous subsection, and match with [20]. The Liouville’s PDE for the joint PDF of (Y(t),K,A,B), f(Y(t),K,A,B)(y,K,A,B), is ∂f(y,K,A,B) ∂t+∂{f(y,K,A,B)g(y,K,A,B)} ∂y=0, where the notation f:= f(Y(t),K,A,B)was used in order to shorten the expression. Such partial derivative with respect to yis the divergence operator in dimension one. By computing the derivative of the product in the second summand, we can obtain an alternative and useful formulation of the Liouville’s PDE, ∂f(y,K,A,B) ∂t+g(y,K,A,B)∂f(y,K,A,B) ∂y= −f(y,K,A,B)∂g(y,K,A,B) ∂y.(3.4) The explicit solution to the Liouville’s equation is [1, Chapter 6] f(Y(t),K,A,B)(y,K,A,B)=f(Y0,K,A,B)(Y0,K,A,B) exp (−∫t t0 ∂g ∂Y(Y(τ),K,A,B) dτ)⏐⏐⏐⏐Y0=h−1(y,K,A,B,t) , where Y(t)=h(Y0,K,A,B,t) is the input–output relation and Y0=h−1(Y,K,A,B,t)=K [1+(−1+(K Y)B)eAB(t−t0)]1/B is the inverse relation, in terms of the initial condition. The partial derivative of gwith respect to Yis ∂g ∂Y=A(1−(Y K)B)−AB KBYB. An important term in the solution of the Liouville’s PDE is exp (−∫t t0 ∂g ∂Y(Y(τ),K,A,B) dτ)=e−A(t−t0)(KB+(−1+eAB(t−t0))YB 0)(1+B)/B K1+B. Then the Jacobian of the RVT formula is retrieved as exp (−∫t t0 ∂g ∂Y(Y(τ),K,A,B) dτ)⏐⏐⏐⏐Y0=h−1(y,K,A,B,t) =K1+BeAB(t−t0) YB+1[1+(−1+(K Y)B)eAB(t−t0)]1/B+1. Thus, after marginalizing the calculated f(Y(t),K,A,B)(y,K,A,B) with respect to K,Aand B, it is obtained the PDF (3.2) as well. 4. Convergence when the power tends to 1 or 0 By the deterministic theory, it is known that the classical logistic and Gompertz differential equations are retrieved when B=1 and B→0, respectively. The aim of the present section is to extend those results to the random scenario. Different convergence measures for Y(t) are used: mean-square convergence and convergence of densities. 4.1. Mean-square convergence We investigate the mean-square convergence of Y(t). Two cases are distinguished, according to the probabilistic convergence of B: •Case B→1 or B→0 almost surely. By the deterministic theory, it is known that Y(t) converges to the logistic curve or the Gompertz curve almost surely when B→1 or B→0 almost surely, respectively. It is also known that 0≤Y(t)≤K∈L1(Ω,dP), and analogously for the logistic and the Gompertz curves. By the dominated convergence theorem [44, result 11.32, p. 321], the almost sure convergence of Y(t) translates into mean-square convergence. In conclusion, Y(t) converges to the logistic curve or the Gompertz curve in the mean-square sense when B→1 or B→0 almost surely. •Case B→1 or B→0 in the mean-square sense. Pick any sequence {Bn} → 1 or {Bn} → 0 in the mean-square sense. There exists a subsequence such that {Bnl} → 1 or {Bnl} → 0 almost surely. By the previous item, the corresponding {Ynl(t)}converges in mean-square to the logistic curve or to the Gompertz curve, respectively. At the end, this implies that Y(t) converges to the logistic curve or the Gompertz curve in the mean-square sense when B→1 or B→0 in mean-square. 5 V. Bevia, J. Calatayud, J.-C. Cortés et al. Communications in Nonlinear Science and Numerical Simulation 116 (2023) 106832 4.2. Convergence of densities We prove that, if B→1 or B→0 almost surely, then fY(t)(y) converges to the PDF of the logistic curve or the PDF of the Gompertz curve almost everywhere, respectively. Almost everywhere convergence of densities is a strong mode of convergence, as it implies convergence in L1(R,dy) by Scheffé’s lemma [45, p. 55], [46]. For the proof, it is assumed that Y0and (K,A,B) are independent, A>0 almost surely (increasing trend), Y0≥z>0 almost surely (zconstant), ∥B∥∞<∞, there exists C>0 such that fY0(y)≤min{C/y,C/y1+∥B∥∞}for all y>0, and E[eA∥B∥∞(t−t0)]<∞(finite moment-generating function of A). Due to the independence, the PDF (3.2) is rewritten as fY(t)(y)=E[fY0(RB)(RB)1+BeAB(t−t0)1 yB+1], where RB=K [1+(−1+(K Y)B)eAB(t−t0)]1/B and the domain is y≥z. Now, 0≤fY0(RB)(RB)1+BeAB(t−t0)1 yB+1≤CeA∥B∥∞(t−t0)min {1 z,1 z1+∥B∥∞}, where such upper bound is a constant that, in consequence, belongs to L1(Ω,dP). The dominated convergence theorem [44, result 11.32, p. 321] allows for interchanging the limit on Band the expectation. 5. Numerical examples and real data In this section, the previous theoretical findings will be applied to analyze the dynamics of the solution stochastic process to the random generalized logistic model (1.1), through its PDF and main moments (mean and variance). This analysis is first performed via two numerical examples, and afterward using real-world data. As several numerical challenges may appear when solving model (1.1), we shall also recall a number of deterministic and probabilistic tools that will be used in the examples. Section 5.1 deals with the description of a numerical scheme based on the Lagrangian form of the Liouville’s PDE. It is formulated in the case of deterministic coefficients and extended to the case of random coefficients. Afterward, in Sections 5.2–5.4, a brief presentation of a fast computational technique based on adaptive mesh generation and wavelets (wavelet compression-based adaptive mesh refinement); a metaheuristic optimization algorithm (Particle Swarm Optimization algorithm) and a method to construct reliable PDFs from sampled information (Principle of Maximum Entropy) will be given, respectively. Finally, in Sections 5.5 and 5.6, an application of the numerical procedures to some numerical examples and a full study of a real-world case of microbial growth data will be discussed, respectively. 5.1. Lagrangian form of the Liouville’s PDE It is well known that first order PDEs whose dynamical behavior is dominated by convection, such as the Liouville’s equation, may be analyzed by the evolution of the equation solution in certain curves, called characteristic curves [47, Sec. 3.2]. The formulation of the problem in such a way is called the Lagrangian formulation of the PDE [48]. We point out that throughout this section the previous notation, fY(t)(y), for the PDF of the solution for the generalized logistic model (1.1) will be conveniently adapted to our new setting in order to stress the dependence of the new quantities that will appear. This will be underlined in due course. The Lagrangian formulation is different than the classical, fixed-mesh and Eulerian formulation of a PDE. When computing a numerical solution of a PDE, both the time domain and the space domain must be discretized, and the discretized values of the PDE at each point in the discretized space domain (mesh, or grid) are updated in each timestep. Lagrangian methods, however, treat the discretized values of the initial PDE state as individual particles that move as defined by the velocity, or field, function, defined by g(y;K,A,B) in (3.3) in our case, and change their inherent quantity accordingly (in this case, the PDF f). In the case of the Liouville’s PDE, we can transform its classical, or Eulerian formulation (3.4), to its Lagrangian formulation in the following way: d dsy(s;K,A,B)=g(y(s;y0);K,A,B),y(t0)=y0,(5.1) d dsf(y(s;y0),s|K,A,B)= −f(y(s;y0),s|K,A,B)∂g ∂y(y(s;y0);K,A,B).(5.2) Therefore, the family of curves {y(s;y0)}y0∈Rare the characteristic curves, written in the so-called Lagrangian coordinates (s;y0). As it can be seen, they are determined by the flow function, g(y;K,A,B), in the form of an ODE given by (5.1). The 6 V. Bevia, J. Calatayud, J.-C. Cortés et al. Communications in Nonlinear Science and Numerical Simulation 116 (2023) 106832 second Eq. (5.2), which defines the change of the PDF through each characteristic curve, can be solved in an exact way using the method of separation of variables fY(t)(y)=f(y(t;y0),t|K,A,B)=f0(y0) exp {−∫t t0 ∂g ∂y(y(τ;y0);K,A,B) dτ}.(5.3) As emphasized with the former notation, this expression is another representation of the PDF of Y(t), which is equivalent to (3.2). As expression (5.3) shows, the time evolution of the PDF only depends on the computation of the integral through each of the characteristic curves. However it is not always possible to compute the integral in an exact way. And even if it is possible, the resulting function may be too unstable for a computer to efficiently handle. This is what often happens when carrying out computations for the generalized logistic model as it shall be illustrated in the examples. When dealing with random coefficients, another step must be done. Particularly, an interpolation into a common grid of all conditional PDFs, f(y,t|K,A,B), must be computed regularly after some time steps in the simulation. Afterward, all that is left is to compute the marginal PDF with respect to these random parameters in the common grid points fY(t)(y)=∫R3 f(y,t|K,A,B)fK,A,B(K,A,B) dKdAdB. For the numerical computation of the solution to the system formed by (5.1)–(5.2), or equivalently, the Eqs. (5.1) and (5.3), any ODE integrator can be used. We have used the Runge–Kutta 4 (RK4) scheme, and the Simpson rule for the computation of the integral in (5.3) [49]. The time step used for the simulations shown in this section has been determined heuristically, by comparing one simulation with a certain time step and another one with half its time step. We then choose a time step after which there is no noticeable improvement. In Sections 5.5 and 5.6, we specify the particular time step used in this contribution. 5.2. Wavelet compression-based AMR Dynamical systems such as the generalized logistic equation model (1.1) have many interesting properties, such as asymptotic stability. This means that the system converges to a specific state or value. Suppose the asymptotic state is deterministic or a random variable with a small variance. Then, the PDF will evolve into a function with very narrow support, or in 1-dimensional models such as the one studied in the present contribution, it may converge to a Dirac delta distribution. Asymptotic stability may pose a problem when computing its PDF via its related Liouville’s PDE through numerical schemes. Despite using a Lagrangian method for the PDF computation, an underlying grid in which the particles’ positions and values are initialized at each time step is required, as explained in the previous subsection. In order to have a reliable computation of the evolution of the PDF, even at times values when the random system approaches its steady-state, a very high resolution, i.e., very fine grid must be chosen. However, a high-resolution grid would only be truly useful near the steady state PDF, whereas an unnecessarily high computational cost is forced in all previous time steps. This may lead to an unaffordable computational burden. These kinds of problems, also known as multi-scale problems [50], appear in a wide variety of fields, especially in computational fluid dynamics. This problem has been addressed by using Adaptive Mesh Refinement (AMR) techniques. There are many AMR procedures; however, we have used the so-called wavelet-based AMR technique. We refer to [50] for further details on how it is practically used. 5.3. PSO algorithm The Particle Swarm Optimization (PSO) algorithm is an optimization algorithm widely used in cases where the parameters to be optimized are not in a discrete set. In short, it generates a number of particles (combinations of possible optimal values) where a certain fitness function (FF) is evaluated. Taking into account the values of the FFs at those points, the particles are updated by imitating the behavior of birds when searching for food [51]. We will take advantage of this optimization technique to search for the best estimates for model parameters in the subsequent examples. 5.4. Principle of Maximum Entropy (PME) There are various ways of assigning distributions to random variables or vectors. One of them is the so-called Principle of Maximum Entropy (PME [52] or MaxEnt [53]). This data-driven method seeks to obtain a PDF that captures the maximum uncertainty (which is measured by the so-called Shannon Entropy functional) from the available sampled information (usually described via the moments such as the mean, variance, etc.) about the random variable [54]. In this contribution we will only use the mean and variance, since adding more moments does not change the resulting PDF noticeably in this case. In Section 5.6, this method is applied to assign a PDF to a set of real data. Mathematically speaking, we want to compute the following: fsample =arg max {∫D f(y) log(f(y))dy|f∈L1(D),f≥0}, 7 V. Bevia, J. Calatayud, J.-C. Cortés et al. Communications in Nonlinear Science and Numerical Simulation 116 (2023) 106832 Fig. 1. Triangular distribution PDF used as initial condition for both numerical examples in Section 5.5. Table 1 Parameter values used in Case 1 (A1,B1,K1) and Case 2 (A2,B2,K2), respectively. Numerical example. Case 1 Case 2 Parameter A1B1K1A2B2K2 Value 0.33 1 5 0.33 2.5 5 subject to the following constraints ∫Df(y)dy=1, ∫Dy f (y)dy=µsample, ∫Dy2f(y)dy=σ2 sample +µ2 sample. Here Ddenotes the domain of the random variable Y. Using the Lagrange multiplier method, it can be shown that the PDF has the following form [55] fsample(y)=exp{−1−λ0−λ1y−λ2y2}, where λ0, λ1and λ2are the Lagrange multipliers. These values are determined by solving the system defined by the constraints, which usually requires numerical methods since it is often nonlinear in λ0, λ1and λ2. 5.5. Numerical example In this section, we will take advantage of the mathematical tools summarized in Sections 5.1–5.4 to compute and visualize the dynamical behavior of the PDF of the solution stochastic process for the generalized logistic model (1.1). We will assume that t0=0 and that tis measured in hours. First, two numerical examples will be shown in order to introduce a brief idea about how the numerical solution performs. Then we will solve an inverse problem with real-world data. All computations in the following sections have been performed in an AMD Ryzen 5800H-based laptop computer with 16 GB of RAM. 5.5.1. Deterministic coefficients Only the initial condition is assumed a random variable which follows a symmetric triangular distribution with parameters 1.1,1.3, whose mode is located at 1.2. It can be seen in Fig. 1. The rest of model parameters, A,Band K, are assumed deterministic. We have considered two scenarios, Case 1 and Case 2, where only the value of Bdiffers (see Table 1). In this way, we can better observe the role that parameter Bplays in the model (this can repeated for the rest of model parameters). It is important to note, however, that the support of the PDF must be contained inside the interval [0,K]in all times; that is, supp{f([0,+∞),·)}⊂[0,K]. This is due to the nature of the model, which assumes that Kis the carrying capacity, or asymptotic equilibrium state. We have chosen our initial high resolution grid to consist of 4096 points. Figs. 2 and 3show the time evolution of the PDF in Cases 1 and 2, respectively, along with the mean and standard deviation functions, computed from the PDF by means of (3.1). The whole computation took about 0.6 s. Note that there are some similarities between both simulations. In particular, we can see that both simulations converge to a stationary value (the carrying capacity, K=5) and their standard deviations decay to zero as this happens. This is to be expected because of the fact that the mean-square solution of the random IVP is also a pathwise solution 8 V. Bevia, J. Calatayud, J.-C. Cortés et al. Communications in Nonlinear Science and Numerical Simulation 116 (2023) 106832 Fig. 2. Top four panels: PDF of the solution stochastic process to the generalized logistic equation model (1.1) at different time instants (in hours). Bottom panel: Mean (blue, left axis) and standard deviation (orange, right axis) of the solution stochastic process. Case 1 (Numerical Example). Maximum absolute error in the PDF total mass: ∼5.3·10−4. Fig. 3. Top four panels: PDF of the solution stochastic process to the generalized logistic equation model (1.1) at different time instants (in hours). Bottom panel: Mean (blue, left axis) and standard deviation (orange, right axis) of the solution stochastic process. Case 2 (Numerical Example). Maximum absolute error in the PDF total mass: ∼6.1·10−3. 9 V. Bevia, J. Calatayud, J.-C. Cortés et al. Communications in Nonlinear Science and Numerical Simulation 116 (2023) 106832 Fig. 11. Absolute error (left axis, blue curve) and relative error (right axis, orange curve) of the mean of the PDF computed by the Liouville’s PDE with respect to the sample data. Real-world Example with random parameters. CRediT authorship contribution statement V. Bevia: Conceptualization, Software, Formal analysis, Investigation, Writing – original draft, Writing – review & editing, Visualization. J. Calatayud: Conceptualization, Formal analysis, Investigation, Writing – original draft, Writing – review & editing. J.-C. Cortés: Conceptualization, Investigation, Writing – review & editing, Supervision, Funding acquisition, Project administration. M. Jornet: Conceptualization, Formal analysis, Investigation, Writing – original draft, Writing – review & editing. Declaration of competing interest The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper. Funding This work has been supported by the Spanish Agencia Estatal de Investigación grant PID2020-115270GB-I00. Vicente Bevia acknowledges the doctorate scholarship granted by Programa de Ayudas de Investigación yDesarrollo (PAID), Universitat Politècnica de València. References [1] Soong TT. Random differential equations in science and engineering. New York: Academic Press; 1973. [2] Neckel T, Rupp F. Random differential equations in scientific computing. Walter de Gruyter; 2013. [3] Villafuerte L, Braumann CA, Cortés JC, Jódar L. Random differential operational calculus: theory and applications. Comput Math Appl 2010;59(1):115–25. [4] Caraballo T, Colucci R, López-de-la-Cruz J, Rapaport A. A way to model stochastic perturbations in population dynamics models with bounded realizations. Commun Nonlinear Sci Numer Simul 2019;77:239–57. http://dx.doi.org/10.1016/j.cnsns.2019.04.019. [5] Caraballo T, López-de-la-Cruz J, Rapaport A. Modeling bounded random fluctuations in biological systems: application to the chemostat model with two species. IFAC-PapersOnLine 2019;52(26):187–92. http://dx.doi.org/10.1016/j.ifacol.2019.12.256. [6] Allen E. Modeling with Itô stochastic differential equations. Math Model: Theory Appl 2007;22. [7] Nipa Kaniz Fatema, Jang Sophia R-J, Allen Linda JS. The effect of demographic and environmental variability on disease outbreak for a dengue model with a seasonally varying vector population. Math Biosci 2021;331(108516). http://dx.doi.org/10.1016/j.mbs.2020.108516. [8] Xiu D. Numerical methods for stochastic computations: A spectral method approach. Cambridge texts in applied mathematics, New York: Princeton University Press; 2010. [9] Smith RC. Uncertainty quantification: Theory, implementation, and applications. SIAM; 2013. [10] Hussein A, Selim MM. Solution of the stochastic generalized shallow-water wave equation using RVT technique. Eur Phys J Plus 2015;130(12):249. [11] Slama H, El-Bedwhey NA, El-Depsy A, Selim MM. Solution of the finite milne problem in stochastic media with RVT technique. Eur Phys J Plus 2017;132(12):505. [12] Hussein A, Selim MM. A general probabilistic solution of randomized radioactive decay chain (RDC) model using RVT technique. Eur Phys J Plus 2020;135(5):418. [13] Dorini FA, Cecconello MS, Dorini LB. On the logistic equation subject to uncertainties in the environmental carrying capacity and initial population density. Commun Nonlinear Sci Numer Simul 2016;33:160–73. 16 V. Bevia, J. Calatayud, J.-C. Cortés et al. Communications in Nonlinear Science and Numerical Simulation 116 (2023) 106832 [14] Dorini FA, Bobko N, Dorini LB. A note on the logistic equation subject to uncertainties in parameters. Comput Appl Math 2018;37(2):1496–506. [15] Kozin F. On the probability densities of the output of some random systems. J Appl Mech 1961;28:161–5. [16] Saaty T. Modern nonlinear equations. New York: Dover Publications; 1981. [17] Ehrendorfer M. The Liouville equation and its potential usefulness for the prediction of forecast skill. Part II: Applications. Mon Weather Rev 1994;122(4):714–28. [18] Chen JB, Li J. A note on the principle of preservation of probability and probability density evolution equation. Probab Eng Mech 2009;24(1):51–9. [19] Halder A, Bhattacharya R. Dispersion analysis in hypersonic flight during planetary entry using stochastic Liouville equation. J Guid Control Dynam 2011;34(2):459–74. [20] Bevia V, Burgos C, Cortés JC, Navarro-Quiles A, Villanueva RJ. Uncertainty quantification analysis of the biological gompertz model subject to random fluctuations in all its parameters. Chaos Solitons Fractals 2020;138:109908. [21] Tarasov VE. Exact solutions of Bernoulli and logistic fractional differential equations with power law coefficients. Mathematics 2020;8:2231. http://dx.doi.org/10.3390/math8122231. [22] Area I, Nieto JJ. Power series solution of the fractional logistic equation. Physica A 2021;573:125947. http://dx.doi.org/10.1016/j.physa.2021. 125947. [23] Consolini G, Materassi M. A stretched logistic equation for pandemic spreading. Chaos Solitons Fractals 2020;140:110113. http://dx.doi.org/10. 1016/j.chaos.2020.110113. [24] Winsor CP. The Gompertz curve as a growth curve. Proc Natl Acad Sci 1932;18(1):1–8. http://dx.doi.org/10.1073/pnas.18.1.1. [25] Koya P, Goshu A. Generalized mathematical model for biological growths. Open J Model Simul 2013;1:42–53. http://dx.doi.org/10.4236/ojmsi. 2013.14008. [26] Marusic M, Bajzer Z, Vuk-Pavlovic S, Freyer JP. Tumor growth in vivo and as multicellular spheroids compared by mathematical models. Bull Math Biol 1994;56:617–31. [27] Spratt JS, Meyer JS, Spratt JA. Rates of growth of human neoplasms: Part II. J Surg Oncol 1996;61(1):68–83. [28] Birch CP. A new generalized logistic sigmoid growth equation compared with the Richards growth equation. Ann Botany 1999;83(6):713–23. [29] Sachs RK, Hlatky LR, Hahnfeldt P. Simple ODE models of tumor growth and anti-angiogenic or radiation treatment. Math Comput Modelling 2001;33(12–13):1297–305. [30] Hsieh YH, Lee JY, Chang HL. SARS epidemiology modeling. Emerg Infect Diseases 2004;10(6):1165. [31] Hsieh YH. Richards model: a simple procedure for real-time prediction of outbreak severity. In: Modeling and dynamics of infectious diseases. World Scientific; 2009, p. 216–36. [32] Hsieh YH, Ma S. Intervention measures, turning point, and reproduction number for dengue, Singapore, 2005. Am J Trop Med Hyg 2009;80(1):66–71. [33] Hsieh YH. Pandemic influenza A (H1N1) during winter influenza season in the southern hemisphere. Influenza Other Respir Viruses 2010;4(4):187–97. [34] Chowell G, Hincapie-Palacio D, Ospina JF, Pell B, Tariq A, Dahal S, Moghadas SM, Smirnova A, Simonsen L, Viboud C. Using phenomenological models to characterize transmissibility and forecast patterns and final burden of Zika epidemics. PLoS Curr 2016;8. [35] Pell B, Kuang Y, Viboud C, Chowell G. Using phenomenological models for forecasting the 2015 Ebola challenge. Epidemics 2018;22:62–70. [36] Pelinovsky E, Kurkin A, Kurkina O, Kokoulina M, Epifanova A. Logistic equation and COVID-19. Chaos Solitons Fractals 2020;140:110241. [37] Wu K, Darcet D, Wang Q, Sornette D. Generalized logistic growth modeling of the COVID-19 outbreak: comparing the dynamics in the 29 provinces in China and in the rest of the world. Nonlinear Dynam 2020;101(3):1561–81. [38] Aviv-Sharon E, Aharoni A. Generalized logistic growth modeling of the COVID-19 pandemic in Asia. Infect Dis Model 2020;5:502–9. [39] Lee SY, Lei B, Mallick B. Estimation of COVID-19 spread curves integrating global data and borrowing information. PLoS One 2020;15(7):e0236860. [40] McShane EJ. Extension of range of functions. Bull Amer Math Soc 1934;40(12):837–42. [41] Strand JL. Random ordinary differential equations. J Differential Equations 1970;7(3):538–53. [42] Casella G, Berger RL. Statistical inference. 2nd ed.. Duxbury, Pacific Grove; 2002. [43] Calatayud J, Jornet M. Extending the applicability of the RVT technique for the randomized radioactive decay chain model. Eur Phys J Plus 2022;137:405. http://dx.doi.org/10.1140/epjp/s13360-022-02625-7. [44] Rudin W. Principles of mathematical analysis. International series in pure & applied mathematics, 3rd ed.. 1976. [45] Williams D. Probability with martingales. New York: Cambridge University Press; 1991. [46] Scheffé H. A useful convergence theorem for probability distributions. Ann Math Stat 1947;18(3):434–8. [47] Evans LC. Partial differential equations. Providence, R.I.: American Mathematical Society; 2010. [48] Dimarco G, Loubère R, Narski J, Rey T. An efficient numerical method for solving the Boltzmann equation in multidimensions. J Comput Phys 2018;353:46–81. http://dx.doi.org/10.1016/j.jcp.2017.10.010, ff.ffhal-01357112. [49] Butcher JC. Numerical methods for ordinary differential equations. New York: John Wiley and Sons; 2008. [50] Bergdorf M, Koumoutsakos P. A Lagrangian particle-wavelet method. Multiscale Model Simul 2006;5(3):980–95. http://dx.doi.org/10.1137/ 060652877. [51] Wang D, Tan D, Liu L. Particle swarm optimization algorithm: an overview. Soft Comput 2018;22:387–408. http://dx.doi.org/10.1007/s00500- 016-2474-6. [52] Burgos-Simón C, Cortés JC, Martínez-Rodríguez D, et al. Modeling breast tumor growth by a randomized logistic model: A computational approach to treat uncertainties via probability densities. Eur Phys J Plus 2020;135:826. http://dx.doi.org/10.1140/epjp/s13360-020-00853-3. [53] Jaynes ET. Information theory and statistical mechanics. Phys Rev 1957;106:620–30. http://dx.doi.org/10.1103/PhysRev.106.620. [54] Michalowicz JV, Nichols JM, Bucholtz F. Handbook of differential entropy. Chapman and Hall/CRC; 2013. [55] Luenberger DG. Optimization by vector space methods. 1st ed.. USA: John Wiley and Sons, Inc.; 1997. [56] Ram Y, Dellus-Gur E, Bibi M, Karkare K, Obolski U, Feldman MW, Cooper TF, Berman J, Hadany L. Predicting microbial growth in a mixed culture from growth curve data. Proc Natl Acad Sci USA 2019;116:14698–707. http://dx.doi.org/10.1073/pnas.1902217116. 17