key: cord-0953647-gaop5b2j authors: Almarashi, Abdullah M.; Algarni, Ali; Hassan, Amal S.; Zaky, Ahmed N.; Elgarhy, Mohammed title: Bayesian Analysis of Dynamic Cumulative Residual Entropy for Lindley Distribution date: 2021-09-27 journal: Entropy (Basel) DOI: 10.3390/e23101256 sha: ba7f3b6dcf95e3dd3656672077120cce3e3c7020 doc_id: 953647 cord_uid: gaop5b2j Dynamic cumulative residual (DCR) entropy is a valuable randomness metric that may be used in survival analysis. The Bayesian estimator of the DCR Rényi entropy (DCRRéE) for the Lindley distribution using the gamma prior is discussed in this article. Using a number of selective loss functions, the Bayesian estimator and the Bayesian credible interval are calculated. In order to compare the theoretical results, a Monte Carlo simulation experiment is proposed. Generally, we note that for a small true value of the DCRRéE, the Bayesian estimates under the linear exponential loss function are favorable compared to the others based on this simulation study. Furthermore, for large true values of the DCRRéE, the Bayesian estimate under the precautionary loss function is more suitable than the others. The Bayesian estimates of the DCRRéE work well when increasing the sample size. Real-world data is evaluated for further clarification, allowing the theoretical results to be validated. Reference [1] introduced the idea of the Rényi entropy as a measure of randomness for Y. The Rényi entropy can be used to estimate the uncertainty in a random observation. In the study of quantum systems, quantum communication protocols, and quantum correlations [2, 3] , it has been extensively utilized. The probability density function (PDF) g (.) and the distribution function (CDF) G(.) of the Rényi entropy with the order β is given by In recent times, several authors studied the statistical inferences for the entropy measures using different distributions and sampling schemes (for example, [4] [5] [6] [7] [8] [9] [10] [11] [12] ). Alternative measurements of uncertainty for probability distributions in recent times are of interest to many authors, especially in reliability and survival analysis studies. Therefore, the cumulative residual entropy and its dynamic version have been proposed, respectively, in [13, 14] . The DCRRéE is defined as follows: where G(t) = 1 − G(t) is the survival function (SF), and for t = 0, the DCRRéE leads to the cumulative residual Rényi entropy. In the literature, few works have been regarded for the inferential procedures of DCR entropy for lifetime distributions. Properties of the DCR entropy from the order statistics were presented in [15] . The cumulative residual and past inaccuracy have been proposed in [16] as extensions of the cumulative entropies for the truncated random variables. The Bayesian estimators of the DCR entropy of the Pareto model using different sampling schemes have been studied in [17] [18] [19] . The Bayesian inference of the DCR entropy for the Pareto II distribution was given in [20] . The Bayesian and non-Bayesian estimators of the DCR entropy for the Lomax distribution were provided in [21] . Reference [22] was the first to use the Lindley distribution to evaluate failure time data, particularly in reliability modeling. It is also a good alternative to the exponential distribution since it combines the exponential and gamma distributions. Hazard rates might be increasing, decreasing, uni-modal, or bathtub-shaped, resulting in the modeling of multiple lifetime data. The PDF of the Lindley distribution is g(y; θ) = θ 2 θ + 1 (1 + y) e −θy ; y, θ > 0. The CDF and the SF of the Lindley distribution are given by and G(y; θ) = e −θy [1 + θy θ + 1 ]; y, θ > 0. The authors of [23, 24] handled the properties and the inferential procedure for the Lindley distribution. As a result, numerous writers have utilized the Lindley distribution to predict lifetime data under intended circumstances; see [25] [26] [27] [28] [29] [30] and the references listed therein. To generate random numbers from the Lindley distribution, we may use the fact that the distribution, as given in Equation (3), is a mixture of exponential (θ) and gamma (2, θ), with mixing proportions (θ/1 + θ) and (1/1 + θ), respectively. For generating a random sample of size n, we have the following simulation algorithm: (i) Generate U i from uniform (0, 1), i = 1, 2, . . . , n. (ii) Generate Q i from exponential (θ), i = 1, 2, . . . , n. (iii) Generate V i from gamma (2, θ), i = 1, 2, . . . , n. Since the last decade, the Lindley distribution has attracted the attention of researchers for its use in several fields as well as for modeling lifetime data. Herein, we intend to discuss the Bayesian inference of the DCRRéE for the Lindley model. The Bayesian estimators and the Bayesian credible intervals of the DCRRéE under the gamma prior are derived. The proposed estimators are obtained via the squared error (SE), linear exponential (LINEx), and precautionary (PR) loss functions. The Markov Chain Monte Carlo (MCMoC) simulation is utilized because the DCRRéE's Bayesian estimator is complicated. A real data analysis is given for illustration. We outline the paper as follows: Section 2 gives the formula for the DCRRéE of the Lindley distribution; Section 3 offers the DCRRéE's Bayesian estimator of the Lindley distribution under the specific loss functions; a description of MCMoC is provided in Section 4; and in Section 5, a real-world data application is shown. Using the findings of our numerical investigations, we came to certain conclusions. This section presents the formula of the DCRRéE for the Lindley distribution. The DCRRéE of the Lindley distribution is obtained by substituting Equation (5) into Equation (2) as follows: where I = ∞ t e −θβy 1 + θy θ+1 β dy. To obtain I, we use the transformation x = 1 + θy θ+1 , then we have Let z = β(1 + θ)x, and then Equation (7) can be expressed as where Γ(.) stands for an incomplete gamma function and A(θ) = 1 + θ + θt. By substituting Equation (8) into Equation (6), the DCRRéE for the Lindley distribution is expressed as follows The DCRRéE requires this phrase for the Lindley distribution. Herein, the Bayesian estimator of the DCRRéE for the Lindley distribution is obtained using the gamma prior. The Bayesian estimator is derived under the selected loss functions, and the Bayesian credible intervals are computed. A random sample of size n taken from the PDF (3) and the CDF (4) can be used if θ is unknown. Then, the likelihood function of the Lindley distribution given the sample y = (y 1 , . . . , y n ), is given by Let us assume that the prior of θ has a gamma distribution with the parameters (a, b) with the following PDF This is how the posterior PDF of θ given the data can be expressed as where The Bayes estimator of γ R (β) under the SE loss function, denoted byγ SE (β), is obtained as follows: Based on the LINEx loss function, the Bayes estimator of γ R (β) saysγ LI NEx (β) is given bŷ Using the PR loss function, the Bayes estimator of γ R (β) saysγ PR (β) is given bŷ As previously stated, the analytical solution to Integrations (11) (12) (13) is extremely difficult to acquire due to complex mathematical forms. To approximate these integrations, the MCMoC technique is used. Furthermore, using the method described in [31] , we obtain the Bayesian credible intervals of γ R (β). A credible interval is the Bayesian equivalent of a confidence interval. The upper (U) and lower (L) credible limits are the U and L endpoints of a credible interval, respectively. The probability that a credible interval will contain the unknown parameter θ is called the "confidence coefficient". If we suppose the L and U credible limits, respectively, for the parameter θ, then P (L < θ < U) = 1 − η, where (1 − η) 100 0 0 is the confidence coefficient. For the Lindley distribution at β = 0.5, a numerical analysis is conducted in this part to examine the performance of the Bayesian estimates of γ R (β). In Bayesian literature, the Metropolis-Hastings (MH) algorithm (see [32] ) is one of the most well-known subclasses of the MCMoC technique for simulating deviations from the posterior density and producing good approximation results. MCMoC simulations are run for selected sample sizes and loss functions. R 4.1.1 will be used to run the MH algorithm. The MCMoC method is used to generate samples from the posterior distributions and then to compute the DCRRéE's Bayesian estimators under the intended loss functions. MCMoC schemes come in a wide range of options. Gibbs sampling and the more general Metropolis-within-Gibbs samplers are a significant subclass of the MCMoC methods. To pull samples from the posterior density functions and then compute the Bayesian estimators, we use the following MCMoC technique, see Algorithm 1. The hyper-parameters of the gamma distribution are specified as a = 2 and b = 1. Choose v = (−1, 1) for the LINEx loss function, which represents underestimation and overestimation, respectively. Using a sample size of 5,000, n = 30, 50, 70, and 100 are generated from the Lindley model. Step 1. Set initial value of θ as θ (0) . Step 2. For i = 1, 2, . . . , N = 1000 repeat the following steps: 2.1: Set θ = θ (i−1) . 2.2: Generate a new candidate parameter valueθ from N (θ, S θ ). 2.3: Generate r = min π(θ |x) π(θ |x) , 1 , where π(·) is the posterior density in Equation (10). 2.4: Generate a sample u from the uniform distribution U (0, 1). 2.5: Accept or reject the new candidateθ. Step 3. Obtain the Bayesian estimator of θ and compute the DCRRéE function γ R (β) with respect to the loss functions as follows:γ where M = 0.2 N is the burn-in period. We also found that the acceptance rate is equal to 0.85. The formulas of relative absolute biases (RABs) and the estimated risks (ERs) are given The results of this study are presented in Tables 1-3 for the DCRRéE estimates at t = 0.5, and Tables 4-6 give the simulation results for the DCRRéE estimates at t = 1.5. Figures 1-4 also provide the numerical results. Accordingly, we may draw the following conclusions about the DCRRéE estimates. As the θ value grows, the DCRRéE estimates appear smaller for a similar value of t. The DCRRéE estimates decrease with an increasing value of t for a similar value of θ. At t = 0.5, the following notes can be recorded: • The estimated risk ofγ LI NEx (β) at v = −1 picks the lowest values for n = 50 and 70 while the estimated risk ofγ LI NEx (β) at v = 1 picks the lowest values at n = 100. In addition, the width of the credible interval forγ LI NEx (β) at v = −1 takes the lowest values for n = 100 (see Table 1 ). The estimated risk ofγ PR (β) has the lowest values for all n values, and the width of the credible interval forγ PR (β) picks the lowest values for all values of n except n = 70 (see Table 2 ). • At actual value γ R (β) = 0.38237199 (θ = 2.0), the estimated risk ofγ LI NEx (β) at v = 1 for all n values except at n = 100 has the lowest values. Moreover, the width of the credible interval forγ LI NEx (β) at v = 1 obtains the lowest value at n = 70 (see Table 3 ). We can see from Figure 1 that the estimated risk forγ PR (β) at the true value γ R (β) > 1 for n = 30 has the lowest values when compared to the other estimates, except at the true value of γ R (β) = 0.38237. • Figure 2 indicates that the estimated risks ofγ LI NEx (β) at v = 1 have the lowest value at γ R (β) = 2.43328 when compared to the other estimates for n = 100. We can see from Figure 1 that the estimated risk for ˆ( ) The following are the notes that may be found at t = 1.5: Table 4 ). Table 5 ). We can see from Figure ible interval for ˆ( ) LINEx γ β at v = 1 obtains the lowest value at n = 70 (see Table 3 ). We can see from Figure 1 that the estimated risk for ˆ( ) Table 4 ). Table 5 ). We can see from Figure We conclude from Table 6 The following are the notes that may be found at t = 1.5: The estimated risk ofγ LI NEx (β) at v = −1 obtains the lowest values at n = 70 and 100 while the estimated risk ofγ PR (β) has the lowest values for n = 30 and 50. The width of the Bayesian credible interval forγ LI NEx (β) at v = −1 is the smallest in comparison with other estimates for n = 50 and 70 (see Table 4 ). • At n = 30 and 100, the estimated risk ofγ PR (β) has the lowest values, while the estimated risk ofγ SE (β) has the lowest values at n = 50 and 70. The width of the Bayesian credible interval forγ LI NEx (β) at v = 1 is the shortest compared to the others via the SE and PR loss functions, except at n = 100 (see Table 5 ). We can see from Figure Here, we demonstrate the technique described in the preceding section by using an actual data set that represents the waiting times (in minutes) before receiving service for 100 bank customers. Reference [23] discussed the detailed statistics that showed the data fitted the Lindley distribution. Figures 8 and 9 provide plots of fitted PDF and CDF for the data under consideration. The Bayes estimates of the DCRRéE at t = 0.5 and 1.5 at the intended loss functions are reported in Table 7 . Here, we demonstrate the technique described in the preceding section by using an actual data set that represents the waiting times (in minutes) before receiving service for 100 bank customers. Reference [23] discussed the detailed statistics that showed the data fitted the Lindley distribution. Figures 8 and 9 provide plots of fitted PDF and CDF for the data under consideration. The Bayes estimates of the DCRRéE at t = 0.5 and 1.5 at the intended loss functions are reported in Table 7 . As expected, the DCRRéE estimators for the proposed loss functions decrease with time, as seen in this example. The Bayesian estimators of the DCRRéE for the Lindley distribution are investigated in this study. The Bayesian estimators of the DCRRéE for the Lindley model are thought to be produced by both symmetric and asymmetric loss functions. The MCMoC method is used to calculate the Bayesian estimator and the Bayesian credible intervals. The behavior of the DCRRéE estimators for the Lindley distribution is evaluated using some precision criteria. Real-world data and simulation concerns are addressed. Regarding the outcomes of the study, we conclude that for small actual values of the DCRRéE, the estimated risk and width of the Bayesian credible intervals of the DCRRéE estimates under the linear exponential loss function are often fewer than those based on the squared error and precautionary loss functions. At t = 0.5, the width of the Bayesian credible intervals for the DCRRéE estimates via the linear exponential loss function is less than the others via the The Bayesian estimators of the DCRRéE for the Lindley distribution are investigated in this study. The Bayesian estimators of the DCRRéE for the Lindley model are thought to be produced by both symmetric and asymmetric loss functions. The MCMoC method is used to calculate the Bayesian estimator and the Bayesian credible intervals. The behavior of the DCRRéE estimators for the Lindley distribution is evaluated using some precision criteria. Real-world data and simulation concerns are addressed. Regarding the outcomes of the study, we conclude that for small actual values of the DCRRéE, the estimated risk and width of the Bayesian credible intervals of the DCRRéE estimates under the linear exponential loss function are often fewer than those based on the squared error and precautionary loss functions. At t = 0.5, the width of the Bayesian credible intervals for the DCRRéE estimates via the linear exponential loss function is less than the others via the squared error and precautionary loss functions for a sample size of large values and large actual values of the DCRRéE. However, at t = 1.5, the width of the Bayesian credible interval for the DCRRéE estimates via the precautionary loss function is smaller than the equivalent estimates via the squared error and linear exponential loss functions. For small DCRRéE values, the Bayesian estimates via the linear exponential loss function are preferable to other estimates under the squared error and precautionary loss functions. However, for a high true value of the DCRRéE, the Bayesian estimates under the precautionary loss function are preferable to the other estimates via the loss functions chosen. Data Availability Statement: If you would like to obtain the numerical dataset used to conduct the study reported in the publication, please contact the appropriate author. The authors declare no conflict of interest. On measures of Entropy and Information An information-theoretic security proof for quantum-key-distribution protocols Elementary formula for entanglement entropies of fermionic systems Entropy properties of record statistics The entropy of progressively censored samples Estimation for generalized half logistic distribution based on records Estimating the Entropy of a Weibull Distribution under Generalized Progressive Hybrid Censoring Estimation of entropy of the inverse Weibull distribution under generalized progressive hybrid censored data Estimation of entropy for generalized exponential distribution based on record values Estimation of different types of entropies for the Kumaraswamy distribution Entropy Bayesian estimation for Lomax distribution based on record Estimation of entropy for inverse Weibull distribution under multiple censored data Cumulative residual entropy: A new measure of information Dynamic cumulative rsidual Rényi's entropy On dynamic cumulative residual entropy of order statistics On cumulative residual (past) inaccuracy for truncated random variables Bayes Estimation of Dynamic Cumulative Residual Entropy for Pareto Distribution Under Type-II Right Censored Data A study of the effect of loss functions on the Bayes estimates of dynamic cumulative residual entropy for Pareto distribution under upper record values Bayesian estimation of dynamic cumulative residual entropy for classical Pareto distribution Bayesian Inference of Dynamic Cumulative Residual Entropy from Parto II distribution with Application to COVID-19 Dynamic cumulative residual Rényi entropy for Lomax distribution: Bayesian and non-Bayesian methods Fiducial distributions and Bayes' theorem Lindley distribution and its application A two-parameter Lindley distribution and its applications to survival data A study of the effect of the loss function on Bayes Estimate, posterior risk and hazard function for Lindley distribution Inferences on stress-strength reliability from Lindley distributions Reliability estimation in Lindley distribution with progressively type II right censored sample Ul-Farhat, K. Bayesian estimation on interval censored Lindley distribution using Lindley's approximation On estimation of the PDF and CDF of the Lindley distribution Study on Lindley distribution accelerated life tests: Application and numerical simulation. Symmetry 2020 Monte Carlo Estimation of Bayesian Credible and HPD Intervals Equations of state calculations by fast computing machines