Beta processes, stick-breaking, and power laws

Tamara Broderick, Michael I. Jordan, Jim Pitman

Introduction

Large data sets are often heterogeneous, arising as amalgams from underlying sub-populations. The analysis of large data sets thus often involves some form of stratification in which groupings are identified that are more homogeneous than the original data. While this can sometimes be done on the basis of explicit covariates, it is also commonly the case that the groupings are captured via discrete latent variables that are to be inferred as part of the analysis. Within a Bayesian framework, there are two widely employed modeling motifs for problems of this kind. The first is the Dirichlet-multinomial motif, which is based on the assumption that there are KK “clusters” that are assumed to be mutually exclusive and exhaustive, such that allocations of data to clusters can be modeled via a multinomial random variable whose parameter vector is drawn from a Dirichlet distribution. A second motif is the beta-Bernoulli motif, where a collection of KK binary “features” are used to describe the data, and where each feature is modeled as a Bernoulli random variable whose parameter is obtained from a beta distibution. The latter motif can be converted to the former in principle—we can view particular patterns of ones and zeros as defining a cluster, thus obtaining M=2KM=2^{K} clusters in total. But in practice models based on the Dirichlet-multinomial motif typically require O(M)O(M) additional parameters in the likelihood, whereas those based on the beta-Bernoulli motif typically require only O(K)O(K) additional parameters. Thus, if the combinatorial structure encoded by the binary features captures real structure in the data, then the beta-Bernoulli motif can make more efficient usage of its parameters.

The Dirichlet-multinomial motif can be extended to a stochastic process known as the Dirichlet process. A draw from a Dirichlet process is a random probability measure that can be represented as follows (McCloskey, 1965; Patil and Taillie, 1977; Ferguson, 1973; Sethuraman, 1994):

where δψi\delta_{\psi_{i}} represents an atomic measure at location ψi\psi_{i}, where both the {πi}\{\pi_{i}\} and the {ψi}\{\psi_{i}\} are random, and where the {πi}\{\pi_{i}\} are nonnegative and sum to one (with probability one). Conditioning on GG and drawing NN values independently from GG yields a collection of KK distinct values, where K≤NK\leq N is random and grows (in expectation) at rate O(log⁡N)O(\log N). Treating these distinct values as indices of clusters, we obtain a model in which the number of clusters is random and subject to posterior inference.

A great deal is known about the Dirichlet process—there are direct connections between properties of GG as a random measure (e.g., it can be obtained from a Poisson point process), properties of the sequence of values {πi}\{\pi_{i}\} (they can be obtained from a “stick-breaking process”), and properties of the collection of distinct values obtained by sampling from GG (they are characterized by a stochastic process known as the Chinese restaurant process). These connections have helped to place the Dirichlet process at the center of Bayesian nonparametrics, driving the development of a wide variety of inference algorithms for models based on Dirichlet process priors and suggesting a range of generalizations (e.g. MacEachern, 1999; Ishwaran and James, 2001; Walker, 2007; Kalli et al., 2009).

It is also possible to extend the beta-Bernoulli motif to a Bayesian nonparametric framework, and there is a growing literature on this topic. The underlying stochastic process is the beta process, which is an instance of a family of random measures known as completely random measures (Kingman, 1967). The beta process was first studied in the context of survival analysis by Hjort (1990), where the focus is on modeling hazard functions via the random cumulative distribution function obtained by integrating the beta process. Thibaux and Jordan (2007) focused instead on the beta process realization itself, which can be represented as

where both the qiq_{i} and the ψi\psi_{i} are random and where the qiq_{i} are contained in the interval (0,1)(0,1). This random measure can be viewed as furnishing an infinite collection of coins, which, when tossed repeatedly, yield a binary featural description of a set of entities in which the number of features with non-zero values is random. Thus, the resulting beta-Bernoulli process can be viewed as an infinite-dimensional version of the beta-Bernoulli motif. Indeed, Thibaux and Jordan (2007) showed that by integrating out the random qiq_{i} and ψi\psi_{i} one obtains—by analogy to the derivation of the Chinese restaurant process from the Dirichlet process—a combinatorial stochastic process known as the Indian buffet process, previously studied by Griffiths and Ghahramani (2006), who derived it via a limiting process involving random binary matrices obtained by sampling finite collections of beta-Bernoulli variables.

Stick-breaking representations of the Dirichlet process have been particularly important both for algorithmic development and for exploring generalizations of the Dirichlet process. These representations yield explicit recursive formulas for obtaining the weights {πi}\{\pi_{i}\} in Eq. (1). In the case of the beta process, explicit non-recursive representations can be obtained for the weights {qi}\{q_{i}\}, based on size-biased sampling (Thibaux and Jordan, 2007) and inverse Lévy measure (Wolpert and Ickstadt, 2004; Teh et al., 2007). Recent work has also yielded recursive constructions that are more closely related to the stick-breaking representation of the Dirichlet process (Teh et al., 2007; Paisley et al., 2010).

Stick-breaking representations of the Dirichlet process permit ready generalizations to stochastic processes that yield power-law behavior (which the Dirichlet process does not), notably the Pitman-Yor process (Ishwaran and James, 2001; Pitman, 2006). Power-law generalizations of the beta process have also been studied (Teh and Görür, 2009) and stick-breaking-like representations derived. These latter representations are, however, based on the non-recursive sized-biased sampling and inverse-Lévy methods rather than the recursive representations of Teh et al. (2007) and Paisley et al. (2010).

Teh et al. (2007) and Paisley et al. (2010) derived their stick-breaking representations of the beta process as limiting processes, making use of the derivation of the Indian buffet process by Griffiths and Ghahramani (2006) as a limit of finite-dimensional random matrices. In the current paper we show how to derive stick-breaking for the beta process directly from the underlying random measure. This approach not only has the advantage of conceptual clarity (our derivation is elementary), but it also permits a unified perspective on various generalizations of the beta process that yield power-law behavior.A similar measure-theoretic derivation has been presented recently by Paisley et al. (2011), who focus on applications to truncations of the beta process. We show in particular that it yields a power-law generalization of the stick-breaking representation of Paisley et al. (2010).

To illustrate our results in the context of a concrete application, we study a discrete factor analysis model previously considered by Griffiths and Ghahramani (2006) and Paisley et al. (2010). The model is of the form

The remainder of the paper is organized as follows. We introduce the beta process, and its conjugate measure the Bernoulli process, in Section 2. In order to consider stick-breaking and power law behavior in the beta-Bernoulli framework, we first review stick-breaking for the Dirichlet process in Section 3 and power laws in clustering models in Section 4.1. We consider potential power laws that might exist in featural models in Section 4.2. Our main theoretical results come in the following two sections. First, in Section 5, we provide a proof that the stick-breaking representation of Paisley et al. (2010), expanded to include a third parameter, holds for a three-parameter extension of the beta process. Our proof takes a measure-theoretic approach based on a Poisson process. We then make use of the Poisson process framework to establish asymptotic power laws, with exact constants, for the three-parameter beta process in Section 6.1. We also show, in Section 6.2, that there are aspects of the beta-Bernoulli framework that cannot exhibit a power law. We illustrate the asymptotic power laws on a simulated data set in Section 7. We present experimental results in Section 8, and we present an MCMC algorithm for posterior inference in Appendix A.

The beta process and the Bernoulli process

The beta process and the Bernoulli process are instances of the general family of random measures known as completely random measures (Kingman, 1967). A completely random measure HH on a probability space (Ψ,S)(\Psi,{\cal S}) is a random measure such that, for any disjoint measurable sets A1,…,An∈SA_{1},\ldots,A_{n}\in{\cal S}, the random variables H(A1),…,H(An)H(A_{1}),\ldots,H(A_{n}) are independent.

where δψi\delta_{\psi_{i}} denotes an atom at ψi\psi_{i}. This discrete random measure is such that for any measurable set T∈ST\in{\cal S},

That BB is completely random follows from the Poisson point process construction.

In addition to the representation obtained from a Poisson process, completely random measures may include a deterministic measure and a set of atoms at fixed locations. The component of the completely random measure generated from a Poisson point process as described above is called the ordinary component. As shown by Kingman (1967), completely random measures are essentially characterized by this representation. An example is shown in Figure 1.

The beta process, denoted B∼BP(θ,B0)B\sim\textrm{BP}(\theta,B_{0}), is an example of a completely random measure. As long as the base measure B0B_{0} is continuous, which is our assumption here, BB has only an ordinary component with rate measure

where θ\theta is a positive function on Ψ\Psi. The function θ\theta is called the concentration function (Hjort, 1990). In the remainder we follow Thibaux and Jordan (2007) in taking θ\theta to be a real-valued constant and refer to it as the concentration parameter. We assume B0B_{0} is nonnegative and fixed. The total mass of B0B_{0}, γ:=B0(Ψ)\gamma:=B_{0}(\Psi), is called the mass parameter. We assume γ\gamma is strictly positive and finite. The density in Eq. (4), with the choice of B0B_{0} uniform over $$, is illustrated in Figure 1.

The beta process can be viewed as providing an infinite collection of coin-tossing probabilities. Tossing these coins corresponds to a draw from the Bernoulli process, yielding an infinite binary vector that we will treat as a latent feature vector.

More formally, a Bernoulli process Y∼BeP(B)Y\sim BeP(B) is a completely random measure with potentially both fixed atomic and ordinary components. In defining the Bernoulli process we consider only the case in which BB is discrete, i.e., of the form in Eq. (3), though not necessarily a beta process draw or even random for the moment. Then YY has only a fixed atomic component and has the form

Now reorder the {ψi}\{\psi_{i}\} so that the first KK are exactly those locations where some Bernoulli process in {Yn}n=1N\{Y_{n}\}_{n=1}^{N} has a non-zero point mass. We can form a matrix Z∈{0,1}N×KZ\in\{0,1\}^{N\times K} as a function of the {Yn}n=1N\{Y_{n}\}_{n=1}^{N} by letting the (n,k)(n,k) entry equal one when YnY_{n} has a non-zero point mass at ψk\psi_{k} and zero otherwise. If we wish to think of ZZ as having an infinite number of columns, the remaining columns represent the point masses of the {Yn}n=1N\{Y_{n}\}_{n=1}^{N} at {ψk}k>K\{\psi_{k}\}_{k>K}, which we know to be zero by construction. We refer to the overall procedure of drawing ZZ according to, first, a beta process and then repeated Bernoulli process draws in this way as a beta-Bernoulli process, and we write Z∼BP-BeP(N,γ,θ)Z\sim\textrm{BP-BeP}(N,\gamma,\theta). Note that we have implicitly integrated out the {ψk}\{\psi_{k}\}, and the distribution of the matrix ZZ depends on B0B_{0} only through its total mass, γ\gamma. As shown by Thibaux and Jordan (2007), this process yields the same distribution on row-exchangeable, infinite-column matrices as the Indian buffet process (Griffiths and Ghahramani, 2006), which describes a stochastic process directly on (equivalence classes of) binary matrices. That is, the Indian buffet process is obtained as an exchangeable distribution on binary matrices when the underlying beta process measure is integrated out. This result is analogous to the derivation of the Chinese restaurant process as the exchangeable distribution on partitions obtained when the underlying Dirichlet process is integrated out. The beta-Bernoulli process is illustrated in Figure 2.

Stick-breaking for the Dirichlet process

The stick-breaking representation of the Dirichlet process (McCloskey, 1965; Patil and Taillie, 1977; Sethuraman, 1994) provides a simple recursive procedure for obtaining the weights {πi}\{\pi_{i}\} in Eq. (1). This procedure provides an explicit representation of a draw GG from the Dirichlet process, one which can be usefully instantiated and updated in posterior inference algorithms (Ishwaran and James, 2001; Blei and Jordan, 2006). We begin this section by reviewing this stick-breaking construction as well as some of the extensions to this construction that yield power-law behavior. We then turn to a consideration of stick-breaking and power laws in the setting of the beta process.

Stick-breaking is the process of recursively breaking off random fractions of the unit interval. In particular, let V1,V2,…V_{1},V_{2},\ldots be some countable sequence of random variables, each with range $.Each. EachV_{i}representsthefractionoftheremainingsticktobreakoffatsteprepresents the fraction of the remaining stick to break off at stepi.Thus,thefirststicklengthgeneratedbythestick−breakingprocessis. Thus, the first stick length generated by the stick-breaking process isV_{1}.Atthispoint,afragmentoflength. At this point, a fragment of length1-V_{1}oftheoriginalstickremains.Breakingoffof the original stick remains. Breaking offV_{2}fractionoftheremainingstickyieldsasecondstickfragmentoffraction of the remaining stick yields a second stick fragment ofV_{2}(1-V_{1}).Thisprocessiteratessuchthatthesticklengthbrokenoffatstep. This process iterates such that the stick length broken off at stepiisisV_{i}\prod_{j

The Dirichlet process arises from the special case in which the ViV_{i} are independent draws from the Beta(1,θ)\textrm{Beta}(1,\theta) distribution (McCloskey, 1965; Patil and Taillie, 1977; Sethuraman, 1994). Thus we have the following representation of a draw G∼DP(θ,G0)G\sim\textrm{DP}(\theta,G_{0}):

where G0G_{0} is referred to as the base measure and θ\theta is referred to as the concentration parameter.

Power law behavior

Consider the process of sampling a random measure GG from a Dirichlet process and subsequently drawing independently NN times from GG. The number of unique atoms sampled according to this process will grow as a function of NN. The growth associated with the Dirichlet process is relatively slow, however, and when the Dirichlet process is used as a prior in a clustering model one does not obtain the heavy-tailed behavior commonly referred to as a “power law.” In this section we first provide a brief exposition of the different kinds of power law that we might wish to obtain in a clustering model and discuss how these laws can be obtained via an extension of the stick-breaking representation. We then discuss analogous laws for featural models.

First, we establish some notation. Given a number NN of draws from a discrete random probability measure GG (where GG is not necessarily a draw from the Dirichlet process), let (N1,N2,…)(N_{1},N_{2},\ldots) denote the sequence of counts associated with the unique values obtained among the NN draws, where we view these unique values as “clusters.” Let

That is, KN,jK_{N,j} is the number of clusters that are drawn exactly jj times, and KNK_{N} is the total number of clusters.

There are two types of power-law behavior that a clustering model might exhibit. First, there is the type of power law behavior reminiscent of Heaps’ law (Heaps, 1978; Gnedin et al., 2007):

for some constants c>0,a∈(0,1)c>0,a\in(0,1). Here, ∼\sim means that the limit of the ratio of the left-hand and right-hand side, when they are both real-valued and non-random, is one as the number of data points NN grows large. We denote a power law in the form of Eq. (9) as Type I. Second, there is the type of power law behavior reminiscent of Zipf’s law (Zipf, 1949; Gnedin et al., 2007):

again for some constants c>0,a∈(0,1)c>0,a\in(0,1). We refer to the power law in Eq. (10) as Type II.

Sometimes in the case of Eq. (10), we are interested in the behavior in jj; therefore we recall j!=Γ(j+1)j!=\Gamma(j+1) and note the following fact about the Γ\Gamma-function ratio in Eq. (10) (cf. Tricomi and Erdélyi, 1951):

Again, we see behavior in the form of a power law at work.

Power-law behavior of Types I and II (and equivalent formulations; see Gnedin et al., 2007) has been observed in a variety of real-world clustering problems including, but not limited to: the number of species per plant genus, the in-degree or out-degree of a graph constructed from hyperlinks on the Internet, the number of people in cities, the number of words in documents, the number of papers published by scientists, and the amount each person earns in income (Mitzenmacher, 2004; Goldwater et al., 2006). Bayesians modeling these situations will prefer a prior that reflects this distributional attribute.

While the Dirichlet process exhibits neither type of power-law behavior, the Pitman-Yor process yields both kinds of power law (Pitman and Yor, 1997; Goldwater et al., 2006) though we note that in this case cc is a random variable (still with no dependence on NN or jj). The Pitman-Yor process, denoted G∼PY(θ,α,G0)G\sim\textrm{PY}(\theta,\alpha,G_{0}), is defined via the following stick-breaking representation:

where α\alpha is known as a discount parameter. The case α=0\alpha=0 returns the Dirichlet process (cf. Eq. (6)).

Note that in both the Dirichlet process and Pitman-Yor process, the weights {Vi∏j=1i−1(1−Vj)}\{V_{i}\prod_{j=1}^{i-1}(1-V_{j})\} are the weights of the process in size-biased order (Pitman, 2006). In the Pitman-Yor case, the {Vi}\{V_{i}\} are no longer identically distributed.

2 Power laws in featural models

The beta-Bernoulli process provides a specific kind of feature-based representation of entities. In this section we study general featural models and consider the power laws that might arise for such models.

In the clustering framework, we considered NN draws from a process that put exactly one mass of size one on some value in Ψ\Psi and mass zero elsewhere. In the featural framework we consider NN draws from a process that places some non-negative integer number of masses, each of size one, on an almost surely finite set of values in Ψ\Psi and mass zero elsewhere. As NiN_{i} was the sum of masses at a point labeled ψi∈Ψ\psi_{i}\in\Psi in the clustering framework, so do we now let NiN_{i} be the sum of masses at a point labeled ψi∈Ψ\psi_{i}\in\Psi. We use the same notation as in Section 4.1, but now we note that the counts NiN_{i} no longer sum to NN in general.

In the case of featural models, we can still talk about Type I and II power laws, both of which have the same interpretation as in the case of clustering models. In the featural case, however, it is also possible to consider a third type of power law. If we let knk_{n} denote the number of features present in the nnth draw, we say that knk_{n} shows power law behavior if

for positive constants cc and aa. We call this last type of power law Type III.

Stick-breaking for the beta process

The weights {qi}\{q_{i}\} for the beta process can be derived by a variety of procedures, including size-biased sampling (Thibaux and Jordan, 2007) and inverse Lévy measure (Wolpert and Ickstadt, 2004; Teh et al., 2007). The procedures that are closest in spirit to the stick-breaking representation for the Dirichlet process are those due to Paisley et al. (2010) and Teh et al. (2007). Our point of departure is the former, which has the following form:

The generalization of the one-parameter Dirichlet process to the two-parameter Pitman-Yor process suggests that we might consider generalizing the stick-breaking representation of the beta process in Eq. (13) as follows:

In Section 6 we will show that introducing the additional parameter α\alpha indeed yields Type I and II power law behavior (but not Type III).

In the remainder of this section we present a proof that these stick-breaking representations arise from the beta process. In contradistinction to the proof of Eq. (13) by Paisley et al. (2010), which used a limiting process defined on sequences of finite binary matrices, our approach makes a direct connection to the Poisson process characterization of the beta process. Our proof has several virtues: (1) it relies on no asymptotic arguments and instead comes entirely from the Poisson process representation; (2) it is, as a result, simpler and shorter; and (3) it demonstrates clearly the ease of incorporating a third parameter analogous to the discount parameter of the Pitman-Yor process and thereby provides a strong motivation for the extended stick-breaking representation in Eq. (14).

Aiming toward the general stick-breaking representation in Eq. (14), we begin by defining a three-parameter generalization of the beta process.See also Teh and Görür (2009) or Kim and Lee (2001), with θ(t)≡1−α,β(t)≡θ+α\theta(t)\equiv 1-\alpha,\beta(t)\equiv\theta+\alpha, where the left-hand sides are in the notation of Kim and Lee (2001). We say that B∼BP(θ,α,B0)B\sim\textrm{BP}(\theta,\alpha,B_{0}), where we call α\alpha a discount parameter, if, for ψ∈Ψ,u∈)\psi\in\Psi,u\in), we have

It is straightforward to show that this three-parameter density has similar properties to that of the two-parameter beta process. For instance, choosing α∈(0,1)\alpha\in(0,1) and θ>−α\theta>-\alpha is necessary for the beta process to have finite total mass almost surely; in this case,

We now turn to the main result of this section.

BB can be represented according to the process described in Eq. (14) if and only if B∼BP(θ,α,B0)B\sim\textrm{BP}(\theta,\alpha,B_{0}).

are by construction independent and identically distributed conditioned on C1C_{1}. Since C1C_{1} is Poisson-distributed, P1P_{1} is a Poisson point process. The same logic gives that in general, for

As the countable union of Poisson processes with finite rate measures, PP is itself a Poisson point process.

Notice that we can write BB as the completely random measure B=∑(ψ,U)∈PUδψB=\sum_{(\psi,U)\in P}U\delta_{\psi}. Also, for any B′∼BP(θ,d,B0)B^{\prime}\sim\textrm{BP}(\theta,d,B_{0}), we can write B′=∑(ψ′,U′)∈ΠU′δψ′B^{\prime}=\sum_{(\psi^{\prime},U^{\prime})\in\Pi}U^{\prime}\delta_{\psi^{\prime}}, where Π\Pi is Poisson point process with rate measure νBP=B0×μBP\nu_{\textrm{BP}}=B_{0}\times\mu_{\textrm{BP}}, and μBP\mu_{\textrm{BP}} is a σ\sigma-finite measure with density

Therefore, to show that BB has the same distribution as B′B^{\prime}, it is enough to show that PP and Π\Pi have the same rate measures.

To that end, let ν\nu denote the rate measure of PP:

where the last line follows by monotone convergence. Each term in the outer sum can be further decomposed as

where the last equality follows since the choice of {Vi}\{V_{i}\} gives Vi∏l=1i−1(1−Vl)=dVi1(i)∏l=1i−1(1−Vi1(l))V_{i}\prod_{l=1}^{i-1}(1-V_{l})\stackrel{{\scriptstyle d}}{{=}}V_{i1}^{(i)}\prod_{l=1}^{i-1}(1-V_{i1}^{(l)}).

Substituting Eq. (19) back into Eq. (18), canceling γ\gamma factors, and applying monotone convergence again yields

We note that both of the measures ν\nu and νBP\nu_{\textrm{BP}} factorize:

so it is enough to show that μ=μBP\mu=\mu_{\textrm{BP}} for the measure μ\mu defined by

At this point and later in proving Proposition 3, we will make use of part of Campbell’s theorem, which we copy here from Kingman (1993) for completeness.

where the final equality follows by Campbell’s theorem with the choice f(u)=ug(u)f(u)=ug(u). Since this result holds for all bounded, measurable gg, we have that

Power law derivations

By linking the three-parameter stick-breaking representation to the power-law beta process in Eq. (15), we can use the results of the following section to conclude that the feature assignments in the three-parameter model follow both Type I and Type II power laws and that they do not follow a Type III power law (Section 4.2). We note that Teh and Görür (2009) found big-O behavior for Types I and II in the three-parameter Beta and a Poisson distribution for the Type III distribution. We can strengthen these results to obtain exact asymptotic behavior with constants in the first two cases and also conclude that Type III power laws can never hold in the featural framework whenever the sum of the feature probabilities is almost surely finite, an assumption that would appear to be a necessary component of any physically realistic model.

Our subsequent derivation expands upon the work of Gnedin et al. (2007). In that paper, the main thrust of the argument applies to the case in which the feature probabilities are fixed rather than random. In what follows, we obtain power laws of Type I and II in the case in which the feature probabilities are random, in particular when the probabilities are generated from a Poisson process. We will see that this last assumption becomes convenient in the course of the proof. Finally, we apply our results to the specific example of the beta-Bernoulli process.

Recall that we defined KNK_{N}, the number of represented clusters in the first NN data points, and KN,jK_{N,j}, the number of clusters represented jj times in the first NN data points, in Eqs. (8) and (7), respectively. In Section 4.2, we noted that same definitions in Eqs. (8) and (7) hold for featural models if we now let NiN_{i} denote the number of data points at time NN in which feature ii is represented. In terms of the Bernoulli process, NiN_{i} would be the number of Bernoulli process draws, out of NN, where the iith atom has unit (i.e., nonzero) weight. It need not be the case that the NiN_{i} sum to NN.

Working directly to find power laws in KNK_{N} and KN,jK_{N,j} as NN increases is challenging in part due to NN being an integer. A standard technique to surmount this difficulty is called Poissonization. In Poissonizing KNK_{N} and KN,jK_{N,j}, we consider new functions K(t)K(t) and Kj(t)K_{j}(t) where the argument tt is continuous, in contrast to the integer argument NN. We will define K(t)K(t) and Kj(t)K_{j}(t) such that K(N)K(N) and Kj(N)K_{j}(N) have the same asymptotic behavior as KNK_{N} and KN,jK_{N,j}, respectively.

In particular, our derivation of the asymptotic behavior of KNK_{N} and KN,jK_{N,j} will consist of three parts and will involve working extensively with the mean feature counts

with N∈{1,2,…}N\in\{1,2,\ldots\} and the Poissonized mean feature counts

with t>0t>0. First, we will take advantage of Poissonization to find power laws in Φ(t)\Phi(t) and Φj(t)\Phi_{j}(t) as t→∞t\rightarrow\infty (Proposition 3). Then, in order to relate these results back to the original process, we will show that ΦN\Phi_{N} and Φ(N)\Phi(N) have the same asymptotic behavior and also that ΦN,j\Phi_{N,j} and Φj(N)\Phi_{j}(N) have the same asymptotic behavior (Lemma 5). Finally, to obtain results for the random process values KNK_{N} and KN,jK_{N,j}, we will conclude by showing that KNK_{N} almost surely has the same asymptotic behavior as ΦN\Phi_{N} and that ∑k<jKN,k\sum_{k<j}K_{N,k} almost surely has the same asymptotic behavior as ∑k<jΦN,k\sum_{k<j}\Phi_{N,k} (Proposition 6).

To obtain power laws for the Poissonized process, we must begin by defining K(t)K(t) and Kj(t)K_{j}(t). To do so, we will construct Poisson processes on the positive half-line, one for each feature. K(t)K(t) will be the number of such Poisson processes with points in the interval [0,t][0,t]; similarly, Kj(t)K_{j}(t) will be the number of Poisson processes with jj points in the interval [0,t][0,t]. This construction is illustrated in Figure 4. It remains to specify the rates of these Poisson processes.

Let (q1,q2,…)(q_{1},q_{2},\ldots) be a countably infinite vector of feature probabilities. We begin by putting minimal restrictions on the qiq_{i}. We assume that they are strictly positive, decreasing real numbers. They need not necessarily sum to one, and they may be random. Indeed, we will eventually consider the case where the qiq_{i} are the (random) atom weights of a beta process, and then we will have ∑iqi≠1\sum_{i}q_{i}\neq 1 with probability one.

Let Πi\Pi_{i} be a standard Poisson process on the positive real line generated with rate qiq_{i} (see, e.g., the top five lines in Figure 4). Then Π:=⋃iΠi\Pi:=\bigcup_{i}\Pi_{i} is a standard Poisson process on the positive real line with rate ∑iqi\sum_{i}q_{i} (see, e.g., the lowermost line in Figure 4), where we henceforth assume ∑iqi<∞\sum_{i}q_{i}<\infty a.s.

Finally, as mentioned above, we define K(t)K(t) to be the number of Poisson processes Πi\Pi_{i} with any points in [0,t][0,t]:

And we define Kj(t)K_{j}(t) to be the number of Poisson processes Πi\Pi_{i} with exactly jj points in [0,t][0,t]:

In addition to Poissonizing KNK_{N} and KN,jK_{N,j} to define K(t)K(t) and Kj(t)K_{j}(t), we will also find it convenient to assume that the {qi}\{q_{i}\} themselves are derived from a Poisson process with rate measure ν\nu. We note that Poissonizing from a discrete index NN to a continuous time index tt is an approximation and separate from our assumption that the {qi}\{q_{i}\} are generated from a Poisson process though both are fundamentally tied to the ease of working with Poisson processes.

We are now able to write out the mean feature counts in both the Poissonized and original cases. First, the Poissonized definitions of Φ\Phi and KK allow us to write

With a similar approach for Φj(t)\Phi_{j}(t), we find

With the assumption that the {qi}\{q_{i}\} are drawn from a Poisson process with measure measure ν\nu, we can apply Campbell’s theorem (Theorem 2) to both the original and Poissonized versions of the process to derive the final equality in each of the following lines

Now we establish our first result, which gives a power law in Φ(t)\Phi(t) and Φj(t)\Phi_{j}(t) when the Poisson process rate measure ν\nu has corresponding power law properties.

Asymptotic behavior of the integral of ν\nu of the following form

where ll is a regularly varying function and α∈(0,1)\alpha\in(0,1) implies

The key to this result is in the repeated use of Abelian or Tauberian theorems. Let AA be a map A:F→GA:F\rightarrow G from one function space to another: e.g., an integral or a Laplace transform. For f∈Ff\in F, an Abelian theorem gives us the asymptotic behavior of A(f)A(f) from the asymptotic behavior of ff, and a Tauberian theorem gives us the asymptotic behavior of ff from that of A(f)A(f).

so the stated asymptotic behavior in ν1\nu_{1} yields νˉ(x)∼l(1/x)x−α(x→0)\bar{\nu}(x)\sim l(1/x)x^{-\alpha}(x\rightarrow 0) by a Tauberian theorem (Feller, 1966; Gnedin et al., 2007) where the map AA is an integral.

Second, another integration by parts yields

The desired asymptotic behavior in Φ\Phi follows from the asymptotic behavior in νˉ\bar{\nu} and an Abelian theorem (Feller, 1966; Gnedin et al., 2007) where the map AA is a Laplace transform. The result for Φj(t)\Phi_{j}(t) follows from a similar argument when we note that repeated integration by parts of Eq. (25) also yields a Laplace transform. ∎

The importance of assuming that the qiq_{i} are distributed according to a Poisson process is that this assumption allowed us to write Φ\Phi as an integral and thereby make use of classic Abelian and Tauberian theorems. The importance of Poissonizing the processes KjK_{j} and KN,jK_{N,j} is that we can write their means as in Eqs. (23) and (25), which are—up to integration by parts—in the form of Laplace transforms.

Proposition 3 is the most significant link in the chain of results needed to show asymptotic behavior of the feature counts KNK_{N} and KN,jK_{N,j} in that it relates power laws in the known feature probability rate measure ν\nu to power laws in the mean behavior of the Poissonized version of these processes. It remains to show this mean behavior translates back to KNK_{N} and KN,jK_{N,j}, first by relating the means of the original and Poissonized processes and then by relating the means to the almost sure behavior of the counts. The next two lemmas address the former concern. Together they establish that the mean feature counts ΦN\Phi_{N} and ΦN,j\Phi_{N,j} have the same asymptotic behavior as the corresponding Poissonized mean feature counts Φ(N)\Phi(N) and Φj(N)\Phi_{j}(N).

Let ν\nu be σ\sigma-finite with ∫0∞ν(du)=∞\int_{0}^{\infty}\nu(du)=\infty and ∫0∞u  ν(du)<∞\int_{0}^{\infty}u\;\nu(du)<\infty. Then the number of represented features has unbounded growth almost surely. The expected number of represented features has unbounded growth, and the expected number of features has sublinear growth. That is,

As in Gnedin et al. (2007), the first statement follows from the fact that qq is countably infinite and each qiq_{i} is strictly positive. The second statement follows from monotone convergence. The final statement is a consequence of ∑iqi<∞\sum_{i}q_{i}<\infty a.s. ∎

Suppose the {qi}\{q_{i}\} are generated according to a Poisson process with rate measure as in Lemma 4. Then, for N→∞N\rightarrow\infty,

The proof is the same as that of Lemma 1 of Gnedin et al. (2007). Establishing the inequalities results from algebraic manipulations. The convergence to zero is a consequence of Lemma 4. ∎

Finally, before considering the specific case of the three-parameter beta process, we wish to show that power laws in the means ΦN\Phi_{N} and ΦN,j\Phi_{N,j} extend to almost sure power laws in the number of represented features.

Suppose the {qi}\{q_{i}\} are generated from a Poisson process with rate measure as in Lemma 4. For N→∞N\rightarrow\infty,

We wish to show that KN/ΦN→a.s.1K_{N}/\Phi_{N}\stackrel{{\scriptstyle a.s.}}{{\rightarrow}}1 as N→∞N\rightarrow\infty. By Borel-Cantelli, it is enough to show that, for any ϵ>0\epsilon>0,

The note after Theorem 4 in Freedman (1973) gives that

for some constant cc and sufficiently large NN by Lemmas 4 and 5. The last expression is summable in NN, and Borel-Cantelli holds.

The proof that ∑k<jKN,k∼a.s.∑k<jΦN,j\quad\sum_{k<j}K_{N,k}\stackrel{{\scriptstyle a.s.}}{{\sim}}\sum_{k<j}\Phi_{N,j} follows the same argument. ∎

It remains to show that we obtain Type I and II power laws in our special case of the three-parameter beta process, which implies a particular rate measure ν\nu in the Poisson process representation of the {qi}\{q_{i}\}. For the three-parameter beta process density in Eq. (15), we have

The final line is exactly the form required by Eq. (27) in Proposition 3, with l(y)l(y) equal to the constant function of value

Then Proposition 3 implies that the following power laws hold for the mean of the Poissonized process:

These are exactly the desired Type I and II power laws (Eqs. (9) and (10)) for appropriate choices of the constants.

2 Exponential decay in the number of features

When MM is large enough such that M>QM>Q, we can choose δ\delta such that (1+δ)Q=M(1+\delta)Q=M. Then this inequality becomes

We see from Eq. (31) that the number of features ∑iZi\sum_{i}Z_{i} that are expressed for a data point exhibits super-exponential tail decay and therefore cannot have a power law probability distribution when the sum of feature probabilities ∑iqi\sum_{i}q_{i} is finite. For comparison, let Z∼Pois(Q)Z\sim\textrm{Pois}(Q). Then (Franceschetti et al., 2007)

To apply the tail-behavior result of Eq. (31) to the beta process (with two or three parameters), we note that the total feature probability mass is finite by Eq. (16). Since the same set of feature probabilities is used in all subsequent Bernoulli process draws for the beta-Bernoulli process, the result holds.

Simulation

To illustrate the three types of power laws discussed above, we simulated beta process atom weights under three different choices of the discount parameter α\alpha, namely α=0\alpha=0 (the classic, two-parameter beta process), α=0.3\alpha=0.3, and α=0.6\alpha=0.6. In all three simulations, the remaining beta process parameters were kept constant at total mass parameter value γ=3\gamma=3 and concentration parameter value θ=1\theta=1.

The simulations were carried out using our extension of the Paisley et al. (2010) stick-breaking construction in Eq. (14). We generated 2,000 rounds of feature probabilities; that is, we generated 2,000 random variables CiC_{i} and ∑i=12,000Ci\sum_{i=1}^{2,000}C_{i} feature probabilities. With these probabilities, we generated NN = 1,000 data points, i.e., 1,000 vectors of (2,000) independent Bernoulli random variables with these probabilities. With these simulated data, we were able to perform an empirical evaluation of our theoretical results.

Figure 5 illustrates power laws in the number of represented features KNK_{N} on the left (Type I power law) and the number of features represented by exactly one data point KN,1K_{N,1} on the right (Type II power law). Both of these quantities are plotted as functions of the increasing number of data points NN. The blue points show the simulated values for the classic, two-parameter beta process case with α=0\alpha=0. The center set of black points in each case corresponds to α=0.3\alpha=0.3, and the upper set of black points in each case corresponds to α=0.6\alpha=0.6.

We also plot curves obtained from our theoretical results in order to compare them to the simulation. Recall that in our theoretical development, we noted that there are two steps to establishing the asymptotic behavior of KNK_{N} and KN,jK_{N,j} as NN increases. First, we compare the random quantities KNK_{N} and KN,jK_{N,j} to their respective means, ΦN\Phi_{N} and ΦN,j\Phi_{N,j}. These means, as computed via numerical quadrature from Eq. (24) and directly from Eq. (26), are shown by red curves in the plots. Second, we compare the means to their own asymptotic behavior. This asymptotic behavior, which we ultimately proved was shared with the respective KNK_{N} or KN,jK_{N,j} in Eqs. (29) and (30), is shown by green curves in the plots.

We can see in both plots that the α=0\alpha=0 behavior is distinctly different from the straight-line behavior of the α>0\alpha>0 examples. In both cases, we can see that any growth in α\alpha is slower than can be described by straight-line growth. In particular, when α=0\alpha=0, the expected number of features is

Similarly, when α=0\alpha=0, the expected number of features represented by exactly one data point, KN,1K_{N,1}, is (by Eq. (26))

where the second line follows from using the normalization constant of the (proper) beta distribution. Interestingly, while KN,1K_{N,1} grows as a power law when α>0\alpha>0, its expectation is constant when α=0\alpha=0. While many new features are instantiated as NN increases in the α=0\alpha=0 case, it seems that they are quickly represented by more data points than just the first one.

Type I and II power laws are somewhat easy to visualize since we have one point in our plots for each data point simulated. The behavior of KN,jK_{N,j} as a function of jj for fixed NN and type III power laws (or lack thereof) are somewhat more difficult to visualize. In the case of KN,jK_{N,j} as a function of jj, we might expect that a large number of data points NN is necessary to see many groups of size jj for jj much greater than one. In the Type III case, we have seen that in fact power laws do not hold for any value of α\alpha in the beta process. Rather, the number of data points exhibiting more than MM features decreases more quickly in MM than a power law would predict; therefore, we cannot plot many values of MM before this number effectively goes to zero.

Nonetheless, Figure 6 compares our simulated data to the approximation of Eq. (10) with Eq. (11) (left) and Type III power laws (right). On the left, blue points as usual denote simulated data under α=0\alpha=0; middle black points show α=0.3\alpha=0.3, and upper black points show α=0.6\alpha=0.6. Here, we use connecting lines between plotted points to clarify α\alpha values. The green lines for the α>0\alpha>0 case illustrate the approximation of Eq. (11). Around j=10j=10, we see that the number of feaures exhibited by jj data points, KN,jK_{N,j}, degenerates to mainly zero and one values. However, for smaller values of jj we can still distinguish the power law trend.

On the right-hand side of Figure 6, we display the number of data points exhibiting more than MM features for various values of MM across the three values of α\alpha. Unlike the previous plots in Figure 5 and Figure 6, there is no power-law behavior for the cases α>0\alpha>0, as predicted in Section 6.2. We also note that here the α=0.3\alpha=0.3 curve does not lie between the α=0\alpha=0 and α=0.6\alpha=0.6 curves. Such an occurrence is not unusual in this case since, as we saw in Eq. (31), the rate of decrease is modulated by the total mass of the feature probabilities drawn from the beta process, which is random and not necessarily smaller when α\alpha is smaller.

Finally, since our experiment involves generating the underlying feature probabilities from the beta process as well as the actual feature assignments from repeated draws from the Bernoulli process, we may examine the feature probabilities themselves; see Figure 7. As usual, the blue points represent the classic, two-parameter (α=0\alpha=0) beta process. Black points represent α=0.3\alpha=0.3 (center) and α=0.6\alpha=0.6 (upper). Perhaps due to the fact that there is only the beta process noise to contend with in this aspect of the simulation (and not the combined randomness due to the beta process and Bernoulli process), we see the most striking demonstration of both power law behavior in the α>0\alpha>0 cases and faster decay in the α=0\alpha=0 case in this figure. The two α>0\alpha>0 cases clearly adhere to a power law that may be predicted from our results above and the Gnedin et al. (2007) results with CC as in Eq. (28):

Note that ranking the probabilities merely inverts the plot that would be created with xx on the horizontal axis and {i:qi≥x}\{i:q_{i}\geq x\} on the vertical axis. The simulation demonstrates little noise about these power laws beyond the 100th ranked probability. The decay for α=0\alpha=0 is markedly faster than the other cases.

Experimental results

The generative model for XX that we use is as follows (see Paisley et al., 2010):

We initialized both the two-parameter and the three-parameter models with the same number of latent features, K=200K=200, and the same values for all shared parameters (i.e., every variable except the new discount parameter α\alpha). We ran the experiment for 2,000 MCMC iterations, noting that the MCMC runs in both models seem to have reached equilibrium by 500 iterations (see Figures 8 and 9).

Figures 8 and 9 show the sampled values of various parameters as a function of MCMC iteration. In particular, we see how the number of features KK (Figure 8), the concentration parameter θ\theta, and the discount parameter α\alpha (Figure 9) change over time. All three graphs illustrate that the three-parameter model takes a longer time to reach equilibrium than the two-parameter model (approximately 500 iterations vs. approximatively 100 iterations). However, once at equilibrium, the sampling time series associated with the three-parameter iterations exhibit lower autocorrelation than the samples associated with the two-parameter iterations (Figure 10). In the implementation of both the original two-parameter model and the three-parameter model, the range for θ\theta is considered to be bounded above by approximately 100 for computational reasons (in accordance with the original methodology of Paisley et al. (2010)). As shown in Figure 9, this bound affects sampling in the two-parameter experiment whereas, after burn-in, the effect is not noticeable in the three-parameter experiment. While the discount parameter α\alpha also comes close to the lower boundary of its discretization (Figure 9)—which cannot be exactly zero due to computational concerns—the samples nonetheless seem to explore the space well.

We can see from Figure 10 that the estimated value of the concentraton parameter θ\theta is much lower when the discount parameter α\alpha is also estimated. This behavior may be seen to result from the fact that the power law growth of the expected number of represented features ΦN\Phi_{N} in the α>0\alpha>0 case yields a generally higher expected number of features than in the α=0\alpha=0 case for a fixed concentration parameter θ\theta. Further, we see from Eq. (32) that the expected number of features when α=0\alpha=0 is linear in θ\theta. Therefore, if we instead fix the number of features, the α=0\alpha=0 model can compensate by increasing θ\theta over the α>0\alpha>0 model. Indeed, we see in Figure 8 that the number of features discovered by both models is roughly equal; in order to achieve this number of features, the α=0\alpha=0 model seems to be compensating by overestimating the concentration parameter θ\theta.

To get a sense of the actual output of the model, we can look at some of the learned features. In particular, we collected the set of features from the last MCMC iteration in each model. The kkth feature is expressed or not for the nnth data point according to whether ZnkZ_{nk} is one or zero. Therefore, we can find the most-expressed features across the data set using the set of features on this iteration as well as the sampled ZZ matrix on this iteration. We plot the nine most-expressed features under each model in Figure 11. In both models, we can see how the features have captured distinguishing features of the 3, 5, and 8 digits.

Finally, we note that the three-parameter version of the algorithm is competitive with the two-parameter version in running time once equilibrium is reached. After the burn-in regime of 500 iterations, the average running time per iteration under the three-parameter model is 14.5 seconds, compared with 11.7 seconds average running time per iteration under the two-parameter model.

Conclusions

We have shown that the stick-breaking representation of the beta process due to Paisley et al. (2010) can be obtained directly from the representation of the beta process as a completely random measure. With this result in hand the set of connections between the beta process, stick-breaking, and the Indian buffet process are essentially as complete as those linking the Dirichlet process, stick-breaking, and the Chinese restaurant process.

We have also shown that this approach motivates a three-parameter generalization of the stick-breaking representation of Paisley et al. (2010), which is the analog of the Pitman-Yor generalization of the stick-breaking representation for the Dirichlet process. We have shown that Type I and Type II power laws follow from this three-parameter model. We have also shown that Type III power laws cannot be obtained within this framework. It is an open problem to discover useful classes of stochastic processes that provide such power laws.

Acknowledgments

We wish to thank Alexander Gnedin for useful discussions and Lancelot James for helpful suggestions. We also thank John Paisley for useful discussions and for kindly providing access to his code, which we used in our experimental work. Tamara Broderick was funded by a National Science Foundation Graduate Research Fellowship. Michael Jordan was supported in part by IARPA-BAA-09-10, “Knowledge Discovery and Dissemination.” Jim Pitman was supported in part by the National Science Foundation Award 0806118 “Combinatorial Stochastic Processes.”

Appendix A A Markov chain Monte Carlo algorithm

Posterior inference under the three-parameter model can be performed with a Markov chain Monte Carlo (MCMC) algorithm. Many conditionals have simple forms that allow Gibbs sampling although others require further approximation. Most of our sampling steps are as in Paisley et al. (2010) with the notable exceptions of a new sampling step for the discount parameter α\alpha and integration of the discount parameter α\alpha into the existing framework. We describe the full algorithm here.

Call the index ii in Eq. (14) the round. Then introduce the round-indicator variables rkr_{k} such that rk=ir_{k}=i exactly when the kkth atom, where kk indexes the sequence (ψ1,1,…,ψ1,C1,ψ2,1,…,ψ2,C2,…)(\psi_{1,1},\ldots,\psi_{1,C_{1}},\psi_{2,1},\ldots,\psi_{2,C_{2}},\ldots), occurs in round ii. We may write

To recover the round lengths CC from r=(r1,r2,…)r=(r_{1},r_{2},\ldots), note that

With the definition of the round indicators rr in hand, we can rewrite the beta process BB as

where Vk,j∼iidBeta(1−α,θ+iα)V_{k,j}\stackrel{{\scriptstyle iid}}{{\sim}}\textrm{Beta}(1-\alpha,\theta+i\alpha) and ψk∼iidγ−1B0\psi_{k}\stackrel{{\scriptstyle iid}}{{\sim}}\gamma^{-1}B_{0} as usual although the indexing is not the same as in Eq. (14). It follows that the expression of the kkth feature for the nnth data point is given by

We also introduce notation for the number of data points in which the kkth feature is, respectively, expressed and not expressed:

Finally, let KK be the number of represented features; i.e., K:=#{k:m1,k>0}K:=\#\{k:m_{1,k}>0\}. Without loss of generality, we assume the represented features are the first KK features in the index kk. The new quantities {rk}\{r_{k}\}, {m1,k}\{m_{1,k}\}, {m0,k}\{m_{0,k}\}, and KK will be used in describing the sampler steps below.

A.2 Latent indicators

First, we describe the sampling of the round indicators {rk}\{r_{k}\} and the latent feature indicators {Zn,k}\{Z_{n,k}\}. In these and other steps in the MCMC algorithm, we integrate out the stick-breaking proportions {Vi}\{V_{i}\}.

We wish to sample the round indicator rkr_{k} for each feature kk with 1≤k≤K1\leq k\leq K. We can write the conditional for rkr_{k} as

It remains to calculate the two factors in the product.

For the first factor in Eq. (36), we write out the integration over stick-breaking proportions and approximate with a Monte Carlo integral:

Here, πk(s):=Vk,rk(s)∏j=1rk−1(1−Vk,j(s))\pi^{(s)}_{k}:=V^{(s)}_{k,r_{k}}\prod_{j=1}^{r_{k}-1}(1-V^{(s)}_{k,j}), and Vk,j(s)∼indepBeta(1−α,θ+jα)V_{k,j}^{(s)}\stackrel{{\scriptstyle indep}}{{\sim}}\textrm{Beta}(1-\alpha,\theta+j\alpha). Also, SS is the number of samples in the sum approximation. Note that the computational trick employed in Paisley et al. (2010) for sampling the {Vi}\{V_{i}\} relies on the first parameter of the beta distribution being equal to one; therefore, the sampling described above, without further tricks, is exactly the sampling that must be used in this more general parameterization.

for each h≥1h\geq 1. Note that these draws make the approximation that the first KK features correspond to the first KK tuples (i,j)(i,j) in the double sum of Eq. (14); these orderings do not in general agree.

To complete the calculation of the posterior for rkr_{k}, we need to sum over all values of ii to normalize p(rk=i∣{rl}l=1k−1,{Zn,k}n=1N,θ,α,γ)p(r_{k}=i|\{r_{l}\}_{l=1}^{k-1},\{Z_{n,k}\}_{n=1}^{N},\theta,\alpha,\gamma). Since this is not computationally feasible, an alternative method is to calculate Eq. (36) for increasing values of ii until the result falls below a pre-determined threshold.

A.2.2 Factor indicators

In finding the posterior for the kkth feature indicator in the nnth latent factor, Zn,kZ_{n,k}, we can integrate out both {Vi}\{V_{i}\} and the weight variables {Wn,k}\{W_{n,k}\}. The conditional for Zn,kZ_{n,k} is

First, we consider the likelihood. For this factor, we integrate out WW explicitly:

where the final step follows from the Sherman-Morrison-Woodbury lemma.

For the second factor in Eq. (39), we can write

and the numerator and denominator can both be estimated as integrals over VV using the same Monte Carlo integration trick as in Eq. (37).

A.3 Hyperparameters

Next, we describe sampling for the three parameters of the beta process. The mass and concentration parameters are shared by the two-parameter process; the discount parameter is unique to the three-parameter beta process.

With the round indicators {rk}\{r_{k}\} in hand as from Appendix A.2.1 above, we can recover the round lengths {Ci}\{C_{i}\} with Eq. (35). Assuming an improper gamma prior on γ\gamma—with both shape and inverse scale parameters equal to zero—and recalling the iid Poisson generation of the {Ci}\{C_{i}\}, the posterior for γ\gamma is

Note that it is necessary to sample γ\gamma since it occurs in, e.g., the conditional for the round indicator variables (Appendix A.2.1).

A.3.2 Concentration parameter

Again, we calculate the likelihood factors p(Z∣r,θ,α)p(Z|r,\theta,\alpha) with a Monte Carlo approximation as in Eq. (37). In order to find the conditional over θ\theta from the likelihood and prior, we further approximate the space of θ>0\theta>0 by a discretization around the previous value of θ\theta in the Monte Carlo sampler: {θprev+tΔθ}t=St=T\{\theta_{prev}+t\Delta\theta\}_{t=S}^{t=T}, where SS and TT are chosen so that all potential new θ\theta values are nonnegative and so that the tails of the distribution fall below a pre-determined threshold. To complete the description, we choose the improper prior p(θ)∝1p(\theta)\propto 1.

A.3.3 Discount parameter

We sample the discount parameter α\alpha in a similar manner to θ\theta. The conditional for α\alpha is

As usual, we calculate the likelihood factors p(Z∣r,θ,α)p(Z|r,\theta,\alpha) with a Monte Carlo approximation as in Eq. (37). While we discretize the sampling of α\alpha as we did for θ\theta, note that sampling α\alpha is more straightforward since α\alpha must lie in $.Therefore,thechoiceof. Therefore, the choice of\Delta\alphacompletelycharacterizesthediscretizationoftheinterval.Inparticular,toavoidendpointbehavior,weconsidernewvaluesofcompletely characterizes the discretization of the interval. In particular, to avoid endpoint behavior, we consider new values of\alphaamongamong\{\Delta\alpha/2+t\Delta\alpha\}_{t=0}^{(\Delta\alpha)^{-1}-1}.Moreover,thechoiceof. Moreover, the choice ofp(\alpha)\propto 1is,inthiscase,aproperpriorforis, in this case, a proper prior for\alpha$.

A.4 Factor analysis components

In order to use the beta process as a prior in the factor analysis model described in Eq. (2), we must also describe samplers for the feature matrix Φ\Phi and weight matrix WW.

The conditional for the feature matrix Φ\Phi is

where, in the final line, the variance is defined as follows:

A.4.2 Weight matrix

Let I={i:Zn,i=1}I=\{i:Z_{n,i}=1\}. Then the conditional for the weight matrix WW is

References