Open Access
This article is

- freely available
- re-usable

*Entropy*
**2013**,
*15*(11),
4668-4699;
doi:10.3390/e15114668

Article

Estimating Functions of Distributions Defined over Spaces of Unknown Size

^{1}

Santa Fe Institute, 1399 Hyde Park Rd., Santa Fe, NM 87501, USA

^{2}

School of Informatics and Computing, Indiana University, 901 E 10th St, Bloomington, IN 47408, USA

^{*}

Author to whom correspondence should be addressed.

Received: 3 August 2013; in revised form: 11 September 2013 / Accepted: 17 October 2013 / Published: 31 October 2013

## Abstract

**:**

We consider Bayesian estimation of information-theoretic quantities from data, using a Dirichlet prior. Acknowledging the uncertainty of the event space size m and the Dirichlet prior’s concentration parameter c, we treat both as random variables set by a hyperprior. We show that the associated hyperprior, $P(c,m)$, obeys a simple “Irrelevance of Unseen Variables” (IUV) desideratum iff $P(c,m)=P(c)P(m)$. Thus, requiring IUV greatly reduces the number of degrees of freedom of the hyperprior. Some information-theoretic quantities can be expressed multiple ways, in terms of different event spaces, e.g., mutual information. With all hyperpriors (implicitly) used in earlier work, different choices of this event space lead to different posterior expected values of these information-theoretic quantities. We show that there is no such dependence on the choice of event space for a hyperprior that obeys IUV. We also derive a result that allows us to exploit IUV to greatly simplify calculations, like the posterior expected mutual information or posterior expected multi-information. We also use computer experiments to favorably compare an IUV-based estimator of entropy to three alternative methods in common use. We end by discussing how seemingly innocuous changes to the formalization of an estimation problem can substantially affect the resultant estimates of posterior expectations.

Keywords:

Bayesian analysis; entropy; mutual information; variable number of bins; hidden variables; Dirichlet prior## 1. Background

A central problem of statistics is estimating a functional of a probability distribution ρ from a dataset, $\overrightarrow{n}$, of N independent, identically distributed (IID) samples of ρ. A simple example of this problem is estimating the mean $Q(\rho )$ of a distribution, ρ, from a set of IID samples of that distribution. In this example, the functional $Q(.)$ depends linearly on ρ. More challenging versions of this problem arise when the functional $Q(.)$ is nonlinear. In particular, recent decades have seen a lot of work on estimating information-theoretic functionals [1,2] of a distribution from a set of IID samples of that distribution. Examples include estimating the Shannon entropy of the distribution, its mutual information, etc., from such a set of samples and, in particular, using the bootstrap to estimate associated error bars [3,4,5].

This work has concentrated on the case where the event space being sampled is countable. In addition, much of it has used non-Bayesian approaches. The first work that addressed the problem using Bayesian techniques was the sequence of papers [6,7,8] (hereafter abbreviated as WW), followed by similar work in [9] (see Appendix A for a list of corrections to some algebraic mistakes in [6]; a careful analysis of the numerical implementation of the formulas in WW can be found in [10]). This work showed how to calculate posterior moments of several nonlinear functionals of the distribution. Such moments provide both the Bayes-optimal estimate of the functional (assuming a quadratic loss function) and an error bar in that estimate. In particular, WW provided closed-form expression for the posterior first and second moments of entropy, mutual information and Kullback-Leibler distance, in addition to various non-information-theoretic quantities, like covariance.

Write the space of possible events as Z with elements written as z and distributions over Z as ρ. For tractability reasons, WW used a Dirichlet prior over the associated simplex of possible distributions, $P(\rho )\propto {\prod}_{z}\rho {(z)}^{cL(z)-1}$. (In the literature, the constant, c, is sometimes called a concentration parameter, and L is sometimes called a baseline distribution.)

In WW, Z was taken to be fixed (not a random variable), $L(z)$ was taken to be uniform over Z and c was taken to equal $|Z|$, the size of Z. This choice of a Dirichlet prior over ρ with uniform L has been the basis of all subsequent work on Bayesian estimates of information-theoretic functionals of distributions [11,12]. (Note though that recently, there has been some investigation of the extension of this work to mixture-of-Dirichlet distributions [12] and Dirichlet / Pittman-Yor processes [11]).) However, there has not been such consensus concerning c.

Although the choice of $c=|Z|$ was not explicitly advocated in WW, all the results in WW are for this special case. An important series of papers [12,13,14] (hereafter abbreviated as NSB) considered the generalization where $c=a|Z|$ for any positive constant, a. (WW is the special case where $a=1$.) NSB considered the limit where we have such a c, and $|Z|$ is much larger than N, the number of samples of ρ. (Therefore, for non-infinitesimal a, $c\gg N$.) They showed that in this limit, the samples have little effect on the posterior moments of Q (e.g., for Q the Shannon entropy). Therefore, the data become irrelevant. In that large $|Z|$ limit, the posterior moments are dominated by the prior over ρ that is specified by c. This can be seen as a major shortcoming of WW.

To address this shortcoming, NSB noted that if c is a random variable with an associated prior, $P(c)$, it induces a prior distribution over the values of the Shannon entropy, $H(\rho )=-{\sum}_{z}\rho (z)ln\left[\rho (z)\right]$. Specifically, for the case of a uniform L, for any potential entropy value h:
where the integrals over distributions are implicitly restricted to the associated simplex. NSB then decided that since their goal was to estimate entropy, they would set $P(c)$ so that the prior, $P(H)$, is flat. In essence, they formed a continuous mixture of Dirichlet distributions to (attempt to) obtain a flat prior over the ultimate quantity of interest, H. The $P(c)$ that results in flat $P(H)$ cannot be written down in closed form, but NSB showed how numerical computations can be used to approximate it.

$$\begin{array}{ccc}\hfill P(H=h)& =& \int dcd\rho \phantom{\rule{0.277778em}{0ex}}\delta (H(\rho )-h)P(\rho \mid c)P(c)\hfill \\ & =& \int dcd\rho \phantom{\rule{0.277778em}{0ex}}\delta (H(\rho )-h)\frac{{\prod}_{z}\rho {(z)}^{c/|Z|-1}}{\int d{\rho}^{\prime}\phantom{\rule{0.277778em}{0ex}}{\prod}_{z}{\rho}^{\prime}{(z)}^{c/|Z|-1}}P(c)\hfill \end{array}$$

As they are used in practice, both NSB and WW allow $|Z|$ to vary, giving it different values for different problems, values that are typically set in an ad hoc way. (Indeed, if they did not allow the number of bins to vary from one dataset to another, they could not be used on problems with datasets running over too large a number of bins.) They then set $P(c)$ based on that fixed value of $|Z|$.

One problem with this is that it means the posterior expected value of the functional, Q, can vary depending on how one expresses that functional. To illustrate this, say that Z is a Cartesian product, $X\times Y$, and let $H(X,Y)$, $H(X)$ and $H(Y)$ refer to the entropies of $\rho (x,y)\equiv {\rho}_{X,Y}(x,y)$, $\rho (x)\equiv {\rho}_{X}(x)\equiv {\sum}_{y}\rho (x,y)$ and $\rho (y)\equiv {\rho}_{Y}(y)\equiv {\sum}_{x}\rho (x,y)$, respectively. Recall that the mutual information between X and Y under any ρ can be written both as:
and equivalently as:

$$\begin{array}{ccc}\hfill {I}_{\rho}(X;Y)& \equiv & -\sum _{x}\rho (x)ln\left[\rho (x)\right]-\sum _{y}\rho (y)ln\left[\rho (y)\right]+\sum _{x,y}\rho (x,y)ln\left[\rho (x,y)\right]\hfill \\ & =& H(X)+H(Y)-H(X,Y)\hfill \end{array}$$

$$\begin{array}{ccc}\hfill {I}_{\rho}(X;Y)& \equiv & \sum _{x,y}\rho (x,y)ln\left[\frac{\rho (x,y)}{\rho (x)\rho (y)}\right]\hfill \end{array}$$

Now, let $\overrightarrow{n}$ be a set of IID of samples of ${\rho}_{X,Y}$, and let ${\overrightarrow{n}}_{X}$ and ${\overrightarrow{n}}_{Y}$ be the associated set of sample values of ${\rho}_{X}$ and ${\rho}_{Y}$, respectively. Then, from Equations (2) and (3), the posterior expectation of the mutual information can be written as either:
or as:
(See, for example, [11,15].)

$$\begin{array}{ccc}\hfill \mathbb{E}(I(X;Y)\mid \overrightarrow{n})& =& -\mathbb{E}\left(\sum _{x}{\rho}_{X}(x)ln\left[{\rho}_{X}(x)\right]\mid {\overrightarrow{n}}_{X}\right)-\mathbb{E}\left(\sum _{y}{\rho}_{Y}(y)ln\left[{\rho}_{Y}(y)\right]\mid {\overrightarrow{n}}_{Y}\right)\hfill \\ & & \phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}+\phantom{\rule{0.277778em}{0ex}}\mathbb{E}\left(\sum _{x,y}\rho (x,y)ln\left[\rho (x,y)\right]\mid \overrightarrow{n}\right)\hfill \\ & =& \mathbb{E}(H(X)\mid {\overrightarrow{n}}_{X})+\mathbb{E}(H(Y)\mid {\overrightarrow{n}}_{Y})-\mathbb{E}(H(X,Y)\mid \overrightarrow{n})\hfill \end{array}$$

$$\begin{array}{ccc}\hfill \mathbb{E}(I(X;Y)\mid \overrightarrow{n})& =& \mathbb{E}\left(\sum _{x,y}\rho (x,y)ln\left[\frac{\rho (x,y)}{\rho (x)\rho (y)}\right]\phantom{\rule{0.277778em}{0ex}}|\phantom{\rule{0.277778em}{0ex}}\overrightarrow{n}\right)\hfill \end{array}$$

If $P(c)$ is set in a way that depends on the size of the event space, then we would use a different $P(c)$ to evaluate each of the three terms in Equation (4), since the underlying event spaces (X, Y and $X\times Y$, respectively) have different sizes. However, there would only be a single $P(c)$ used to evaluate the expression in Equation (5), the same $P(c)$ as used for evaluating the third term in Equation (4). As a result, under either the NSB or WW approaches, the values given by Equation (4) and Equation (5) will differ in general; depending on which definition of mutual information we adopt, we would get a different estimate of posterior expected mutual information under those approaches. Indeed, to estimate mutual information in the NSB approach, one faces the choice of whether to set $P(c)$ to give a uniform prior distribution over values of the mutual information, $P(I(X;Y))$ (as it would appear, one must, since $I(X;Y)$ is what one wishes to estimate), or to set it to give a uniform $P(H(X,Y))$ (as in conventional NSB). It is not clear how to make this choice, in general.

## 2. Contribution of This Paper

In most of the earlier work on estimating an information-theoretic functional of ρ based on data, it is assumed that $|Z|$ is fixed, with a few exceptions (see, e.g., [16]). In many situations, the modeler is not completely certain a priori about the value of $|Z|$, and so should treat it as a random variable. For such scenarios, we need to specify a joint (hyper)prior, $P(c,|Z|)$, rather than just a prior, $P(c)$. In particular, if we set c from $|Z|$ as in either WW or NSB, then by specifying our uncertainty in Z, $P(|Z|)$, we set the joint prior $P(c,|Z|)$. Note that for both WW and NSB, this induced $P(c,|Z|)$ is not a product distribution $P(c)P(|Z|)$. (In particular, in NSB, the distribution, $P(c)$, is set independently of any data, in a way that varies with $|Z|$.)

Jaynes has argued convincingly for setting priors with invariance arguments concerning the fundamental nature of the problem domain [17]. In this paper, we show that the prior, $P(c,|Z|)$, obeys a simple “Irrelevance of Unseen Variables” (IUV) invariance, if and only if c and $|Z|$ are independent, i.e., iff $P(c,|Z|)=P(c)P(|Z|)$. Therefore, if we require IUV, then rather than specify a full joint distribution over c and $|Z|$, we only need to specify a distribution over each of c and $|Z|$ separately. This greatly reduces the number of degrees of freedom in the prior that we need to specify (though not as much as would be the case if we used WW or NSB, were we only to specify $P(|Z|)$).

In this paper, we show that when IUV is obeyed, so that c and $|Z|$ are independent, the value for posterior expected mutual information does not change depending on whether we use Equation (2) or Equation (3) to define mutual information. In proving this, we derive an intermediate result that simplifies the calculation of some posterior moments. In particular, we show how to use this result to derive the formula for posterior expected mutual information given in WW in essentially a single line. We also show that both of these advantages extend to the calculation of multi-information, one of the ways proposed to generalize mutual information beyond two random variables [18]. Similarly, since Tsallis entropy with index q is just a weighted sum over i of the qth moments of the ${p}_{i}$, we can evaluate expected Tsallis entropy in closed form using our estimators. (However, higher-order moments of the Tsallis entropy do not simplify as easily.)

We then show that when c and $|Z|$ are independent under the prior, and $|Z|$ is averaged over according to a prior $P(|Z|)$ with some reasonable characteristics, the posterior expected value of information-theoretic quantities need not be dominated by the prior. In this sense, the problem that caused NSB to consider a non-conventional scheme for setting $P(c)$ does not exist if we allow $|Z|$ to be a random variable and require IUV.

We next discuss in detail various fully Bayesian schemes in which the random variables, c and/or $|Z|$, are integrated over to form estimates of posterior expectations. We also mention some schemes in which one or the other of those variables is given a single value (unlike in proper hierarchical Bayes). We run a few computer experiments as cursory “sanity checks”. In these, we choose a naive IUV-based hyperprior and compare the associated estimators of posterior expected entropy and of posterior mutual information to the estimators considered in [12,16,19]. We find that the IUV-based estimator performs quite favorably.

There are several subtleties in how one models the statistical generation of Z, issues that do not arise if Z is fixed ahead of time. One of them involves the mapping of each newly sampled draw of ρ to an element of $\overrightarrow{n}$, i.e., to a label for that draw. To formally justify the “intuitively obvious” model of how Z is generated that we have used up to now, we describe in detail a mapping of draws of ρ to elements of $\overrightarrow{n}$ that justifies that model.

After this, we describe a change one might make to the model of how Z is generated that would appear to be innocuous. We show that, in fact, this change can substantially affect the resultant estimations. Concretely, say there is a space, $\widehat{Z}$, that is a grid of photoreceptors and that ρ is a distribution over $\widehat{Z}$ that is IID sampled to generate counts of photons that are reflected from an object and focused onto elements of $\widehat{Z}$. Say we know that the object being imaged may be occluded, so that, in fact, only a subset, $Z\subseteq \widehat{Z}$, of the grid points can have a nonzero probability of a photon count. However, say we are uncertain of the size of Z and, therefore, of which precise pixels in $\widehat{Z}$ it corresponds to. We show that the value of the posterior expected entropy in this scenario is different from its value in the conventional scenario, in which we are also uncertain of Z’s size, but there is no encompassing set $\widehat{Z}$ from which Z is formed.

This touches on the more general issue of the epistemological foundation of the probabilities (and probabilities of probabilities) considered in this paper. This issue, involving concepts like “degree of belief” and “objective probability”, is deep and quite important, being fundamental to the differences between Bayesian and sampling theory statistics (see [20,21] for a discussion).

Here, we do not grapple with this issue. Rather, we adopt the “pragmatic Bayesian” perspective implicit in all earlier Bayesian work on the problem of estimating information-theoretic quantities from samples (including WW and NSB, in particular) and simply use probabilities as a part of a self-consistent calculus of uncertainty. Bayesian reasoning often relies on a choice of prior, and the work presented here is no exception. We emphasize that that is no “one true prior”; rather, the statistician must match the choice of model to their own prior knowledge about the system. While we have done our best to chose a set of priors with generality sufficient to avoid some of the common biases identified in the past, one of the main goals of this paper is to present our results, so that the readers may adapt our methods to the particular nature of their own research.

Some of the experiments reported here were run using the publicly available package, Thoth, available at http://thoth-python.org. The reader is directed to Appendix B for associated proofs. Note that as discussed in WW, much of the analysis below can be modified for inference of arbitrary functionals of ρ from IID samples of ρ (e.g., estimation of covariances from IID samples rather than mutual information). The analysis is not limited to inferring information-theoretic functionals from IID samples.

## 3. Preliminaries

For any finite space, U, we write ${\Delta}_{U}$ to mean the simplex of possible distributions over U. We will also write ${T}_{k}$ to mean the set of all k-dimensional vectors whose components are all integers greater than zero.

Throughout this paper, we restricted attention to Dirichlet distributions over distributions $\rho \in {\Delta}_{Z}$. For a fixed c and Z, we write such a distribution as:
where we require c to be non-negative.

$$\begin{array}{ccc}\hfill {\mathcal{D}}_{c,Z}(\rho )& =& \frac{{\prod}_{z}\rho {(z)}^{[c/|Z|]-1}}{\int d{\rho}^{\prime}\phantom{\rule{0.277778em}{0ex}}{\prod}_{z}{\rho}^{\prime}{(z)}^{[c/|Z|]-1}}\hfill \end{array}$$

Say we are given a dataset, $\overrightarrow{n}$, of counts for each of the elements of Z, where $N\equiv {\sum}_{z}{n}_{z}$. For the Dirichlet prior, the posterior distribution is:
Using [6], we can calculate:
We will sometimes write the posterior given by Equation (7) as ${\mathcal{D}}_{c,Z}(\rho \mid \overrightarrow{n})$.

$$\begin{array}{ccc}\hfill P(\rho \mid \overrightarrow{n},c,|Z|)& =& \frac{{\mathcal{D}}_{c,Z}(\rho ){\prod}_{z}{\rho}_{z}^{{n}_{z}}}{\int d{\rho}^{\prime}\phantom{\rule{0.277778em}{0ex}}{\mathcal{D}}_{c,Z}({\rho}^{\prime}){\prod}_{z}{({\rho}_{z}^{\prime})}^{{n}_{z}}}\hfill \\ & \equiv & \frac{{\prod}_{z}{\rho}_{z}^{{n}_{z}-1+c/|Z|}}{G(\overrightarrow{n},c,|Z|)}\hfill \end{array}$$

$$\begin{array}{ccc}\hfill G(\overrightarrow{n},c,|Z|)& =& \frac{{\prod}_{z}\Gamma ({n}_{z}+c/|Z|)}{\Gamma (N+c)}\hfill \end{array}$$

Note that Z is implicitly a random variable in Equation (7), since we condition on $|Z|$ there. This means that the event space over which ρ is defined is also a random variable, as is the event space over which $\overrightarrow{n}$ is defined. This means that when we average over Z’s below, we must take a bit of care to define the space of all ρ’s and the space of all $\overrightarrow{n}$’s, since ρ can be an element of any finite unit simplex and similarly for $\overrightarrow{n}$.

When this issue arises, we will define the set of all triples of Z, $\overrightarrow{n}$ and ρ as the infinite union of the triples, $({Z}_{1},{\Delta}_{{Z}_{1}},{T}_{|{Z}_{1}|})$, $({Z}_{2},{\Delta}_{{Z}_{2}},{T}_{|{Z}_{2}|})$, $({Z}_{3},{\Delta}_{{Z}_{3}},{T}_{|{Z}_{3}|})$, etc., where each ${Z}_{i}$ is defined as the set, $\{1,\dots ,i\}$. In such a fully formal approach, joint probability distributions over $Z,\overrightarrow{n}$ and ρ are defined over that infinite union by:
and then using the multinomial and Dirichlet distributions to define the values of the conditional distributions, $P(\overrightarrow{n}\mid \rho ,Z)$ and $P(\rho \mid Z)$, respectively, when the condition in Equation (9) is obeyed. For the simplicity of the exposition, we will minimize our use of this fully formal approach here.

$$\begin{array}{ccc}\hfill P(Z,\rho ,\overrightarrow{n})& =& 0\text{unless}\rho \in {\Delta}_{Z},\overrightarrow{n}\in {T}_{|Z|}\hfill \end{array}$$

We define $\mathcal{S}(\overrightarrow{n})$ to be the support of the dataset, $\overrightarrow{n}$, within Z. We write $I(.)$ to be 1/0, depending on whether its logical expression argument is true/false. For the case where $Z=X\times Y$, we define ${\overrightarrow{n}}_{X}(x)\equiv {\sum}_{y}\overrightarrow{n}(x,y)$ and ${\rho}_{X}\equiv {\sum}_{y}\rho (x,y)$. For use below, as in WW, we define $\Delta {\Phi}^{(1)}({z}_{1},{z}_{2})\equiv {\Psi}^{(0)}({z}_{1})-{\Psi}^{(0)}({z}_{2})$, where ${\Psi}^{(0)}$ is defined as $d[ln\Gamma (z)]/dz$.

## 4. Irrelevance of Unseen Variables

#### 4.1. The Problem of Unseen Variables

In general, there may be an “unrecorded” or “hidden” variable, $y\in Y$, whose values are not recorded in our dataset of values, $x\in X$. As an example, say our data are the set of all changes in the value of the US stock-market between opening and closing on all days it was open since 1970. A hidden variable is the age of the person recording each of the measurements when they made the recording. The change in stock market value is X, and the age of the person recording the value is Y.

The hidden variable in this example is chosen to be extreme, in that knowledge of its existence is clearly irrelevant to the statistical estimation problem. However it is hard to imagine an estimation problem where there are not in fact a potentially infinite number of such hidden variables. Some could perhaps be dismissed, as “clearly irrelevant, and therefore, not worthy of consideration”. However, this approach is hard to justify axiomatically, since there are, of course, many instances when hidden variables may have some relevance to the estimation problem.

This issue is a bit of a philosophical hornet’s nest. If at all possible, we would like to avoid having to consider it. In fact, we can do this by requiring that the existence of any hidden variables has no effect on our Bayesian estimate. More precisely, one can require that whether one does or does not have a single unseen random variable in one’s model, and the (finite) size of its event space, if it does exist, must have no impact on posterior expected values of (functionals of the distribution over) the seen variables [22]. How to do this is the subject of this section. In the following section, we illustrate the practical benefits that result.

To analyze scenarios involving hidden variables, write $Z=X\times Y$, and say we have recorded the dataset, ${\overrightarrow{n}}_{X}(x)\equiv {\sum}_{y}{\overrightarrow{n}}_{X,Y}(x,y)$, not the full dataset, ${\overrightarrow{n}}_{X,Y}$. Next, write ${\rho}_{Z}$ as a matrix of real numbers, $\{{\rho}_{X,Y}(x,y):x\in X,y\in Y\}$. We can re-express any such ${\rho}_{X,Y}\in {\Delta}_{X\times Y}$ in an alternative coordinate system, as $({\rho}_{X},{\rho}_{Y\mid X})$, where ${\rho}_{X}(x)\equiv {\sum}_{y}{\rho}_{X,Y}(x,y)$, and ${\rho}_{Y\mid X}$ is the set of $|X||Y|$ real numbers given by $\rho (x,y)/{\rho}_{X}(x)$ for all $x\in X,y\in Y$. (Note that under a Dirichlet prior, no matter what our data are, there is both zero prior probability and zero posterior probability of a ${\rho}_{X}$, such that $P({\rho}_{X})(x)=0$ for some x.) Therefore, for all $x,y$, ${\rho}_{X,Y}(x,y)={\rho}_{Y\mid X}(y\mid x){\rho}_{X}(x)$.

If we allow for such hidden variables, Y, then to do a proper Bayesian analysis, we must specify a prior, $P({\rho}_{X,Y})$ (or just $P(\rho )$, for short) on the space, ${\Delta}_{X\times Y}$, i.e., on the space of ρ’s that run over $X\times Y$. It does not suffice to specify just a prior, $P({\rho}_{X})$, defined over ${\Delta}_{X}$. Moreover, axiomatic derivations of Bayesian analysis counsel us to set this prior without concern for what our likelihood function will be. (The prior is our model of the underlying physical system. The likelihood instead has to do with the observation apparatus we happen to have handy to observe that system.) This implies that $P(\rho )$ should not reflect the fact that X is observed and Y is not, since what variable is observed is determined by the likelihood. Therefore, in particular, if we set $P(\rho )$ based on the size of the underlying event space, it should be based solely on the size of the space, $X\times Y$, with no consideration for just the size of X.

Now, in general, we do not even know how many values of a hidden variable Y there are, simply that there may (!) be some. Due to this uncertainty, we must let the cardinality of the set of hidden variables “float” as a random variable. Moreover, very often we are interested in a functional $Q({\rho}^{X}(x))=Q({\sum}_{y}{\rho}_{X,Y}(x,y))$ of the observed variable, and this functional can be anything, depending on the statistical question we are interested in.

One might worry that for some such functional, Q, a Dirichlet prior over the the joint observed and hidden variables, $P({\rho}_{X,Y})$, and some (visible) data vector, ${\overrightarrow{n}}_{X}$, the associated value of $\mathbb{E}(Q\mid {\overrightarrow{n}}_{X})$ would vary depending on the number of degrees of freedom of the hidden variable, $|Y|$. If this were the case, how we set the prior over the number of degrees of freedom of the hidden variable would matter, which would confront us with the problem of how to set it. This would seem to be an intractable problem, since, in general, there are an infinite number of choices for what the hidden variable is.

The desideratum analyzed in this paper is that this problem does not arise. Formally, this is equivalent to requiring that no matter what Y is, the associated value of $\mathbb{E}(Q\mid {\overrightarrow{n}}_{X})$ is exactly what it would be if there were no hidden variable at all:

**Definition 1**

A distribution $\pi (c,|Z|)$ obeys

**Irrelevance of Unseen Variables**(IUV) iff, for all finite spaces, X and Y, data vectors, ${\overrightarrow{n}}_{X}$, and functions, Q, defined over ${\rho}_{X}$:
$$\begin{array}{ccc}\hfill \int dc\phantom{\rule{0.277778em}{0ex}}\pi (c\phantom{\rule{0.277778em}{0ex}}|\phantom{\rule{0.277778em}{0ex}}|X|)\int d{\rho}_{X}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X}){\mathcal{D}}_{c,X}({\rho}_{X}\phantom{\rule{0.277778em}{0ex}}|\phantom{\rule{0.277778em}{0ex}}{\overrightarrow{n}}_{X})& & \hfill \\ & & \phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}=\phantom{\rule{0.277778em}{0ex}}\int dc\phantom{\rule{0.277778em}{0ex}}\pi (c\mid |X|\times |Y|)\int d{\rho}_{X,Y}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X}){\mathcal{D}}_{c,X\times Y}({\rho}_{X,Y}\phantom{\rule{0.277778em}{0ex}}|\phantom{\rule{0.277778em}{0ex}}{\overrightarrow{n}}_{X})\hfill \end{array}$$

To help understand this desideratum, note that uncertainty about the size of a hidden variable space, $|Y|$, is different from uncertainty about the size of the observed variable space, $|X|$. Indeed, one could argue that $|Y|$ is always essentially infinite, up to any kinds of limits imposed by quantum mechanics. (As an illustration for the stock-market example, in addition to the age of the recorder of the stock-market’s change in value, all other characteristics of the recorder are “hidden” and, therefore, arguably should be included in Y.) Moreover, in general, as the number of (IID) data grows, we will get more certain about $|X|$, or at least about the number of x for which $\rho (x)$ exceeds some preset threshold. In contrast, the size of the dataset has no effect on our uncertainty concerning $|Y|$; the latter is purely prior-dominated. Both of these properties mean that statistically estimating $|Y|$ is a more fraught exercise than estimating $|X|$.

Our desideratum says that π is arranged so that these difficulties are irrelevant. For a π obeying IUV, uncertainty in the value of $|Y|$ has no effect on our estimate of a functional $Q({\rho}_{X})$. In contrast, uncertainty in $|X|$ has a major effect on all estimators of functionals $Q({\rho}_{X})$ that we know of (including the ones we introduce below), regardless of π. Indeed, how to estimate the size of X from the observed data is so important that it has been analyzed for decades in statistics, under the name “coverage estimators” [16,23].

The π’s used in both NSB and WW violate IUV. This is at the heart of their problems in estimating mutual information, which were discussed in Section 1.

#### 4.2. Dirichlet-Independent (DI) Hyperpriors

Let T be a partition of Z. Then, there is a map, K, taking any distribution, ρ, over Z to a distribution, ${\rho}_{T}$, over the elements, $t\in T$. Using K, any distribution over ρ’s induces a distribution over ${\rho}_{T}$’s. In particular, Dirichlet distributions have the very nice property that the distribution ${\mathcal{D}}_{c,Z}(\rho )$ over ρ’s induces the distribution, ${\mathcal{D}}_{c,T}({\rho}_{T})$, over ${\rho}_{T}$’s, where the baseline distribution for T is given by applying K to the baseline distribution over Z. The crucial point about this property for us is that there is the same concentration parameter, c, in both Dirichlet distributions; Dirichlet distributions are consistent under marginalization. (Indeed, this property serves as a common definition of Dirichlet processes, the extension of Dirichlet priors to infinite spaces.)

As a special case, if $Z=X\times Y$, then X specifies a partition of Z in which each partition element is of the form $\{(x,y):y\in Y\}$ for a different $x\in X$. Therefore, a Dirichlet distribution generating ρ’s over Z induces a Dirichlet distribution generating ${\rho}_{X}$’s over X that has the same concentration parameter.

Now note that because we are using a Dirichlet prior, the posterior, $P(\rho \mid {\overrightarrow{n}}_{X})$, is a Dirichlet distribution. In light of the marginalization consistency of Dirichlet distributions just described, this means that the induced posterior, $P({\rho}_{X}\mid {\overrightarrow{n}}_{X})$, will also be a Dirichlet distribution, with the same value of c. This suggests that the posterior expectation of any functional of ${\rho}_{X}$ will be the same, whether we evaluate it in X or $X\times Y$, so long as c is the same for both evaluations.

We can formalize this with the following lemma, proven in Appendix B:

**Lemma 1**

Fix any finite spaces, X and Y, any set, ${\overrightarrow{n}}_{X,Y}$, of counts of each of the elements in $X\times Y$ and any two concentration parameters, c and ${c}^{\prime}$. Then, $c={c}^{\prime}$ iff:
for all functions, Q, defined over ${\Delta}_{X}$.

$$\begin{array}{ccc}\hfill \int d{\rho}_{X}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X}){\mathcal{D}}_{c,X}({\rho}_{X}\phantom{\rule{0.277778em}{0ex}}|\phantom{\rule{0.277778em}{0ex}}{\overrightarrow{n}}_{X})& =& \int d{\rho}_{X,Y}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X}){\mathcal{D}}_{{c}^{\prime},X\times Y}({\rho}_{X,Y}\phantom{\rule{0.277778em}{0ex}}|\phantom{\rule{0.277778em}{0ex}}{\overrightarrow{n}}_{X,Y})\hfill \end{array}$$

There are several noteworthy implications of Lemma 1. To see the first one, consider the following modification of the definition of IUV, which involves ${\overrightarrow{n}}_{X,Y}$, the count vector of both seen and unseen bins:

**Definition 2**

A distribution, $\pi (c,|Z|)$, obeys

**strengthened IUV**iff for all finite spaces, X and Y, data vectors, ${\overrightarrow{n}}_{X,Y}$, and functions, Q, defined over ${\rho}_{X}$:
$$\begin{array}{ccc}\hfill \int dc\phantom{\rule{0.277778em}{0ex}}\pi (c\phantom{\rule{0.277778em}{0ex}}|\phantom{\rule{0.277778em}{0ex}}|X|)\int d{\rho}_{X}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X}){\mathcal{D}}_{c,X}({\rho}_{X}\phantom{\rule{0.277778em}{0ex}}|\phantom{\rule{0.277778em}{0ex}}{\overrightarrow{n}}_{X})& =& \hfill \\ & & \phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\int dc\phantom{\rule{0.277778em}{0ex}}\pi (c\mid |X|\times |Y|)\int d{\rho}_{X,Y}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X}){\mathcal{D}}_{c,X\times Y}({\rho}_{X,Y}\phantom{\rule{0.277778em}{0ex}}|\phantom{\rule{0.277778em}{0ex}}{\overrightarrow{n}}_{X,Y}).\hfill \end{array}$$

An immediate corollary of Lemma 1 is the following:

**Corollary 2**

IUV implies strengthened IUV.

**Proof:**

The integral on the RHSin the equation in Lemma 1 is the inner integral on the RHS of Definition 2. In addition, the integral on the LHSin the equation in Lemma 1 is the inner integral on the RHS of Definition 10. Therefore, applying Lemma 1 for $c={c}^{\prime}$ establishes the corollary. ■

Corollary 2 means that if IUV holds, then it does not matter how the counts, ${\overrightarrow{n}}_{X,Y}(x,y)$, are apportioned over Y, as far as calculating the associated posterior expected value of Q is concerned.

Assume there are no unobserved components of our data. Then, by Corollary 2, for any functional, Q, that depends purely on ${\rho}_{X}$, if IUV holds, we can evaluate expected $Q({\rho}_{X})$ conditioned on ${\overrightarrow{n}}_{X,Y}$ (given by an integral over ${\Delta}_{X\times Y}$) by calculating expected $Q({\rho}_{X})$ conditioned on ${\overrightarrow{n}}_{X}$ (given by an integral over ${\Delta}_{X}$). In Section 5 below, we show that this property of IUV substantially simplifies calculations of expected moments of functionals defined over multi-dimensional spaces, e.g., the calculation of posterior expected mutual information.

To establish a second implication of Lemma 1, multiply both sides of the equality it establishes by ${\sum}_{{\overrightarrow{n}}_{X,Y}}P({\overrightarrow{n}}_{X,Y}\mid {\overrightarrow{n}}_{X})$. That leaves the LHS of that equality unchanged. However, it changes the RHS to $\int d{\rho}_{X,Y}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X}){\mathcal{D}}_{{c}^{\prime},X\times Y}({\rho}_{X,Y}\phantom{\rule{0.277778em}{0ex}}|\phantom{\rule{0.277778em}{0ex}}{\overrightarrow{n}}_{X})$. This provides the following corollary:

**Corollary 3**

Fix any finite spaces, X and Y, concentration parameter c, function Q defined over ${\Delta}_{X}$ and set ${\overrightarrow{n}}_{X,Y}$ of counts of each of the elements in $X\times Y$. Then:

$$\begin{array}{ccc}\hfill \int d{\rho}_{X}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X}){\mathcal{D}}_{c,X}({\rho}_{X}\phantom{\rule{0.277778em}{0ex}}|\phantom{\rule{0.277778em}{0ex}}{\overrightarrow{n}}_{X})& =& \int d{\rho}_{X,Y}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X}){\mathcal{D}}_{c,X\times Y}({\rho}_{X,Y}\phantom{\rule{0.277778em}{0ex}}|\phantom{\rule{0.277778em}{0ex}}{\overrightarrow{n}}_{X})\hfill \end{array}$$

The integral on the RHS of Corollary 3 is the inner integral on the RHS of the definition of IUV, Definition 10. This establishes that if the conditional prior, $\pi (c\mid |X|)$, equals the conditional prior, $\pi (c\mid |X||Y|)$, then IUV holds.

We will use the term

**Dirichlet-independent hyperprior**(DI hyperprior) to refer to any prior of the form $\pi (c,|Z|)=\pi (c)\pi (|Z|)$ over the hyperparameters of a Dirichlet distribution with uniform baseline distribution. We now present the main result of this section, which is that if we restrict attention to hyper priors meeting a particular technical condition [24], then IUV and a DI hyperprior are equivalent, as proven in Appendix B:**Proposition 4**

Assume that for any two finite spaces, $XandY$, and associated count vector ${\overrightarrow{n}}_{X}$, there exists an $\u03f5>0$, such that:
is infinitely differentiable with respect to c at $c=1$ and that its Fourier transform is analytic. Then, π is a DI hyperprior ⇔ IUV holds.

$$\begin{array}{c}\hfill {((1+\u03f5)|X|)}^{c}\frac{\pi (c\mid |X|)-\pi (c\mid |X||Y|)}{C(c,{\overrightarrow{n}}_{X})}\end{array}$$

We can combine these results to see that under the conditions in Proposition 4, we have a DI hyperprior iff strengthened IUV holds.

In some situations, the number of possible values of the “hidden variable” will vary with $x\in X$. This is a generalization of the currently considered scenario, where rather than $Z={\cup}_{x\in X}{Y}_{x}$, where $|{Y}_{x}|$ is the same for all x, we allow the sizes, $|{Y}_{x}|$, to vary with x. One can modify the definitions of IUV and strengthened IUV given above to address this situation, and all the results presented above (appropriately modified) still hold. This is due to the fact that Dirichlet distributions are “consistent under marginalization”, as described at the beginning of this section.

## 5. Calculational Benefits

In addition to its “theoretical” advantage of being equivalent to a natural desideratum (IUV), DI hyperpriors also have practical advantages. In particular, recall that WW derived a complicated expression for posterior expected mutual information based on Equation (5). Part of what made that expression complicated was that it used a posterior over ${\Delta}_{X,Y}$ to evaluate $H(X)$ and $H(Y)$, as well as $H(X,Y)$.

However, when we have a DI hyperprior, the posterior expectation of $H(X)$ conditioned on ${\overrightarrow{n}}_{X}$ is the same, whether we evaluate it using a posterior over ${\Delta}_{X}$ or evaluate it using a posterior over ${\Delta}_{X,Y}$. This means we can evaluate that posterior expected mutual information by summing the posterior expected $H(X)$ under a posterior over ${\Delta}_{X}$, posterior expected $H(Y)$ under a posterior over ${\rho}_{Y}$ and posterior expected $H(X,Y)$ under a posterior over ${\Delta}_{X,Y}$. In turn, each of those three expectation values are given by a relatively simple formula from WW [Equation (29) in Appendix A].

This property concerns a scenario where we only have data ${\overrightarrow{n}}_{X}$. However, often when we want to estimate mutual information, we will have the full dataset with no unseen components, ${\overrightarrow{n}}_{X,Y}$. For that case, we can use Lemma 1 to justify decomposing the posterior expected mutual information into a sum of three posterior expected entropies and then evaluate those posterior expected entropies separately using Equation (29) in Appendix A. This directly gives us the following result, which does not rely on IUV:

**Corollary 5**

Let X and Y be two spaces and $\overrightarrow{n}$, a sample generated by IID generating a distribution, ρ, across $X\times Y$, where ρ was generated by sampling a Dirichlet prior with concentration parameter c. Then:

$$\begin{array}{ccc}\hfill \mathbb{E}(I(X;Y)\mid \overrightarrow{n},c)& =& \sum _{x,y}\Delta {\Phi}^{(1)}(\overrightarrow{n}(x,y)+1+c/|X||Y|,N+|X||Y|+1)\frac{\overrightarrow{n}(x,y)+c/|X||Y|}{N+c}\hfill \\ & & -\sum _{x}\Delta {\Phi}^{(1)}({n}_{X}(x)+1+c/|X|,N+|X|+1)\frac{{n}_{X}(x)+c/|X|}{N+c}\hfill \\ & & -\sum _{y}\Delta {\Phi}^{(1)}({n}_{Y}(y)+1+c/|Y|,N+|Y|+1)\frac{{n}_{Y}(y)+c/|Y|}{N+c}\hfill \end{array}$$

By Corollary 2, the analogous equality holds when we marginalize over c rather than condition on it, so long as we assume IUV.

Similarly to how the posterior first moment of mutual information can be defined using either Equation (2) or Equation (3), so can the posterior second moment:
or, alternatively:
where the RHS of Equation (11) is evaluated using a Dirichlet prior over ${\Delta}_{X,Y}$, while the first two terms on the RHS in Equation (10) are instead evaluated using a Dirichlet prior over ${\Delta}_{X}$ and over ${\Delta}_{Y}$, respectively.

$$\begin{array}{ccc}\hfill E({I}^{2}\mid \overrightarrow{n})& =& \mathbb{E}(H{(X)}^{2}\mid {\overrightarrow{n}}_{X})+\mathbb{E}({H}_{Y}^{2}\mid {\overrightarrow{n}}_{Y})+\mathbb{E}({H}_{X,Y}^{2}\mid \overrightarrow{n})\hfill \\ & & \phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}-\phantom{\rule{0.277778em}{0ex}}2\mathbb{E}(H(X)H(Y)\mid \overrightarrow{n})-2\mathbb{E}(H(X)H(X,Y)\mid \overrightarrow{n})-2\mathbb{E}(H(Y)H(X,Y)\mid \overrightarrow{n})\hfill \end{array}$$

$$\begin{array}{ccc}\hfill \mathbb{E}({I}^{2}\mid \overrightarrow{n})& =& \mathbb{E}\left({\left(\sum _{x,y}\rho (x,y)ln\left[\frac{\rho (x,y)}{\rho (x)\rho (y)}\right]\right)}^{2}\phantom{\rule{0.277778em}{0ex}}|\phantom{\rule{0.277778em}{0ex}}\overrightarrow{n}\right)\hfill \end{array}$$

Using the DI hyperprior, one gets the same answer whichever one of these expansions one uses. In addition, the first three terms in Equation (10) can be simplified under the DI hyperprior and evaluated using the formula in WW for posterior expected entropy. Unfortunately though, the remaining terms, e.g., $\mathbb{E}(H(X)H(X,Y))\mid \overrightarrow{n})$, cannot be simplified the same way; evaluating them seems to require the kinds of techniques used in WW to evaluate the posterior variance of mutual information. This also applies to the use of our estimators for the computation of Tsallis entropy, since they also require use of higher-order moments..

There have been many ways proposed to generalize the idea of mutual information beyond two random variables. One of the most prominent is the

**multi-information**of a set of random variable (see, e.g., Reference [18]). Just like mutual information among a pair of random variables can be defined either as a sum of the entropies of subsets of those random variables or as a function over the full event space, the same is true of multi-information. The definition of multi-information in terms of the entropies of subsets of the random variables is:
$$\begin{array}{ccc}\hfill I({X}_{1},{X}_{2},\dots )& \equiv & \sum _{i}H({X}_{i})-H({X}_{1},{X}_{2},\dots )\hfill \end{array}$$

Just as requiring IUV means that we do not have to worry about which of the ways to express the mutual information of two random variables (when calculating the posterior expectated mutual information based on data concerning only one of those random variables), the same is true of multi-information; requiring IUV means that we do not have to worry about how to express multi-information among a set of random variables when calculating its posterior expectation based on data concerning only a subset of those random variables. Moreover, just as IUV greatly simplifies the calculation of posterior expected information when our data concerns all the random variables, allowing us to just repeatedly apply Equation (29) in Appendix A, the same is true with multi-information.

## 6. Uncertainty in the Concentration Parameter and Event Space Size

Even when one adopts a DI hyperprior, so that prior c and prior $|Z|$ are statistically independent, there is still the issue of how to set $P(c)$ and $P(|Z|)$. In this section, we discuss some aspects of this issue.

#### 6.1. Uncertainty in c

There are several natural choices of $P(c)$. For example, if we view c as a scale parameter, a logarithmic prior ($P(c)\propto 1/c$ up to a very large cut-off in c) would be reasonable.

Another approach is to set c to a single value that is “optimal” in some sense. Grassberger argued for setting $c=1$ based on minimizing a rough approximation to the statistical bias. In addition, as subsequently pointed out by NSB, for a fixed Z, the choice of c equal to unity gives near-maximal prior variance of the entropy, i.e.:
is near its maximum at $c=1$. Confirming this nice property of $c=1$, numerical calculation finds that, as $|Z|$ goes to infinity, the value of c maximizing that prior variance is ${c}_{\mathrm{max}}\approx 0.9222$. For small numbers of bins, ${c}_{\mathrm{max}}$ is smaller (e.g., for $|Z|$ equal to 5, ${c}_{\mathrm{max}}\approx 0.6997$).

$$\mathbb{E}({[H-\mathbb{E}(H\mid c,Z)]}^{2}\mid c,Z)\phantom{\rule{0.277778em}{0ex}}=\phantom{\rule{0.277778em}{0ex}}\frac{c/|Z|+1}{c+1}{\psi}_{1}(c/|Z|+1)-{\psi}_{1}(c+1)$$

Of course, one could also set c via a scheme other than hierarchical Bayes. In particular, setting it via maximum likelihood (i.e., ML-II [25]) should often be reasonable.

#### 6.2. Likelihood of the Event Space Size

Recalling the definition of G from Section 3, we can write:
Using the results of WW to evaluate this, we get:
Note that $\Gamma (x)$ diverges as $1/x$ as $x\to 0$. Thus, the factor of $\Gamma {(c/|Z|)}^{|\mathcal{S}(\overrightarrow{n})|}$ in the denominator means that Equation (15) is strongly weighted towards $|Z|$ small (but strictly greater than $|\mathcal{S}(\overrightarrow{n})|$, the number of observed bins.)

$$\begin{array}{ccc}\hfill P(\overrightarrow{n}\mid c,|Z|)& =& \frac{G(\overrightarrow{n},c,|Z|)}{{\sum}_{\overrightarrow{n}}G(\overrightarrow{n},c,|Z|)}\hfill \end{array}$$

$$\begin{array}{ccc}\hfill P(\overrightarrow{n}\mid c,|Z|)& =& \frac{\Gamma (c)}{\Gamma {(c/|Z|)}^{|\mathcal{S}(\overrightarrow{n})|}}\frac{{\prod}_{i=1}^{|\mathcal{S}(\overrightarrow{n})|}\Gamma ({n}_{i}+c/|Z|)}{\Gamma (N+c)}\hfill \end{array}$$

We have fixed the constant, c, in Equation (15). We could integrate over it instead, getting:
where $P(c)$ must be independent of $|Z|$ in order to preserve IUV. Choosing different values of c shifts the posterior distribution, as can be seen in Figure 1.

$$P(\overrightarrow{n}\mid |Z|)=\int \frac{\Gamma (c)}{\Gamma {(c/|Z|)}^{M}}\frac{{\prod}_{i=1}^{M}\Gamma ({n}_{i}+c/|Z|)}{\Gamma (N+c)}P(c)\phantom{\rule{3.33333pt}{0ex}}dc$$

**Figure 1.**Likelihoods for a dataset of one thousand samples drawn from a distribution ρ that was, in turn, drawn from a Dirichlet prior. The concentration parameter was $c=1$, and $|Z|$ was 100. (The actual dataset was $\{691,232,24,17,14,10,6,6\}$, with the remaining 92 entries equaling zero.)

**Thick solid line**: $P(\overrightarrow{n}\mid |Z|)$ with a logarithmic prior for c (Equation (16)). Mean value: $8.2$.

**Thin solid line**: $P(\overrightarrow{n}\mid |Z|,c)$ with $c=1$ (mean value: $8.4$).

**Dashed line**: $c=0.01$ (mean value: $8.8$).

**Dotted line**: $c=100$ (mean value $8.0$.) Note that the maximum likelihood (ML) value is always $|\mathcal{S}(\overrightarrow{n})|$, the number of observed bins.

Figure 1 plots the likelihoods, $P(\overrightarrow{n}\mid |Z|)$ and $P(\overrightarrow{n}\mid c,|Z|)$, for various values of c. Note that $\mathcal{S}(\overrightarrow{n})$ is far smaller than $|Z|$. This reflects the fact that for $c\ll |Z|$, ρ is likely to be highly peaked about only a few bins and close to zero for all others. Note how strongly this likelihood prefers small values of $|Z|$. Even when the likelihood is evaluated with the value of c that was used to generate $\overrightarrow{n}$, it still strongly prefers $|Z|$ values that are far smaller than the one that was used to generate $\overrightarrow{n}$ [26].

In Figure 2, we again evaluate $P(\overrightarrow{n}\mid |Z|)$ and $P(\overrightarrow{n}\mid c,|Z|)$, where $\mathcal{S}(\overrightarrow{n})$ again equals eight, but now, $\overrightarrow{n}$ is uniform with the value 125 over the eight occupied bins. This dataset again implies with a high probability that ρ was highly peaked about the eight occupied bins and close to zero elsewhere. Therefore, again, the likelihood has a strong preference towards small values of $|Z|$.

**Figure 2.**Likelihoods for a dataset consisting of eight bins with 125 counts each, with the remaining 92 entries being zero.

**Thick solid line**: $P(\overrightarrow{n}\mid |Z|)$ with logarithmic prior for c (Equation (16)). Mean value: $8.0$.

**Thin solid line**: $P(\overrightarrow{n}\mid |Z|,c)$ with $c=1$ (mean value: $8.3$).

**Dashed line**: $c=0.01$ (mean value: $8.8$).

**Dotted line**: $c=100$ (mean value $8.0$). Note that the ML value is always $|\mathcal{S}(\overrightarrow{n})|$, the number of observed bins.

To understand these results, recall “Bayes factors”, which arise in Bayesian inference of the dimension of an underlying stochastic model based on samples of that model. These factors cause a strong a priori preference of the model dimension’s likelihood towards small values. The preference of $P(\overrightarrow{n}\mid |Z|)$ for small $|Z|$ is a similar phenomenon, with the size of the space Z playing an analogous role here to the model dimension in Bayes factors. In both cases, it is the greatly increased likelihood of the data for a distribution from the smaller model that causes that model to have greater likelihood.

By comparing Figure 1 and Figure 2, we see that for a logarithmic prior (one that is agnostic about c), changing the data without changing $|Z|$ or $\mathcal{S}(\overrightarrow{n})$ can have a marked effect on the likelihood, even when $|Z|\gg |\mathcal{S}(\overrightarrow{n})|$ [27]. Evidently, then, so long as we integrate over c’s for each $|Z|$ (as in NSB) rather than fix a single value (as in WW), the dependence of the likelihood of $|Z|$ on the data is not overwhelmed by the precise choice of a prior. It does not seem that the particular $P(c\mid |Z|)$ adopted in NSB is necessary to have this data-sensitivity, at least as far as the likelihood of $|Z|$ is concerned and at least for the regime tested here.

#### 6.3. Uncertainty in the Event Space Size

One of the core distinguishing features of the approach analyzed in this paper is to treat $|Z|$ as a random variable. In particular, the experimental comparisons with NSB discussed in Section 7.2 require specification of a prior, $P(|Z|)$.

There are several different ways of motivating such a prior over $|Z|$. Perhaps the simplest is to have it be uniform up to some cutoff, far larger than $\mathcal{S}(\overrightarrow{n})$. A somewhat more sophisticated approach would be to assume that $P(|Z|)$ is set by a stochastic process that starts with $|Z|=1$ and then iteratively adds a new “bin” to Z, the set of already selected bins, stopping after each iteration with a probability, $1-\gamma $, ending at some upper cutoff, $\underline{m}$, if we get to $|Z|=\underline{m}$. Then, we can write:
for all $|Z|\le \underline{m}$, and $P(|Z|\mid \underline{m})=0$, otherwise. Alternatively, to avoid the need to specify an upper cutoff, one could use $P(|Z|)\propto exp(-\alpha |Z|)$ for some hyperparameter, α.

$$\begin{array}{ccc}\hfill P(|Z|\mid \underline{m})& \propto & {\gamma}^{|Z|}\hfill \end{array}$$

Other models are also possible. For example, we might imagine that there is some upper bound value, $\underline{m}$, that is set a priori and $|Z|$ initially set to $\underline{m}$. Then, elements of Z are iteratively removed, at random, stopping after each iteration with a probability, $1-\gamma $, ending at $|Z|=1$, if we manage to get to $|Z|=1$. Whereas the first $P(|Z|)$ is a decreasing function from $|Z|=1$ up to $|Z|=\underline{m}$; this alternative $P(|Z|)$ is an increasing function over that range (see Section 8.2 for a discussion of these kinds of scenarios where Z is determined by randomly forming a subset of some original larger set).

A natural extension to both of these models is to allow $\underline{m}$ to vary and use an associated (hyper)prior. As always, the choice of random variables and associated (hyper)priors should match one’s understanding of the underlying physical process by which the data is collected as accurately as possible.

Once we have a hyperprior, $P(|Z|)$, we can combine it with the likelihoods plotted in Figure 1 to get a posterior distribution over $|Z|$. For a $P(|Z|)$ that is nowhere-increasing, since the likelihoods are decreasing functions of $|Z|$, the posterior is also a decreasing function of $|Z|$. This would lead to an MAPestimate of $|Z|=|\mathcal{S}(\overrightarrow{n})|$, though, in general, $\mathbb{E}(|Z|\mid \overrightarrow{n})$ would be bigger than $|\mathcal{S}(\overrightarrow{n})|$. (In the scenario considered below in Section 8.2, both the MAP and posterior expected values of $|Z|$ can exceed $|\mathcal{S}(\overrightarrow{n})|$.)

#### 6.4. Specifying a Single Event Space Size

Another way to address uncertainty in $|Z|$ is to set it to a single “optimal’ value, rather than averaging over it. For example, we could use a “coverage estimator” [16,23] to set a single value of $|Z|$, m and, then, evaluate $\mathbb{E}(Q\mid \overrightarrow{n},c,|Z|=m)$ using the formulas in WW [28]. Alternatively, if one has a distribution over c, then we would integrate over it while keeping $|Z|$ fixed. If we assume IUV, so $P(c\mid |Z|)=P(c)$, this would give:
where we have used the results in Section 3 to derive the last line. Of course, we could also replace $P(c)$ in this formula with a distribution $P(c\mid |Z|=m)$ if we wish to violate IUV, e.g., as in the NSB estimator.

$$\begin{array}{ccc}\hfill \mathbb{E}(Q\mid \overrightarrow{n},|Z|=m)& =& \int d\rho \phantom{\rule{0.277778em}{0ex}}Q(\rho )P(\rho \mid \overrightarrow{n},|Z|=m)\hfill \\ & =& \int d\rho \phantom{\rule{0.277778em}{0ex}}Q(\rho )\int dc\phantom{\rule{0.277778em}{0ex}}P(\rho ,c\mid \overrightarrow{n},|Z|=m)\hfill \\ & =& \int d\rho \phantom{\rule{0.277778em}{0ex}}Q(\rho )\frac{\int dc\phantom{\rule{0.277778em}{0ex}}P(\overrightarrow{n}\mid \rho ,c,|Z|=m)P(\rho \mid c,|Z|=m)P(c)}{\int dcd\rho \phantom{\rule{0.277778em}{0ex}}P(\overrightarrow{n}\mid \rho ,c,|Z|=m)P(\rho \mid c,|Z|=m)P(c)}\hfill \\ & =& \frac{\int dcd\rho \phantom{\rule{0.277778em}{0ex}}P(c)Q(\rho )\left[{\prod}_{z}{\rho}_{z}^{{n}_{z}-1+c/m}/G(0,c,m)\right]}{\int dcd\rho \phantom{\rule{0.277778em}{0ex}}P(c)\left[{\prod}_{z}{\rho}_{z}^{{n}_{z}-1+c/m}/G(0,c,m)\right]}\hfill \\ & =& \frac{\int dcd\rho \phantom{\rule{0.277778em}{0ex}}P(c)\Gamma (N+c)Q(\rho )\left[{\prod}_{z}{\rho}_{z}^{{n}_{z}-1+c/m)}/{[\Gamma (c/m)]}^{m}\right]}{\int dcd\rho \phantom{\rule{0.277778em}{0ex}}P(c)\Gamma (N+c)\left[{\prod}_{z}{\rho}_{z}^{{n}_{z}-1+c/m}/{[\Gamma (c/m)]}^{m}\right]}\hfill \end{array}$$

## 7. Posterior Expected Entropy When $|Z|$ is a Random Variable

#### 7.1. Fixed c

How can we estimate the entropy of a system when the number of bins is unknown while c is fixed? Under IUV:
where $P(|Z|)$ could be given by one of the priors discussed in Section 6.3.

$$\begin{array}{ccc}\hfill P(H=h\mid \overrightarrow{n},c)& \propto & \sum _{|Z|=1}^{\infty}\int d\rho \phantom{\rule{0.277778em}{0ex}}P(\overrightarrow{n}\mid \rho ,c,|Z|)P(\rho \mid Z,c)P(|Z|\mid c)\phantom{\rule{3.33333pt}{0ex}}\delta (H\left[\rho \right]-h)\hfill \\ & =& \sum _{|Z|=1}^{\infty}\int d\rho \phantom{\rule{0.277778em}{0ex}}P(\overrightarrow{n}\mid \rho ,|Z|)\phantom{\rule{3.33333pt}{0ex}}{\mathcal{D}}_{c,Z}(\rho )P(|Z|)\phantom{\rule{3.33333pt}{0ex}}\delta (H\left[\rho \right]-h)P(|Z|)\hfill \\ & \equiv & \sum _{|Z|=1}^{\infty}\int d\rho \phantom{\rule{0.277778em}{0ex}}P(\overrightarrow{n}\mid \rho )\phantom{\rule{3.33333pt}{0ex}}{\mathcal{D}}_{c,Z}(\rho )P(|Z|)\phantom{\rule{3.33333pt}{0ex}}\delta (H\left[\rho \right]-h)\hfill \end{array}$$

Instead of trying to solve for this, as in WW, we can consider the posterior expected values of the moments of the entropy. Using IUV, the first moment is:

$$\begin{array}{ccc}\hfill \mathbb{E}(H\mid \overrightarrow{n},c)& =& \sum _{|Z|=1}^{\infty}\int d\rho \phantom{\rule{3.33333pt}{0ex}}H(\rho )P(\rho ,|Z|\mid \overrightarrow{n},c)\hfill \\ & =& \sum _{|Z|=1}^{\infty}\int d\rho \phantom{\rule{3.33333pt}{0ex}}H(\rho )\frac{P(\overrightarrow{n}\mid \rho )P(\rho \mid |Z|,c)P(|Z|)}{{\sum}_{|{Z}^{\prime}|=1}^{\infty}\int d{\rho}^{\prime}\phantom{\rule{3.33333pt}{0ex}}P(\overrightarrow{n}\mid {\rho}^{\prime})P({\rho}^{\prime}\mid |{Z}^{\prime}|,c)P(|{Z}^{\prime}|)}\hfill \\ & =& \frac{{\sum}_{|Z|=M}^{\infty}P(|Z|)\int d\rho \phantom{\rule{3.33333pt}{0ex}}H(\rho )\phantom{\rule{3.33333pt}{0ex}}P(\overrightarrow{n}\mid \rho )\phantom{\rule{3.33333pt}{0ex}}{\mathcal{D}}_{c,Z}(\rho )}{{\sum}_{|Z|=M}^{\infty}P(|Z|)\int d\rho \phantom{\rule{3.33333pt}{0ex}}P(\overrightarrow{n}\mid \rho )\phantom{\rule{3.33333pt}{0ex}}{\mathcal{D}}_{c,Z}(\rho )}\hfill \end{array}$$

The two integrals are straight-forward. We already know the denominator; the numerator is not that much harder. To simplify the expression of the result, define $M\equiv |\mathcal{S}(\overrightarrow{n})|$ and write $\{{n}_{i}:i\in \mathcal{S}(\overrightarrow{n})\}$ for the set, $\{{n}_{Z}(z):z\in \mathcal{S}(\overrightarrow{n})\}$. Then, we get:
where the term on the last line arises from empty bins and where ${\Phi}^{(n)}$ and $\Delta {\Phi}^{(n)}$ are defined in Section 3.

$$\begin{array}{ccc}\hfill \mathbb{E}(H\mid \overrightarrow{n},c)& =& \frac{1}{{\sum}_{|Z|=M}^{\infty}P(|Z|)\frac{{\prod}_{i=1}^{M}\Gamma ({n}_{i}+c/|Z|)}{\Gamma {(c/|Z|)}^{M}}}\phantom{\rule{0.277778em}{0ex}}\times \hfill \\ & & \phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\{\sum _{|Z|=M}^{\infty}P(|Z|)\frac{{\prod}_{i=1}^{M}\Gamma ({n}_{i}+c/|Z|)}{\Gamma {(c/|Z|)}^{M}}(\left[\sum _{i=1}^{M}\frac{{n}_{i}+c/|Z|}{N+c}\Delta {\Phi}^{(1)}({n}_{i}+c/|Z|+1,c+N+1)\right]\hfill \\ & & \phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}+\phantom{\rule{3.33333pt}{0ex}}\phantom{\rule{0.222222em}{0ex}}\phantom{\rule{0.222222em}{0ex}}(|Z|-M)\frac{c/|Z|}{N+c}\Delta {\Phi}^{(1)}(c/|Z|+1,c+N+1))\}\hfill \end{array}$$

Recall from Section 6.2 that the likelihood, $P(\overrightarrow{n}\mid c,|Z|)$, is strongly weighted towards small $|Z|$. Therefore, if $P(|Z|)$ has an upper cutoff, $\mathcal{M}$, and is nowhere-increasing, then under a DI hyperprior, the posterior, $P(|Z|\mid \overrightarrow{n},c)$, must also be strongly weighted towards small $|Z|$. This will cause posterior moments of ρ to be dominated by values, $|Z|$, that are not much larger than M. In general, this will mean that these posterior moments will not be prior-dominated, in the sense that attributes of $\overrightarrow{n}$ will affect them significantly.

As an illustration, note that, in general, the innermost sum in Equation (21):
goes to an $\overrightarrow{n}$-dependent constant as $|Z|$ becomes large. (The arguments of both $\Delta {\Phi}^{(1)}$’s become independent of $|Z|$, and the factors multiplying each of them go to a constant.) Furthermore, as discussed in Section 6.2, $\Gamma {(c/|Z|)}^{-M}$ goes to zero as $|Z|$ gets large. Accordingly, for our assumed form of $P(|Z|)$, once $\mathcal{M}$ is appreciably larger than M, posterior expected entropy does not change if $\mathcal{M}$ instead becomes hugely larger than M. In this sense, the posterior expected entropy does not become prior dominated as $\mathcal{M}$ becomes very large. (At a minimum, M—an attribute of the data, not the prior—is determining the range of relevant $|Z|$.) Therefore, to the degree that prior-dominance is avoided in Equation (21), treating $|Z|$ as a random variable and requiring IUV removes the phenomenon that caused NSB to adopt their scheme for setting $P(c)$.

$$\begin{array}{c}\hfill \left[\sum _{i=1}^{M}\frac{{n}_{i}+c/|Z|}{N+c}\Delta {\Phi}^{(1)}({n}_{i}+c/|Z|+1,c+N+1)\right]\phantom{\rule{3.33333pt}{0ex}}+\phantom{\rule{3.33333pt}{0ex}}(|Z|-M)\frac{c/|Z|}{N+c}\Delta {\Phi}^{(1)}(c/|Z|+1,c+N+1)\end{array}$$

A formula similar to Equation (21) gives the second moment of the posterior distribution over the entropy. (It is too long to write out here; we recommend that a package like Mathematica be used to evaluate it.) Combining that formula with Equation (21) provides the posterior variance of the entropy when the number of bins is a random variable.

#### 7.2. Uncertain c

To allow for varying c, one can change the sum over $|Z|$ in Equation (21) for a fixed c to a new expression involving sums over $|Z|$ together with integrals over c with some prior for c. Care must be taken when doing this, since c is not independent of $\overrightarrow{n}$ (see Section 6.4 for another example of integrating over c when conditioning on $\overrightarrow{n}$). Using IUV, the result is:
To evaluate this, we need only separately apply $\int dcP(c)$ to both the numerator and denominator in Equation (21).

$$\begin{array}{ccc}\hfill \mathbb{E}(H\mid \overrightarrow{n})& =& \sum _{|Z|=1}^{\infty}\int d\rho dc\phantom{\rule{3.33333pt}{0ex}}H(\rho )P(\rho ,|Z|,c\mid \overrightarrow{n})\hfill \\ & =& \frac{{\sum}_{|Z|=M}^{\infty}P(|Z|)\int d\rho dc\phantom{\rule{3.33333pt}{0ex}}H(\rho )\phantom{\rule{3.33333pt}{0ex}}P(\overrightarrow{n}\mid \rho )\phantom{\rule{3.33333pt}{0ex}}{\mathcal{D}}_{c,Z}(\rho )P(c)}{{\sum}_{|Z|=M}^{\infty}P(|Z|)P(c)\int d\rho dc\phantom{\rule{3.33333pt}{0ex}}P(\overrightarrow{n}\mid \rho )\phantom{\rule{3.33333pt}{0ex}}{\mathcal{D}}_{c,Z}(\rho )P(c)}\hfill \end{array}$$

#### 7.3. Experimental Tests

The primary focus of this paper is an analysis of the IUV desideratum and its implications for the hyperprior. However, as a sanity check, in this subsection, we compare the performance of posterior estimators of entropy and of mutual information that are based on a DI hyperprior to three estimators of those quantities that were previously considered in the literature. These three alternative estimators are NSB, the estimator considered in [19] (which is an asymptotic version of NSB that allows for the estimation of entropy when the number of bins is unknown), and the “Coverage-Adjusted Estimator” (CAE) of [16]. To simplify the exposition, we will sometimes refer to any estimator based on a DI hyperprior as a “W&D” estimator.

From a decision-theoretic perspective, no estimator can do better under an assumed hyperprior than one that is Bayes-optimal for that hyperprior, if one quantifies performance with experiments that draw samples from that same hyperprior. Failures of a Bayes-optimal estimator always arise from a mismatch between the hyperprior used to construct the estimator and the hyperprior used to actually generate the data. Accordingly, to make meaningful comparisons between a W&D estimator and others, we must see how well Equation (22) performs “out of class”, for data that is not generated from the DI hyperprior used to construct the W&D estimator.

To make these comparisons, we use a W&D estimator for a hyperprior that has logarithmic $P(c)$ and uniform $P(|Z|)$ and then consider two general types of data that are not drawn under this hyperprior. In particular, we consider: (1) distributions sampled from Dirichlet distributions with fixed c; and (2) power-law distributions of the form:
where $S\left[i\right]$ is a one-to-one map on the integers from one to $m=|Z|$. (Varying such $S[.]$ ensures that the order of the terms is not fixed, but can vary depending on the particular choice of $S[.]$; this is important when constructing joint probability distributions by re-interpreting a probability distribution over m categories as a joint distribution over $\sqrt{m}\times \sqrt{m}$ categories, as in estimates of mutual information between a pair of random variables.)

$$P(i)\propto \frac{1}{S{\left[i\right]}^{\alpha}},\phantom{\rule{3.33333pt}{0ex}}[i=1\dots m]$$

We estimated the entropy and mutual information based on datasets generated this way using Equation (22), the Coverage-Adjusted Estimator of [16] (Equation 18, with $n+1$ correction to make it well-defined in the singleton case), the Asymptotic NSB estimator of [19] and a “large-Z” version of the standard NSB estimator of [12], where the bin size is set to a large value assumed to be larger than the possible number of bins. For both W&D and the large-Z NSB, we must include a maximum bin number. We take this to be $10,000$ (i.e., a hundred times larger than the actual number), and in the case of mutual information estimation, we allow the large-Z NSB estimator to assume that the maximum bin number for each marginal is 100 (i.e., ten times larger than the actual one), with the maximum bin number for the full distribution, as before, set to $10,000$.

We then computed the RMS error between these estimates and the truth for all three estimators. The results are shown in Figure 4, where we sample 100-bin processes in the “deeply undersampled regime”, where N, the number of counts, is $\sqrt{m}$.

**Figure 3.**RMS error for the estimation of entropy with an unknown bin number. In both plots, the solid line shows the W&D estimator, Equation (22); the dashed line shows the asymptotic version of NSB (Equation (29) of [19]); the dotted line shows the Coverage-Adjusted Estimator of [16]; the dot-dashed line shows the “large-Z” version of NSB. The true bin number is 100, and the associated distribution, ρ, was sampled ten times (i.e., it was radically under-sampled given the number of bins). (

**Top**) Results when the distribution, ρ, used to generate the data is randomly generated under a Dirichlet distribution, whose concentration, c, is varied from ${10}^{-2}$ (highly non-uniform; many hits in a few bins) to ${10}^{4}$ (highly uniform), as indicated. (

**Bottom**) Results when ρ is a a power-law distribution over the bin number with index α that is varied from zero (perfectly uniform) to four (highly non-uniform), as in Equation (23). (The Zipf distribution corresponds to $\alpha =1$.)

The estimator of Equation (22) outperforms the asymptotic NSB estimator for a wide range of distributions, both Dirichlet and power-law. This is not entirely unexpected; the asymptotic estimator works only to zeroth order in $1/N$ and $1/m$. In the regimes where the true ρ is likely to have low-entropy, the large-Z estimator performs almost identically to the asymptotic NSB estimator, while it performs somewhat better in the high-entropy regime, where it is competitive with Equation (22). For low-entropy samples (either low c or high α), Equation (22) is competitive with the Coverage-Adjusted Estimator. Inefficiencies in Equation (22) trace back to our prior over c; in cases where one has a strong belief that the data are drawn from high-entropy distributions, different c weights should be used.

Interestingly, at the α equal to the unity point (the Zipf distribution), all four methods are within a factor of two of each other rms. The strongest differences between the methods emerge at low entropies.

We can use the same methods to compare the accuracies of the estimators of the mutual information. In particular, since Equation (22) respects IUV, we can decompose the mutual information into the sum and differences of entropies. In Figure 4, we plot RMS error for mutual information estimated in this fashion and compare it to the naive use of the asymptotic and large-Z NSB estimators and the Coverage-Adjusted Estimator of [16].

The differences between the estimators of mutual information are more extreme than the difference for the estimators of entropy; the W&D estimator based on Equation (22) and the Coverage-Adjusted Estimator perform comparably. The large-Z NSB Estimator performs comparably in the high-entropy regime; the asymptotic NSB estimator tends to perform poorly.

We emphasize that the choice of DI hyperprior used in these experiments was “naive”, not based on any careful reasoning or desiderata. In particular, no consideration was given to what type of generative process plausibly underlies the construction of $|Z|$ (see Section 8). Potentially more compelling results would occur for a more careful choice of hyperprior.

**Figure 4.**RMSerror for the estimation of mutual information with unknown bin number. The true bin number is 100, interpreted as events over a $10\times 10$ joint space, sampled ten times (i.e., radically under-sampled compared to the number of bins). The solid line shows the estimate made using the W&D estimator, Equation (22); the dashed line, the asymptotic version of NSB (Equation (29) of [19]); the dotted line, the Coverage-Adjusted Estimator of [16]; the dot-dashed line, the “large-Z” version of NSB. (

**Top**) Results when ρ is randomly generated under a Dirichlet distribution whose concentration, c, is varied from ${10}^{-2}$ (highly non-uniform; many hits in a few bins) to ${10}^{4}$ (highly uniform), as indicated. (

**Bottom**) Results when ρ is is a power-law distribution over the bin number with index α, which is varied from zero (perfectly uniform) to four (highly non-uniform). (The Zipf distribution corresponds to $\alpha =1$.)

## 8. Generative Models of Z

In this section, we discuss subtleties in how one models the statistical generation of Z. To ground the discussion, we will sometimes consider an example where a fishery’s biologist randomly samples fish from a lake via a catch-and-release protocol, to try to ascertain quantities, like the number of fish species in the lake, the entropy of the distribution of the counts of members of those species, etc. In this example, Z is the set of all fish species in the lake (and is explicitly a random variable), and $\overrightarrow{n}$ is a set of the counts of the species of fish.

#### 8.1. Mapping Physical Samples to Bin Labels

In the processes considered in the previous sections, $\pi (m)$ is sampled to produce m, and a set, Z, of m elements, labeled, for example, $\{1\dots ,m\}$, is then created. Next, c is sampled from $\pi (c\mid m)$. After this, $P(\rho \mid c,m)$ is sampled to get a ρ, and finally, $\overrightarrow{n}$ is sampled from ρ.

Note that the $\overrightarrow{n}$ produced at the end of this process is a set of counts of the integers ranging from one to m. However, physically, $\overrightarrow{n}$ is not a set of counts of integers. This implies that we need a map from the physical characteristics of the samples in the real world into $\{1,\dots ,m\}$. As an illustration, in the fish-in-a-lake example, $\overrightarrow{n}$ is a set of the counts of species of fish that are distinguished by their physical characteristics (assuming no DNA sequencing or the like is used). Therefore, to apply the formulas derived in the previous sections, the biologist provided with a sample of the counts of fish species needs an invertible map sending each species of fish in their sample into $\{1\dots ,m\}$.

How should the biologist create that map? One idea might be to randomly build an invertible map taking each of the distinct species of fish they have sampled to a different member of the set of integers from one to m. However, the biologist cannot do this, since they do not know m, and, so, cannot build such a map. (m is a random variable, whose value is not known with certainty to the biologist, even after the biologist gets $\overrightarrow{n}$). Another possibility would be to assign the species of the first fish the biologist samples to one, the second distinct species sampled to two, and so on. However, this would introduce major biases in the estimators (for example, before any data is generated, we would know that ${n}_{1}\ge 1$, something we would not know for any ${n}_{i}$, where $i>1$).

As an alternative, we can model the statistical process as one in which the biologist assigns a species “label” to each new fish as the biologist draws it from the lake, based on the physical characteristics of that fish. More precisely, assuming the biologist measures K real-valued physical characteristics of each fish that the biologist draws from the lake, we can model the sampling process as follows:

- $\pi (m)$ is sampled to get m, the number of fish species in the lake. At this point, nothing is specified about the physical characteristics of each of those m species.
- Next, a Dirichlet distribution is sampled that extends over distributions ρ that themselves are defined over m bins.
- Next, a vector, ${v}_{j}\in {R}^{K}$, is randomly assigned to each of $j=1,\dots ,m$, e.g., where each of the m vectors is drawn from a Gaussian centered at zero (the precise distribution does not matter). ${v}_{j}$ is the set of K real-valued physical characteristics that we will use to define an idealized canonical specimen of fish species, j. By identifying the subscript, j, on each ${v}_{j}$ as the associated bin integer, we can view ρ as defined over m separate K-dimensional vectors of fish species characteristics.
- ρ is IID sampled to get a dataset of counts for each species, one through m. Physically, this means that the biologist draws a fish from bin j with probability ${\rho}_{j}$, i.e., they draw a fish with characteristics ${v}_{j}$ with probability ${\rho}_{j}$.

Note that we could interchange the order of steps 2 and 3. Note also that, in practice, since lakes do not contain “ideal fish”, there will be some small noise added to ${v}_{j}$ each time the biologist draws a member of species, j. We can assume that noise is small enough on the scale of the typical distance between the vectors of canonical fish species characteristics, so that the probability is infinitesimal, that the biologist misassigns what species a fish the biologist draws belongs to.

This generative model is more elaborate than the more informal one described at the beginning of this section. However, both models result in the same formulas, namely, those given in the previous sections.

#### 8.2. Subset Selection Effects

There are other, simpler models that one might think solve the difficulty of how to map the physical members of $\overrightarrow{n}$ into integers $\{1,\dots ,|Z|\}$. However, many of these alternative models introduce subtle biases into the estimators. Seemingly trivial differences in the formulation of the problem of estimating functionals from data can have substantial effects on the resultant predictions.

To illustrate this, consider the common scenario where we are given a set, $\widehat{Z}$, and know that $Z\subseteq \widehat{Z}$, but do not know which precise subset of $\widehat{Z}$ is Z. A simple example of such a scenario is a variant of the one where a field biologist wishes to estimate the entropy of the fish species in a particular lake by IID sampling fish in that lake. Say the biologist knows the set of all fish on Earth. However, assume they have no a priori knowledge that one fish is more likely than another to be a lake-dwelling fish. In this case, $\widehat{Z}$ is the subset of all fish on Earth, and Z is the set of all lake-dwelling fish. While the biologist knows $\widehat{Z}$, they are uncertain of Z.

We might presume that the estimation of quantities, like posterior expected entropy of the distribution of fish in the lake, would not depend on whether we calculate them for this scenario where we know that Z is an (unknown) subset of $\widehat{Z}$ or, instead, calculate them for the original scenario analyzed above, where we simply have uncertainty of Z, without any concern for an embedding set, $\widehat{Z}$. However, it turns out that the estimation is quite different in these two scenarios. This illustrates how much care one must take in the statistical formulation of the estimation problem.

To see that estimation differs in this variant of the fish-in-a-lake example, first, as shorthand, define m to be the size of Z, $|Z|$. In the subset-of-$\widehat{Z}$ scenario:
(Note the implicit definition of $\overrightarrow{n}$ as the vector of counts for all elements in $\widehat{Z}$.) $P(m\mid \widehat{Z})$ plays the same role here as the prior, $P(|Z|)$, does in the analysis above of the original scenario where there is no $\widehat{Z}$.

$$\begin{array}{ccc}\hfill P(\overrightarrow{n}\mid \widehat{Z})& =& \sum _{m=|\mathcal{S}(\overrightarrow{n})|}^{|\widehat{Z}|}P(m\mid \widehat{Z})P(\overrightarrow{n}\mid m,\widehat{Z})\hfill \end{array}$$

To evaluate the likelihood $P(\overrightarrow{n}\mid m,\widehat{Z})$ in Equation (24), we need a stochastic model of how Z is formed from $\widehat{Z}$. There are many such models possible. For simplicity, adopt the model that all Z’s of a given size, m, are equally likely:
Recalling the definitions of G and $\mathcal{S}$ in Section 3, we have the following (the proof is in Appendix B):

$$\begin{array}{ccc}\hfill P(Z\mid m,\widehat{Z})& =& \frac{{\delta}_{|Z|,m}}{\left(\genfrac{}{}{0pt}{}{|\widehat{Z}|}{m}\right)}\hfill \end{array}$$

**Proposition 6**

Under the conditional distribution in Equation (25):

- $P(\overrightarrow{n}\mid Z,m,\widehat{Z})\phantom{\rule{0.277778em}{0ex}}\propto \phantom{\rule{0.277778em}{0ex}}I(\mathcal{S}(\overrightarrow{n})\subseteq Z)G(\overrightarrow{n},c,m)$ ;
- $P(\overrightarrow{n}\mid m,\widehat{Z})\phantom{\rule{0.277778em}{0ex}}\propto \phantom{\rule{0.277778em}{0ex}}\left(\genfrac{}{}{0pt}{}{|\widehat{Z}|-|\mathcal{S}(\overrightarrow{n})|}{m-|\mathcal{S}(\overrightarrow{n})|}\right)\phantom{\rule{0.277778em}{0ex}}G(\overrightarrow{n},c,m)$

In contrast to the likelihood $P(\overrightarrow{n}\mid m,\widehat{Z})$ given by Proposition 6 for the subset-selection scenario, the likelihood for the original scenario analyzed above was:
where $|Z|=m$. Therefore, writing them out in full:
(The sum in the denominator in the second equation is implicitly restricted to those ${\overrightarrow{n}}^{\prime}\in \widehat{Z}$ whose support contains no more than m elements, and in both sums, we are implicitly restricting attention to those ${\overrightarrow{n}}^{\prime}$ with the same total number of elements as $\overrightarrow{n}$.) Intuitively, the reason for the difference between these two likelihoods is that in the subset-of-$\widehat{Z}$ scenario, there are combinatorial effects reflecting the number of ways of assigning elements in $\widehat{Z}\setminus \mathcal{S}(\overrightarrow{n})$ to the $|Z|-|\mathcal{S}(\overrightarrow{n})|$ bins in Z that are unoccupied in $\overrightarrow{n}$, whereas there are no such effects in the original scenario.

$$\begin{array}{ccc}\hfill P(\overrightarrow{n}\mid m)& =& \int d{\rho}_{Z}\phantom{\rule{0.277778em}{0ex}}P(\overrightarrow{n}\mid {\rho}_{Z})P({\rho}_{Z}\mid Z)\hfill \\ & \propto & G(\overrightarrow{n},c,m)\hfill \end{array}$$

$$\begin{array}{ccc}\hfill P(\overrightarrow{n}\mid m)& =& \frac{G(\overrightarrow{n},c,m)}{{\sum}_{{\overrightarrow{n}}^{\prime}}G({\overrightarrow{n}}^{\prime},c,m)}\hfill \end{array}$$

$$\begin{array}{ccc}\hfill P(\overrightarrow{n}\mid m,\widehat{Z})& =& \frac{\left(\genfrac{}{}{0pt}{}{|\widehat{Z}|-|\mathcal{S}(\overrightarrow{n})|}{m-|\mathcal{S}(\overrightarrow{n})|}\right)\phantom{\rule{0.277778em}{0ex}}G(\overrightarrow{n},c,m)}{{\sum}_{{\overrightarrow{n}}^{\prime}}\left(\genfrac{}{}{0pt}{}{|\widehat{Z}|-|\mathcal{S}({\overrightarrow{n}}^{\prime})|}{m-|\mathcal{S}({\overrightarrow{n}}^{\prime})|}\right)\phantom{\rule{0.277778em}{0ex}}G({\overrightarrow{n}}^{\prime},c,m)}\hfill \end{array}$$

The extra combinatoric factor, $\left(\genfrac{}{}{0pt}{}{|\widehat{Z}|-|\mathcal{S}(\overrightarrow{n})|}{m-|\mathcal{S}(\overrightarrow{n})|}\right)$, in the subset-of-$\widehat{Z}$ scenario’s likelihood for m pushes that likelihood to prefer smaller values of $|\mathcal{S}(\overrightarrow{n})|$ compared to the original likelihood. It also distorts how the likelihood depends on m. To a degree, we can compensate for this second effect using the other term in the summand in Equation (24) besides $P(\overrightarrow{n}\mid m,\widehat{Z})$, $P(m\mid \widehat{Z})$. Even once we do this though, the precise estimates generated in the two scenarios will differ in general, since the prior, $P(m\mid \widehat{Z})$, cannot fully compensate for an effect that depends on the data, $\overrightarrow{n}$.

More generally, one might even want to treat $|\widehat{Z}|$ as a random variable. Returning to our concrete example involving fish, we would do this if we are uncertain about the total number of fish on Earth. This re-emphasizes the point that, as always, the choice of random variables and associated priors should match one’s understanding of the underlying physical process by which the data is collected as accurately as possible.

## 9. Conclusions

The problem of estimating a functional of a distribution, ρ, based on samples of ρ is a core concern of statistics. In particular, in recent decades, there has been a great deal of work on estimating information-theoretic functionals of ρ based on samples of ρ.

Bayesian approaches to this problem began with WW, where the Dirichlet prior for ρ was adopted. This work concentrated on the case where the concentration parameter, c, of the Dirichlet prior equals the size of the underlying event space, $|Z|$. NSB pointed out that this special case has the problem that the resultant estimators are prior dominated whenever $|Z|$ is much larger than the support of the dataset. NSB realized that this problem could be addressed by using a hyperprior over c. They then advocated an approach to setting $P(c)$. Unfortunately, there is a substantial problem with the choice $c=|Z|$ analyzed in WW that is not fixed by the NSB choice of $P(c)$. In both approaches, the posterior expected value of a quantity, like mutual information, will depend on which of the many equivalent definitions of mutual information one adopts. In other words, that posterior expected value of such quantities is ill-defined.

In many situations, there will be uncertainty of $|Z|$, as well as c. Indeed, arguably, there is always an uncertain number of hidden degrees of freedom in the stochastic process that produced the data, degrees of freedom not recorded as components of that data. Since the stochastic process model must be set independently of the likelihood and it is the likelihood that determines what degrees of freedom are recorded, we must allow ρ to run over those hidden degrees of freedom, as well as the visible ones recorded in the data. Since we typically do not know how many such hidden degrees of freedom there are, this means we have an uncertain value of $|Z|$.

This reasoning argues that we should use a hyperprior, $P(c,|Z|)$. To do so, we must specify how the concentration parameter is statistically coupled with the size of the underlying event space. It is not at all clear how to do that in a hierarchical Bayesian way, where we cannot consider either the likelihood (which determines what variables are observed) or how the posterior estimate of ρ would be used (which is what NSB uses to couple c and $|Z|$). It is also not at all clear how to specify a prior that extends over hidden degrees of freedom.

In this paper, we address the second concern by introducing the desideratum that for any functional that only depends on those components of ρ corresponding to the recorded degrees of freedom, the number of hidden degrees of freedom has no effect on our estimate of the functional. This desideratum says that our second problem is not a problem. We prove that this “Irrelevance of Unseen Variables” (IUV) desideratum can be satisfied, but only if c and $|Z|$ are independent. Therefore, IUV resolves both of our concerns.

In deriving this result, we prove an intermediate result that simplifies the calculation of some posterior moments. In particular, we show how to use it to derive the formula for posterior expected mutual information given in WW in essentially a single line.

We also show that by using a $P(c,|Z|)$ consistent with IUV rather than the one used in either WW or NSB, we resolve the problem shared by them that posterior expected mutual information is ill-defined. In addition, as we illustrate, using a hyperprior that respects IUV can also greatly simplify calculation of posterior moments of information-theoretic functionals. Another advantage of allowing $|Z|$ to vary and adopting IUV’s hyperprior is that posterior expected values of information-theoretic quantities are no longer prior-dominated as they are under the hyperprior of WW. In this sense, there is no need for using approximations for setting $P(c)$, as, for example, the scheme in NSB.

After presenting these results, we discussed both hierarchical Bayesian approaches and other approaches for estimating information theoretic quantities when m and c are both random variables. We ended by discussing some changes to the statistical formulation of the estimation problem that would appear to be innocuous, but can actually substantially affect the resultant estimates.

## Acknowledgments

We would like to thank John Young, Michael Hurley and Gordon Pusch for their assistance in compiling the errata. S.D. acknowledges the support of the Santa Fe Institute Omidyar Postdoctoral Fellowship, the National Science Foundation Grant EF-1137929, “The Small Number Limit of Biological Information Processing” and the Emergent Institutions Project. D.H.W. acknowledges the support of the Santa Fe Institute.

## Conflicts of Interest

The authors declare no conflict of interest.

## Appendix A—Relevant Results and Errata from WW

In this appendix, we review relevant results from WW for the case of fixed Z and $c=|Z|$ and present errata for those results in WW. (A preliminary set of errata was reported in [8].)

It is straight-forward to generalize the reasoning in WW to derive:
where care must be taken to replace the quantity “${n}_{i}$” in WW with “$\overrightarrow{n}(x,y)-1+c/|Z|$”, since WW considered the uniform (Laplace) prior, in which $c=|Z|$ and $L(.)$ is flat. Continuing to make the assumption of WW (and many others) that L is flat, we can evaluate the posterior variance for arbitrary c as:
where:
and:
where ${\Phi}^{(n)}$ and $\Delta {\Phi}^{(n)}$ are defined in Section 3.

$$\mathbb{E}(H\mid \overrightarrow{n})=-\sum _{z}\frac{{n}_{z}+c/|Z|}{N+c}\Delta {\Phi}^{(1)}({n}_{z}+1+c/|Z|,N+c+1)$$

$$\begin{array}{ccc}\hfill \mathbb{E}({[H-\mathbb{E}(H\mid \overrightarrow{n})]}^{2}\mid n)& =& \sum _{z\ne {z}^{\prime}}\frac{({n}_{z}+1)({n}_{{z}^{\prime}}+1)}{(N+c)(N+c+1)}{A}_{z,{z}^{\prime}}\hfill \\ & & +\sum _{z}\frac{({n}_{z}+1)({n}_{z}+2)}{(N+c)(N+c+1)}{B}_{z}\hfill \end{array}$$

$$\begin{array}{ccc}\hfill {A}_{z,{z}^{\prime}}& =& \Delta {\Phi}^{(1)}({n}_{z}+2,N+c+2)\hfill \\ & & \times \Delta {\Phi}^{(1)}({n}_{{z}^{\prime}}+2,N+c+2)\hfill \\ & & -{\Phi}^{(2)}(N+c+2)\hfill \end{array}$$

$$\begin{array}{ccc}\hfill B& =& {[\Delta {\Phi}^{(1)}({n}_{z}+3,N+c+2)]}^{2}\hfill \\ & & +\Delta {\Phi}^{(2)}({n}_{z}+3,N+c+2)\hfill \end{array}$$

The variance was incorrectly reported in WW: there was an error in its version of the second line of Equation (30). The mean expected entropy, in the absence of data and under the Laplace prior, is:
(This was incorrectly reported in [29], but correct in WW.)

$$\mathbb{E}(H)=-\Delta {\Phi}^{(1)}(2,m+1)=\sum _{q=2}^{m}\frac{1}{q}$$

A complete list of errata in the published article follows. Errata unique to the arXiv versions are not shown.

- The Dirichlet prior equation in the continued paragraph on page 6843 should have the summation symbol replaced with the product symbol.
- Theorem 8 on page 6846—error as described above, corrected in Equation (30). The analogous equation, ${\mathcal{E}}_{\overline{IJMN}}$ (WW1, page 6852), does not contain the analogous error.
- Definitions necessary for various subsets, on page 6851, have errors. In particular, ${\nu}_{i}$ should be ${n}_{i}+1$, and ${\gamma}_{n}$ should be ${\prod}_{i=1}^{n}\Gamma ({\nu}_{i})$.
- There is an error in the definition of ${\mathcal{E}}_{\overline{IN}}$ (page 6852.) In particular, the ν symbols in the denominators of the term:$$\left(1-\frac{{\nu}_{i\xb7}+{\nu}_{\xb7n}-2{\nu}_{in}}{\nu}+\frac{({\nu}_{i\xb7}-{\nu}_{in})({\nu}_{\xb7n}-{\nu}_{in})}{\nu (\nu +1)}\right)$$$$\begin{array}{ccc}\hfill \left(1+\frac{{\nu}_{i\xb7}-{\nu}_{in}}{{\overline{\nu}}_{in}+r}\right)& \text{and}& \left(1+\frac{{\nu}_{\xb7n}-{\nu}_{in}}{{\overline{\nu}}_{in}+r}\right)\hfill \end{array}$$$$\begin{array}{ccc}\hfill \left(1-\frac{{\nu}_{i\xb7}-{\nu}_{in}}{{\overline{\nu}}_{in}+r}\right)& \text{and}& \left(1-\frac{{\nu}_{\xb7n}-{\nu}_{in}}{{\overline{\nu}}_{in}+r}\right)\hfill \end{array}$$

## Appendix B—Miscellaneous Proofs

**Proof of Lemma 1:**

To begin, recall that since $Z=X\times Y$, we can write ${\rho}_{Z}$ as a matrix of real numbers, $\{\rho (x,y):x\in X,y\in Y\}$ or, alternatively, as $({\rho}_{X},{\rho}_{Y\mid X})$, where ${\rho}_{Y\mid X}$ is the set of $|X||Y|$ real numbers given by $\rho (x,y)/{\rho}_{X}(x)$ for all $x\in X,y\in Y$. In other words, the space of all pairs $({\rho}_{X},{\rho}_{Y\mid X})$ is a coordinate system of ${\Delta}_{X\times Y}$, given by the $|X|-1$ real numbers specifying ${\rho}_{X}$ and the $|X|(|Y|-1)$ real numbers specifying ${\rho}_{Y\mid X}$, as is the matrix given by $|X||Y|-1$ real numbers. Writing the coordinate transformation between these coordinate systems as ${\rho}_{X,Y}(x,y)={\rho}_{X}(x){\rho}_{Y\mid X}(y\mid x)$, we see that there is an integrating factor, which we can write as:
where we subtract one from the exponent inside the product to reflect the normalization constraint on ${\rho}_{Y\mid X}$.

$$\begin{array}{ccc}\hfill \int d{\rho}_{X,Y}\dots & =& \int d{\rho}_{X,Y}d{\rho}_{X}\prod _{x}{\rho}_{X}{(x)}^{|Y|-1}\dots \hfill \end{array}$$

The proposition’s hypothesized equality expands to:
Using the appropriate integrating factor, the RHS can be written as:

$$\begin{array}{ccc}\hfill \int d{\rho}_{X}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X})\frac{{\prod}_{x}{\rho}_{X}{(x)}^{{\overrightarrow{n}}_{X}(x)-1+c/|X|}}{C(c,{\overrightarrow{n}}_{X})}& =& \int d{\rho}_{X,Y}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X})\frac{{\prod}_{x,y}{\rho}_{X,Y}{(x,y)}^{\overrightarrow{n}(x,y)-1+{c}^{\prime}/|X||Y|}}{C({c}^{\prime},{\overrightarrow{n}}_{X,Y})}\hfill \end{array}$$

$$\begin{array}{ccc}\hfill \phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\phantom{\rule{-0.166667em}{0ex}}\int d{\rho}_{X}d{\rho}_{Y\mid X}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X})\prod _{x}{\rho}_{X}{(x)}^{|Y|-1}\frac{{\prod}_{x,y}{\left[{\rho}_{X}(x){\rho}_{Y|X}(y\mid x)\right]}^{\overrightarrow{n}(x,y)-1+{c}^{\prime}/|X||Y|}}{C({c}^{\prime},{\overrightarrow{n}}_{X,Y})}& & \hfill \\ \hfill \phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}& =& \int d{\rho}_{X}d{\rho}_{Y\mid X}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X})\prod _{x}{\rho}_{X}{(x)}^{|Y|-1}\frac{{\prod}_{x,y}{\left[{\rho}_{X}(x)\right]}^{\overrightarrow{n}(x,y)-1+{c}^{\prime}/|X||Y|}{\prod}_{x,y}{\left[{\rho}_{Y|X}(y\mid x)\right]}^{\overrightarrow{n}(x,y)-1+{c}^{\prime}/|X||Y|}}{C({c}^{\prime},{\overrightarrow{n}}_{X,Y})}\hfill \end{array}$$

Rearranging the exponents in the products and then separately collecting all terms involving ${\rho}_{X}$ and all terms involving ${\rho}_{Y\mid X}$, we can rewrite this as
The inner integral is over the $|Y|$-dimensional simplex and evaluates to $\frac{{\prod}_{y}\Gamma (\overrightarrow{n}(x,y)+{c}^{\prime}/|X|Y|)}{\Gamma ({\overrightarrow{n}}_{X}(x)+|Y|)}$. Therefore, rearranging terms, we get:

$$\begin{array}{ccc}& =& \int d{\rho}_{X}d{\rho}_{Y\mid X}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X})\frac{{\prod}_{x}{\left[{\rho}_{X}(x)\right]}^{{n}_{X}(x)-1+{c}^{\prime}/|X|}{\prod}_{x,y}{\left[{\rho}_{Y|X}(y\mid x)\right]}^{\overrightarrow{n}(x,y)-1+{c}^{\prime}/|X||Y|}}{C({c}^{\prime},{\overrightarrow{n}}_{X,Y})}\hfill \\ & =& \int d{\rho}_{X}\frac{Q({\rho}_{X})}{C({c}^{\prime},{\overrightarrow{n}}_{X,Y})}\prod _{x}{\left[{\rho}_{X}(x)\right]}^{{n}_{X}(x)-1+{c}^{\prime}/|X|}\prod _{x}\int d{\rho}_{Y\mid X}\phantom{\rule{0.277778em}{0ex}}\prod _{y}{\left[{\rho}_{Y|X}(y\mid x)\right]}^{\overrightarrow{n}(x,y)-1+{c}^{\prime}/|X||Y|}\hfill \end{array}$$

$$\begin{array}{c}\frac{1}{C({c}^{\prime},{\overrightarrow{n}}_{X,Y})}\frac{{\prod}_{x,y}\Gamma (\overrightarrow{n}(x,y)+{c}^{\prime}/|X|Y|)}{{\prod}_{x}\Gamma ({\overrightarrow{n}}_{X}(x)+|Y|)}\int d{\rho}_{X}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X})\prod _{x}{\left[{\rho}_{X}(x)\right]}^{{n}_{X}(x)-1+{c}^{\prime}/|X|}\\ \phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}& =& \frac{\Gamma (N+{c}^{\prime})}{{\prod}_{x}\Gamma ({\overrightarrow{n}}_{X}(x)+|Y|)}\int d{\rho}_{X}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X})\prod _{x}{\left[{\rho}_{X}(x)\right]}^{{n}_{X}(x)-1|+{c}^{\prime}/|X|}\hfill \\ \phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}& =& \frac{1}{C({c}^{\prime},{\overrightarrow{n}}_{X})}\int d{\rho}_{X}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X})\prod _{x}{\left[{\rho}_{X}(x)\right]}^{{n}_{X}(x)-1+{c}^{\prime}/|X|}\hfill \end{array}$$

By inspection, this expression equals the LHS of our hypothesized equality if $c={c}^{\prime}$. Going the other way, it is easy to see that if $Q({\rho}_{X})={\sum}_{x}{\left[{\rho}_{X}(x)\right]}^{2}$, but $c\ne {c}^{\prime}$, then our equality does not hold. ■

**Proof of Proposition 4**

We have just proven that a DI hyperprior implies that IUV holds. To go the other way, first, for any $\overrightarrow{k}\in {\Delta}_{X}$, define:

$$\begin{array}{ccc}\hfill {Q}_{\overrightarrow{k}}({\rho}_{X})& \equiv & \frac{\delta ({\rho}_{X}-\overrightarrow{k})}{{\prod}_{x}k{(x)}^{{n}_{X}(x)-1}}\hfill \end{array}$$

Next, plug Corollary 3 into the definition of IUV to show that if IUV holds, then for any Q:
where $F(c)$ is defined as the analytic extension of $\pi (c\mid |X|)-\pi (c\mid |X||Y|)$. Therefore, in particular, for any $\overrightarrow{k},c>0$:
Since ${\prod}_{x}k(x)\in [0,(1/{|X|)}^{|X|}]$, we see that for any $\alpha \in [0,1/|X|]$:
where $B(c)\equiv \frac{F(c)}{C(c,{\overrightarrow{n}}_{X})}$. Redefining α by dividing it by $(1+\u03f5)|X|$ and redefining $B(c)$ by multiplying it by ${((1+\u03f5)|X|)}^{c}$, we see that for any $\alpha \in [0,(1+\u03f5)]$:
$$\begin{array}{ccc}\hfill \int dc\phantom{\rule{0.277778em}{0ex}}B(c){\alpha}^{c}& =& 0\hfill \end{array}$$

$$\begin{array}{ccc}\hfill \int dc\phantom{\rule{0.277778em}{0ex}}F(c)\int d{\rho}_{X}\phantom{\rule{0.277778em}{0ex}}Q({\rho}_{X}){\mathcal{D}}_{c,X}({\rho}_{X}\phantom{\rule{0.277778em}{0ex}}|\phantom{\rule{0.277778em}{0ex}}{\overrightarrow{n}}_{X})& =& 0\hfill \end{array}$$

$$\begin{array}{ccc}\hfill 0& =& \int dc\phantom{\rule{0.277778em}{0ex}}F(c)\int d{\rho}_{X}\phantom{\rule{0.277778em}{0ex}}{Q}_{c,\overrightarrow{k}}({\rho}_{X}){\mathcal{D}}_{c,X}({\rho}_{X}\phantom{\rule{0.277778em}{0ex}}|\phantom{\rule{0.277778em}{0ex}}{\overrightarrow{n}}_{X})\hfill \\ & =& \int dc\frac{F(c){\left[{\prod}_{x}k(x)\right]}^{c/|X|}}{C(c,{\overrightarrow{n}}_{X})}\hfill \end{array}$$

$$\begin{array}{ccc}\hfill \int dc\phantom{\rule{0.277778em}{0ex}}B(c){\alpha}^{c}& =& 0\hfill \end{array}$$

Since, by hypothesis, this rescaled $B(c)$ is analytic about $c=1$, we can differentiate both sides of this equation with respect to α an arbitrary number of times and evaluate it at $\alpha =1$. This establishes that all moments of $B(c)$ must equal zero. Since the Fourier transform of B is assumed analytic, this means that the Fourier transform of $B(c)$ must equal zero identically. Therefore, $B(c)$ must equal zero identically, and therefore, $F(c)$ must.

This establishes that if IUV holds then for any spaces, $XandY$, it must be that $P(c\mid |X|)=P(c\mid |X||Y|)$. Relabeling X and Y then establishes that if IUV holds, for any spaces, $XandY$, $P(c\mid |X|)=P(c\mid |Y|)$. ■

**Proof of Proposition 6:**

Recall that $I(\mathcal{S}(\overrightarrow{n})\subseteq Z)$ equals one iff $\mathcal{S}(\overrightarrow{n})$, the support of $\overrightarrow{n}$ is a a subset of Z. Therefore,
Since we are using a Dirichlet prior with a uniform baseline distribution, by symmetry, the integral on the RHS must have the same value for all Z, such that $I(\mathcal{S}(\overrightarrow{n}))\subseteq Z$ and $|Z|=m$. That value is $G(\overrightarrow{n},c,m)$. This establishes the first claim.

$$\begin{array}{ccc}\hfill P(\overrightarrow{n}\mid Z,m,\widehat{Z})& =& I(\mathcal{S}(\overrightarrow{n})\subseteq Z)\int d{\rho}_{Z}\phantom{\rule{0.277778em}{0ex}}P(\overrightarrow{n}\mid {\rho}_{Z},Z,m,\widehat{Z})P({\rho}_{Z}\mid Z,m,\widehat{Z})\hfill \\ & \propto & I(\mathcal{S}(\overrightarrow{n})\subseteq Z)\int d{\rho}_{Z}\phantom{\rule{0.277778em}{0ex}}\prod _{z\in Z}{\left[{\rho}_{Z}(z)\right]}^{n(z)}{\mathcal{D}}_{c,Z}({\rho}_{Z})\hfill \end{array}$$

Next, write:
Combining this with our first result and with Equation (25):
(The fact that $P(Z\mid m,\widehat{Z})$ is uniform over all Z of size m means that it will cancel out once we divide by the appropriate sum to normalize $P(\overrightarrow{n}\mid m,\widehat{Z})$.) For any set, $\mathcal{S}(\overrightarrow{n})$, and any integer, $m\in \{|\mathcal{S}(\overrightarrow{n})|,\dots |\widehat{Z}|\}$, there are a total of $\left(\genfrac{}{}{0pt}{}{|\widehat{Z}|-|\mathcal{S}(\overrightarrow{n})|}{m-|\mathcal{S}(\overrightarrow{n})|}\right)$ sets $Z\in \widehat{Z}$, such that $I(\mathcal{S}(\overrightarrow{n}))\subseteq Z$ and $|Z|=m$. Combining establishes the second claim. ■

$$\begin{array}{ccc}\hfill P(\overrightarrow{n}\mid m,\widehat{Z})& =& \sum _{Z\subseteq \widehat{Z}}P(\overrightarrow{n}\mid Z,m,\widehat{Z})P(Z\mid m,\widehat{Z}).\hfill \end{array}$$

$$\begin{array}{ccc}\hfill P(\overrightarrow{n}\mid m,\widehat{Z})& \propto & \sum _{Z:|Z|=m}I(\mathcal{S}(\overrightarrow{n})\subseteq Z)G(\overrightarrow{n},c,m)\hfill \end{array}$$

## References

- Cover, T.; Thomas, J. Elements of Information Theory; Wiley-Interscience: New York, NY, USA, 1991. [Google Scholar]
- Mackay, D. Information Theory, Inference, and Learning Algorithms; Cambridge University Press: Cambridge, UK, 2003. [Google Scholar]
- Paninski, L. Estimation of entropy and mutual information. Neural Comput.
**2003**, 15, 1191–1253. [Google Scholar] [CrossRef] - Grassberger, P. Entropy estimates from insufficient samplings. 2003; arXiv:physics/ 0307138. [Google Scholar]
- Korber, B.; Farber, R.M.; Wolpert, D.H.; Lapedes, A.S. Covariation of mutations in the V3 loop of human immunodeficiency virus type 1 envelope protein: An information theoretic analysis. Proc. Natl. Acad. Sci. USA
**1993**, 90, 7176–7180. [Google Scholar] [CrossRef] [PubMed] - Wolpert, D.; Wolf, D. Estimating functions of probability distributions from a finite set of samples. Phys. Rev. E
**1995**, 52, 6841–6854. [Google Scholar] [CrossRef] - Wolf, D.R.; Wolf, D.R.; Wolpert, D.H. Estimating functions of probability distributions from a finite set of samples, Part II: Bayes Estimators for Mutual Information, Chi-Squared, Covariance, and other Statistics. Bayes Estimators for Mutual Information, 1994; arXiv:comp-gas/9403002. [Google Scholar]
- Wolpert, D.; Wolf, D. Erratum: Estimating functions of probability distributions from a finite set of samples. Phys. Rev. E
**1996**, 54, 6973. [Google Scholar] [CrossRef] - Hutter, M. Distribution of mutual information. Adv. Neural Inform. Process. Syst.
**2002**, 1, 399–406. [Google Scholar] - Hurley, M.; Kao, E. Numerical Estimation of Information Numerical Estimation of Information Theoretic Measures for Large datasets. MIT Lincoln Laboratory Technical Report 1169; Massachusetts Institute of Technology: Lexington, MA, USA, 2013; Available online: http://www.dtic.mil/dtic/tr/fulltext/u2/a580524.pdf (accessed on 28 October 2013).
- Archer, E.; Park, I.; Pillow, J. Bayesian estimation of discrete entropy with mixtures of stick-breaking priors. In Advances in Neural Information Processing Systems 25, Proceedings of the 26th Annual Conference on Neural Information Processing Systems 2012, Lake Tahoe, NV, USA, 3–6 December 2012; pp. 2024–2032.
- Nemenman, I.; Shafee, F.; Bialek, W. Entropy and inference, revisited. In Advances in Neural Information Processing System; Dietterich, T., Ed.; MIT Press: Cambridge, MA, USA, 2003. [Google Scholar]
- Nemenman, I.; Bialek, W.; van Steveninck, R.D.R. Entropy and information in neural spike trains: Progress on the sampling problem. Phys. Rev. E
**2004**, 69, e056111. [Google Scholar] [CrossRef] [PubMed] - Nemenman, I.; Lewen, G.D.; Bialek, W.; van Steveninck, R.R.D.R. Neural coding of natural stimuli: information at sub-millisecond resolution. PLoS Comput. Biol.
**2008**, 4, e1000025. [Google Scholar] [CrossRef] [PubMed] - Archer, E.; Park, I.M.; Pillow, J.W. Bayesian and quasi-Bayesian estimators for mutual information from discrete data. Entropy
**2013**, 15, 1738–1755. [Google Scholar] [CrossRef] - Vu, V.; Yu, B.; Kass, R. Coverage-adjusted entropy estimation. Stat. Med.
**2007**, 26, 4039–4060. [Google Scholar] [CrossRef] [PubMed] - Jaynes, E.T.; Bretthorst, G.L. Probability Theory : The Logic of Science; Cambridge University Press: Cambridge, UK, 2003. [Google Scholar]
- James, R.G.; Ellison, C.J.; Crutchfield, J.P. Anatomy of a bit: Information in a time series observation. 2011; arXiv:1105.2988. [Google Scholar]
- Nemenman, I. Coincidences and estimation of entropies of random variables with large cardinalities. Entropy
**2011**, 13, 2013–2023. [Google Scholar] [CrossRef] - Wolpert, D.H. Reconciling Bayesian and non-Bayesian Analysis. In Maximum Entropy and Bayesian Methods; Kluwer Academic Publishers: Dordrecht, Netherlands, 1996; pp. 79–86. [Google Scholar]
- Wolpert, D.H. The Relationship between PAC, the Statistical Physics Framework, the Bayesian Framework, and the VC Framework. In The Mathematics of Generalization; Addison-Wesley: Indianapolis, IN, USA, 1995; pp. 117–215. [Google Scholar]
- Note that no particular property is required of the relation among multiple unseen random variables that may (or may not) exist.
- Bunge, J.; Fitzpatrick, M. Estimating the number of species: A review. J. Am. Stat. Assoc.
**1993**, 88, 364–373. [Google Scholar] - The proof of this proposition uses moment-generating functions with Fourier decompositions of the prior, π. To ensure we do not divide by zero, we have to introduce the constant 1 + ϵ into that proof, and to ensure the convergence of our resultant Taylor decompositions, we have to assume infinite differentiability. This is the reason for the peculiar technical condition.
- Berger, J.M. Statistical Decision theory and Bayesian Analysis; Springer-Verlag: Heidelberg, Germany, 1985. [Google Scholar]
- The proof of this proposition uses moment-generating functions with Fourier decompositions of the prior, π. To ensure we do not divide by zero, we have to introduce the constant 1 + ϵ into that proof, and to ensure the convergence of our resultant Taylor decompositions, we have to assume infinite differentiability. This is the reason for the peculiar technical condition.
- Intuitively, for that P(c), the likelihood says that a dataset, {125, 125,…}, would imply a relatively high value of c and, therefore, a high probability that ρ is close to uniform over all bins. Given this, it also implies a low value of |Z|, since if there were any more bins than the eight that have counts, we almost definitely would have seen them seen them for almost-uniform ρ. Conversely, for the dataset, {691, …, 6}, the implication is that c must be low where some rare bins trail out, and as a result, there might be a few more bins who had zero counts.
- Of course, since the formulas in WW implicitly assume c = m, care must be taken to insert appropriate pseudo-counts into those formulas if we want to use a value, c, that differs from m.
- Wolpert, D.; Wolf, D. Estimating functions of probability distributions from a finite set of samples, Part 1: Bayes Estimators and the Shannon Entropy. 1994; arXiv:comp-gas/9403001. [Google Scholar]

© 2013 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution license (http://creativecommons.org/licenses/by/3.0/).