Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2026 Aug 27.
Published in final edited form as: Comput Stat Data Anal. 2024 Jun 26;199:108009. doi: 10.1016/j.csda.2024.108009

A double Pólya-Gamma data augmentation scheme for a hierarchical Negative Binomial - Binomial data model

Xuan Ma 1,*, Jenný Brynjarsdóttir 1, Thomas LaFramboise 1
PMCID: PMC13508328  NIHMSID: NIHMS2203113  PMID: 42656952

Abstract

A double Pólya-Gamma data augmentation scheme is developed for posterior sampling from a Bayesian hierarchical model of total and categorical count data. The scheme applies to a Negative Binomial - Binomial (NBB) hierarchical regression model with logit links and normal priors on regression coefficients. The approach is shown to be very efficient and in most cases out-performs the Stan program. The hierarchical modeling framework and the Pólya-Gamma data augmentation scheme are applied to human mitochondrial DNA data.

Keywords: Data augmentation, Bayesian hierarchical model, Pólya-Gamma, Mitochondrial DNA data

1. Introduction

One of the classical hierarchical statistical model settings involve a hierarchy of what we will call total count and category count data. Typically, category count data Yi,i=1,…,N can be modelled as Yi~Binomialmi,pi where mi is the total count for each observation. When the total counts are observed they are usually treated as known and fixed. Even if there is interest in modeling both the category counts Yi and the total counts mi it is usually not necessary to model them jointly. In fact, if the data distributions of a total count, pm∣θ1, and of a categorical count, py∣m,θ2, do not have any common parameters and if the parameters θ1 and θ2 are a priori independent, the posteriors are conditionally independent as well since

pθ1,θ2∣m,y=pm∣θ1pθ1p(m)py∣m,θ2pθ2p(y∣m). (1)

That is, we get the same posterior inferences by simply modeling the categorical count separately and treating the total count data as fixed. However, if the data are not conditionally independent of the other parameters, i.e. if we have pm∣θ1,θ2 and/or py∣m,θ2,θ1 the posteriors of θ1 and θ2 will not be independent. For example, if there is reason to believe that the proportion of a category pi is related to the expected total count then a joint (hierarchical) data model is preferable to two separate models. In this paper we consider a particular modeling framework for this situation where total counts are modelled via the Negative Binomial distribution and categorical counts, conditional on total counts, are modelled as Binomials. Furthermore, we develop a double Pólya Gamma data augmentation scheme to efficient posterior sampling for this model type.

Our motivation for this work comes from analyzing human mitochondrial DNA data. In addition to the 23 pairs of chromosomes, each cell in the human body has a collection of mitochondrial DNA (mtDNA) located outside of the cell nucleus. MtDNA is in the form of a circular chromosome, of which there are generally hundreds of copies in a single cell. The total number of these chromosomes within a cell is called its copy number and can vary e.g. over time, through disease treatments, between tissue types, and between healthy and unhealthy cells. Each mtDNA chromosome is comprised of approximately 16,569 nucleotides (the A’s, C’s, G’s and T’s that comprise all DNA). By convention, each of these nucleotides is given a number, representing its position. The positions are numbered sequentially in a standard manner, beginning with 1 at a specific nucleotide and moving in a defined direction around the circle, ending at position 16,569 adjacent to position 1. At each position one specific nucleotide type (A, C, G, or T) is defined as a wild type, roughly considered as the “normal” type at that position. If any other type is found at that position it is called a mutant. Within one tissue sample, and even within one cell, the mtDNA chromosomes may be a mixture of wild types and mutants at a given position. The mutant proportion refers to the proportion of the mtDNA chromosomes that have a mutant instead of the wild type at the position under consideration. At the vast majority of positions, a tissue sample will be 0% mutation proportion. Data on mtDNA is usually collected in the aggregate (i.e. a pool of mtDNA from thousands or millions of cells), so we observe the average copy number and average mutant proportion per cell in a sample. Both copy number (Filograna et al., 2021) and mutant proportion (Picard et al., 2014) has been linked to human disease, including cancer (Kopinski et al., 2021). However, no studies to date have attempted to model the relationships between and dynamics of mtDNA copy numbers and mutant proportions.

There are a few examples in the literature of joint modeling of total counts and category counts with two or more categories. Terza and Wilson (1990) modelled households’ choices among types of trips and frequency of trips with a multinomial Poisson hurdle model where regression parameters for total counts are restricted to be proportional to the regression parameters of the category counts. Illian et al. (2013) modelled the number of T. carnosus plants and their health status with a Poisson-Binomial model and forge an association between the total counts and category counts by making the spatial effect in one layer proportional to the spatial effect in the other layer. Chiou and Fu (2013) used a similar approach in the setting of number and severity of car crashes. Schmidt et al. (2022) model Aedes borne diseases with a Bayesian Poisson-multinomial model that includes random effects which are correlated between the two model layers. Qu and Bradley (2023) present a similar modeling approach for US Census data. In our setting the interest is in directly describing the association between total counts and category counts rather than accounting for it via covariance structures. Both Terza and Wilson (1990) and Chiou and Fu (2013) apply maximum likelihood to estimate parameters. Illian et al. (2013) and Schmidt et al. (2022) apply mostly normal priors on regression parameters and random effects and utilize general purpose programs to obtain posterior samples (INLA and Stan). Qu and Bradley (2023) apply a Gibbs sampler by applying multivariate logit-beta prior distributions.

We will present a double Pólya-Gamma data augmentation scheme for posterior sampling in this paper. In general, data augmentation schemes for posterior sampling have a long and successful history in Bayesian statistics (van Dyk and Meng, 2001). In a nutshell, data augmentation schemes re-parameterize (augment) the model by introducing latent variables that do not change the original (now marginal) model but makes it possible to apply a Gibbs sampler for posterior sampling which is usually more efficient and easier to use than other sampling methods such as the Metropolis-Hastings algorithm. Perhaps the most famous example is the Albert and Chib (1993) algorithm for the binary probit model Yi~BernoulliΦ−1xi′β,i=1,⋯,N, where β is a vector of unknown regression parameters with a multivariate normal prior, xi is a vector of known covariates, and Φ is the standard Gaussian cdf. They introduced N latent normally distributed variables and the Gibbs sampler consists of a multivariate normal (for β) and N truncated normals for the latent variables. This approach has been widely used, extended e.g. to correlated and multivariate settings (Chib and Greenberg, 1998), and extensively studied e.g. in the context of spatial data (Berrett and Calder, 2016). However, applying this data augmentation scheme to category count data, i.e. Yi~Binomialmi,Φ−1xi′β, can be computationally ineffective since it requires mi latent variables for each of the N observations.

The success of the Albert and Chib (1993) algorithm is no doubt the reason for the popularity of the probit link in Bayesian statistics. However, the logit link is usually preferred by domain scientists due to easier interpretation of the regression parameters. Unfortunately, the straightforward extension of the algorithm i.e. introducing N latent logistically distributed variables does not result in closed form full conditional distributions. Various authors have proposed other sampling schemes for the Logistic regression model. For example, Held and Holmes (2006) re-wrote the logistic latent variables in terms of a Kolmogorov-Smirnov normal mixture. This approach introduces 2N latent variables and the full conditional distributions are multivariate normal (for β) and truncated normals for N latent variables, but rejection sampling is required for the other N latent variables. Extending this approach to category count data requires 2mi latent variables for each observation. The Held and Holmes (2006) approach gives exact posterior inference but can be computationally slow. In a series of papers Frühwirth-Schnatter and Frühwirth (2007); Frühwirth-Schnatter et al. (2009); Frühwirth-Schnatter and Frühwirth (2010) the logistic regression model is replaced by an approximation that facilitates efficient sampling. This approach introduces 2N latent variables that have to be sampled as well as choosing the number of normal mixtures used for approximations. Fussl et al. (2013) extend this approach to category count data.

Polson et al. (2013) introduced a data augmentation scheme for the logistic regression model that involves only N latent variables and does not require model approximations. The latent variables are Pólya-Gamma distributed and with normal priors on regression parameters the full conditionals are multivariate normal and Póly-Gamma. The number of latent variables is the same for category counts as binary data, instead the total counts mi are parameters in the latent distributions. This data augmentation scheme has been shown to be very effective. In fact, Choi and Hobert (2013) showed that the algorithm is uniformly ergodic when the (normal) prior on the regression parameters is proper and Wang and Roy (2018) proved geometric ergodicity for a flat prior. We describe the algorithm of Polson et al. (2013) in more detail in Section 2.

Bayesian regression models for total count data usually don’t offer convenient and conjugate priors for regression coefficients. For Poisson regression models, some work has been done on developing a multivariate Log-Gamma distribution that is a conjugate prior in that setting (Demirhan and Hamurkaroglu, 2011; Bradley et al., 2018). This prior has many hyper-parameters and is not straightforward to use. However, Pillow and Scott (2012) and Zhou et al. (2012) show how the Pólya-Gamma data augmentation scheme from Polson et al. (2013) can be applied to the Negative-Binomial regression model with logit link and normal priors on regression coefficients and that is the approach we will use here.

In this paper we focus on a particular hierarchical data model of the form

Mi~NBr,qi,i=1,…,NY∣Mi=mi~Binomialmi,pir,qi, (2)

where NBr,qi denotes the Negative Binomial Distribution and the success probability pi is dependent on r and/or qi in some way. We develop a double Pólya-Gamma data augmentation scheme for posterior sampling of parameters in the case of logit links and normal priors on regression parameters. Neelon (2019) also apply the Pólya-Gamma data augmentation scheme twice for one model that includes both a Bernoulli regression part and a Negative-Binomial regression part but for a zero-inflated Negative Binomial regression model. The hierarchical data model in Eq. (2) presents new challenges, particularly due to the interdependence of parameters in the two layers. Other data augmentation approaches to zero inflated total count data can be found in Neelon and Chung (2017) and Zhang and Yi (2023).

The remainder of this paper is organized as follows. In Section 2 we describe the data augmentation scheme of Polson et al. (2013) for both Binomial and Negative-Binomial regression models. In Section 3 we extend that approach to a Negative-Binomial - Binomial hierarchical data model, first with linear regression terms only and then a model that includes spatial effects. We illustrate the efficiency of the scheme with simulation studies in Section 4. Two applications of the hierarchical model and the double Pólya-Gamma data augmentation scheme to human mitochondrial DNA data are presented in Section 5 and conclusions are in Section 6.

2. Data augmentation for Binomial and Negative Binomial Logit models

In this section we summarize the Pólya-Gamma data augmentation scheme for Binomial and Negative-Binomial Logit models described in Polson et al. (2013) and Pillow and Scott (2012).

2.1. Data augmentation for posterior sampling

Data augmentation is a technique that can be used to facilitate a Gibbs sampler for a Bayesian model with non-conjugate priors. Suppose we have a data model p(y∣β), a prior p(β), and we want samples from the posterior. A data augmentation approach introduces a latent data variable ω and a conditional distribution p(ω∣β,y), augmenting the data model to the joint pdf p(y,ω∣β)=p(y∣β)p(ω∣β,y). It is easy to see that the marginal data model is still the same as the original model and the desired posterior p(β∣y) is the marginal of the joint posterior p(β,ω∣y)∝p(y∣β)p(ω∣β,y)p(β). If the full conditional distributions p(β∣ω,y) and p(ω∣β,y) are tractable, a Gibbs sampler can be applied to sample β and ω, of which only the β samples are of interest for inference. The challenge of course is to choose the augmentation distribution p(ω∣β,y) in such a way that the full conditional distributions are easily sampled.

A well known example of this is the aforementioned Albert and Chib (1993) algorithm for Bayesian binary probit models Yi~BernoulliΦ−1xi′β. The traditional presentation of Albert and Chib (1993) data augmentation splits the joint (augmented) data model the other way, i.e. p(y,ω∣β)=p(y∣ω,β)p(ω∣β) where p(ω∣β) is multivariate normal and p(y∣ω,β)=∏i=1NIyi=1,ωi>0+Iyi=0,ωi≤0 where I{⋅} is the indicator function. This is equivalent to introducing the latent data variables ωi∣β,yi~TrNyixi′β,1 where TrNyi(⋅,⋅) denotes a normal distribution that is truncated above at zero if yi=0 and below at zero if yi=1.

2.2. Pólya-Gamma distribution

The Pólya-Gamma family of distributions, denoted PG(b,c), is a subset of the class of infinite convolutions of gamma distributions (Barndorff-Nielsen et al., 1982). Polson et al. (2013) define PG(b,0) with b>0 as the distribution of the random variable ω that has Laplace transform

E[exp(−ωt)]=cosh−bt2=∏k=1∞1+t2π2(k−1/2)2−b, (3)

where the second equality follows from the Weierstrass factorization theorem. Inverting the Laplace transform we see that if ω~PG(b,0) it is equal in distribution to an infinite convolution of gamma distributed random variables:

ω=D12π2∑k=1∞gk(k−1/2)2wheregk∼indGammab,1.

The general case of Pólya-Gamma distribution can be obtained through an exponential tilting of the PG(b,0) distribution as follows

p(ω∣b,c)=exp−12ωc2p(ω∣b,0)∫0∞exp−12ωc2p(ω∣b,0)dω, (4)

where p(ω∣b,0) is the pdf of the PG(b,0) distribution.

Polson et al. (2013) describe a method to sample from the Pólya-Gamma distribution using the accept-reject algorithm, extending the work of Devroye (2009). The algorithm exploits the additive property of Pólya-Gamma distributions by drawing b samples from PG(1,c) and adding them together to obtain a sample from PG(b,c). Each sample from PG(1,c) is obtained via an accept-reject step using a proposal distribution that is a mixture of an inverse-Gaussian and an exponential density. Recognizing that the target density can be written as an infinite but alternating sum of decreasing terms the accept-reject step can be executed very efficiently. This method is implemented in the R package BayesLogit (Polson et al., 2019).

Polson et al. (2013) also show the following identity that relates the kernel of a Binomial data model with logit link to the expectation of a PG(b,0) random variable and is instrumental in making the data augmentation scheme work:

Theorem 2.1. For b>0,a∈R, and ψ∈R we have

eψa1+eψb=2−beκψ∫0∞e−ωψ2/2p(ω∣b,0)dω, (5)

where κ=a−b/2 and p(ω∣b,0) is the pdf of PG(b,0).

2.3. Pólya-Gamma data augmentation for Binomial and Negative Binomial logit models

Consider a Binomial regression model with a logit link,

Yi∼indBinomialni,pi,where logitpi=xi′β,

or a Negative-Binomial regression model with logit link

Yi∼indNBr,pi,where logitpi=xi′β,

for i=1,…,N. Here we parameterize the Negative-Binomial so that the pdf is proportional to piyi1−pir so in both cases the likelihood is proportional to

∏i=1Neψiai1+eψibi, (6)

where ψi=xi′β and ai=yi. For the Binomial model we have bi=ni but bi=r+yi for the Negative-Binomial model. For now we assume that r and ni are fixed.

The data augmentation scheme of Polson et al. (2013) introduces latent variables

ωi∣β,yi∼indPGbi,xi′βi=1,…,N, (7)

where again, bi=ni or bi=r+yi. As in the general case (see Section 2.1) the full conditional distribution of ωi is simply the data augmentation distribution in (7). Using Theorem 2.1 and the pdf of PGbi,xi′β from (4) the full conditional distribution of β becomes

p(β∣ω,y)∝p(y∣β)×p(ω∣β,y)×p(β)∝∏i=1Neκixi′β∫0∞e−12ωxi′β2pω∣bi,0dω×∏i=1Ne−12ωixi′β2pωi∣bi,0∫0∞e−12ωxi′β2pω∣bi,0dω×p(β), (8)

where pω∣bi,0 is the pdf of PGbi,0. Since the integrals cancel we are left with

p(β∣ω,y)∝p(β)∏i=1Nexpκixi′β−12ωixi′β2∝p(β)exp−12(Xβ−Z)′𝛀(Xβ−Z), (9)

where 𝛀 is a diagonal matrix with diagonal values ω1,…,ωN,

κ=a1−b12,⋯,aN−bN2′,Z=κ1ω1,⋯,κNωN′,andX=x1′,⋯,xn′′.

The second part of (9) is proportional to the likelihood for linear regression Z=Xβ+ϵ, where ϵ~N0,𝛀−1 and if the prior for β is set as p(β)~N(b,B), the Gibbs sampler is summarized as follows (Polson et al., 2013; Pillow and Scott, 2012):

ωi∣β,y~PGbi,xi′βi=1,…,N (10)
β∣y,ω~Nμω,Vω, (11)

where bi=ni (Binomial model) or bi=r+yi (Negative Binomial model), and

Vω=X′𝛀X+B−1−1andμω=VωB−1b+Xκ. (12)

3. Bayesian Negative-Binomial – Binomial (NBB) hierarchical data model

We now discuss a Negative-Binomial – Binomial (NBB) hierarchical data model inspired by analysis of human mitochondrial DNA (mtDNA) data (Section 3.1). We then expand the Pólya-Gamma data augmentation scheme to this NBB model, first with regression terms only (Section 3.2) and then adding spatial effects (Section 3.3).

3.1. NBB hierarchical model

We now define the general NBB regression model. Let Mi be a total count for subject i and let Yi be the corresponding category count for i=1,…,N. In our application, Mi is the total number of mtDNA chromosomes per cell (copy number) and Yi is the count of how many of those mtDNA copies have a mutation at a given position. Also, let x1i and x2i be vectors of covariates for the total counts and category counts, respectively. We propose the following logistic NBB model

Mi∣r,α~NBr,qii=1,…,N (13)
where logitqi=x1i′α, (14)
Yi∣Mi=mi,β,α~Binomialmi,pi (15)
where logitpi=x2i′β1+ηqi,rδ≡x3i′β, (16)
α~N(a,A),β~N(b,B),r~p(r), (17)

where p(r) is an unspecified prior distribution with support on R+,x3i=x2i′,ηqi,r′, and β=β1′,δ′.

In this setup the dependence of the category probability pi on the mean total count rqi1−qi is modelled as a linear additive effect on the logit scale, i.e. ηqi,rδ, where η is some function of qi and r. This keeps the linear regression model form for logitpi and the Pólya-Gamma data augmentation scheme can be applied directly to sample β. Posterior sampling of α is a bit trickier since ηqi,r depends on α. As will be shown in Section 3.2 the Pólya-Gamma data augmentation scheme can also be used for α if ηqi,r is a linear function of α. In that case the δ parameter can be interpreted in terms of multiples of the expected total count EMi=rexpx1i′α. In particular, if EMi is multiplied by a constant c the category odds are multiplied by cδ since

pi1−pi=expx2i′β1+δx1i′α=expx2i′β1EMirδ. (18)

Therefore, if δ is positive the category odds increase with increasing total counts, a negative δ indicates decreasing odds with increasing total counts, and δ=0 indicates no relationship.

3.1.1. Some modeling considerations

While the Binomial distribution is a natural choice for categorical counts there are of course other options for modeling total counts, including the Poisson distribution. We argue that the Negative-Binomial distribution is flexible enough for most situations, has the benefit of accounting for over dispersion, and has the added bonus of lending itself to an efficient Pólya-Gamma data augmentation scheme.

The joint modeling of total counts and category counts provides a mechanism to directly estimate the association between them (represented here as the δ parameter) and it allows for borrowing of strength between model layers. However, if one of the model layers is severely misspecified it does not only affect the estimation of parameters in that layer but both. For example, if the model for categorical counts Yi is misspecified it can affect the estimate of the regression coefficients (α) in the model for total counts in unpredictable ways. One way to counter this is through modularization. For example, one could cut this feedback by letting the marginal posterior of (α) only depend on the total count data, or simply fit the model for total counts separately and plug-in an estimate for α to fit the model for category counts. Either way, if different modularization gives very different results than fitting the full model that could help identify flaws in the model. For more detailed discussions of modularization and cutting feedback see for example Jacob et al. (2017), Bayarri et al. (2009) and Plummer (2014).

Another thing to keep in mind when employing the NBB hierarchical model is the potential for non-identifiability of some parameters. Note for example, that if there are no covariates for the total count data, i.e. if (14) is simply logitqi=α0, then an intercept in (16) and δ are not identifiable since (16) becomes logitpi=β0+∑jβjx2,ji+α0δ. Furthermore, if the covariates are all categorical and same covariates are used for both data levels, then the intercept β0 and δ are not identifiable. To see this, suppose we have a categorical covariate with 3 levels and 2 observations per level. Then, using the typical indicator variables, the design matrix for logitpi is

X3=100α0100α0110α0+α1110α0+α1101α0+α2101α0+α2andβ=β0β1β2δ, (19)

and denoting the column vectors of X3 as Xj we see that X4=α0X1+α1X2+α2X3.

3.2. Data augmentation scheme for the NBB model

We now present a double Pólya-Gamma data augmentation scheme for the NBB model defined in (13) – (17). We define two latent random vectors ω1 and ω2 where

ω1i∣α,r,mi∼indPGr+mi,x1i′αi=1,…,N (20)
andω2i∣β,α,r,mi∼indPGmi,x3i′βi=1,…,N. (21)

Note that ω2i may depend on α and r since x3i is a yet to be identified function of α and/or r. The joint posterior distribution is

pβ,α,r,ω1,ω2∣y,m∝p(m∣α,r)pω1∣α,r,mp(α)p(r)×p(y∣m,β,α,r)pω2∣β,α,r,mp(β). (22)

As in Section 2.3 the full conditional distributions of ω1 and ω2 are given in (20) and (21). Also as in Section 2.3, the full conditional distribution of β is multivariate normal with mean and covariance matrix defined in (12) with ai=yi and bi=mi.

The full conditional distribution of α is

p(α∣⋅)∝p(m∣α,r)pω1∣α,r,mp(α)p(y∣m,β,α,r)pω2∣β,α,r,m∝p(α)∏i=1Nexpmi−r2x1i′αexp−ω1i2x1i′α2×∏i=1Nexpyi−mi2x2i′β1+ηqi,rδexp−ω2i2x2i′β1+ηqi,rδ2, (23)

where similar to the derivation in Section 2.3 we used Theorem 2.1 to write the likelihoods p(m∣α,r) and p(y∣m,β,α,r) in the form of (5) and the integrals cancel against the integrals in the Pólya-Gamma densities pω1∣α,r,m and pω2∣β,α,r,m. We are left with linear and quadratic terms involving α, i.e. an expression proportional to a normal density, but recall that ηqi,r also depends on α. If we set ηqi,r=logitqi=x1i′α we get

p(α∣⋅)∝p(α)∏i=1Nexpmi−r2+yi−mi2δ−ω2ix2i′β1δx1i′α−ω1i2+ω2i2δ2x1i′α2∝pαexp−12X1α−Z1′𝛀1X1α−Z1, (24)

where Z1=Z1i,…,Z1N′ with

Z1i=mi−r2+yi−12miδ−ω2ix2i′β1δω1i+ω2iδ2,
𝛀1=ω11+ω21δ2⋱ω1N+ω2Nδ2andX1=x11′⋮x1N′. (25)

As before, we now have an expression of the form of a linear regression model and with the normal prior on α we get the usual normal-normal update.

To summarize, the Gibbs sampler for a fixed r is as follows

ω1i∣⋅∼indPGr+mi,x1i′αi=1,…,N,α∣⋅~Nμω1,Vω1,
ω2i∣⋅∼indPGmi,x2i′β1+x1i′αδi=1,…,N,β∣⋅~Nμω2,Vω2, (26)

where

Vω1=X1′𝛀1X1+A−1−1,μω1=Vω1A−1a+X1′𝛀1Z1,
Vω2=X2′𝛀2X2+B−1−1,μω2=Vω2B−1b+X2′𝛀2Z2. (27)

The values of 𝛀1,Z1, and X1 are given in and (25), and

Z2=y1−m1/2ω21⋮yN−mN/2ω2N,𝛀2=ω21⋱ω2N,andX2=x21′x11′α⋮x2N′x1N′α. (28)

Finally, in the case that r is not fixed, a Metropolis-Hastings step can be added where the full conditional distribution is p(r∣⋅)∝p(m∣α,r)p(r).

3.3. NBB model in spatial setting

The NBB model in Section 3.1 can be utilized for spatially correlated count data by adding random spatial effects to the logit-scale regression expressions in (14) and (16) in the same way we would do for a NB regression model and a Binomial regression model separately. Denoting the spatial effect for total counts and category counts with v1i and v2i, respectively we set

logitqi=xi1′α+v1ii=1,…,N
logitpi=x2i′β1+ηqi,rδ+v2i=x3i′β+v2i
wherev1=v11,v12,⋯,v1N′~NN0,𝚺θ1
andv2=v21,v22,⋯,v2N′~NN0,𝚺θ2. (29)

Since the spatial effects have normal priors it follows that with the Pólya-Gamma data augmentation scheme the full conditional distribution of v1 and v2 are multivariate normal, in the same way as the regression coefficients. We present the details of the full conditional distributions below. The covariance matrices 𝚺θ1 and 𝚺θ2 are determined by the choice of spatial model and will typically depend on unknown parameters θ1 and θ2. In our simulations studies in Section 4.1 we consider two spatial models, one applicable to areal data and one for point referenced data. Firstly, a CAR model with 𝚺θj=σj2D−ρjW−1,j=1,2, where W is an adjacency matrix and D is a diagonal matrix with the ith diagonal value equal to sum of the ith row in W, i.e. the total number of neighbors for the ith location. In this case σj2>0 are variance parameters and ρj∈[−1,1] are correlation parameters. Secondly, a squared exponential covariance function, 𝚺θj=σj2Rψj where Rm,nψj=exp−1ψjsm−sn2 where sm and sn are the spatial locations of two observations, σj2>0 are variance parameters, and ψj>0 are correlation length parameters (see e.g. Banerjee et al., 2014).

Similar to before, we set ηqi,r=logitqi=x1i′α+v1i which now includes both the regression part and the spatial effect. There are of course many other options, e.g. only include the regression part or allow different δ parameters for the fixed and random effects. As long as ηqi,r is linear in α and v1i the data augmentation scheme works.

The Pólya-Gamma data augmentation scheme for the spatial NBB model starts with defining two latent random vectors ω1 and ω2 that now also include the random effects, i.e.

ω1i∣α,r,mi,v1i∼indPGr+mi,x1i′α+v1ii=1,…,N
andω2i∣β,α,mi,v1i,v2i∼indPGmi,x2i′β1+x1i′α+v1iδ+v2ii=1,…,N. (30)

The joint posterior distribution is as follows

pβ,α,r,v1,v2,θ1,θ2,ω1,ω2∣y,m∝pm∣α,r,v1pω1∣α,r,m,v1pv1∣θ1p(α)pθ1p(r)×py∣m,β,α,v1,v2pω2∣m,β,α,v1,v2pv2∣θ2pβpθ2. (31)

To increase the efficiency of the Gibbs sampler we sample the parameters α and v1 jointly, while similarly, β and v2 can also be sampled jointly. The full conditional distribution for α,v1 is

p(α,v1∣⋅)∝p(α,v1)∏i=1Nexp(mi−r2[x1i′α+v1i])exp(−ω1i2[x1i′α+v1i]2)×∏i=1Nexp((yi−mi2)[x2i′β1+(x1i′α+v1i)δ+v2i])×∏i=1Nexp(−ω2i2[x2i′β1+(x1i′α+v1i)δ+v2i]2)∝p(α,v1)∏i=1Nexp(−12(ω1i+ω2iδ2)(x1i′α+v1i−z1i)2)=p(α,v1)exp(−12(X1*[αv1]−Z1)′Ω1(X1*[αv1]−Z1)), (32)

where 𝛀1 is a diagonal matrix with ω1i+ω2iδ2 on the diagonal, Z1=z11,⋯,z1N′ where

z1i=mi−r2+yi−mi2δ−ω2ix2i′β1δ−ω2iδv2iω1i+ω2iδ2, (33)

and the design matrix X1*=X1,IN where X1=x11,⋯,x1N′ and I is the N×N dimensional identity matrix. Since the joint prior of α and v1 can be written as Nc1,C1 where

c1=a0andC1=A00𝚺θ1, (34)

the joint full conditional is the usual normal-normal update, i.e.

α,v1∣⋅~Nμω1,Vω1, (35)

where Vω1=X1*′𝛀1X1*+C1−1−1 and μω1=Vω1C1−1c1+X1*′𝛀1Z1.

Similarly, the full conditional distribution for β and v2 is

pβ,v2∣⋅∝pβ,v2∏i=1Nexp−ω2i2x3i′β+v2i−yi−mi/2ω2i2∝pβ,v2exp−12X2*βv2−Z2′Ω2X2*βv2−Z2, (36)

where 𝛀2 is a diagonal matrix with diagonal terms ω2i,X2*=X2,I,

X2=x21′x11′α+v11x22′x12′α+v12⋮x2N′x1N′α+v1NandZ2=y1−m1/2ω21y2−m2/2ω22⋮yN−mN/2ω2N. (37)

So the full conditional distribution of β and v2 follows:

β,v2∣⋅~Nμω2,Vω2, (38)

where Vω2=X2*′𝛀2X2*+C2−1−1,μω2=Vω2C2−1c2+X2*′𝛀2Z2 and

c2=b0C2=B00𝚺θ2. (39)

The full conditional distribution of θ1 and θ2 depends on the type of spatial model used. Here we assume that for both levels of the data model hierarchy we have either θj=σj2,ρj and 𝚺θj=σj2Rρj=σj2D−ρjW−1 for j=1,2, or θj=σj2,ψj and 𝚺θj=σj2Rψj with Rm,nψj=exp−1ψjsm−sn2. For both spatial models we can assign a conjugate prior on σj2, i.e. σj2~InverseGammaγj,ξj resulting in the full conditional distributions

σj2∣⋅~InverseGammaγj+N2,ξj+12vj′Rρj−1vj,j=1,2 (40)

for the CAR model. The full conditional distribution for the squared exponential model is the same except that Rρj is replaced by Rψj. For both spatial models the other parameters, ρj or ψj, require a Metropolis-Hastings step where for the CAR model we have

pρj∣⋅∝pρj1σj2Rρj12exp−12σj2vj′Rρj−1vj, (41)

and pρj is the chosen prior for ρj. The squared exponential model is handled similarly.

4. Simulation studies

To illustrate the performance of the proposed Gibbs sampler with the data augmentation scheme we conducted extensive simulation studies. We generated synthetic data from the NBB model both with and without a spatial effect and used the Gibbs sampler described in Section 3.2 and Section 3.3 to obtain samples from the posterior. For comparison we also fitted the same models using the Stan program (Stan Development Team, 2023b) which utilizes Hamiltonian Monte Carlo methods to obtain posterior samples. The Gibbs sampler was programmed in R (R Core Team, 2023) and we used the rstan package (Stan Development Team, 2023a) for Stan. Example codes are available on GitHub https://github.com/xxm115/NBB_sim. While other MCMC approaches and programs can also be used (e.g. Metropolis-Hastings algorithm, Jags, NIMBLE, etc.) Stan is currently the go-to software for general-purpose Bayesian inference (see for example Štrumbelj et al., 2024) and is computationally very efficient (see e.g. Beraha et al., 2021). Integrated nested Laplace approximation (INLA; Rue et al., 2009) would also be a natural competitor in general, but here the focus is on sampling methods and Stan gives a more direct comparison.

For comparison of the efficiency of the two samplers, we calculated the effective sample size (ESS) and the effective sampling rate (ESR) for the samples from both methods. The ESS provides an estimate of how many independent samples would contain the same information as the original correlated chain with the total number of iterations. It is calculated as ESS=Mλ2/σ2 where M is the sample size, λ2 is the sample variance, and σ2 is the estimate of the spectral density at frequency zero. We used the coda package in R (Plummer et al., 2015) to calculate the ESS for our output (after burn-in) and ESR was calculated as the ratio of the effective sample size to the total time (including burn-in) taken to generate the whole MCMC chain, i.e. ESR=ESS/T where T is the total run time in seconds.

4.1. Simulation study for NBB regression model

We generated 20 data sets from the following NBB model:

Mi∣α,r~NBr,qii=1,…,100
where logitqi=α0+α1x11,i+α2x12,i,
Yi∣Mi=mi,β,δ,α~Binomialmi,pi
where logitpi=β0+β1x21,i+β2x22,i+δα0+α1x11,i+α2x12,i, (42)

where the covariates x11,x12,x21, and x22 were generated from a normal distribution. The r parameter was set to 100 and the values chosen for other parameters are listed in Table 1. We found that the efficiency of both Gibbs and Stan varied depending on the specific parameter values chosen in Eq. (42). Therefore we devised eight scenarios, tweaking the values of α,β, and δ as well as the distribution used to generate covariates, to obtain all combinations of low and high values of three data characteristics. Firstly, data with low (around 200) or high (around 5700) total counts mi by varying α and x1i. Secondly, data with low (around 0.2) or high (around 0.9) category proportions pi by varying β,x2i, and δ. And thirdly, data with low or high association between total counts and category proportions, i.e. the value of δ. The specific parameter values selected are shown in Table 1.

Table 1.

Parameter settings for the NBB regression model simulation study (Section 4.1). Eight simulation scenarios were used, named in triples of “high” or “low”, referring to the resulting values of total counts mi, mutant proportion pi, and their correlation (δ). Columns two and three display the mean and variance of the normal distribution used for generating the covariates. Columns four, five, and six show the values of the regression coefficients.

Scenario x11,x12 x21,x22 α0,α1,α2 β0,β1,β2 δ
mi−pi−δ mean variance mean variance
low low low 0.5 0.5 0.5 0.5 1.0 −0.1 0.1 −0.7 0.2 0.2 0.01
low low high 0.5 2.0 0.5 0.5 0.1 −0.1 0.1 −0.1 −0.1 −0.1 0.90
high low low 5.0 0.5 5.0 0.5 1.0 −0.1 0.7 0.5 −0.1 −0.7 0.01
high low high 5.0 0.5 5.0 0.5 1.0 −0.1 0.7 −0.5 −0.1 0.2 −0.80
low high low 0.5 0.5 0.5 0.5 1.0 −0.1 0.1 0.8 0.5 0.8 0.01
low high high 0.5 2.0 1.0 0.5 0.5 −0.1 0.1 0.5 0.2 0.2 1.00
high high low 5.0 0.5 3.0 1.0 1.0 −0.1 0.7 1.0 −0.1 0.7 0.01
high high high 5.0 0.5 5.0 2.0 1.0 −0.1 0.7 0.1 −0.1 −0.1 1.00

In all cases the regression parameters (α,β, and δ) were assigned vague normal priors, N0,1002. In stead of assigning a prior for the r parameter we assumed that the correct value (100) is known. While this is of course never the case in practice, these simulation studies are focused on assessing the performance of the proposed Gibbs sampler. Posterior sampling of r will depend on the prior distribution that is chosen as well as the chosen proposal density for a Metropolis-Hastings step. For both the Gibbs sample and Stan we ran one MCMC chain of length 10,000 per dataset and discarded the first 5,000 as burn-in. Convergence was assessed via examination of traceplots and the Gelman-Rubin statistics and estimated posterior densities were compared to ensure that the two methods gave the same posterior distributions.

Fig. 1 shows boxplots of the resulting 20 ESS and ESR values for each parameter in the low-high-high scenario. Results for other scenarios were similar and are omitted for brevity. Stan generally gives larger ESS than the Gibbs sampler which is not surprising since the Stan algorithm is known to usually produce samples with lower auto-correlation than Gibbs samplers. However, the Gibbs sampler gives better (or similar) ESR than Stan, which is not surprising either since the Gibbs sampler is tailored to the NBB model and Stan uses a multi-purpose algorithm. In fact, the Gibbs sampler generally ran 3 times faster than Stan, usually between 5 and 10 seconds per chain compared to around 25 seconds for Stan. The median ESS and ESR and their range, over both the 20 data sets and all 7 parameters, for all eight scenarios are shown in Fig. 2. In all but one scenarios Stan performs better in terms of ESS but the Gibbs sample performs better in terms of ESR in all but one scenario. We also observe that the Gibbs sampler performs much better when the total count mi is low, regardless of the other two settings. Stan is less affected by this. This is perhaps not surprising since our Gibbs sampler includes samples from PGr+mi,x1i′α and PGmi,x2i′β1+x1i′αδ which are obtained by summing up r+mi and mi samples of PG1,x1i′α and PG1,x2i′β1+x1i′αδ, respectively. Therefore, when mi is large we can expect the Gibbs sampler to take longer to execute, but since Stan does not rely on additive samples it is not affected in the same way. Performance of both methods is less affected by the values of pi and δ but is generally slightly better when these values are low, but it is unclear why this is the case.

Fig. 1.

Fig. 1.

Effective sample size (ESS, on the left) and effective sampling rate (ESR, on the right) for the “low-high-high” simulation scenario. The blue boxes represent the results obtained using the STAN method, while the red boxes represent the results obtained using the proposed Gibbs algorithm. The boxplot summarizes the median and interquartile range of 20 ESS and ESR values calculated for each parameter from 20 datasets.

Fig. 2.

Fig. 2.

Median and range of effective sample size (ESS, first two graphs) and effective sampling rate (ESR, last two graphs) for all eight simulation scenarios in Section 4.1. The x-axis on each graph indicates the low or high value of total counts (m), while the red or blue colors indicate the low or high values of mutant proportion (p), and the solid or dotted line type indicate the low or high values of the correlations between the two (δ). For each scenario the median and range is across all 7 parameters and across all the 20 data sets.

4.2. Simulation study for spatial NBB model

Here we simulate 20 data sets from a NBB model with spatial effects and apply the Gibbs sampler described in Section 3.3. Assuming either a CAR model or Squared Exponential model for the spatial effects the specific model considered here is the following:

Mi∣α,r,v1~NBr,qii=1,…,100
wherelogitqi=α0+x11,iα1+x12,iα2+v1i
Yi∣Mi=mi,β,δ,α,v1,v2~Binomialmi,pi
wherelogitpi=β0+x21,iβ1+x22,iβ2+α0+x11,iα1+x12,iα2+v1iδ+v2i
andvj=vj1,vj2,⋯,vj100′~N0,𝚺θj,j=1,2, (43)

where the fixed effects (covariates) are simulated from a normal distribution, specifically x11,i~N(1,1),x12~N(2,1),x21~N(1,2) and x22~N(2,4). The regression parameters are set as α0=1,α1=−0.1,α2=0.1,β0=0.1,β1=−0.1,β2=0.1,δ=0.01. Again, we fix r at r=100 and assume it is known. For the CAR model, we assume a context of a ten by ten grid where each node has neighbors on the left, right, above and below and the relationship is described by the adjacency matrix. We set ρ1=0.8 and ρ2=0.5 to mimic a rather strong spatial correlation. For the Squared Exponential model, we randomly generated a set of locations with an average distance of 129 (range: 1.51 – 504). We set ψ1=250 and ψ2=200, i.e. about half the range of the data, to obtain a rather strong spatial correlation. For both the CAR and Squared Exponential model, we chose the values of the variance parameters such that the fixed effects and random effects have similar range (on either log or logit scales). In particular, we set σ12=2.25 and σ22=4 for the CAR model and we set σ12=0.5 and σ22=0.8 for the squared exponential model.

We assigned normal priors on regression parameters, N0,1002, and InverseGamma(0.1, 0.1) priors on σj2 and ρj or ψj. We applied the proposed algorithm derived in Section 3.3 as well as Stan and obtained converging result with one MCMC chain of size 10,000 and discarded the first 5,000 as burn-in. Fig. 3 shows boxplots of the ESS and ESR for each of the parameters for the NBB CAR model and NBB Squared Exponential Model. As before we see that the Gibbs sampler out performs Stan in terms of ESR. The difference in running times is more substantial than before, with our Gibbs sampler taking around 200 seconds per chain but Stan usually takes an average of 6 times longer. But unlike before, Gibbs gives much better ESS for the regression parameters α,β, and δ. This is partly due to the joint sampling of regression parameters and spatial effects.

Fig. 3.

Fig. 3.

Boxplots of effective sample size (ESS, left column) and effective sampling rate (ESR, right column) for NBB CAR model (first row) and NBB Squared Exponential Model (second row) simulation studies in Section 4.2. The blue boxes represent the results obtained using the STAN model, while the red boxes represent the result obtained using the proposed Gibbs algorithm. The boxplots summarizes the median and interquartile range of 20 ESS and ESR values calculated for each parameters from 20 data sets.

5. NBB model for mitochondrial DNA data

We present two applications of the NBB model and use the Pólya-Gamma data-augmentation scheme presented in Section 3 to obtain samples from the posterior distributions. In Section 5.1 we have mtDNA copy number and mutation data from acute myeloid leukemia (AML) patients at three different time points as well as some demographic and clinical data. In Section 5.2 we fit an NBB model with spatial effects to mtDNA data from a tissue sample from a cutaneous squamous cell carcinoma patient. In both cases we ran four MCMC chains and checked convergence using the Gelman-Rubin statistic (Gelman and Rubin, 1992).

5.1. AML mtDNA data

We have data (see Fig. 4) from 27 AML patients collected at three stages of the disease; diagnosis, remission, and relapse (Farrar et al., 2016). At each stage a blood sample is taken and the average copy number and mutation proportion at various base positions is estimated. In this example we chose position 2487 which lies within the ribosomal RNA gene 16S. Mutations in this gene have been associated with Rett syndrome (Cardaioli et al., 1999), myopathy (Coulbault et al., 2007), and other diseases. Other data for each patient included gender and whether the patient carries the internal tandem duplication (ITD) mutation in the FLT3 gene (FLT/ITD). The FLT3/ITD mutation is the second most common among adult AML patients (Liu et al., 2019).

Fig. 4.

Fig. 4.

Mitochondrial DNA data from 27 acute myeloid leukemia patients (Section 5.1). Top row: Boxplots of copy number (left) and mutant proportion at position 2487 (right) at the three decease stages: diagnosis, remission, and relapse. The graphs also show the original observations, connected with a line for each patient and color coded according to whether the values increase or decrease between stages. Bottom left: Boxplots of mtDNA mutant proportions separated by gender and FLT3/ITD status. Bottom right: logit of mtDNA mutant proportions versus log of copynumber, which indicates a positive relationship between the two.

Here we let Mij and Yij be the mean copy number per cell and mean number of mutations for position 2487 for patient i at stage j for i=1,…,27 and j=1,2,3. We see from Fig. 4 that copy numbers tend to increase between diagnosis and remission and then decrease again when the cancer relapses. Based on this we include a stage effect in the total count model setting Rij and Pij as indicator variables of whether an observation was taken at the remission and relapse stage, respectively. We also observe from Fig. 4 that there is a possible interaction between gender and FLT3/ITD for mutation proportion so we included both main effects and interaction effects in the category count model, where Genderi and FLTi denote indicator variables for whether patient i is male and FLT/ITD positive, respectively. The model specification is the following:

Mij∣r,α∼indNBr,qiji=1,…,27,j=1,2,3
where logitqij=α0+α1Rij+α2Pij (44)
Yij∣Mi,j,β,δ,α∼indBinomialMij,pij
where logitpij=β0+β1Genderi+β2FLTi+β3Genderi*FLTi+δlogitqij. (45)

We assigned independent N0,1002 priors for all regression parameters (α,β, and δ) and a Uniform prior over the interval (0, 1000) for r. Posterior means and 90% credible intervals for model parameters are shown in Table 2. The average copy number is significantly different (i.e. the 90% credible interval does not include zero) at the three treatment stages. In particular, the average copy number at remission stage is about exp(0.34) = 1.40 (90% CI: 1.34 – 1.48) times the copy number at diagnosis and the mean copy number at relapse is about 0.66 (90% CI: 0.63 – 0.69) times of the copy number at diagnosis. This result suggests that mtDNA copy number falls below normal levels during the disease course, as the number of healthy myeloid cells decreases as a consequence of the malignancy. Indeed, it has recently been shown that myeloid and monocytic cells have substantially higher copy number than erythroid cells (Campbell et al., 2023). When the patient responds to treatment, there is a rebound in healthy myeloid cells and the mtDNA copy number recovers. However, relapse disease is typically more severe than at diagnosis, and therefore the mtDNA copy number falls to levels even below that at diagnosis.

Table 2.

Posterior means and 90% posterior credible intervals for NBB regression model in Section 5.1 (on the left); Posterior means and 90% posterior credible intervals for NBB spatial model in Section 5.2 (on the right).

NBB regression model, Section 5.1 NBB spatial model, Section 5.2
Parameter Post. mean 90% post. CI Parameter Post. mean 90% post. CI
α0 0.06 [0.02, 0.10] α0 −0.03 [−0.10, 0.04]
α1 0.34 [0.29, 0.39] β0 −0.01 [−0.34, 0.33]
α2 −0.42 [−0.47, −0.37] δ −0.79 [−1.35, −0.26]
δ 0.15 [0.02, 0.27] r 92.13 [90.62, 93.64]
r 154.44 [151.73, 157.13] σ1 0.48 [0.44, 0.53]
β0 −1.59 [−1.67, −1.52] σ2 2.13 [1.92, 2.37]
β1 0.03 [−0.06, 0.12] ψ1 18.06 [15.76, 20.49]
β2 0.10 [−0.03, 0.22] ψ2 17.34 [15.12, 19.44]
β3 −0.15 [−0.31, 0.01]

As expected, the interaction term in the mutant count model level β3 is negative, but zero fits rather comfortably within the posterior density. However, the δ parameter is significantly different from zero indicating a significant association between copy number and mutant proportion. Here we find that when the average copy number is multiplied by a constant c the odds of mutant DNA is multiplied by c0.15, given other covariates are fixed. For example, if the mean count is doubled, the odds would be multiplied by 20.15≈1.11 (90% CI: 1.01 – 1.21). Copy number increase in response to mutant copies is likely the result of the cell attempting to compensate for the deficiencies in mutant mtDNA copies.

In order to assess potential undesired feedback between model layers (modules) we also applied a simple “plug-in” modularization approach. That is, we fit the model for total counts in (44) and the model for category counts in (45) separately, plugging-in the posterior means of logitqij in the latter case. It turned out that posterior means and 90% posterior credible intervals were almost identical to those estimated via the full model. Our interpretation of this is that no undesired feedback is present in this example.

5.2. Spatial mtDNA data

We have spatial mtDNA data from a tumor slice taken from a cutaneous squamous cell carcinoma patient, see Fig. 5. A grid of over 1900 spatial locations, called spots, was sampled and mean copy number estimated at each grid point. However, due to the way the DNA sequencing was applied, not all base positions were observed at all spots. We use data from the base position 2129 which was observed at N=238 locations. As in the previous example, this position is within the 16S ribosomal RNA gene. For a location i, let Mi and Yi be copy number per cell and the number of mutations per cell, respectively. We fit the following squared exponential spatial NBB model:

Mi∣r,α0,v1~NBr,qii=1,…,N
wherelogitqi=α0+v1i
Yi∣β0,δ,α0,v1,v2~BinomialMi,pi
wherelogitpi=β0+α0+v1iδ+v2i
andvj=vj1,vj2,⋯,vjN′~NN0,σj2Rψj
whereRm,nψj=exp−1ψjxm−xn2,j=1,2. (46)

We selected proper but vague priors for all parameters, in particular α0~N0,104,β0~N0,104,δ~N0,104,r~Uniform(0,1000),σj2~InverseGamma(shape=0.1,scale=0.1), and ψj~Gamma(shape=0.01,scale=1000),j=1,2. Note that the prior for ψj has mean 10 and variance 1002 which allows for any reasonable values in the context of the distances observed in our data.

Fig. 5.

Fig. 5.

Spatial Plot for mtDNA mean copy number (on the left) and the mutant proportions (on the right) for Position 2129. Only spots where position 2129 was observed are shown.

The posterior means with the 90% credible intervals are shown in Table 2. We see that the δ parameter is significantly different from zero and is negative. Specifically, after taking into account the spatial variations, if the average copy number is multiplied by a constant c the odds of a mutation is multiplied by c−0.79. For example, if the mean copy number is doubled the odds of mutant mtDNA is multiplied by 2−0.79≈0.58(90%CI:0.39−0.84). This result could point to this particular mutation being “gain-of-function”, i.e. conferring a growth advantage to the cell. If the mutation present at a higher proportion, the cell requires fewer mtDNA copies to proliferate.

The square root of ψ1 and ψ2 give some idea of the spatial correlation structure, specifically, the correlation length. It determines how quickly the correlation between the spatial locations decreases as the distance between them increases. The posterior mean lengths are around 18 and compared to the distance matrix which has a mean of 297.91 (range: 13.58–751.66), this is relatively small, indicating the correlation between two spatial locations decreases quickly with distance.

6. Conclusions

We have presented a hierarchical joint model for total counts and category count data and illustrated its use in a novel application. While most statistical literature treats total counts and category counts separately we have shown that there are important applications where understanding is gained from modeling them jointly, in this case the analysis of mitrochondrial DNA data. The specific way we modelled the dependence of category proportion and the mean total count can of course be further expanded and developed. Here we chose to add a linear effect to model the logit category proportion that is a particular function of the total count mean, i.e. logEMi/r where EMi is the mean total count and r is the dispersion parameter of the Negative Binomial. This lends itself to a nice interpretation of the odds of category success (p): When the mean total count is multiplied with a constant, the odds of success are multiplied with that constant to the power of the regression parameter (δ). Therefore, the sign of δ indicates whether the success probability increases (positive) or decreases (negative) with increasing total count mean and δ=0 indicates no relation. The main reason for our choice of connection between levels, however was the that it facilitated the efficient data augmentation scheme presented in Section 3.2.

We showed through simulation studies that the double Pólya-Gamma data augmentation scheme we developed for posterior sampling from the joint model has as-good or better efficiency as the Stan program. In the case of regression effects only the Stan sampler gives better effective sample sizes, which is not surprising since that is generally the strength of Stan and Gibbs samplers often produce samples with high auto-correlation. However, the double Pólya-Gamma data augmentation scheme has better effective sampling rate in all our regression scenarios. When adding spatial effects, our double Pólya-Gamma data augmentation scheme outperformes Stan both in terms of effective sample size and in terms of effective sampling rate.

Possible further developments of this work include extending the hierarchical model to include multivariate categorical counts that have the same total counts. This is particularly relevant for mtDNA data where the mutant proportion at multiple positions may be of interest.

Acknowledgements

This work was supported by the NIH grant R01LM013067.

References

  1. Albert JH, Chib S, 1993. Bayesian analysis of binary and polychotomous response data. J. Am. Stat. Assoc. 88, 669–679. [Google Scholar]
  2. Banerjee S, Carlin BP, Gelfand AE, 2014. Hierarchical Modeling and Analysis for Spatial Data. CRC Press. [Google Scholar]
  3. Barndorff-Nielsen O, Kent J, Sørensen M, 1982. Normal variance-mean mixtures and z distributions. Int. Stat. Rev. (Revue Internationale de Statistique) 50, 145–159. [Google Scholar]
  4. Bayarri MJ, Berger JO, Liu F, 2009. Modularization in Bayesian analysis, with emphasis on analysis of computer models. Bayesian Anal. 4, 119–150. 10.1214/09-BA404. [DOI] [Google Scholar]
  5. Beraha M, Falco D, Guglielmi A, 2021. Jags, nimble, stan: a detailed comparison among Bayesian mcmc software. arXiv preprint. arXiv:2107.09357. [Google Scholar]
  6. Berrett C, Calder CA, 2016. Bayesian spatial binary classification. Spat. Stat. 16, 72–102. [Google Scholar]
  7. Bradley JR, Holan SH, Wikle CK, 2018. Computationally efficient multivariate spatio-temporal models for high-dimensional count-valued data (with discussion). Bayesian Anal. 13, 253–310. [Google Scholar]
  8. Campbell P, Chapman MS, Przybilla M, et al. , 2023. Mitochondrial mutation, drift and selection during human development and ageing. PREPRINT (Version 1) available at Research Square. 10.21203/rs.3.rs-3083262/v1. [DOI] [Google Scholar]
  9. Cardaioli E, Dotti M, Hayek G, Zappella M, Federico A, 1999. Studies on mitochondrial pathogenesis of Rett syndrome: ultrastructural data from skin and muscle biopsies and mutational analysis at mtDNA nucleotides 10463 and 2835. J. Submicroscop. Cytol. Pathol. 31, 301–304. [PubMed] [Google Scholar]
  10. Chib S, Greenberg E, 1998. Analysis of multivariate probit models. Biometrika 85, 347–361. [Google Scholar]
  11. Chiou YC, Fu C, 2013. Modeling crash frequency and severity using multinomial-generalized Poisson model with error components. Accid. Anal. Prev. 50, 73–82. [DOI] [PubMed] [Google Scholar]
  12. Choi HM, Hobert JP, 2013. The Pólya-Gamma Gibbs sampler for Bayesian logistic regression is uniformly ergodic. Electron. J. Stat. 7, 2054–2064. [Google Scholar]
  13. Coulbault L, Deslandes B, Herlicoviez D, Read M, Leporrier N, Schaeffer S, Mouadil A, Lombes A, Chapon F, Jauzac P, et al. , 2007. A novel mutation 3090 G> A of the mitochondrial 16S ribosomal RNA associated with myopathy. Biochem. Biophys. Res. Commun. 362, 601–605. [DOI] [PubMed] [Google Scholar]
  14. Demirhan H, Hamurkaroglu C, 2011. On a multivariate log-gamma distribution and the use of the distribution in the Bayesian analysis. J. Stat. Plan. Inference 141, 1141–1152. [Google Scholar]
  15. Devroye L, 2009. On exact simulation algorithms for some distributions related to Jacobi theta functions. Stat. Probab. Lett. 79, 2251–2259. [Google Scholar]
  16. Farrar JE, Schuback HL, Ries RE, Wai D, Hampton OA, Trevino LR, Alonzo TA, Guidry Auvil JM, Davidsen TM, Gesuwan P, et al. , 2016. Genomic profiling of pediatric acute myeloid leukemia reveals a changing mutational landscape from disease diagnosis to relapse. Cancer Res. 76, 2197–2205. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Filograna R, Mennuni M, Alsina D, Larsson NG, 2021. Mitochondrial DNA copy number in human disease: the more the better? FEBS Lett. 595, 976–1002. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Frühwirth-Schnatter S, Frühwirth R, 2007. Auxiliary mixture sampling with applications to logistic models. Comput. Stat. Data Anal. 51, 3509–3528. [Google Scholar]
  19. Frühwirth-Schnatter S, Frühwirth R, 2010. Data augmentation and MCMC for binary and multinomial logit models. In: Statistical Modelling and Regression Structures: Festschrift in Honour of Ludwig Fahrmeir. Physica-Verlag HD, pp. 111–132. [Google Scholar]
  20. Frühwirth-Schnatter S, Frühwirth R, Held L, Rue H, 2009. Improved auxiliary mixture sampling for hierarchical models of non-Gaussian data. Stat. Comput. 19, 479–492. [Google Scholar]
  21. Fussl A, Fruehwirth-Schnatter S, Fruehwirth R, 2013. Efficient MCMC for binomial logit models. ACM Trans. Model. Comput. Simul. 23, 1–21. [Google Scholar]
  22. Gelman A, Rubin DB, 1992. Inference from iterative simulation using multiple sequences. Stat. Sci. 7, 457–472. [Google Scholar]
  23. Held L, Holmes CC, 2006. Bayesian auxiliary variable models for binary and multinomial regression. Bayesian Anal. 1 (1), 145–168. [Google Scholar]
  24. Illian JB, Martino S, Sørbye SH, Gallego-Fernández JB, Zunzunegui M, Esquivias MP, Travis JM, 2013. Fitting complex ecological point process models with integrated nested Laplace approximation. Methods Ecol. Evol. 4, 305–315. [Google Scholar]
  25. Jacob PE, Murray LM, Holmes CC, Robert CP, 2017. Better together? Statistical learning in models made of modules. arXiv preprint. arXiv:1708.08719. [Google Scholar]
  26. Kopinski PK, Singh LN, Zhang S, Lott MT, Wallace DC, 2021. Mitochondrial DNA variation and cancer. Nat. Rev. Cancer 21, 431–445. [DOI] [PubMed] [Google Scholar]
  27. Liu SB, Dong HJ, Bao XB, Qiu QC, Li HZ, Shen HJ, Ding ZX, Wang C, Chu XL, Yu JQ, et al. , 2019. Impact of FLT3-ITD length on prognosis of acute myeloid leukemia. Haematologica 104, e9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Neelon B, 2019. Bayesian zero-inflated negative binomial regression based on Pólya-Gamma mixtures. Bayesian Anal. 14, 829. [DOI] [PMC free article] [PubMed] [Google Scholar]
  29. Neelon B, Chung D, 2017. The LZIP: a Bayesian latent factor model for correlated zero-inflated counts. Biometrics 73, 185–196. [DOI] [PubMed] [Google Scholar]
  30. Picard M, Zhang J, Hancock S, Derbeneva O, Golhar R, Golik P, O’Hearn S, Levy S, Potluri P, Lvova M, et al. , 2014. Progressive increase in mtDNA 3243A> G heteroplasmy causes abrupt transcriptional reprogramming. Proc. Natl. Acad. Sci. 111, E4033–E4042. [DOI] [PMC free article] [PubMed] [Google Scholar]
  31. Pillow J, Scott J, 2012. Fully Bayesian inference for neural models with negative-binomial spiking. Adv. Neural Inf. Process. Syst. 25. [Google Scholar]
  32. Plummer M, 2014. Cuts in Bayesian graphical models. Stat. Comput. 25, 37–43. https://api.semanticscholar.org/CorpusID:255067554. [Google Scholar]
  33. Plummer M, Best N, Cowles K, Vines K, 2015. Package ‘coda’. http://cran.r-project.org/web/packages/coda/coda.pdf. (Accessed 25 January 2015).
  34. Polson NG, Scott JG, Windle J, 2013. Bayesian inference for logistic models using Pólya-Gamma latent variables. J. Am. Stat. Assoc. 108, 1339–1349. [Google Scholar]
  35. Polson NG, Scott JG, Windle J, Windle MJ, 2019. Package ‘BayesLogit’.
  36. Qu K, Bradley JR, 2023. Bayesian models for spatial count data with informative finite populations with application to the American community survey. J. Appl. Stat. 50, 2701–2716. [DOI] [PMC free article] [PubMed] [Google Scholar]
  37. R Core Team, 2023. R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, Vienna, Austria. https://www.R-project.org/. [Google Scholar]
  38. Rue H, Martino S, Chopin N, 2009. Approximate Bayesian inference for latent Gaussian models by using integrated nested Laplace approximations. J. R. Stat. Soc., Ser. B, Stat. Methodol. 71, 319–392. [Google Scholar]
  39. Schmidt AM, Freitas LP, Cruz OG, Carvalho MS, 2022. A Poisson-multinomial spatial model for simultaneous outbreaks with application to arboviral diseases. Stat. Methods Med. Res. 31, 1590–1602. [DOI] [PMC free article] [PubMed] [Google Scholar]
  40. Stan Development Team, 2023a. RStan: the R interface to Stan. https://mc-stan.org/. r package version 2.21.8.
  41. Stan Development Team, 2023b. Stan modeling language users guide and reference manual, version 2.32. https://mc-stan.org/.
  42. Štrumbelj E, Bouchard-Côté A, Corander J, Gelman A, Rue H, Murray L, Pesonen H, Plummer M, Vehtari A, 2024. Past, present, and future of software for Bayesian inference. Stat. Sci. 39. 10.1214/23-STS907. [DOI] [Google Scholar]
  43. Terza JV, Wilson PW, 1990. Analyzing frequencies of several types of events: a mixed multinomial-Poisson approach. Rev. Econ. Stat, 108–115. [Google Scholar]
  44. van Dyk DA, Meng XL, 2001. The art of data augmentation. J. Comput. Graph. Stat. 10, 1–50. [Google Scholar]
  45. Wang X, Roy V, 2018. Geometric ergodicity of Pólya-Gamma Gibbs sampler for Bayesian logistic regression with a flat prior. Electron. J. Stat. 12, 3295–3311. [Google Scholar]
  46. Zhang Q, Yi GY, 2023. Zero-inflated Poisson models with measurement error in the response. Biometrics 79, 1089–1102. [DOI] [PubMed] [Google Scholar]
  47. Zhou M, Li L, Dunson D, Carin L, 2012. Lognormal and gamma mixed negative binomial regression. In: Proceedings of the International Conference on Machine Learning. International Conference on Machine Learning. NIH Public Access, p. 1343. [PMC free article] [PubMed] [Google Scholar]

RESOURCES