Abstract

We implement the Bayesian statistical inversion theory to obtain the solution for an inverse problem of growth data, using a fractional population growth model. We estimate the parameters in the model and we make a comparison between this model and an exponential one, based on an approximation of Bayes factor. A simulation study is carried out to show the performance of the estimators and the Bayes factor. Finally, we present a real data example to illustrate the effectiveness of the method proposed here and the pertinence of using a fractional model.

1. Introduction

In recent years, models governed by fractional differential equations have been of great importance to describe anomalous dynamic, which is inherent in a wide range of phenomena (see [13]). This model under certain circumstances can offer a superior fit to experimental data [4]. It is well known that population growth can be modeled by ordinary differential equations and the exponential growth model is the simplest and most widely used of all. However, it can fail to describe an anomalous growth; that is, the population may have a slower or faster growth than exponential growth model. In order to fill this gap, we use a fractional population growth model.

On the order hand, the measurement procedure of growth data is under uncertainty or error data collection process. The statistical approach toward inverse problems from a Bayesian point of view has been very important for the development of uncertainty quantification. Textbooks such as [57] provide an extensive literature on the Bayesian statistical aspects in inverse problems. Donnet et al. [8] developed a Bayesian inference for the parameters of stochastic differential equations deduced from the standard deterministic growth function by adding random effects to the growth dynamic in a population of individuals over time. Capistrán et al. [9] also performed a Bayesian analysis of inverse problems in ordinary differential equations. Calvetti et al. [10] mentioned several articles on the development of Bayesian inverse problems in a broad range of applications, such as engineering, geophysics, life sciences, and economy. Dashti and Stuart [11] discussed the Bayesian approach to inverse problems in differential equations from mathematical and computational perspective and describe Markov Chain Monte Carlo and sequential Monte Carlo methods and measure-preserving reversible stochastic differential equations on infinite dimensional space.

In this paper, we implement the Bayesian statistical inversion theory to obtain a solution for an inverse problem of growth data using a fractional population growth model, defined in Section 2. In Section 3, we estimate the parameters of the fractional model proposed and we make a comparison between two different models, based on Bayes factor. In Section 4, we make a simulation study to show the performance of the estimators and the Bayes factor. Finally, we present a real data example to illustrate the effectiveness of the method proposed here and the pertinence of using a fractional model.

2. The Model

In this work, the proposed mathematical model is defined by two parts.(1)A dynamical system is as follows:where is the size of the population at the time , is the initial size, is the rate of change, and is a harvesting function. Here is the ordinary derivative for and the Caputo fractional derivative for , which is defined by where is the Gamma function.(2)An observation equation is as follows:where correspond to the th observed value under uncertainty from a solution of (1) at the discrete time ; is the observation function; and are measurement errors, which are considered as independent and identically distributed (i.i.d.) random variables from a normal distribution, with mean zero and constant variance , denoted by (in this paper, the symbol “~” is used for “is distributed as”).Now, we find an explicit solution for (1) using the Laplace transform and its inverse, which are defined by respectively. Applying the direct transform to (1), we obtainThen, using the following property where is the Mittag-Leffler function,Finally, applying the inverse Laplace transform to (6) we arrive to

Note that if in the above equation we get the well known solution for (1), which is given by

3. Bayesian Analysis

3.1. Bayesian Estimation

In recent years, the problem of parameter estimation in fractional models has been of great interest, and we use a Bayesian approach to estimate the parameters in a fractional population growth model. The Bayesian theory has proven to be efficient to solve fractional inverse problems (see [12, 13]). In this setting, the parameters are regarded as random variables, and they have prior distributions that reflect the knowledge about their true values before observing the data. From the perspective of Bayesian statistical inversion theory, the solution to an inverse problem is the posterior distribution of the quantity of interest given that all information available has been incorporated in the model [5].

Note that, for the model defined in (1) and (4), the parameter of interest is . Here, we propose the following prior distributions:where denotes the Gamma distribution with shape parameter and rate parameter , is the continuous Uniform distribution on interval , is called the precision parameter, and is a log-Normal distribution with parameters and . The parameters involved in the prior distribution are called hyperparameters. The prior distributions were chosen according to our knowledge about the possible values of the parameters of interest. In models (1) and (4), , , and are positive and take values in the interval . Assuming prior independence of the parameters, we can write the joint prior distribution as where , , , and are defined in (11)–(14), respectively. Let denote i.i.d. observed data at times from the model defined by (1) and (4), and then the likelihood function is given by

Thus, by Bayes’ theorem the posterior distribution of the parameters of interest is given bywhere denotes the parameter space of . It is clear that , and then the posterior distribution can be expressed by

Using a loss quadratic function, the Bayesian point estimation is the posterior mean of , which is given by

Note that the joint posterior distribution is analytically intractable and the marginal posterior distributions of the parameters are complicated; however, we can obtain samples from (18) using Markov Chain Monte Carlo (MCMC) techniques. The most common MCMC methods are the Gibbs sampling [14, 15] and the Metropolis-Hastings [16, 17]. Currently, many of the MCMC algorithms have been already implemented in computer programs, such as WinBUGS and JAGS [18] and Stan and t-walk [19]. All of these software packages provide programs for Bayesian modeling through posterior simulation given a specified model and data. The R [20] packages, such as R2WinBUGS [21], R2jags [22], rjags [23], and rstan [24], allow one to run WinBUGS, JAGS, and Stan from within R software, respectively. In this paper, we use JAGS within R to obtain samples from the marginal posterior distributions of interest.

JAGS (Just Another Gibbs Sampler) is a program for analysis of Bayesian models using MCMC methods, which was written in C++ by Martyn Plummer with three objectives: (a) to have a cross-platform engine for the BUGS language, (b) to be extensible, allowing users to write their own functions, distributions, and samplers, and (c) to be a platform for experimentation with ideas in Bayesian modeling (see [18]); moreover, it is a free package. To draw samples from the posterior distribution, JAGS use the Gibbs sampling and sometimes it is combined with or replaced by complex techniques such as Metropolis-Hastings algorithm, slice sampling [25], and Adaptive Rejection sampling [26]. In our work, JAGS used slice sampling, which is briefly described as follows.

Let be univariate probability density function from which we want to obtain samples; for an initial value , , the new value, , will be found by a three-step procedure:(a)Sample a real value and we define a horizontal slice, .(b)Find an interval, , around that contains all, or much, of the slice.(c)Sample the new value, , from the part of the slice within this interval.

For multivariate distributions, we can apply the single variable slice sampling for each , in turn. An example of JAGS implementation is given in Appendix.

3.2. Bayesian Model Comparison

In this section, our interest is to make a comparison between two different models. In one, the dynamic system changes in an ordinary way and in the other it changes anomalously, that is, with an entire derivative and with a fractional derivative, respectively. As soon as we obtain experimental data from a dynamical phenomenon, the uncertainty becomes present. Moreover, the mechanism that governs the evolution law is unknown at some level. So, the challenge here is to know which model best fits and best describes the data.

The Bayesian model selection in inverse problems framework has not been much investigated. In [8] it is suggested to validate the SDE approach via criteria based on the predictive posterior distribution. To compare a numerical and the theoretical posterior distribution, in [9] it was proposed to use Bayes factors, considering both of them as models for the data at hand. Other authors (see [2729]) use Bayes factor to select the best model. We carried out a comparison of two models, defined below, from Bayesian point of view via Bayes factor, where the marginal likelihood is obtained using Gelfand and Dey’s estimator.

Now, let us define the models that we are going to compare. The ordinary population growth model, , is given by the dynamical system and its corresponding observation equation, for observations,

The fractional population growth model, , is given bywhere is defined in (8) and . Note that for simplicity, in both models, the harvesting function is assumed to be zero and the function is taken as the identity function.

So, for model , , the posterior distribution takes the formwhere is the likelihood function of the data under model and is the prior distribution of . By substituting these expressions for each model, we have

To compare these models, we need to calculate the marginal likelihood for , given by and we choose the model which yields the largest marginal likelihood [30]. Note that the equation above is the normalizing constant of the posterior density in (26), so it can be written as

In general, in (28) can not be represented in terms of elementary functions and obtaining a numerical approximation usually requires a huge computational effort. On the other hand, to calculate using (29) is not an easy task because we have many MCMC draws falling in the tails of and this leads to a very unreliable estimate of . Methods to estimate via MCMC sampling are discussed in [3032]. We propose the use of Gelfand and Dey’s estimator [33] to obtain an approximation of , which is given by where are draws from the posterior density obtained using MCMC method and is an importance sampling density. The stability of (30) depends on the importance density choice, which is recommended to be of thinner tails compared to the product of the prior and the likelihood. Natural choices of would be the multivariate normal or Student densities with posterior sampling mean and covariance. Then, we compare the models and via Bayes factor:where a value of greater than one indicates a preference for model with respect to the model .

4. Simulation Study

We carried out a simulation study to assess the performance of the Bayesian estimators of the parameters of interest (, ) and the performance of the Bayes factor using Gelfand and Dey’s estimator [32] for the marginal likelihood (29). For this task, we used R software [20] with R2jags package [22], under the following algorithm:(1)We simulated synthetic data sets form a fractional population growth model using the true values of the parameters , , , and for two sample sizes, and , and two cases: known and unknown. Each data set was simulated using the model defined in (25).(2)For each simulated sample, we obtained Bayesian estimators of the parameters both for model and for model .(a)We calculated the Bayes estimators as the sample mean from (18) using JAGS within R. We used two chains, each with 10000 iterations with a burn-in of 1000 iterations and a thinning rate of 9, so we kept a total of 2000 iterations to make inferences about the parameters of interest. The following prior distributions for the parameters in the models are assumed as note that for the parameters and we use diffuse Gamma distributions, for we propose Uniform prior distribution in , and, for the case of unknown, a diffuse log-Normal distribution is used, . These distributions are called weakly informative prior distributions, which contain some information about the parameters of interest but without affecting inferences by information external to the current data [34].(b)We estimated credible intervals for each parameter in each model; these intervals are based on the 0.025 quantile and the 0.975 quantile of the corresponding posterior sample.(c)We calculate the marginal likelihood using Gelfand and Dey’s estimator given in (30) using MCMC samples from the posterior density , . The multivariate normal density with posterior sampling mean and covariance was used as importance sampling density.(d)We obtain an estimation of the Bayes factor of versus , denoted by using (31). If , then we prefer the model with respect to the model .(3)From these samples, we obtained measures of the bias and mean-squared error of the estimators, as well as the coverage of the corresponding credible intervals.

Our simulations were carried out for two sample sizes ( and ) and two cases: known and unknown. Tables 1 and 2 show the estimate bias, MSE, and coverage for the cases considered. We can observe that the parameters estimation of the model was more accurate compared to the model , in terms of the estimated bias and MSE. Also, the estimates coverage was near to 100%, in the most cases considered, for the model . From our simulation, for the case known, the percentage of the estimated Bayes factors in favour of was 98.4% with observations and 100% for . For the case unknown, the percentage of the estimated Bayes factors in favour of was 94.0% with observations and for .

5. Application

In this section, an example is given to illustrate the Bayesian estimation and selection model approach proposed in this paper. The data set used consists of 69 monthly measurements (in percentages) of the mobile web use in the world, from December 2008 to August 2014 (see Figure 2, dot points). We can find this data from the link http://stats.areppim.com/stats/stats_mobiwebsubstxtime.htm. At a first glance of data, one can think of an exponential growth model; however, as we will see, this model is unable to fit the data in satisfactory way. A generalization of this model is proposed, where we add a new parameter for the order of the derivative. The model defined in (23) is used to fit this data, and the parameters of interest to be estimated, based in available data, are , , and .

The prior distributions used were for , , and . For the model proposed, we used two chains, each with 500000 iterations, and the first 250000 were discarded, taking a thinning rate of 50. Thus, 10000 posterior samples were used to obtain the summary statistics about the parameters of interest. Standard convergence diagnostics were carried out. To mention a few, the value of for each parameter of interest was quite close to 1 for all models considered. Also, the Gelman-Rubin factor and Geweke diagnostics were calculated and showed evidence of convergence. Figure 1 shows the trace and estimated posterior distributions of the estimated parameters of interest.

Posterior means are used as point estimates of the parameters of interest, for and and for , , and . Figure 2 shows the fitted models considered. The Bayes factor was , giving very strong evidence in favour of the model .

6. Concluding Remarks

We estimated the parameters of a fractional population growth model using Bayesian framework. From the model proposed we can distinguish two different models, one with ordinary derivative, , and another with fractional derivative, . An estimation of the Bayes factor was used to compare these two growth models. To measure the performance of the parameters estimation and Bayes factor a simulation study was conducted. As expected, the fractional population growth model outperforms the ordinary population growth model as is shown in Tables 1 and 2. In order to estimate the Bayes factor, Gelfand and Dey’s estimator was used to approximate the marginal likelihood. It is known that this estimator could be unstable, even in the situation when the importance density is chosen as a multivariate normal density with mean and covariance obtained from MCMC sampling; however, in this work, it was not the case. A subsequent monitoring was carried on to check the stability. Our results give numerical evidence of good performance of the Bayes factor. Also, the inferences based on posterior simulation are relatively easy to implement in JAGS within the R software. Finally, we have shown a real data example where the fractional growth model had a better fit with respect to the ordinary model.

Appendix

JAGS Implementation

The proposed models were all implemented in JAGS using the R2jags package. R2jags was used to fit the models and to perform convergence diagnostics right within R. Here we use the data set of Section 5 to illustrate the implementation of model in JAGS.

(1) Packages. Load the required R packages (see Box 1).

(2) Data. Read the data from the working directory (see Box 2).

(3) The Model. Write the model in BUGS code and save it as “movil.model.jags” in the working directory (see Box 3).

(4) Parameters. Define the parameters of interest (see Box 4).

(5) Initial Values. Define the starting values for the MCMC runs (see Box 5).

(6) Fit. Fit the model in JAGS (see Box 6).

(7) Diagnostic. Convert the model output into an MCMC object in order to have access to several convergence diagnostics (see Box 7).

Competing Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.