Open-access Bayesian inference for zero-and/or-one augmentedunit-gamma

Abstract

In this paper, we propose a new distribution based on a mixture of the unit-gamma distribution with a degenerate distribution at (c) (0 or1) or with a Bernoulli distribution. This novel approach is particularlyuseful for addressing excess zeros and/or ones in the data with limitedsupport in (0,1).Our approach considers Bayesian parameter estimation, residual, and influence analysis, as well as model comparison methods. We illustratethe theory by applying it to a real-world problem, with all posteriorquantities obtained using Markov Chain Monte Carlo (MCMC) methods.

Key words
augmented unit-gamma; bayesian inference; mixture; proportions

INTRODUCTION

In many studies across various fields, data often comes in the form of rates or proportions. For instance, in medical research, a large meta-analytic study might aim to estimate the cure rate of a disease following a specific treatment. In demographic studies, the focus could be on the proportion of residents within certain municipalities, the suicide rate in a given year, and the percentage of death rate of an infant before his or her first birthday. Similarly, in economics and finance, one could model the proportion of household income spent on food.

An important issue with this kind of data arises when there are many observations at the boundaries, specifically zeros and/or ones. In such cases, distributions that are absolutely continuous with support over the interval (0,1) are not suitable for modeling data sets with these characteristics. To address this, an approach is to use a mixture of distributions that combines two components: a degenerate distribution at zero or one or a discrete distribution, such as the Bernoulli distribution, which assigns probabilities exclusively to integers 0 and 1. In this way, the data on the unit interval can be modeled while accounting for the following scenarios: [0,1), (0,1], or [0,1].

In the context of augmented/inflated/adjusted distributions, several distributions have been proposed in the literature. For example, Ospina & Ferrari 2010 proposed the inflated beta distribution for the modeling data observed in [0,1), (0,1], or [0,1]. Meanwhile, Cribari-Neto & Santos 2019 introduces the Kumaraswamy distribution. The Simplex distribution Barndorff-Nielsen & Jørgensen 1991 is another important distribution for rates and proportions, and its inflated version is studied in Liu et al. 2020. More recently, Queiroz & Lemonte 2021 proposed an inflated distribution based on the generalized Johnson Sb distribution Johnson 1949, further expanding the flexibility of the modeling.

Random variable transformations provide a method to construct distributions suitable for modeling unit interval data, as proposed by Grassia 1977 and Karakaya et al. 2024. Given these methods for constructing unit interval distributions through variable transformations, new inflated variants naturally emerge. These include the inflated unit-Lindley distribution Bapat & Bhardwaj 2021, the augmented new unit-Lindley distribution Ferreira & Mazucheli 2022, the inflated unit-Birnbaum-Saunders distribution Martı́nez-Flórez et al. 2022, and the unit upper truncated Weibull distribution Okorie et al. 2023; each extending modeling capabilities for different data scenarios.

In this paper, we adopt the unit-gamma (UG) distribution, proposed by Mousa et al. 2016, to model datasets with zeros and/or ones. This distribution is derived from a random variable X∼Gamma(α,ϕ) by applying the transformation x=log(1/y) or x=log(1/(1−y)), where x∈(0,+∞) and y∈(0,1). Moreover, we emphasize that the UG distribution offers advantages in both shape flexibility and computational efficiency when compared to the beta distribution. Regarding flexibility, Tadikamalla 1981 demonstrates that the UG encompasses a broader range of skewness and kurtosis, particularly near the boundaries of the unit interval (e.g., mean close to 0 or 1). This flexibility allows it to model data with high dispersion, scenarios in which the beta distribution often underestimates variability. Additionally, the UG surpasses the Johnson Sb in analytical simplicity: its moments can be derived in a direct, closed-form manner Grassia 1977, contrasting with the numerical complexity associated with the Johnson Sb and the iterative approximations required by beta models for higher-order moments. While earlier research by Griffiths & Csiro 1981 noted close similarities between the UG and beta distributions, empirical evidence from real-world applications demonstrates that the UG distribution can outperform the beta distribution in specific practical contexts. Empirical studies, such as Petterle et al. 2021 and Freitas et al. 2023, corroborate that this combination of flexibility and practicality makes the UG a superior choice for real-world applications.

Recently, several authors have considered models based on the unit-gamma distribution, highlighting its strong potential in both practical and theoretical applications. For example, Guedes et al. 2020 proposed two test statistics based on modified likelihood ratio tests for UG regression models, with the aim of providing more refined procedures and achieving more accurate inference in small to moderate samples. Rocha et al. 2020, in turn, developed four types of residuals and conducted local influence analyses under different perturbation schemes, such as case weighting and additive perturbations in the response variable and covariates. In the context of bounded continuous data, Petterle et al. 2021 proposed the mixed UG regression model, which is suitable for modeling bounded continuous variables in settings involving repeated measures and longitudinal data. Along similar lines, Freitas et al. 2023 introduced UG regression models within the framework of generalized estimating equations, tailored for modeling longitudinal data restricted to the unit interval. This approach is advantageous because it does not require the specification of the joint distribution of the response variable, relying instead on the marginal distributions. Furthermore, the authors developed residuals based on global and local influence measures for both the longitudinal UG model and the Simplex model, in order to compare their performance in different practical scenarios. Rocha et al. 2024 proposed a Bayesian approach for the UG model, introducing a new reparameterization based on quantiles. The study covers parameter estimation, model fit assessment, comparison among different specifications, and influence analysis. Inferences are made using Markov Chain Monte Carlo (MCMC) methods, implemented in the JAGS software through the R2jags package in the R environment. Additionally, a real-world data application is presented, highlighting the practical utility of the proposed method. More recently, Silva et al. 2025 proposed a control chart for monitoring quality characteristics that assume values in the intervals (0,1] or [0,1), such as rates or proportions, based on the augmented UG distribution. The authors compared the proposed chart with the augmented beta control chart, considering two approaches: individual observations and sample subgroups, and also assessed its applicability to real data.

The probability density of the UG distribution is strictly continuous over the interval (0,1), which means that the values 0 and 1 are not included in its support. Therefore, we propose the augmented UG distribution, which serves as an alternative to models adjusted for zeros and/or ones.

The paper is organized as follows. In THE ZERO-AND/OR-ONE AUGMENTED UG DISTRIBUTION, we introduce the zero- and/or one-augmented UG distribution and some of its properties. In BAYESIAN IMPLEMENTATION OF THE MODEL, we develop the likelihood function and propose obtaining the posterior distribution via MCMC sampling. In MODEL FIT ASSESSMENT AND MODEL COMPARISON, we develop residual analysis techniques, using randomized quantile residuals, and present some statistical tools for model selection and case-influence diagnostics. In SIMULATION STUDIES, we present Monte Carlo simulation studies to evaluate the performance of the estimators. In APPLICATION, we illustrate the theory with an application to real-world datasets. Finally, in CONCLUSIONS, we conclude with a discussion of the main findings and potential directions for future research.

THE ZERO-AND/OR-ONE AUGMENTED UG DISTRIBUTION

The UG distribution, reparameterized in terms of the mean, as proposed by Mousa et al. 2016, with mean μ∈(0,1) and precision parameter ϕ>0, denoted by UG(μ,ϕ), has the following probability density function (pdf):

f(y|μ,ϕ)=(μ1/ϕ1−μ1/ϕ)ϕΓ(ϕ)yμ1/ϕ1−μ1/ϕ−1[−log(y)]ϕ−1𝟙(0,1)(y),(1)
where 𝟙𝒳(y) denotes the indicator function on the set 𝒳.

In situations where the data may include zeros and/or ones, the UG distribution is not suitable for modeling such data. If the dataset contains exclusively zeros or ones, without the presence of both, a mixture of distributions can be used. This involves combining a UG distribution with a degenerate distribution at some known value c, where c=0 or c=1. In this case, the cumulative distribution function (cdf) of the mixed distribution is given by:

AUGc(y|p,μ,ϕ)=p𝟙[c,1](y)+(1−p)F(y;μ,ϕ),(2)
where F(⋅|μ,ϕ) is the cdf of the UG distribution, and 0<p<1 is the mixture parameter. The pdf of the AUGc distribution is expressed as:
augc(y|p,μ,ϕ)={p,ify=c,(1−p)f(y|μ,ϕ),ify∈(0,1).(3)
Thus, if c=0, the mixture parameter p=ℙ(Y=0). In this case, the distribution (3) is referred to as the zero-augmented UG distribution, denoted by Y∣p,μ,ϕ∼ZAUG(p,μ,ϕ). On the other hand, if c=1, the mixture parameter p=ℙ(Y=1), the distribution (3) is called the one augmented UG distribution, denoted by Y∣p,μ,ϕ∼OAUG(p,μ,ϕ).

The r-th moment and the variance of a random variable Y∣p,μ,ϕ∼AUGc(y|p,μ,ϕ) are, respectively,

𝔼(Yr)=𝔼[𝔼(Yr|𝟙{c}(y))]=cp+(1−p)μr,
and
Var(Y)=𝔼[Var(Y|𝟙{c}(y))]+Var[𝔼(Y|𝟙{c}(y))]=(1−p)μ{[1/(2−μ1/ϕ)ϕ]−μ}+p(1−p)(c−μ)2,
where μr=(μ1/ϕμ1/ϕ+(1−μ1/ϕ)r)ϕ is the r-th moment of the UG distribution.

To address the problem of having both zeros and ones in the data, we propose the zero-and-one augmented UG distribution (ZOAUG). This distribution combines a Bernoulli distribution, which accounts for the discrete component with point masses at zero and one, and the unit-gamma distribution as the continuous component. The cdf of this distribution is given by:

ZOAUG(y|p,θ,μ,ϕ)=pBer(y|θ)+(1−p)F(y|μ,ϕ),(4)
where Ber(⋅|θ) is the cdf of the Bernoulli distribution with parameter θ, and F(⋅|μ,ϕ) is the cdf of the UG distribution. In this case, we have 0<θ,μ,p<1 and ϕ>0, where p=ℙ(Y=0)+ℙ(Y=1), representing the probability of the observation being 0 or 1, that is, the mixing parameter or mixture probability. The density function of the ZOAUG distribution with parameters p, θ, μ, and ϕ, denoted as Y∣p,θ,μ,ϕ∼ZOAUG(y;p,θ,μ,ϕ), is given by:
zoaug(y|p,θ,μ,ϕ)={p(1−θ),ify=0,pθ,ify=1,(1−p)f(y|μ,ϕ),ify∈(0,1),(5)
with the mean and variance expressed, respectively, as
𝔼(Yr)=𝔼[𝔼(Y|𝟙{0,1}(y))]=pθ+(1−p)μr,
where μr=(μ1/ϕμ1/ϕ+(1−μ1/ϕ)r)ϕ is the r-th moment of the UG distribution, and
Var(Y)=𝔼[Var(Y|𝟙{0,1}(y))]+Var[𝔼(Y|𝟙{0,1}(y))]=pθ(1−θ)+(1−p)μ{[1/(2−μ1/ϕ)ϕ]−μ}+p(1−p)(θ−μ)2.
Note that Var(Y)→μ{[1/(2−μ1/ϕ)ϕ]−μ} as p→0+, and Var(Y)→θ(1−θ) as p→1−. Furthermore, as p→1−, the ZOAUG distribution tends to concentrate its probability mass at the extremes of the interval [0,1], that is, it tends to the Bernoulli distribution with parameter θ. On the other hand, as p→0+, the ZOAUG distribution tends to the UG(μ,ϕ) distribution.

In Figures 1, 2, and 3, we present the densities of the ZOAUG distribution for different values of μ, ϕ, and θ, with p∈{0.1,0.5,0.9} fixed. The figures reveal points of concentration at zeros and ones, represented in the plots by vertical lines. It is noteworthy that the plots exhibit asymmetric behavior with unimodal shapes, which may take the form of ‘J’, ‘U’ or inverted ‘J’. This behavior arises because we are analyzing a mixed function, which includes a discrete component to account for the presence of zeros and ones in the data.

Figure 1
Densities of the ZOAUG distribution for different values of 𝛍 and 𝛟, considering 𝛉=0.5 and the mixture parameter 𝐩=0.10.
Figure 2
Densities of the ZOAUG distribution for different values of 𝛍 and 𝛟, considering 𝛉=0.5 and the mixture parameter 𝐩=0.50.
Figure 3
Densities of the ZOAUG distribution for different values of 𝛍 and 𝛟, considering 𝛉=0.5 and the mixture parameter 𝐩=0.90.

We can consider an alternative stochastic representation based on the parameterization of the ZOAUG distribution, similar to the one considered by Ospina & Ferrari 2010. Specifically, we now assume that the Bernoulli distribution parameter satisfies the relationship θ=δ1/p, where the mixture parameter is defined as p=δ0+δ1. Based on this parameterization, the density function of the ZOAUG distribution can be reexpressed as

zoaug(y|δ0,δ1,μ,ϕ)={δ0,ify=0,δ1,ify=1,(1−δ0−δ1)f(y|μ,ϕ),ify∈(0,1),(6)
where δ0=ℙ(Y=0), δ1=ℙ(Y=1), δ0+δ1∈[0,1) and f(y|μ,ϕ) is given by (1). As a particular case, we obtain scenarios where increases occur exclusively at zero or at one, i.e.,
{δ0𝟙{0}(y)+(1−δ0)f(y|μ,ϕ)𝟙(0,1)(y),ifδ1=0,δ1𝟙{1}(y)+(1−δ1)f(y|μ,ϕ)𝟙(0,1)(y),ifδ0=0.

The mean and variance of Y in the reparameterization are given by

𝔼(Y)=(1−δ0−δ1)μ+δ1,andVar(Y)=δ1(1−δ1)+(1−δ0−δ1){μ[(1/(2−μ1/ϕ)ϕ)−μ]+(δ0+δ1)μ2−2μδ1}.

BAYESIAN IMPLEMENTATION OF THE MODEL

Let 𝐲=(y1,y2,…,yn)⊤ as a random sample from the ZOAUG distribution with pdf (6). The likelihood function for 𝚼=(δ0,δ1,μ,ϕ)⊤ is expressed as

L(𝚼|𝐲)=∏i=1nzoaug(yi|δ0,δ1,μ,ϕ)=∏i=1nδ0𝟙{0}(yi)δ1𝟙{1}(yi)[(1−δ0−δ1)f(yi|μ,ϕ)](1−𝟙{0}(yi))(1−𝟙{1}(yi)).(7)

To fully specify the Bayesian model, we need to define prior distributions for all unknown parameters. Specifically, we adopt gamma priors for ϕ (the dispersion parameter) and beta priors for both the probability of occurrence of zeros and ones, as well as for μ (the mean). In general, we can assume ϕ∼Gamma(α,β), δ0∼Beta(aδ0,bδ0), δ1∼Beta(aδ1,bδ1), and μ∼Beta(aμ,bμ). Vague priors are generally specified by taking large values for the prior variances. Additionally, assuming the elements of the parameter vector to be independent, the posterior conclusions are obtained combining the likelihood, and the joint prior densities, given by

π(𝚼|𝐲)∝L(𝚼|𝐲)π(δ0)π(δ1)π(μ)π(ϕ).(8)

This distribution does not have a closed-form solution, but samples can be obtained using the Gibbs sampler and the Metropolis-Hastings algorithm. The Gibbs sampler iteratively draws samples from the conditional posterior distributions derived from equation (8). While these full conditional distributions do not correspond to any well-known distribution, they are still straightforward to sample from. They are given by:

π(δ0|𝚼−δ0,𝐲)∝π(𝐲|δ0)π(δ0)∝∏i=1nδ0𝟙{0}(yi)δ1𝟙{1}(yi)[(1−δ0−δ1)f(yi|μ,ϕ)](1−𝟙{0}(yi))(1−𝟙{1}(yi))δ0aδ0−1(1−δ0)bδ0−1,
π(δ1|𝚼−δ1,𝐲)∝π(𝐲|δ1)π(δ1)∝∏i=1nδ0𝟙{0}(yi)δ1𝟙{1}(yi)[(1−δ0−δ1)f(yi|μ,ϕ)](1−𝟙{0}(yi))(1−𝟙{1}(yi))δ1aδ1−1(1−δ1)bδ1−1,
π(μ|𝚼−μ,𝐲)∝π(𝐲|μ)π(μ)∝∏i=1nδ0𝟙{0}(yi)δ1𝟙{1}(yi)[(1−δ0−δ1)f(yi|μ,ϕ)](1−𝟙{0}(yi))(1−𝟙{1}(yi))μaμ−1(1−μ)bμ−1,
π(ϕ|𝚼−ϕ,𝐲)∝π(𝐲|ϕ)π(ϕ)∝∏i=1nδ0𝟙{0}(yi)δ1𝟙{1}(yi)[(1−δ0−δ1)f(yi|μ,ϕ)](1−𝟙{0}(yi))(1−𝟙{1}(yi))ϕα−1exp{−βϕ}.

The key steps of the MCMC, combining Gibbs sampling and Metropolis-within-Gibbs, were implemented using the jagsUI package Kellner 2024, which connects the R language R Core Team 2024 with the JAGS software Plummer 2003. Convergence was monitored through the analysis of MCMC chain histories, autocorrelation, cross-correlation, density plots, and the Brooks-Gelman-Rubin potential scale reduction factor R̂, all generated by the bayesplot library.

MODEL FIT ASSESSMENT AND MODEL COMPARISON

This section begins by utilizing the randomized quantile residual as a tool for assessing model adequacy, particularly for identifying outliers and checking model assumptions. Next, we present Bayesian model comparison criteria to evaluate and compare competing models effectively. Finally, we develop Bayesian influence diagnostics using the Kullback-Leibler divergence to analyze the impact of individual observations on the model fit.

Randomized quantile residual

To assess and identify deviations from the assumptions of the underlying ZOAUG model, we propose utilizing the quantile residual introduced by Dunn & Smyth 1996 which is a randomized version of Cox & Snell 1968 residual. These residuals are defined as:

riq={Φ−1{U(0,ω̂(1−υ̂)]},ifyi=0,Φ−1{U(1−ω̂υ̂,1]},ifyi=1,Φ−1{ZOAUG(yi|ω̂,υ̂,μ̂,ϕ̂)},ifyi∈(0,1),i=1,2,…,n,
where Φ−1(⋅) denotes inverse function of the standard normal cumulative distribution function, U is a uniform random variable on the interval (ai,bi], with ai=limy↑yiZOAUG(y|ω̂,υ̂,μ̂,ϕ̂) and bi=ZOAUG(yi|ω̂,υ̂,μ̂,ϕ̂) where υ̂=δ̂1/ω̂, ω̂=δ̂0+δ̂1.

Randomization is employed with the purpose of generating continuously distributed residuals, particularly in cases where the response variable is discrete or has a discrete component Dunn & Smyth 1996. In this context, randomized quantile residuals may vary across different simulations performed on the same dataset and fitted model. According to the recommendations of Dunn & Smyth 1996, it is advisable to carry out at least four simulations to detect behavioral patterns. The process follows a specific approach: first, the model is fitted to the data, and the residuals are calculated (first simulation); then, the parameter estimates are used to recalculate the residuals in a subsequent simulation (second simulation), and this procedure is repeated. Any residual showing behavior inconsistent with the others is disregarded.

Furthermore, when the model fits well, the residuals are expected to display random patterns when plotted against the fitted values or the subject indexes. Additionally, the residuals should approximate a distribution with a mean of zero and a variance of one. Any systematic patterns, or deviations in the sample mean or variance from these expected values, may indicate issues with the model specification. Furthermore, the use of a simulated envelope in the quantile-quantile plot of the residuals is a valuable diagnostic tool for identifying potential lack of fit in the model Atkinson 1985.

Bayesian model comparison criteria

A variety of criteria can be used to compare models fitted to a dataset and identify the one that best represents the data. In this paper, we consider the following information criteria: the Deviance Information Criterion (DIC) Spiegelhalter et al. 2002, Expected Akaike Information Criterion (EAIC) Brooks et al. 2002, and Expected Bayesian Information Criterion (EBIC) Carlin & Louis 2000.

Let M represent the size of the posterior sample, and let 𝚼(m), for m=1,…,M, denote the m-th observation from the valid posterior sample, i.e., the sample obtained after the burn-in period and thinning process. Define

D¯=1M∑m=1M𝚼(m),
as the vector of posterior means for each parameter and ℓ(𝚼|𝐲) as the log-likelihood of the model given the data.

The deviance is given by D(𝚼)=−2ℓ(𝚼|y), and the DIC is computed as:

DIC=D(𝚼¯)+2pD,
where
pD=D¯(𝚼)−D(𝚼¯),
with
D¯(𝚼)=1M∑m=1MD(𝚼(m)).

The EAIC is given by

EAIC=D(𝚼¯)+2p𝚼,
where p𝚼 is the number of parameters in the model. The EBIC is expressed as
EBIC=D(𝚼¯)+p𝚼ln(n),
where n represents the sample size. Furthermore, we use the Watanabe Information Criterion (WAIC) proposed by Watanabe 2010. This approach can be seen as an approximation of cross-validation, with the main difference from EAIC and EBIC being the calculation of the complexity penalty pWAIC. In this paper, we adopt the variance-based version due to its stability properties. Thus, in this case, WAIC is given by, WAIC = D(𝚼¯)+2pWAIC, where pWAIC = ∑i=1nVar(log(p(yi|𝚼))). Among the candidate models, the one with the lowest value for these criteria is considered the best fit for the data.

Another useful criterion is the i-th conditional predictive ordinate (CPOi), as described by Geisser & Eddy 1979. It can be approximated using the expression

CPÔi=[1M∑m=1M1f(yi∣𝚼(m))]−1,
where 𝚼(1),…,𝚼(M) denote a posterior sample of size M, obtained after the burn-in period, from the posterior distribution of 𝚼. Here, f(yi∣𝚼(m)) represents the marginal distribution of Y evaluated at the m-th posterior sample.

Additionally, the log pseudo-marginal likelihood (LPML) can be derived as

LPML=∑i=1nlnCPÔi.
Larger values of LPML indicates better fit.

Bayesian Influence diagnostic

When fitting a model to a dataset, it is crucial to assess the robustness of the results obtained during parameter estimation. To achieve this, diagnostic analysis can be performed by excluding specific cases.

To examine the sensitivity in parameter estimation, a Bayesian influence diagnostic is adopted, based on case deletion Cook & Weisberg 1982 and the Kullback-Leibler (K-L) divergence Cho et al. 2009. This diagnostic is calculated using the ordinary conditional predictive density.

Let 𝐲 be the complete data and 𝐲(−i) the data with the i-th observation excluded. We denote the posterior density of 𝚼 given 𝐲(−i) by π(𝚼∣𝐲(−i)), for i=1,…,n.

Suppose that K(π,π(−i)) denotes the K-L divergence between π and π(−i), where π is the posterior distribution of the parameter vector 𝚼 for the complete data, and π(−i) is the posterior distribution of the parameter vector 𝚼 without the i-th case. Essentially, it requires one to

K(π,π(−i))=∫−log(π(𝚼|𝐲(−i))π(𝚼|𝐲))π(𝚼|𝐲)d𝚼.
where K(π,π(−i)) quantifies the effect of removing the i-th case from the complete data on the posterior distribution of 𝚼.

The K-L divergence can be expressed as a posterior mean, that is,

K(π,π(−i))=−log(CPOi)+𝔼𝚼[log(f(yi|𝚼))].

According to Cho et al. 2009, the K-L divergence can be simplified using the CPO statistic, resulting in a Monte Carlo approximation of this measure given by

K̂(π,π(−i))=−log(CPOi)+1M∑m=1Mlog(f(yi|𝚼(m))).
where M denotes the number of valid samples. High values of the K-L divergence indicate the presence of influential points within the dataset. Therefore, to assess whether the i−th observation is an influential point, the calibration measure of the K-L divergence is given by
pi=1/2[1+1−exp{−2K̂(π,π(−i))}],
this equation suggests that if 0.5≤pi≤1, then pi≫0.5 indicates that the i-th observation is influential. This is because removing the i-th observation alters the posterior distribution to the same extent as representing an observed event with probability pi, when the true probability is 0.5 Cho et al. 2009.

SIMULATION STUDIES

In this section, we conduct simulation studies to evaluate the estimation of parameters for the ZOAUG model under various scenarios. First, we compare the accuracy of Bayesian estimators by examining the mean, median, and posterior mode. Next, we perform parameter recovery studies, which serve to assess both the correctness of parameter recovery in different scenarios.

Furthermore, we calculated conventional statistics to evaluate the precision of the estimates of the parameter of interest with respect to ϑ̂r(r=1,…,1000) replicas. These metrics include the bias B(ϑ̂)=ϑ̂‾−ϑ, the variance Var(ϑ̂)=11000∑r=11000(ϑ̂r−ϑ̂‾)2, the square root of the mean squared error RMSE(ϑ̂)=11000∑r=11000(ϑ̂r−ϑ)2, and the absolute value of the relative bias AVRB(ϑ̂)=|ϑ̂‾−ϑ||ϑ|, where ϑ̂‾=11000∑r=11000ϑ̂r, and we also calculate the interval length of HPD (95%) (LHPD).

We adopt practical, vague prior distributions for all parameters. Specifically, the probabilities are modeled as δ0∼Beta(0.1,0.1) and δ1∼Beta(0.1,0.1). The mean parameter is assumed to follow μ∼Beta(0.1,0.1), and the precision parameter is modeled as ϕ∼Gamma(0.1,0.1).

To mitigate the influence of initial values and prevent correlation issues, we ran two parallel MCMC chains with 35,000 iterations, applying a burn-in of 5,000 and thinning by a factor of 30, resulting in a valid MCMC chain of 2,000 iterations. Analysis of traceplots and autocorrelation plots indicated that the MCMC algorithm converged and that autocorrelations were negligible.

Accuracy of estimators

To conduct the simulations, we consider the sample sizes n=50,75,100,300. The true parameter values for scenarios (i), (ii), and (iii) are defined, respectively, as follows: (δ0,δ1,μ,ϕ)=(0.20,0.15,0.35,5), (0.20,0.15,0.50,5), and (0.20,0.15,0.75,5). In other words, the probabilities of zero and one inflation (δ0 and δ1) and the precision parameter ϕ are kept fixed, while the mean parameter μ is varied. This setup allows us to investigate scenarios characterized by right-skewness (μ=0.35), symmetry (μ=0.50), and left-skewness (μ=0.75) in the unit interval. For each case, we compute the posterior mean, median, and mode of the model parameters.

The results of the simulations, presented in Table SI to SIX of the supplementary material, illustrated that the performance of the posterior estimators improves significantly as the sample size increases. This behavior is evidenced by the reduction of RMSE, bias, and AVRB for all parameters evaluated, including δ0, δ1, μ, and ϕ. With smaller samples, greater variability in the estimates is observed; however, as the number of observations increases, the estimators become more precise and exhibit lower bias.

When comparing the three approaches used to obtain the posterior mean, median, and mode estimates, it is observed that the posterior mean and median perform similarly and exhibit better accuracy compared to the mode. The posterior mean tends to provide more precise estimates, with a lower RMSE and bias. The posterior median, in turn, may be more suitable in cases with asymmetric data. However, the posterior mode shows a more pronounced bias, especially for smaller samples (n=50,75), which compromises its reliability in these scenarios.

Another relevant aspect of the simulations is the impact of variations in the mean parameter (μ), which directly influences the shape of the distribution, allowing the evaluation of estimators with different degrees of asymmetry. The results indicate that the estimator of μ has lower RMSE and bias compared to the parameters δ0, δ1, and ϕ, suggesting that the mean is estimated with greater precision. However, for the precision parameter (ϕ), this behavior is not observed, as despite an increase in accuracy with larger sample sizes, it still exhibits the highest RMSE and bias values among the parameters analyzed.

In general, the simulations illustrate the efficiency of the estimators used, demonstrating that accuracy increases substantially with larger sample sizes. The posterior mean and median showed the best results, while the mode, due to its more pronounced bias, may not be the best choice, especially in small sample scenarios.

Parameter recovery

We conducted a simulation study to evaluate the recovery of parameters considering the sample size n=50,75,100,300 and the performance of our Bayesian approach in the estimation, considering cases where the mean takes values close to the extremes (0 and 1) and the intermediate case μ=0.5, with precision values varying between 5, 10, 30, and 50. To simplify the analysis, we used only the posterior mean of the parameters in the ZOAUG model. The adopted scenarios and the corresponding values of the true parameters are presented in the following.

  • We set the probabilities δ0=0.3 and δ1=0.2, assuming a mean of μ=0.15 and varying the precision parameter as ϕ=5,10,30,50.

  • Keeping the same values for δ0 and δ1, we now consider μ=0.5 with the same variation in ϕ.

  • The probabilities remain unchanged, while the mean is adjusted to μ=0.85 and ϕ follows the same range.

The simulation results, presented in Tables SX to SXXI of the supplementary material, demonstrate a consistent and reliable recovery of the parameters δ0, δ1, and μ across all analyzed scenarios, exhibiting low bias and reduced RMSE. As expected, the variability of the estimates, represented by SD, decreases as the sample size increases, since larger samples yield more precise estimates. This trend is evident across all mean configurations (μ=0.15,0.5,0.85), where SD and RMSE values are highest for n=50 and progressively decrease up to n=300. Additionally, the lengths of the HPD intervals shrink as the sample size increases, further indicating improved estimation precision.

With respect to the precision parameter (ϕ), the results exhibit a different behavior. For lower values (ϕ=5,10), the recovery is more accurate, albeit with greater variability. However, as ϕ increases (ϕ=30,50), a tendency toward underestimation emerges, reflected in increasing bias and RMSE. This pattern suggests that the recovery of ϕ deviates more significantly from the true value at higher levels. In contrast, the recovery of the parameter μ demonstrates strong performance, with estimates that align closely with the true values and exhibit minimal bias. However, when μ takes values near the extremes (μ=0.15 and μ=0.85), the estimation errors are slightly higher than those observed for the intermediate case (μ=0.5).

In general, the results indicate satisfactory parameter recovery, particularly for δ0, δ1, and μ. The sample size plays a crucial role in reducing the bias, RMSE, and AVRB of the estimates. However, in the case of the precision parameter ϕ, higher values appear to compromise the accuracy of the estimate.

APPLICATION

In this section, we apply our proposed ZOAUG model to our motivating example, analyzing the percentage of the urban population (1,794 municipalities) living in households connected to the water supply network in Brazil’s Northeast region in 2013. We denote this variable as y, which takes values in the interval [0,1]. The data source is the National Sanitation Information System available in the 2013 edition of the Brazilian Atlas of Human Development (http://www.atlasbrasil.org.br).

Table I presents some summary measures relating to variable y. The data distribution shows that the minimum value (0) indicates that, in some municipalities of the region, there is no urban population connected to the water supply network, or that coverage is zero in certain areas. On the other hand, the maximum value (1) demonstrates that, in other municipalities, the entire urban population is connected to the water supply network. The first quartile (0.7779) indicates that 25% of the municipalities have a connection percentage below 77.79%, suggesting that in a considerable portion of the region, water supply coverage is still below total coverage but already significantly high. The median (0.9687) reveals that 50% of the municipalities have more than 96.87% of their urban population connected to the network, which is a very high value and suggests excellent coverage in much of the region. The mean (0.8006), which is slightly lower than the median, also suggests that, overall, water supply coverage in the northeastern cities is reasonably good, but there are some areas with low connectivity. This is supported by the difference between the mean and the median, indicating a potential asymmetric distribution, with some municipalities exhibiting low coverage. The third quartile (1.0000) indicates that 75% of the municipalities have water coverage above 100%, meaning that nearly all municipalities have very high water supply coverage, with most reaching values close to having the entire urban population connected to the network.

Table I
Descriptive statistics for variable y

We propose the fitting of the ZOAUG and ZOAB models, both enhanced by the inclusion of zero and one. Specifically, we have yi|μ,ϕ,δ0,δ1∼ZOAUG(μ,ϕ,δ0,δ1) and yi|μ,ϕ,δ0,δ1∼ZOAB(μ,ϕ,δ0,δ1), for i=1,2,…,1794. The prior distributions for both models are specified as δ0∼Beta(0.1,0.1) and δ1∼Beta(0.1,0.1), μ∼Beta(0.1,0.1), and ϕ∼Gamma(0.1,0.1). For Bayesian inference, we generate 35,000 MCMC samples, discarding the first 5,000 iterations and thinning by a factor of 30, considering two chains. Convergence was assessed using traceplots and the R̂ criterion (not shown). The analyses of traceplots and autocorrelation plots indicated that the MCMC algorithm converged and the autocorrelation were negligible.

Table II gives the posterior parameter estimates and statistics for model comparison DIC, EAIC, EBIC, WAIC and LPML obtained from ZOAUG and ZOAB models. The results presented in the table show that the ZOAUG and ZOAB models provide similar estimates for most parameters. The estimates for δ0 and δ1 are almost identical between the two models, with both having very close means and standard deviations posteriori. Similarly, the mean estimate for μ is nearly the same for both models, with very small differences in the standard deviations posteriori and HPD intervals. These results suggest that, for these parameters, both models perform similarly.

However, a significant difference is observed in the estimation of ϕ. The ZOAUG model estimates ϕ to be much lower (mean = 0.5886) compared to the ZOAB model (mean = 3.1296), with the ZOAB model showing a much higher standard deviation and broader HPD interval. This indicates that the two models estimate ϕ very differently, suggesting a key distinction between the models.

In terms of model comparison statistics, the ZOAUG model generally performs better. The DIC, EAIC, EBIC, WAIC, and LPML are all lower for the ZOAUG model, indicating a better fit to the data compared to the ZOAB model.

Table II
Posterior parameter (mean) estimates, standard deviations (SD), HPD and statistics for model comparison for the ZOAUG and ZOAB models.

Figure 4 shows the QQ plots of the randomized quantile residuals for the ZOAB model (left) and the ZOAUG model (right). The residuals from the ZOAB model show substantial deviations from the reference line, particularly in the tails, suggesting potential model misspecification. In contrast, the ZOAUG model demonstrates superior performance, with residuals that adhere more closely to the reference line. The reduced dispersion and absence of systematic patterns further indicate a better fit of the ZOAUG model to the data. The analysis of influential observations, shown in Figure 5, do not reveal evidence of the existence of influential observations for the ZOAUG model.

Based on the results presented earlier, the ZOAUG distribution appears to be a better option for modeling the dataset percentage of the urban population living in households connected to the water supply network in Brazil’s Northeast region in 2013. Figure 6 presents graphical representations of the fit of the ZOAUG distribution to the data. It is evident that the proposed distribution provides a good fit to the data.

Figure 4
QQ plot with envelopes for the ZOAUG and ZOAB models.
Figure 5
The Kullback-Leibler divergence measure and calibration for each observation for ZOAUG model.
Figure 6
Data histogram and fitted ZOAUG density.

CONCLUSIONS

In this paper, we propose the zero and/or one augmented UG distribution, that is, a mixture of an absolutely continuous distribution with a discrete one, to model observed data in intervals such as [0,1), (0,1] or [0,1], especially in cases where the probability mass at 0 and/or 1 exceeds what would be expected by the UG distribution. We emphasize that the analytical derivation of the posterior distribution is infeasible. Therefore, we employ MCMC algorithms using the JAGS package. Based on the generated samples, we perform parameter estimation, model fit assessment, model comparison and influence diagnosis. To illustrate the accuracy of the estimates and the adequate specification of the prior distributions, we conduct a simulation study, in which we observe good performance in parameter estimation. Finally, we perform an application to real data regarding the percentage of the urban population living in households connected to the water supply network in the northeast region of Brazil and compare the ZOAUG model with the ZOAB model, where we find that the ZOAUG model provided a good fit, making it a good choice and efficient alternative to traditional literature models.

Furthermore, we emphasize that our simulation study can be expanded to provide more precise guidelines for hyperparameter selection. Furthermore, the comparison between these models and ours will be further explored in future research.

We envision future work extending to the regression context, incorporating fixed and random effects under the Bayesian approach. This will involve using the U-Turn Sampler algorithm in STAN and analyzing the impact of specific covariates on the probability parameters (0 and 1), as well as on the mean and precision.

Supplementary Materials

ACKNOWLEDGMENTS

We are grateful to the Coordenação de Aperfeiçoamento de Pessoal deNível Superior – Brazil (CAPES) – Finance Code 001 for partiallysupporting the first author. We also appreciate the enlighteningcomments of the two anonymous referees and the associate editor fortheir careful and constructive review. The second and last authors aregrateful to the Conselho Nacional de Desenvolvimento Científico eTecnológico (CNPq), Brazil [grants 305179/2024-1 and 308058/2022-4], forpartial financial support.

REFERENCES

  • ATKINSON AC. 1985. Plots, transformations and regression; an introduction to graphical methods of diagnostic regression analysis. Oxford University Press, p. 1-296.
  • BARNDORFF-NIELSEN OE & JØRGENSEN B. 1991. Some Parametric Models on the Simplex. J Multivar Anal 39(1): 106–116.
  • COOK RD & WEISBERG S. 1982. Residuals and Influence in Regression. Boca Raton, FL: Chapman & Hall/CRC.
  • COX DR & SNELL EJ. 1968. A General Definition of Residuals. J R Stat Soc B Methodol 30(2): 248–265.
  • CRIBARI-NETO F & SANTOS J. 2019. Inflated Kumaraswamy Distributions. Acad Bras Cienc 91(2): 1–18.
  • DUNN PK & SMYTH GK. 1996. Randomized Quantile Residuals. J Comput Graph Stat 5(3): 236–244.
  • FERREIRA AB & MAZUCHELI J. 2022. The Zero, One and Zero-and-One-Inflated New Unit-Lindley Distributions. Braz J Biom 40(3): 1–23.
  • GEISSER S & EDDY WF. 1979. A Predictive Approach to Model Selection. J. Amer. Statist. Assoc. 74(365): 153–160.
  • GRASSIA A. 1977. On a family of distributions with argument between 0 and 1 obtained by transformation of the gamma and derived compound distributions. Aust J Stat 19(2): 108–114.
  • GRIFFITHS D & CSIRO CS. 1981. Closeness of Grassia’s Transformed Gammas and the Beta Distribution. Aust J Stat 23(2): 240–246.
  • GUEDES AC, CRIBARI-NETO F & ESPINHEIRA PL. 2020. Modified Likelihood Ratio Tests for Unit Gamma Regressions. J. Appl. Stat. 47(9): 1562–1586.
  • JOHNSON NL. 1949. Systems of Frequency Curves Generated by Methods of Translation. Biometrika 36(1/2): 149–176.
  • KARAKAYA K, RAJITHA CS, SAGLAM Ş, TASHKANDY YA, BAKR ME, MUSE AH, KUMAR A, HUSSAM E & GEMEAY AM. 2024. A New Unit Distribution: Properties, Estimation, and Regression Analysis. Sci Rep 14(1): 7214.
  • KELLNER K. 2024. jagsUI: A Wrapper Around ’Rjags’ to Streamline ’JAGS’ Analyses. https://CRAN.R-project.org/package=jagsUI
    » https://CRAN.R-project.org/package=jagsUI
  • LIU P, YUEN KC, WU L-C, TIAN G-L & LI T. 2020. Zero-One–Inflated Simplex Regression Models for the Analysis of Continuous Proportion Data. Stat Interf 13(2): 193–208.
  • MARTÍNEZ-FLÓREZ G, TOVAR-FALÓN R & BARRERA-CAUSIL C. 2022. Inflated Unit-Birnbaum-Saunders Distribution. Mathematics 10(4): 667.
  • OKORIE IE, AFUECHETA E & BAKOUCH HS. 2023. Unit Upper Truncated Weibull Distribution with Extension to 0 and 1 Inflated Model–Theory and Applications. Heliyon 9(11): 1–22.
  • QUEIROZ FF & LEMONTE AJ. 2021. A Broad Class of Zero-or-One Inflated Regression Models for Rates and Proportions. Can J Stat 49(2): 566–590.
  • R CORE TEAM. 2024. R: A Language and Environment for Statistical Computing. https://www.R-project.org/
    » https://www.R-project.org/
  • ROCHA S, ESPINHEIRA P & CRIBARI-NETO F. 2020. Residual and Local Influence Analyses for Unit Gamma Regressions. Stat Neerl 75(2): 137–160.
  • ROCHA EO, AZEVEDO CLN, MOTA JMA, BATISTA MJ & NOBRE JS. 2024. Bayesian Inference for Unit Gamma Distribution. Caderno Pedagog 21(9): 1–21.
  • SILVA CR DA, LIMA FILHO LM DE A, PEREIRA TL & DUARTE NETO PJ. 2025. Shewhart-Type Control Chart Based on Unit Gamma Distribution Inflated at Zero or One. J. Stat. Comput. Simul. 95(8): 1887–1908.
  • SPIEGELHALTER DJ, BEST NG, CARLIN BP & VAN DER LINDE A. 2002. Bayesian Measures of Model Complexity and Fit. J R Stat Soc B Methodol 64(4): 583–639.
  • TADIKAMALLA PR. 1981. On a Family of Distributions Obtained by the Transformation of the Gamma Distribution. J. Stat. Comput. Simul. 13(3-4): 209–214.
  • WATANABE S. 2010. Asymptotic Equivalence of Bayes Cross Validation and Widely Applicable Information Criterion in Singular Learning Theory. Mach Learn Res 11(116): 3571–3594.

Correspondence

Correspondence to: Éric Oliveira Rocha E-mail: eric.rocha@alu.ufc.br

Publication Dates

  • Publication in this collection
    28 Nov 2025
  • Date of issue
    2025

History

  • Received
    22 Jan 2025
  • Accepted
    06 May 2025
location_on
Academia Brasileira de Ciências Rua Anfilófio de Carvalho, 29, 3º andar, 20030-060 Rio de Janeiro RJ Brasil, Tel: +55 (21) 2391-7901 - Rio de Janeiro - RJ - Brazil
E-mail: aabc@abc.org.br
rss_feed Stay informed of issues for this journal through your RSS reader
Go to top