On the Structure, Covering, and Learning of Poisson Multinomial Distributions

Constantinos Daskalakis, Gautam Kamath, Christos Tzamos

Introduction

In this paper, we advance our understanding of the structure and learnability of this fundamental family of distributions by studying the following questions:

Can we approximate PMDs via simpler distributions such as multi-dimensional Gaussians or Poissons? Do they always “behave as” discretized multi-dimensional Gaussians or Poissons? If not, what is the range of possible “behaviors” that PMDs may exhibit?

Given nn, kk and ε\varepsilon, is there a small set of distributions that ε\varepsilon-cover, in total variation distance, the set of all (n,k)(n,k)-PMDs? And, how does the size of the cover scale with nn, kk and ε\varepsilon?

How many samples from a (n,k)(n,k)-PMD do we need to learn its density to within ε\varepsilon in total variation distance? What is the dependence of the learning complexity on the size nO(k)n^{O(k)} of their support?

In summary, known bounds show that a (n,k)(n,k)-PMD can be approximated by simpler, poly(k)\text{poly}(k)-parameter, distributions, but the quality of their approximation depends on the first few moments of the PMD or its summands. Our goal instead is to provide universal approximation theorems showing how to approximate a given (n,k)(n,k)-PMD by simpler distributions for any desired approximation ε\varepsilon and without assumptions about the moments of the PMD or its summands. Our main structural theorem is the following.

By introducing the independent (poly(k/ε),k)({\rm poly}(k/\varepsilon),k)-PMD, our structural result side-steps the degradation of the CLT bound of [VV11] with log⁡n\log n and the smallest eigenvalue of the PMD’s covariance matrix, correcting it to any desired approximation ε\varepsilon. Interestingly, there may be directions where the variance of the discretized Gaussian used in our result may be arbitrarily far from that of the approximated PMD. The sparse PMD added to the Gaussian serves to correct the variance in those directions, but does so in a correlated manner across several directions. Moreover, while [VV11] discretize their approximating multidimensional Gaussian to the closest lattice point, our discretization is more faithful to the structure of its covariance matrix; see Definition 6. We provide more intuition about our structural result in Section 1.1, where we also outline its proof. A more detailed proof of Theorem 1 appears in Section 3 and a more detailed statement is given as Theorem 5.

Covers for PMDs

Building covers for (n,k)(n,k)-PMDs was pursued in [DP08, DP15] as a means to develop approximation algorithms for Nash equilibria in anonymous games. These are games where nn players share the same action set, say {1,…,k}\{1,\ldots,k\}, and each player’s utility depends on their own choice of action as well as the distribution of how many of the other players choose each of the available actions, but players’ utility functions may otherwise be different. It was shown that proper ε\varepsilon-covers, in total variation distance, of (n,k)(n,k)-PMDsAn ε\varepsilon-cover Fε{\cal F}_{\varepsilon} of a set of distributions F{\cal F} is called proper iff Fε⊆F{\cal F}_{\varepsilon}\subseteq{\cal F}. imply approximation algorithms for Nash equilibria in these games, whose complexity scales with the size of the cover. Intuitively, this is because switching from a mixed Nash equilibrium to a mixed strategy profile with the same distribution of how many players choose each action does not affect players’ payoffs by more than ε\varepsilon.

The covers for (n,k)(n,k)-PMDs obtained in the anonymous games papers cited above have size:

Such covers are of theoretical interest, their interesting feature being that the size is polynomial in nn. Indeed, the standard discretization of the parameters of a PMD’s constituent vectors results in covers of size exponential in nn, so a more delicate “global” discretization is needed to obtain covers whose size is polynomial in nn.

Besides providing an asymptotically smaller search space for Nash equilibria in anonymous games, or any other optimization problem over PMDs, the polynomial rather than exponential dependence of the cover size on nn has direct consequences to the learnability of these distributions; see Theorem 7 (from [DK14]) and [AJOS14] for a similar result, which improve a long line of similar results in the probability literature [DL01]. In particular, a cover of polynomial size implies directly that these distributions can be learned from a number of samples logarithmic in nn, despite their support being polynomial in nn. Motivated by such applications of covers to algorithms and learning we use our structural result to obtain an improved cover theorem.

We make a few remarks about our cover. First, the cover is non-proper, containing distributions that are of the form specified in Theorem 1, i.e. are convolutions of a discretized Gaussian and a PMD. Moreover, it is straightforward to see that any cover has size at least nΩ(k)n^{\Omega(k)} and at least (1/ε)Ω(k)(1/\varepsilon)^{\Omega(k)}. For the first lower bound, count the number of (n,k)(n,k)-PMDs whose summands are deterministic. For the second, count the number of (1,k)(1,k)-PMDs whose probabilities are integer multiples of ε\varepsilon. So, for fixed kk, our bound has the right qualitative dependence on nn (namely polynomial), and a near-right dependence on 1/ε1/\varepsilon (namely quasi-polynomial rather than polynomial). Moreover, it obtains the same qualitative dependence on nn and ε\varepsilon as the k=2k=2 cover of [DP09, DP14], namely polynomial in nn and quasi-polynomial in 1/ε1/\varepsilon.

Learning PMDs

In view of tools for hypothesis selection from a cover (see, i.e., Theorem 7), our cover theorem directly implies that (n,k)(n,k)-PMDs can be learned from O(k5k⋅log⁡n⋅log⁡k+2(1/ε)/ε2)O(k^{5k}\cdot\log n\cdot\log^{k+2}(1/\varepsilon)/\varepsilon^{2}) samples. These are near-optimal in terms of ε\varepsilon, as Ω(k/ε2)\Omega(k/\varepsilon^{2}) samples are necessary even for learning a (1,k)(1,k)-PMD. We show that the dependence on nn can be completely removed from the learner, generalizing the results on Poisson Binomial Distributions [DDS12].

samples from XX, runs in timeWe work in the standard “word RAM” model in which basic arithmetic operations on O(log⁡n)O(\log n)-bit integers are assumed to take constant time.

Additional Results: Learning k𝑘k-SIIRVs

A (n,k)(n,k)-SIIRV is the sum of nn independent (single-dimensional) random variables supported on {0,…,k−1}\{0,\ldots,k-1\}. SIIRVs generalize Poisson Binomial distributions, which correspond to the case k=2k=2. At the same time, SIIRVs can be viewed as projections of PMDs onto the vector (0,1,…,k−1)(0,1,\ldots,k-1). In particular, if XX is a (n,k)(n,k)-SIIRV, there exists a (n,k)(n,k)-Poisson multinomial random vector YY, such that X=(0,1,…,k−1)T⋅YX=(0,1,\ldots,k-1)^{\rm T}\cdot Y.

1 Approach

The multi-dimensional nature of PMDs poses challenges in understanding their structure. The projection of a (n,k)(n,k)-Poisson multinomial random vector onto each standard basis vector is a nn-Poisson Binomial random variable, i.e. distributed as the sum of nn independent indicators. Depending on our choice of ε\varepsilon, the latter may be ε\varepsilon-close (in total variation distance) to a discretized Normal distribution (“heavy projection”) or a distribution whose essential support is a length O(1/ε3)O(1/\varepsilon^{3}) subinterval of {0,…,n}\{0,\ldots,n\} (“light projection”) [DP14]. Intuitively, one would like to aggregate all heavy projections into a discretized multi-dimensional Gaussian and all light projections into a distribution of small support, independent of nn. However, projections onto different standard basis vectors may be correlated, and they cannot be disentangled this simply.

In fact, even if all projections of a PMD onto the standard basis vectors are heavy—even if they have variance super-polynomial in k/εk/\varepsilon, it is still unclear whether the PMD can always be well approximated by a discretized multi-dimensional Gaussian. In particular, the multi-dimensional CLT of Valiant and Valiant [VV11] (Theorem 6) does pay a penalty that scales with log⁡n\log n.

Finally, projections onto non-standard basis vectors may behave more erratically. As we pointed out earlier, the projection of a (n,k)(n,k)-PMD onto the vector v⃗=(0,1,…,k−1)\vec{v}=(0,1,\ldots,k-1) is a (n,k)(n,k)-SIIRV, which need not be log-concave or even unimodal, and could even exhibit “mod-structure” and be nn-modal; think of the distribution of Y+2⋅ZY+2\cdot Z where ZZ is sampled from a Binomial(n,0.5)(n,0.5) and YY is a Bernoulli(1/3)(1/3). Whichever simpler distribution we identify to approximate a given (n,k)(n,k)-PMD thus needs to respect the potential mod-structure that the PMD’s projection onto v⃗\vec{v}, its permutations or other integral vectors may exhibit.

Our analysis sidesteps the difficulties identified above by showing that, for all ε\varepsilon, nn, kk, a (n,k)(n,k)-Poisson multinomial random vector is ε\varepsilon-close to the sum of a discretized Gaussian and an independent (poly(k/ε),k)({\rm poly}(k/\varepsilon),k)-Poisson multinomial random vector. Roughly speaking, the Gaussian absorbs the variance in the heavy dimensions, and explains the correlation between light and heavy dimensions, while the sparse PMD explains the remaining variance in the light dimensions. Of course, what dimensions are “light” and “heavy” in the above discussion depends on our desired approximation ε\varepsilon.

At the heart of our proof lies the aforecited CLT by Valiant and Valiant [VV11], approximating a Poisson Multinomial by a discretized Gaussian. There are several issues with its application here: the accuracy of the approximation cannot be made an arbitrary ε\varepsilon, but worse, it deteriorates (logarithmically) as we increase nn or decrease the minimum eigenvalue of the covariance matrix of the PMD. The main intuition behind our structural theorem and the main technical roadblock for its proof lies in avoiding paying these two penalties.

To mitigate the latter cost (corresponding to the smallest eigenvalue), we use a stripped down version of the trickle-down sampling procedure from [DP08] to round the parameters of our given PMD. This allows us to shift the parameters of the PMD’s constituent random vectors such that they are either equal to or 11, or sufficiently far from or 11. A coordinated “rounding” of these parameters combined with a coupling argument and single-dimensional Poisson approximations allow us to argue that the effect of the rounding is small in the total variation distance of the resulting PMD compared to the original PMD. Each constituent random vector in the resulting PMD now has decent variance in every axis direction where it has non-zero variance. Partitioning the PMD’s constituent vectors into sets based on the axis directions where they have non-zero variance, we get that the minimum eigenvalue of each resulting sub-PMD is large in the span of these directions; see Proposition 6.Again, as pointed out earlier, when we refer to the eigenvalues of the covariance matrix of a PMD spanning a certain subspace, we always project the PMD onto a subspace of one dimension less, as otherwise the covariance matrix always has a eigenvalue since the distribution does not have full-dimensional support. Details about this step are given in Section B.1.

To avoid paying the logarithmic cost in the value of nn (the number of summands) which appears in the CLT, we repeatedly partition and sort the random vectors into buckets. The sub-PMD corresponding to each bucket will have the property that the logarithm of the number of summands is negligible compared to the minimum eigenvalue of its covariance matrix, so that we can apply the central limit theorem from [VV11]. We note that there will be a small number of random vectors which do not fall into a bucket that has this property – these leftover vectors result in the sparse Poisson Multinomial component in our structural result. Details about this step are given in Section B.2.

The above approximations result in a distribution comprising several discretized Gaussians and a sparse Poisson multinomial. We subsequently merge all component discretized Gaussians into a single distribution. It is well-known that the sum of two Gaussians is another Gaussian whose parameters are equal to the sum of the parameters of its two components. The same is not true for discretized Gaussians, and we must quantify the error induced by this merging operation. More details are provided in Section B.3.

Our structural results are described further in Section 3.

Cover

We provide two covers for (n,k)(n,k)-PMDs, which are advantageous for different regimes of kk and ε\varepsilon. The first cover follows directly from Theorem 5, which gives a structural characterization of a PMD as the sum of an appropriately discretized Gaussian and a (poly⁡(k/ε),k)(\operatorname*{poly}(k/\varepsilon),k)-PMD. We simply take an additive grid over all the parameters of this characterization to achieve a cover size which is polynomial in nn and exponential in kk and 1/ε1/\varepsilon.

Similar to [DP14], we can reduce the dependence of the cover size to pseudo-polynomial in 1/ε1/\varepsilon, albeit at an increased cost in kk. This is done using a generalization of the moment matching techniques known for Poisson Binomial distributions. At a high level, this avoids the naive gridding over all (poly⁡(k/ε),k)(\operatorname*{poly}(k/\varepsilon),k)-PMDs by filtering out the ones with unique “moment profiles,” which describe the first several moments of the distribution. We prove that any two distributions with matching moment profiles will have small total variation distance by leveraging results by Roos on Krawtchouk approximations to PMDs [Roo02].

A further description of our cover results is provided in Section 4.

Learning

Our cover theorem (Theorem 2) directly implies (using Theorem 7) that (n,k)(n,k)-PMDs can be learned from O(log⁡N/ε2)O(\log N/\varepsilon^{2}) samples, where NN is the size of our cover. Given that NN is polynomial in nn, the resulting sample complexity is logarithmic in nn. To remove the dependence on nn from our sample complexity, we need to exploit not just the size but also the structure of the cover.

In particular, we know from our structural characterization (Theorem 1) that any (n,k)(n,k)-Poisson Multinomial random vector is ε\varepsilon-close to the sum of a discretized multi-dimensional Gaussian and an independent (poly(k/ε),k)({\rm poly}(k/\varepsilon),k)-PMD. The dependence of the cover size on nn is due to enumerating over a cover of discretized multi-dimensional Gaussians, as enumerating over (poly(k/ε),k)({\rm poly}(k/\varepsilon),k)-PMDs has no dependence on nn. The challenge is this: given sample access to an unknown (n,k)(n,k)-PMD can we zoom in to a smaller set of candidate discretized multi-dimensional Gaussians whose size is independent of nn and which suffice for the purposes of guaranteeing an approximation to the unknown PMD?

Let us start with an easier task. Suppose that our structural theorem decides that a (n,k)(n,k)-PMD is ε\varepsilon-close in total variation distance to a discretized multi-dimensional Gaussian. In this case, is it possible to recover the Gaussian from poly(k/ε){\rm poly}(k/\varepsilon) samples from the PMD? Intuitively the answer should be “yes,” as learning a multi-dimensional Gaussian to within ε\varepsilon in total variation distance is feasible from O(k/ε2)O(k/\varepsilon^{2}) samples. Only there are two complications. First, we are seeking to actually learn a discretized multi-dimensional Gaussian and, most importantly, we do not have sample access to the Gaussian, but a distribution that is ε\varepsilon-close to it in total variation distance. The first complication becomes an issue when the covariance matrix of the Gaussian has minimum eigenvalue that does not scale with some poly(k/ε){\rm poly}(k/\varepsilon), which may very well be the case. The second is more severe as it necessitates robust estimators for the moments of a (discretized) multi-dimensional Gaussian that are resilient to an arbitrary movement of ε\varepsilon probability mass. We are not aware of such estimators even for a (continuous) multi-dimensional Gaussian.

Despite these apparent issues, even in the simple case we are considering, the saving grace comes from a closer examination of the proof of our structural result. When our structural theorem deems a (n,k)(n,k)-PMD approximable by a discretized multi-dimensional Gaussian, we can argue that the covariance matrices Σ\Sigma of the former and ΣG\Sigma_{G} of the latter are spectrally close, satisfying ∣xTΣx−xTΣGx∣≤ε⋅xTΣx|x^{\rm\tiny T}\Sigma x-x^{\rm\small T}\Sigma_{G}x|\leq\varepsilon\cdot x^{\rm\small T}\Sigma x, for all xx. So it suffices to learn the covariance matrix of the PMD to which we have direct sample access, thereby obviating the need for a robust estimator. Learning the covariance matrix of a PMD is feasible from poly(k/ε){\rm poly}(k/\varepsilon) samples by bounding the kurtosis of any projection of the PMD (Lemma 8).

The bigger challenge is generalizing the approach to when our structural theorem deems a (n,k)(n,k)-Poisson Multinomial random vector XX approximable by the sum of a discretized multi-dimensional Gaussian GG and a (poly(k/ε),k)({\rm poly}(k/\varepsilon),k)-Poisson Multinomial random vector YY. We can enumerate over the latter, but enumerating over the former is too expensive (i.e. will incur a dependence on nn). So we have to learn it with sample access to XX. Unfortunately, our spectral approximation is now much weaker. The covariance matrices Σ\Sigma of XX and ΣG\Sigma_{G} of GG are now related as follows, for all xx: ∣xTΣx−xTΣGx∣≤ε⋅xTΣx+poly(k/ϵ)|x^{\rm\tiny T}\Sigma x-x^{\rm\small T}\Sigma_{G}x|\leq\varepsilon\cdot x^{\rm\small T}\Sigma x+{\rm poly}(k/\epsilon). Hence, for directions xx where the variance xTΣxx^{\rm\tiny T}\Sigma x of XX is small, this approximation is quite loose to just approximate ΣG\Sigma_{G} with Σ\Sigma.

Our approach is instead to use samples from XX to get a handle on the spectrum of ΣG\Sigma_{G}. As before, by bounding the kurtosis of any projection of the PMD, we can produce an estimate Σ^\hat{\Sigma} that approximates Σ\Sigma spectrally: for all xx, ∣xTΣx−xTΣ^x∣≤ε⋅xTΣx|x^{\rm\tiny T}\Sigma x-x^{\rm\small T}\hat{\Sigma}x|\leq\varepsilon\cdot x^{\rm\small T}\Sigma x (Lemma 8). Then, using Courant minimax principle through the proof of our structural result, we can argue that the ii-th eigenvalue λiG\lambda^{G}_{i} of ΣG\Sigma_{G} and λ^i\hat{\lambda}_{i} of Σ^\hat{\Sigma} are related as follows: ∣λiG−λ^i∣≤O(ε)λ^i+poly(k/ϵ)|\lambda^{G}_{i}-\hat{\lambda}_{i}|\leq O(\varepsilon)\hat{\lambda}_{i}+{\rm poly}(k/\epsilon). So, using the eigenvalues of our learned Σ^\hat{\Sigma}, we can produce a small cover for the eigenvalues of ΣG\Sigma_{G}. Unfortunately, the corresponding eigenvectors of ΣG\Sigma_{G} and Σ^\hat{\Sigma} need not be as closely related, and it is not clear how to grid over those as the ratio of the smallest to the largest eigenvalue may be polynomial in nn. We show how to use the knowledge of the eigenvalues and the spectral relation between Σ^\hat{\Sigma} and ΣG\Sigma_{G} to produce a small cover over matrices Σ^G\hat{\Sigma}_{G} (and not eigenvectors) such that at least one matrix in the cover spectrally approximates our target ΣG\Sigma_{G}. The details are provided in Section D.3. At this point, we have a small cover over possible distributions YY and a small cover over possible discretized multi-dimensional Gaussians. So we can select among these hypotheses using Theorem 7.

Our learning algorithm is described in Section 5.

Preliminaries

Throughout this paper, we will repeatedly refer to three key parameters, c=c(ε,k)=poly⁡(ε/k)c=c(\varepsilon,k)=\operatorname*{poly}(\varepsilon/k), t=t(ε,k)=poly⁡(k/ε)t=t(\varepsilon,k)=\operatorname*{poly}(k/\varepsilon), and γ=O(1)\gamma=O(1). We set

for constants δc,δt,δγ>0\delta_{c},\delta_{t},\delta_{\gamma}>0.

2 Definitions

We start by defining several of the distribution classes we will consider. First, and most importantly, we start with a formal definition of Poisson Multinomial Distributions.

A kk-Categorical Random Variable (kk-CRV) is a random variable that takes values in {e1,…,ek}\{e_{1},\dots,e_{k}\} where eje_{j} is the kk-dimensional unit vector along direction jj. π(i)\pi(i) is the probability of observing eie_{i}.

An (n,k)(n,k)-Poisson Multinomial Distribution ((n,k)(n,k)-PMD) is given by the law of the sum of nn independent but not necessarily identical kk-CRVs. An (n,k)(n,k)-PMD is parameterized by a nonnegative matrix π∈n×k\pi\in^{n\times k} each of whose rows sum to 11 is denoted by MπM^{\pi}, and is defined by the following random process: for each row π(i,⋅)\pi(i,\cdot) of matrix π\pi interpret it as a probability distribution over the columns of π\pi and draw a column index from this distribution. Finally, return a row vector recording the total number of samples falling into each column (the histogram of the samples).

We note that a sample from an (n,k)(n,k)-PMD is redundant – given k−1k-1 coordinates of a sample, we can recover the final coordinate by noting that the sum of all kk coordinates is nn. For instance, while a Binomial distribution is over a support of size 22, a sample is 11-dimensional since the frequency of the other coordinate may be inferred given the parameter nn. With this inspiration in mind, we define the Generalized Multinomial Distribution, which is the primary object of study in [VV11].

A Truncated kk-Categorical Random Variable is a random variable that takes values in {0,e1,…,ek−1}\{0,e_{1},\dots,e_{k-1}\} where eje_{j} is the (k−1)(k-1)-dimensional unit vector along direction jj, and is the (k−1)(k-1) dimensional zero vector. ρ(0)\rho(0) is the probability of observing the zero vector, and ρ(i)\rho(i) is the probability of observing eie_{i}.

An (n,k)(n,k)-Generalized Multinomial Distribution ((n,k)(n,k)-GMD) is given by the law of the sum of nn independent but not necessarily identical truncated kk-CRVs. A GMD is parameterized by a nonnegative matrix ρ∈n×(k−1)\rho\in^{n\times(k-1)} each of whose rows sum to at most 11 is denoted by GρG^{\rho}, and is defined by the following random process: for each row ρ(i,⋅)\rho(i,\cdot) of matrix ρ\rho interpret it as a probability distribution over the columns of ρ\rho – including, if ∑j=1kρ(i,j)<1\sum_{j=1}^{k}\rho(i,j)<1, an “invisible” column – and draw a column index from this distribution. Finally, return a row vector recording the total number of samples falling into each column (the histogram of the samples).

For both (n,k)(n,k)-PMDs and (n,k)(n,k)-GMDs, we will refer to nn and kk as the size and dimension, respectively.

We note that a PMD corresponds to a GMD where the “invisible” column is the zero vector, and thus the definition of GMDs is more general than that of PMDs. However, whenever we refer to a GMD in this paper, it will explicitly have a non-zero invisible column.

While we will approximate the Multinomial distribution with Gaussian distributions, it does not make sense to compare discrete distributions with continuous distributions, since the total variation distance is always 11. As such, we must discretize the Gaussian distributions. We will use the notation ⌊x⌉\lfloor x\rceil to say that xx is rounded to the nearest integer (with ties being broken arbitrarily). If xx is a vector, we round each coordinate independently to the nearest integer.

As seen in the definition of an (n,k)(n,k)-GMD, we have one coordinate which is equal to nn minus the sum of the other coordinates. We define a similar notion for a discretized Gaussian. However, we go one step further, to take care of when there are several such Gaussians which live in disjoint dimensions. By this, we mean that given two Gaussians, the set of directions in which they have a non-zero variance are disjoint. Without loss of generality (because we can simply relabel the dimensions), we assume all of a Gaussian’s non-zero variance directions are consecutive, i.e., the covariance matrix is all zeros, except for a single block on the diagonal. Therefore, when we add the covariance matrices, the result is block diagonal. The resulting distribution is described in the following definition.

The structure preserving rounding of a multidimensional Gaussian Distribution takes as input a multi-dimensional Gaussian N(μ,Σ)\mathcal{N}(\mu,\Sigma) with Σ\Sigma in block-diagonal form. It chooses one coordinate as a “pivot” in each block, samples from the Gaussian ignoring these pivots and rounds each value to the nearest integer. Finally, the pivot coordinate of each block is set by taking the difference between the sum of the means and the sum of the values sampled within the block.

Structure of PMDs

In this section, we show a structural result, stating that any (n,k)(n,k)-PMD is close to the sum of an appropriately discretized Gaussian and a (poly⁡(k/ε),k)(\operatorname*{poly}(k/\varepsilon),k)-PMD:

For parameters cc and tt as described in Section 2.1, every (n,k)(n,k)-Poisson multinomial random vector is ε\varepsilon-close to the sum of a Gaussian with a structure preserving rounding and a (tk2,k)(tk^{2},k)-Poisson multinomial random vector. For each block of the Gaussian, the minimum non-zero eigenvalue of Σi\Sigma_{i} is at least tc2k4\frac{tc}{2k^{4}}.

There are three main steps in the proof of this theorem.

First, we replace our (n,k)(n,k)-PMD with one where all parameters are sufficiently far from and 11, while still being close to the original in total variation distance. To motivate this operation, we introduce one of our main tools in our approach, the central limit theorem of Valiant and Valiant [VV11], which approximates an (n,k)(n,k)-GMD by a discretized multivariate Gaussian.

Given a generalized multinomial distribution GρG^{\rho}, with kk dimensions and nn rows, let μ\mu denote its mean and Σ\Sigma denote its covariance matrix, then

where σ2\sigma^{2} is the minimum eigenvalue of Σ\Sigma.

We note that this has an error term which depends on the minimum eigenvalue of the covariance matrix of the GMD. If we perform this rounding procedure and ignore any zero coordinates, then we are given the guarantee that the minimum eigenvalue will be sufficiently large.

Recall that in Section 2.1 we have set c=poly⁡(ε/k)c=\operatorname*{poly}(\varepsilon/k). This lemma summarizes the result of the rounding procedure:

For any c≤12kc\leq\frac{1}{2k}, given access to the parameter matrix ρ\rho for an (n,k)(n,k)-PMD MρM^{\rho}, we can efficiently construct another (n,k)(n,k)-PMD Mρ^M^{\hat{\rho}}, such that, for all i,ji,j, ρ^(i,j)∉(0,c)\hat{\rho}(i,j)\not\in(0,c), and

The procedure starts by fixing two coordinates ii and jj, and considers all CRVs with a parameter in ii which is close to , and has maximum parameter in coordinate jj. We move some of the weight in this “heavy” coordinate either to or from the “light” coordinate, while approximately preserving the overall mean vector of the set of CRVs.

The analysis of this process uses a stripped-down version of the “trickle-down” process in [DP08]. This gives an approximate way to sample from a PMD, resulting in a distribution which is very close in total variation distance. While we postpone technical details to Section B.1, roughly speaking, it works as follows. First, take a sample from the PMD but disregard the values for its light coordinate ii and heavy coordinate jj. Instead, sample a new value for coordinate ii according to a Poisson distribution with parameter μi\mu_{i}, the mean value for coordinate ii. Finally, set coordinate jj to ensure that all coordinates of the sample sum to nn. As mentioned before, the rounding process approximately preserves the value of μi\mu_{i}, and thus this alternate sampling procedure is closely coupled for the rounded and original PMD. Thus, by triangle inequality, the rounded and original PMDs are close in total variation distance.

We repeat this rounding procedure for each ii and jj, eventually leading to all parameters either being equal to or far from and 11. A full description and analysis of the rounding procedure are in Section B.1.

Now, we have a “massaged” (n,k)(n,k)-PMD Mρ^M^{\hat{\rho}}, with no parameters lying in the intervals (0,c)(0,c) or (1−c,1)(1-c,1). Next, we will show how to relate the massaged (n,k)(n,k)-Poisson multinomial random vector to a sum of kk Gaussians with a structure preserving rounding plus a “sparse” (poly⁡(k/ε),k)(\operatorname*{poly}(k/\varepsilon),k)-PMD. The general roadmap is as follows. We start by partitioning the constituent kk-CRVs into kk sets, S1,…,SkS_{1},\dots,S_{k}, based on which basis vector we are most likely to observe. We work seperately for each set SiS_{i} by considering the GMD formed by leaving out the coordinate ii. Our goal is to use the CLT of Theorem 6 to bound the total variation distance between the corresponding GMD and a discretized Gaussian with the same mean and covariance matrix. We must be careful when applying Theorem 6, since the bound depends on the size of the GMD. Instead of applying the theorem directly, to get a useful bound, we further partition the set SiS_{i} into smaller subsets and apply the theorem to each of the resulting subsets. We can then “merge” the resulting discretized Gaussians together using the following lemma whose proof is given in Section A.5:

Let X1∼N(μ1,Σ1)X_{1}\sim\mathcal{N}(\mu_{1},\Sigma_{1}) and X2∼N(μ2,Σ2)X_{2}\sim\mathcal{N}(\mu_{2},\Sigma_{2}) be kk-dimensional Gaussian random variables, and let σ=min⁡jmax⁡iσi,j\sigma=\min_{j}\max_{i}\sigma_{i,j} where σi,j\sigma_{i,j} is the standard deviation of XiX_{i} in the direction parallel to the jjth coordinate axis. Then

In more detail, we partition each set SiS_{i} into 2k−12^{k-1} subsets, grouping together CRVs according to the dimensions they are non-zero in, i.e. set SiIS_{i}^{\mathcal{I}} contains all CRVs that are non zero in the coordinates given by set I⊆[k]∖{i}\mathcal{I}\subseteq[k]\setminus\{i\}. We then group these sets into buckets, where a set is assigned to a bucket depending on its cardinality; bucket BlB^{l} gets all sets SiIS_{i}^{\mathcal{I}} with ∣SiI∣∈[lγt,(l+1)γt)|S_{i}^{\mathcal{I}}|\in[l^{\gamma}t,(l+1)^{\gamma}t), with γ=O(1)\gamma=O(1) and t=poly⁡(k/ε)t=\operatorname*{poly}(k/\varepsilon) as defined in Section 2.1. This bounds the ratio between the size and the minimum eigenvalue of the covariance of the GMD within every bucket other than B0B^{0}. This allows us to apply Theorem 6 and replace the CRVs within each bucket BlB^{l} for l≥1l\geq 1 with a discretized Gaussian, leaving us with a (poly⁡(2k/ε),k)(\operatorname*{poly}(2^{k}/\varepsilon),k)-GMD consisting of all the CRVs of bucket B0B^{0}. To reduce the number of remaining CRVs to polynomial in kk, we show that by removing only poly⁡(k/ε)\operatorname*{poly}(k/\varepsilon) of these CRVs, we can apply Theorem 6 again to the rest and obtain another discretized Gaussian. In particular, in Section B.2, we prove the following lemma:

Let Gρ^k0G^{\hat{\rho}_{k}^{0}} be the (∣B0∣,k)(|B^{0}|,k)-GMD induced by the truncated CRVs in bucket B0B^{0}. Given ρ^k0\hat{\rho}_{k}^{0}, we can efficiently compute a partition of B0B^{0} into SS and Sˉ\bar{S}, where ∣Sˉ∣≤kt|\bar{S}|\leq kt. Letting μS\mu_{S} and ΣS\Sigma_{S} be the mean and covariance matrix of the (∣S∣,k)(|S|,k)-GMD induced by SS, and Gρ^kSˉG^{\hat{\rho}_{k}^{\bar{S}}} be the (∣Sˉ∣,k)(|\bar{S}|,k)-GMD induced by Sˉ\bar{S},

Furthermore, the minimum non-zero eigenvalue of ΣS\Sigma_{S} is at least tck\frac{tc}{k}.

After merging together all discretized Gaussians (at most one coming from each bucket BlB^{l} for all l≥0l\geq 0) by iteratively applying Lemma 2, we are able to approximate each original set of CRVs SiS_{i} as the sum of a single discretized Gaussian and a (poly⁡(k/ε),k)(\operatorname*{poly}(k/\varepsilon),k)-PMD. Combining the result from each of the sets SiS_{i} of the initial partition, we obtain the sum of kk discretized Gaussians and a (poly⁡(k/ε),k)(\operatorname*{poly}(k/\varepsilon),k)-PMD. The details of this step are described in Section B.2.

The final step is to show that the kk discretized Gaussians can be merged into a single Gaussian with a structure preserving rounding. We note that we cannot apply Lemma 2 here, since each discretized Gaussian has a different pivot coordinate that has been left out. (Recall that by construction, the CRVs in set SiS_{i} are approximated by a discretized Gaussian that leaves out coordinate ii). We thus need a new tool to enable us to merge Gaussians defined in different dimensions. The main idea is that if two Gaussians with a structure preserving rounding overlap in some dimension, we can use the common dimension as the pivot. We then add the mean vectors and covariance matrices to merge the distributions. Iteratively repeating this process will merge all distributions which overlap in some coordinate. This leaves us with one or many discretized Gaussians that lie in completely disjoint coordinates which we can describe as a single Gaussian with a structure preserving rounding (defining blocks according to the coordinates spanned by each Gaussian). If these were (continuous) Gaussians, the swapping and merging operations would have no cost, but some care is required when dealing with discretized Gaussians. There are two costs which we must bound here. First, we must show that swapping the pivot of a PMD is inexpensive, and second, we need to bound the cost of repeatedly merging Gaussians.

We bound the cost of swapping the pivot by proving the following lemma:

YiY_{i} be the distribution in which we draw a sample (x1,…,xk−1)∼Xi(x_{1},\dots,x_{k-1})\sim X_{i} and return

By applying Lemma 4, we can make two discretized Gaussians have the same left out coordinate and then merge them using Lemma 2 if at least one of them has large variance in every direction. While each of the kk discretized Gaussians starts with this property (for the dimensions in which it is non-deterministic), it is not clear whether this is true after a sequence of pivot swaps and merges.

In many cases, swapping the pivot decreases the minimum eigenvalue of the distribution’s covariance matrix by a factor of poly⁡(k)\operatorname*{poly}(k). This is acceptable if we only perform a single swap, but naively applying this bound for a sequence of kk swaps and merges results in the minimum eigenvalue dropping by a factor of kO(k)k^{O(k)}. We show that such a bad situation cannot occur, no matter how one performs the sequence of swaps and merges, by proving the following lemma:

Σ(i)\Sigma^{(i)} has eigenvalue with corresponding eigenvector 1⃗\vec{1}

There exists coordinate j∗∈S(i)j^{*}\in S^{(i)} such that ΣS(i)∖{j∗}(i)\Sigma^{(i)}_{S^{(i)}\setminus\{j^{*}\}} has minimum eigenvalue at least λ\lambda

Then, for all j∈Sj\in S, the minimum eigenvalue of ΣS∖{j}\Sigma_{S\setminus\{j\}} is at least λ2k3\frac{\lambda}{2k^{3}}.

The details of this step, the proofs of Lemma 4 and Lemma 5 as well as the proof of Theorem 5 are described in Section B.3.

Covers for PMDs

In this section, we describe a pair of covers for (n,k)(n,k)-PMDs.

The first cover follows directly from Theorem 5, which gives a structural characterization of a (n,k)(n,k)-Poisson multinomial random vector as the sum of an appropriately discretized Gaussian and an (tk2,k)(tk^{2},k)-Poisson multinomial random vector. We grid over all possible mean vectors and covariance matrices for the Gaussian component, and all possible parameter values for the (tk2,k)(tk^{2},k)-PMD. These are covered by sets of size (n⋅poly⁡(k/ε))k2(n\cdot\operatorname*{poly}(k/\varepsilon))^{k^{2}} and 2poly⁡(k/ε)2^{\operatorname*{poly}(k/\varepsilon)} respectively, resulting in an overall cover of size nk2⋅2poly⁡(k/ε)n^{k^{2}}\cdot 2^{\operatorname*{poly}(k/\varepsilon)}.

The proof of this lemma is presented in Section C.1.

The second cover further sparsifies the cover for the (tk2,k)(tk^{2},k)-PMD component, by using a multivariate generalization of the moment matching technique described in [DP14]. This reduces the cover size for this component to 2O(k5klog⁡k+2(1/ε))2^{O(k^{5k}\log^{k+2}(1/\varepsilon))}. In [Roo02], Roos shows that a PMD can be written as the weighted sum of partial derivatives of a regular multinomial distribution. He goes on to show that dropping the higher order derivatives in this sum results in a total variation approximation, where the quality of the approximation depends on the parameters of the PMD and the point at which we evaluate the derivatives. We take advantage of this tool to obtain an ε\varepsilon-approximation, through a careful partitioning of the CRVs and choice of point at which to evaluate the derivatives of the multinomial distributions. This implies that any two distributions which have matching “moment profiles” (which roughly describe the lower order derivatives of the distribution) are ε\varepsilon-close to each other, and thus only one representative element must be kept from each such equivalence class. The size of the cover follows by a counting argument on the number of moment profiles.

The proof of this lemma is given in Section C.2. We note that this cover can be efficiently enumerated over, using a dynamic program similar to that of [DP14].

By combining these two lemmas, we obtain Theorem 2.

Learning PMDs

As mentioned before, Theorem 2 combined with Theorem 7 below (taken from [DK14]) immediately implies that (n,k)(n,k)-PMDs can be learned from O(log⁡N/ε2)O(\log N/\varepsilon^{2}) samples, where NN is the size of our cover.

Theorem 7 is using a tournament-style algorithm for hypothesis selection, which takes a set of candidate distributions and outputs one which is O(ε)O(\varepsilon)-close to the unknown distribution (if such a distribution exists)We note that this tournament additionally requires a “PDF comparator,” which we describe for our setting in Section D.4. . Given that NN is polynomial in nn, the resulting sample complexity is logarithmic in nn. To remove the dependence on nn from our sample complexity, we need to exploit not just the size but also the Gaussian structure of the cover. Instead of trying all possible Gaussians that the cover could describe, we instead estimate the moments of the Gaussian directly.

Our strategy will not be to generate an ε\varepsilon-cover for all (n,k)(n,k)-PMDs, but instead we take samples and select only distributions from our cover which are consistent with the data. Similar to before, we will apply Theorem 7 to do hypothesis selection but instead of applying it to the complete cover resulting from Theorem 2, we will apply it to a much smaller set of hypothesis that we obtain after making several “guesses” for the parameters of our distribution. At least one set of these parameters will be sufficiently accurate to obtain an ε\varepsilon total variation distance guarantee and we will be able to determine a good candidate using Theorem 7.

The first step of our learning algorithm is to guess the block-diagonal structure of the Gaussian component of our distribution by guessing the partition of the coordinates and choosing an arbitrary pivot within each block. This requires at most kkk^{k} guesses. Note that any choice of pivot in the partition is acceptable (as shown in Lemma 4 above).

Next, we estimate the mean and covariance of the Gaussian component for each block. We need to estimate them accurately enough in order to learn each block of the discretized Gaussians to within O(ε/k)O(\varepsilon/k) in total variation distance. A useful tool for showing this is the following proposition:

Proposition 1 implies that, in order to achieve the required bound in total variation distance, it suffices to get an estimate that approximately matches the mean and variance of the Gaussian component in every direction. In Section D.1, we prove Lemma 8 which shows that using poly⁡(k)/ε2\operatorname*{poly}(k)/\varepsilon^{2} samples from the PMD, we can get an estimate of the mean and covariance matrix that achieves this guarantee in every direction. However, this estimate is with respect to the PMD we are sampling from and not with respect to the Gaussian component, which is the guarantee we desire.

Given sample access to a (n,k)(n,k)-PMD XX with mean μ\mu and covariance matrix Σ\Sigma (with minimum eigenvalue at least 11), there exists an algorithm which can produce estimates μ^\hat{\mu} and Σ^\hat{\Sigma} such that with probability at least 9/109/10:

The sample and time complexity are O(k4/ε2)O(k^{4}/\varepsilon^{2}).

In order to obtain a guarantee for the Gaussian component, we observe that there are two possible sources of errors in our estimation:

The first source of error comes from the rounding step. In proving our structural result, the real PMD had to be rounded so that no CRV has any probability that is in the range (0,c)(0,c), which affected the mean and covariance. In Section D.2, we show that this only affects the mean and variance in each direction up to a small multiplicative factor.

The second source of error is due to the existence of the sparse component creates an additional additive error in each direction. This error might be very significant in some directions as the variance of the Gaussian component can be very small compared to the number of sparse CRVs.

Understanding that our estimation is off by an additive error and a multiplicative error, we show how to efficiently correct this estimation by searching around it for the underlying covariance matrice of the Gaussian distribution. In particular, we obtain a cover of positive semidefinite matrices that are close to the estimated covariance matrix and which contains a good approximation to the covariance matrix of the underlying Gaussian. This is challenging because the above two sources of error might affect the spectrum of the covariance matrix significantly. However, we are able to tackle this issue by carefully guessing appropriate corrections to the eigenvectors and eigenvalues of the matrix. We prove Lemma 9 which states that this cover has cardinality at most (k/ε)O(k2)(k/\varepsilon)^{O(k^{2})}, and thus we can get a very accurate estimate for the underlying Gaussian distribution by guessing different points in the cover.

Let AA be a symmetric k×kk\times k PSD matrix with minimum eigenvalue 11 and let SS be the set of all matrices BB such that ∣yT(A−B)y∣≤ε1yTAy+ε2yTy|y^{T}(A-B)y|\leq\varepsilon_{1}y^{T}Ay+\varepsilon_{2}y^{T}y for all vectors yy, where ε1∈[0,1/4)\varepsilon_{1}\in[0,1/4) and ε2∈[0,∞)\varepsilon_{2}\in[0,\infty). Then, there exists an ε\varepsilon-cover SεS_{\varepsilon} of SS that has size ∣Sε∣≤(k(1+ε2)ε)O(k2)|S_{\varepsilon}|\leq\left(\frac{k(1+\varepsilon_{2})}{\varepsilon}\right)^{O(k^{2})}.

At this point, we have a collection of distributions such that at least one is close to the Gaussian component. We do the same for the sparse PMD component by simply enumerating over all the elements in the cover. By reading the corresponding term from the statement of Theorem 2, this requires min⁡{2poly⁡(k/ε),2O(k5k⋅log⁡k+2(1/ε))}\min\{2^{\operatorname*{poly}(k/\varepsilon)},2^{O(k^{5k}\cdot\log^{k+2}(1/\varepsilon))}\} guesses.

In conclusion, using poly⁡(k)/ε2\operatorname*{poly}(k)/\varepsilon^{2} samples, we have generated a set S\mathcal{S} of size

which contains a distribution which is ε\varepsilon-close to the true distribution with constant probability. In order to choose a “good” distribution from this set, we apply the hypothesis selection algorithm of Theorem 7 to obtain a distribution which is O(ε)O(\varepsilon)-close to the unknown distribution with constant probability, which concludes the proof of Theorem 3. More details about the learning steps and complete proofs can be found in Section D.

Learning k𝑘k-SIIRVs

The proof uses the structural result of [DDO+13], which says that any (n,k)(n,k)-SIIRV is close to either a low variance distribution with limited support, or a high variance distribution which enjoys certain Gaussian structural properties.

Let S=X1+⋯+XnS=X_{1}+\dots+X_{n} be a (n,k)(n,k)-SIIRV for some positive integer kk. Let μ\mu and σ2\sigma^{2} be respectively the mean and variance of SS. Then for all ε>0\varepsilon>0, the distribution of SS is O(ε)O(\varepsilon)-close in total variation distance to one of the following:

a random variable supported on k9ε4\frac{k^{9}}{\varepsilon^{4}} consecutive integers with variance σ2≤15(k18/ε6)log⁡2(1/ε)\sigma^{2}\leq 15(k^{18}/\varepsilon^{6})\log^{2}(1/\varepsilon); or

the sum of two independent random variables S1+cS2S_{1}+cS_{2}, where cc is some positive integer 1≤c≤k−11\leq c\leq k-1, S2S_{2} is distributed according to ⌊N(μ,σ2)⌉\lfloor\mathcal{N}(\mu,\sigma^{2})\rceil, and S1S_{1} is a cc-IRV; in this case, σ2=Ω(k18ε6log⁡2(1/ε))\sigma^{2}=\Omega\left(\frac{k^{18}}{\varepsilon^{6}}\log^{2}(1/\varepsilon)\right).

To cover the former case, we use the PMD cover of Theorem 2. In this setting, the SIIRV has a variance upper bounded by poly⁡(k/ε)\operatorname*{poly}(k/\varepsilon). By applying a rounding procedure, it can be shown that this can be approximated by an offset (poly⁡(k/ε),k)(\operatorname*{poly}(k/\varepsilon),k)-SIIRV. Recalling that any (n,k)(n,k)-SIIRV can be expressed as the projection of an (n,k)(n,k)-PMD onto the vector (0,1,…,k−1)(0,1,\dots,k-1) and applying our quasi-polynomial cover result in Theorem 2 covers this case with 2O(k5k⋅log⁡k+2(1/ε))2^{O(k^{5k}\cdot\log^{k+2}(1/\varepsilon))} candidates.

To cover the latter case, we first perform k−1k-1 guesses for the value of c∈[k−1]c\in[k-1]. For each guess, we learn the two distributions S1S_{1} and S2S_{2} separately. To learn S1S_{1}, we use the same approach as [DDO+13], which uses the empirical distribution obtained after mapping the samples onto {0,1,…,c−1}\{0,1,\dots,c-1\} using their residue mod cc. Our method for learning S2S_{2} is novel – we first round the value of each sample down to the next multiple of cc, and examine the distribution on this support, which will be close in total variation distance to S2S_{2}. We estimate the moments of this distribution using robust statistical tools, as in [DDO+13]. The empirical median is used to estimate the mean, and a rescaling of the interquartile range is used to estimate the standard deviation. Thus, we cover this case using only k−1k-1 candidates, one for each guess of cc.

References

Appendix A Useful Tools

To compare probability distributions, we will require the total variation and Kolmogorov distances:

The total variation distance between two probability measures PP and QQ on a σ\sigma-algebra FF is defined by

Unless explicitly stated otherwise, in this paper, when two distributions are said to be ε\varepsilon-close, we mean in total variation distance.

The Kolmogorov distance between two probability measures PP and QQ with CDFs FPF_{P} and FQF_{Q} is defined by

We note that Kolmogorov distance is, in general, weaker than total variation distance. In particular, total variation distance between two distributions is lower bounded by the Kolmogorov distance.

A.2 Probabilistic Tools

We will use the following form of Chernoff/Hoeffding bounds:

Let Z1,…,ZmZ_{1},\dots,Z_{m} be independent random variables with Zi∈Z_{i}\in for all ii. Then, if Z=∑i=1nZiZ=\sum_{i=1}^{n}Z_{i} and γ∈(0,1)\gamma\in(0,1),

We note the Dvoretzky-Kiefer-Wolfowitz (DKW) inequality, which is a powerful tool, giving a generic algorithm for learning any distribution with respect to the Kolmogorov metric [DKW56].

We will use the Data Processing Inequality for total variation distance (see part (iv) of Lemma 2 of [Rey11] for the proof). This lemma says that taking any function of two random variables can only reduce their total variation distance. Our statement of the inequality is taken from [DDO+13].

Let X,X′X,X^{\prime} be two random variables over a domain Ω\Omega. Fix any (possibly randomized) function FF on Ω\Omega (which may be viewed as a distribution over deterministic functions on Ω\Omega) and let F(X)F(X) be the random variable such that a draw from F(X)F(X) is obtained by drawing independently xx from XX and ff from FF and then outputting f(x)f(x) (likewise for F(X′)F(X^{\prime})). Then we have

Finally, we require a hypothesis selection algorithm. Roughly, given a set of NN distributions with the guarantee that at least one is ε\varepsilon-close to an unknown distribution XX, we can choose a hypothesis which is O(ε)O(\varepsilon)-close to XX. The running time is near-linear in NN and the number of samples is logarithmic in NN.

Let H1H_{1} and H2H_{2} be probability distributions over some set D{\cal D}. A PDF comparator for H1,H2H_{1},H_{2} is an oracle that takes as input some x∈Dx\in{\cal D} and outputs 11 if H1(x)>H2(x)H_{1}(x)>H_{2}(x), and otherwise.

A.3 Bounds for Distances Between Distributions

Given two kk-dimensional Gaussians N1=N(μ1,Σ1),N2=N(μ2,Σ2)\mathcal{N}_{1}=\mathcal{N}(\mu_{1},\Sigma_{1}),\mathcal{N}_{2}=\mathcal{N}(\mu_{2},\Sigma_{2}) such that for all i,j∈[k]i,j\in[k], ∣Σ1(i,j)−Σ2(i,j)∣≤α|\Sigma_{1}(i,j)-\Sigma_{2}(i,j)|\leq\alpha, and the minimum eigenvalue of Σ1\Sigma_{1} is at least σ2\sigma^{2},

Without loss of generality, assume μ=0\mu=0, Σ=I\Sigma=I, and Σ′\Sigma^{\prime} is diagonal. This can be done by setting y=QΛ−1/2Q′Txy=Q\Lambda^{-1/2}Q^{\prime T}x, where Σ=QΛQT\Sigma=Q\Lambda Q^{T} and Σ′=Q′Λ′Q′T\Sigma^{\prime}=Q^{\prime}\Lambda^{\prime}Q^{\prime T} are the eigendecompositions of Σ\Sigma and Σ′\Sigma^{\prime}.

This implies that we now have the following guarantees for all i∈[k]i\in[k]:

Since each coordinate is independent and noting that Σi,i′≥1−ε\Sigma^{\prime}_{i,i}\geq 1-\varepsilon, we can apply Proposition 2 to each coordinate direction to obtain a total variation distance of 2εk2\varepsilon k. ∎

Let X1,…,XnX_{1},\dots,X_{n} be independent random variables, with E[Xi]=0,E[Xi2]=σi2>0,E[∣Xi∣3]=ρi<∞E[X_{i}]=0,E[X_{i}^{2}]=\sigma_{i}^{2}>0,E[|X_{i}|^{3}]=\rho_{i}<\infty, and define X=∑i=1nXi,σ2=∑i=1nσi2,ρ=∑i=1nρiX=\sum_{i=1}^{n}X_{i},\sigma^{2}=\sum_{i=1}^{n}\sigma_{i}^{2},\rho=\sum_{i=1}^{n}\rho_{i}. Then for an absolute constant C0≤0.56C_{0}\leq 0.56,

A.4 Covariance Matrices of Truncated Categorical Random Variables

First, recall the definition of a symmetric diagonally dominant matrix.

A matrix AA is symmetric diagonally dominant (SDD) if AT=AA^{T}=A and Aii≥∑j≠i∣Aij∣A_{ii}\geq\sum_{j\neq i}|A_{ij}| for all ii.

As a tool, we will use this corollary of the Gershgorin Circle Theorem [Ger31] which follows since all eigenvalues of a symmetric matrix are real.

Given an SDD matrix AA with positive diagonal entries, the minimum eigenvalue of AA is at least min⁡iAii−∑j≠i∣Aij∣\min_{i}A_{ii}-\sum_{j\neq i}|A_{ij}|.

The minimum eigenvalue of the covariance matrix Σ\Sigma of a truncated CRV is at least ρ(0)min⁡iρ(i)\rho(0)\min_{i}\rho(i).

We note that Σ\Sigma is SDD, since ∑j≠i∣Σij∣=ρ(i)∑j≠iρ(j)=ρ(i)(1−ρ(i)−ρ(0))≤ρ(i)(1−ρ(i))=Σii\sum_{j\neq i}|\Sigma_{ij}|=\rho(i)\sum_{j\neq i}\rho(j)=\rho(i)(1-\rho(i)-\rho(0))\leq\rho(i)(1-\rho(i))=\Sigma_{ii}. Thus, applying Proposition 5, we see that the minimum eigenvalue of Σ\Sigma is at least min⁡iρ(i)(1−ρ(i))−ρ(i)(1−ρ(i)−ρ(0))=ρ(0)min⁡iρ(i)\min_{i}\rho(i)(1-\rho(i))-\rho(i)(1-\rho(i)-\rho(0))=\rho(0)\min_{i}\rho(i). ∎

A.5 Sums of Discretized Gaussians

In this section, we will obtain total variation distance bounds on merging the sum of discretized Gaussians. It is well known that the sum of multiple Gaussians has the same distribution as a single Gaussian with parameters equal to the sum of the components’ parameters. However, this is not true if we are summing discretized Gaussians – we quantify the amount we lose by replacing the distribution with a single Gaussian, and then discretizing afterwards.

As a tool, we will use the following result from [DDO+13]:

Let X1∼N(μ1,σ12)X_{1}\sim\mathcal{N}(\mu_{1},\sigma_{1}^{2}) and X2∼N(μ2,σ22)X_{2}\sim\mathcal{N}(\mu_{2},\sigma_{2}^{2}). Then

First, suppose without loss of generality that σ1≥σ2\sigma_{1}\geq\sigma_{2}.

The second inequality uses Proposition 7. ∎

The proof is by induction on kk. The base case of k=1k=1 is handled by Proposition 8. For general kk, we use a standard hybridization argument. Denote the jjth coordinate of XiX_{i} as xijx_{ij}.

The first inequality is the triangle inequality, the second uses Lemma 13, and the third uses the induction hypothesis and Proposition 8. ∎

Appendix B Details from Section 3

Fix some coordinate xx, and select all kk-CRVs where the parameter in coordinate xx is in the range (0,c)(0,c). Partition this subset into k−1k-1 sets, depending on which coordinate y≠xy\neq x is the heaviest. We apply a rounding procedure separately to each of these sets. After this procedure, none of the parameters in coordinate xx will be in (0,c)(0,c). We repeat this for all kk possible settings of xx. From the description below (and the restriction that c≤12kc\leq\frac{1}{2k}), it will be clear that we will not “undo” any of our work and move probabilities back into (0,c)(0,c), so O(k2)O(k^{2}) applications of our rounding procedure will produce the result claimed in the theorem statement.

Recall that the goal of this rounding procedure will be to shift probability mass either to or from coordinate xx to coordinate yy, such that no parameter in coordinate xx lies in the interval (0,c)(0,c), while simultaneously approximately preserving the mean vector of the distribution. We are able to do this since coordinate yy is “heavy” and thus small additions will not affect the distribution in this coordinate much.

We fix some x,yx,y in order to describe and analyze the process more formally. Define Iyx={i ∣ 0<ρ(i,x)<c∧y=arg⁡max⁡jρ(i,j)}\mathcal{I}^{x}_{y}=\{i\,|\,0<\rho(i,x)<c\wedge y=\arg\max_{j}\rho(i,j)\} (breaking ties lexicographically), and let MρIyxM^{\rho_{I^{x}_{y}}} be the (n,k)(n,k)-PMD induced by this set. For the remainder of this section, without loss of generality, assume that the indices selected by Iyx\mathcal{I}^{x}_{y} are 11 through ∣Iyx∣|\mathcal{I}^{x}_{y}|.

Select an arbitrary set R⊆Iyx\mathcal{R}\subseteq\mathcal{I}^{x}_{y} such that ∣R∣=⌊∑i′∈IyxρIyx(i′,x)c⌋|\mathcal{R}|=\left\lfloor\frac{\sum_{i^{\prime}\in I^{x}_{y}}\rho_{I^{x}_{y}}(i^{\prime},x)}{c}\right\rfloor. Intuitively, this set will be the CRVs for which we set the parameter ρ(⋅,x)\rho(\cdot,x) to be cc, while Iyx∖R\mathcal{I}^{x}_{y}\setminus\mathcal{R} will have ρ(⋅,x)\rho(\cdot,x) set to . We can perform the following rounding scheme to ρIyx\rho_{I^{x}_{y}} to obtain a new parameter matrix ρ^Iyx\hat{\rho}_{I^{x}_{y}}:

We define the process Fork, for sampling from a kk-CRV ρ(i,⋅)\rho(i,\cdot) in Iyx\mathcal{I}^{x}_{y}:

Let XiX_{i} be an indicator random variable, taking 11 with probability 1k\frac{1}{k} and otherwise.

If Xi=1X_{i}=1, then return exe_{x} with probability kρ(i,x)k\rho(i,x) and eye_{y} with probability 1−kρ(i,x)1-k\rho(i,x).

If Xi=0X_{i}=0, then return eje_{j} with probability if j=xj=x, kk−1(ρ(i,x)+ρ(i,y)−1k)\frac{k}{k-1}(\rho(i,x)+\rho(i,y)-\frac{1}{k}) if j=yj=y, and kk−1ρ(i,j)\frac{k}{k-1}\rho(i,j) otherwise.

The intuition behind this procedure is that we isolate the changes in our rounding procedure when Xi=1X_{i}=1, as when Xi=0X_{i}=0, the rounded and unrounded distributions are identical. We note that Fork is well defined as long as ρ(i,x)≤1k\rho(i,x)\leq\frac{1}{k} and ρ(i,x)+ρ(i,y)≥1k\rho(i,x)+\rho(i,y)\geq\frac{1}{k}. The former is true since c≤1kc\leq\frac{1}{k}, and the latter is true since yy was chosen to be the heaviest coordinate. Additionally, by calculating the probability of any outcome, we can see that Fork is equivalent to the regular sampling process. Define the (random) set X={i ∣ Xi=1}\bm{X}=\{i\,|\,X_{i}=1\}. We will use θ\bm{\theta} to refer to a particular realization of this set. We define Fork for sampling from ρ^(i,⋅)\hat{\rho}(i,\cdot) in the same way, though we will denote the indicator random variables by X^i\hat{X}_{i} and X^\bm{\hat{X}} instead. Note that, if c≤1kc\leq\frac{1}{k}, the process will still be well defined after rounding. This is because ρ^(i,x)≤c≤1k\hat{\rho}(i,x)\leq c\leq\frac{1}{k}, and ρ^(i,x)+ρ^(i,y)=ρ(i,x)+ρ(i,y)≥1k\hat{\rho}(i,x)+\hat{\rho}(i,y)=\rho(i,x)+\rho(i,y)\geq\frac{1}{k}. For the rest of this section, when we are drawing a sample from a CRV, we draw it via the process Fork.

The proof of Lemma 1 follows from the following three lemmata. Intuitively, the first states that the PMD induced by the CRVs for which Xi=1X_{i}=1 gives a Poisson Binomial distribution with mean concentrated around its expected value, for both the rounded and unrounded PMDs. The second states that if this value is concentrated, then the two distributions are close in total variation distance. The proof relates the rounded and unrounded distributions by comparing the total variation distance between the Poisson distributions with the same means. The third lemma eliminates the condition on the second lemma by using the first lemma, which states that this condition is likely to hold.

If ∑i∈Iyxρ(i,x)≥3cklog⁡(1ck)\sum_{i\in I^{x}_{y}}\rho(i,x)\geq 3ck\log\left(\frac{1}{ck}\right), then

Suppose that, for some θ\bm{\theta}, the following hold:

Then, letting ZiZ_{i} be the Bernoulli random variable with expectation kρIyx(i,x)k\rho_{I^{x}_{y}}(i,x) (and Z^i\hat{Z}_{i} defined similarly with kρ^Iyx(i,x)k\hat{\rho}_{I^{x}_{y}}(i,x)),

Since our final rounded (n,k)(n,k)-PMD is generated after applying this rounding procedure O(k2)O(k^{2}) times, Lemma 1 follows from our construction and Lemma 16 via the triangle inequality.

Proof of Lemma 14: Note that ∑i∈XkρIyx(i,x)=∑i∈IyxΩi\sum_{i\in\bm{X}}k\rho_{I^{x}_{y}}(i,x)=\sum_{i\in I^{x}_{y}}\Omega_{i}, where

We apply Lemma 11 to the rescaled random variables Ωi′=1ckΩi\Omega_{i}^{\prime}=\frac{1}{ck}\Omega_{i}, with γ=3log⁡1ckE[∑i∈IyxΩi′]\gamma=\sqrt{\frac{3\log{\frac{1}{ck}}}{E[\sum_{i\in I^{x}_{y}}\Omega_{i}^{\prime}]}}, giving

Applying the same argument to ρ^Iyx\hat{\rho}_{I^{x}_{y}} gives

Since X∼X^\bm{X}\sim\bm{\hat{X}}, by considering the joint probability space where θ=X=X^\bm{\theta}=\bm{X}=\bm{\hat{X}} and applying a union bound, we get

Proof of Lemma 15: Fix some θ=X=X^\bm{\theta}=\bm{X}=\bm{\hat{X}}. Without loss of generality, assume E\Big{[}\sum_{i\in\bm{X}}k\rho_{I^{x}_{y}}(i,j)\Big{]}\geq E\Big{[}\sum_{i\in\bm{\hat{X}}}k\hat{\rho}_{I^{x}_{y}}(i,j)\Big{]}. There are two cases:

E\Big{[}\sum_{i\in\bm{X}}k\rho_{I^{x}_{y}}(i,j)\Big{]}\leq(ck)^{3/4}

From the first assumption in the lemma statement,

Similarly, by the second assumption in the lemma statement and since E\Big{[}\sum_{i\in\bm{X}}k\rho_{I^{x}_{y}}(i,j)\Big{]}\geq E\Big{[}\sum_{i\in\bm{\hat{X}}}k\hat{\rho}_{I^{x}_{y}}(i,j)\Big{]}, we also have that ∑i∈θkρ^Iyx(i,j)≤g(c,k)\sum_{i\in\bm{\theta}}k\hat{\rho}_{I^{x}_{y}}(i,j)\leq g(c,k).

By Markov’s inequality, \Pr\Big{[}\sum_{i\in\bm{\theta}}Z_{i}\geq 1\Big{]}\leq\sum_{i\in\bm{\theta}}k\rho_{I^{x}_{y}}(i,j)\leq g(c,k), and similarly, \Pr\Big{[}\sum_{i\in\bm{\theta}}\hat{Z}_{i}\geq 1\Big{]}\leq g(c,k). This implies that

E\Big{[}\sum_{i\in\bm{X}}k\rho_{I^{x}_{y}}(i,j)\Big{]}\geq(ck)^{3/4}

We use the following proposition, which is a combination of a classical result in Poisson approximation [BHJ92] and Lemma 3.10 in [DP07].

For any set of independent Bernoulli random variables {Zi}i\{Z_{i}\}_{i} with expectations E[Zi]≤ckE[Z_{i}]\leq ck,

We must now bound the distance between the two Poisson distributions. We use the following lemma from [DP08]:

If λ=λ0+D\lambda=\lambda_{0}+D for some D>0,λ0>0D>0,\lambda_{0}>0,

To bound this, we need the following proposition, which we prove below:

Thus, using the triangle inequality and this proposition, for sufficiently small cc, we get

By comparing Cases 1 and 2, we see that the desired bound holds in both cases.

Proof of Proposition 10: By the definition of our rounding procedure, we observe that

By the assumptions of Lemma 15 and the assumption that E\Big{[}\sum_{i\in\bm{X}}k\rho_{I^{x}_{y}}(i,j)\Big{]}\geq E\Big{[}\sum_{i\in\bm{\hat{X}}}k\hat{\rho}_{I^{x}_{y}}(i,j)\Big{]},

From the assumption that E\Big{[}\sum_{i\in\bm{X}}k\rho_{I^{x}_{y}}(i,x)\Big{]}\geq(ck)^{3/4}, for sufficiently small cc,

Combining this with the first assumption of Lemma 15,

Similarly, since E\Big{[}\sum_{i\in\bm{\hat{X}}}k\hat{\rho}_{I^{x}_{y}}(i,j)\Big{]}\geq E\Big{[}\sum_{i\in\bm{X}}k\rho_{I^{x}_{y}}(i,j)\Big{]}-c\geq(ck)^{3/4}-c, for cc sufficiently small,

where the last equality follows for cc sufficiently small because E\Big{[}\sum_{i\in\bm{X}}k\rho_{I^{x}_{y}}(i,x)\Big{]}\geq(ck)^{3/4}.

From (1) and (2), for cc sufficiently small,

from which the proposition statement follows. \hfill\qed\hfill\qed

Throughout this proof, we will couple the two sampling processes such that θ≔X=X^\bm{\theta}\coloneqq\bm{X}=\bm{\hat{X}}, which is possible since X∼X^\bm{X}\sim\bm{\hat{X}}. Let ϕ\phi be the random event that θ\bm{\theta} satisfies the following conditions:

Suppose that ϕ\phi occurs, and fix a θ\bm{\theta} in this probability space. We start by showing that for such a θ\bm{\theta},

Let MρIyxθM^{\rho_{I^{x}_{y}}^{\bm{\theta}}} and MρIyxθˉM^{\rho_{I^{x}_{y}}^{\bm{\bar{\theta}}}} be the (n,k)(n,k)-PMDs induced by the kk-CRVs in MρIyxM^{\rho_{I^{x}_{y}}} with indices in θ\bm{\theta} and not in θ\bm{\theta}, respectively. Define Mρ^IyxθM^{\hat{\rho}_{I^{x}_{y}}^{\bm{\theta}}} and Mρ^IyxθˉM^{\hat{\rho}_{I^{x}_{y}}^{\bm{\bar{\theta}}}} similarly. We can see

The first inequality is the triangle inequality, the second inequality is because the distributions for kk-CRVs in θˉ\bm{\bar{\theta}} are identical (since we do not change them in our rounding), and the third inequality is Lemma 15.

By the law of total probability for total variation distance,

where the inequality is obtained by applying Lemma 14 and the bound shown above pointwise for θ\bm{\theta} which satisfy ϕ\phi.

B.2 Converting to a Discretized Gaussian using the Valiant-Valiant CLT

We will now apply a result by Valiant and Valiant [VV10]. We recall the aforementioned CLT by Valiant and Valiant, Theorem 6, which we restate for convenience.

As we can see from this inequality, there are two issues that may arise and lead to a bad approximation:

GρG^{\rho} has small variance in some direction (cf. Proposition 6)

GρG^{\rho} has a large size parameter nn

We must avoid both of these issues simultaneously – we will apply this result to several carefully chosen sets, and then merge the resulting Gaussians into one using Lemma 2.

The first step is to partition our CRVs into several sets, and then convert the PMDs induced by each set into GMDs (with an appropriately chosen pivot). The original PMD can be sampled by sampling each of these GMDs and then adding their results. In other words, the probability mass function of the PMD is the convolution of the probability mass functions of these GMDs.

We start by partitioning the kk-CRVs into kk sets S1,…,SkS_{1},\dots,S_{k}, where Sj′={i ∣ j′=arg⁡max⁡jπ^(i,j)}S_{j^{\prime}}=\{i\,|\,j^{\prime}=\arg\max_{j}\hat{\pi}(i,j)\} and ties are broken by lexicographic ordering. This defines Sj′S_{j^{\prime}} to be the set of indices of kk-CRVs in which j′j^{\prime} is the heaviest coordinate. Let Mπ^j′M^{\hat{\pi}_{j^{\prime}}} be the (∣Sj′∣,k)(|S_{j^{\prime}}|,k)-PMD induced by taking the kk-CRVs in Sj′S_{j^{\prime}}. For the remainder of this section, we will focus on SkS_{k}, the other cases follow symmetrically.

We convert each CRV in SkS_{k} into a truncated kk-CRV by omitting the kkth coordinate, giving us a (∣Sk∣,k)(|S_{k}|,k)-GMD Gρ^kG^{\hat{\rho}_{k}}. Since the kkth coordinate was the heaviest, we can make the following observation:

ρ^k(i,0)≥1k\hat{\rho}_{k}(i,0)\geq\frac{1}{k} for all i∈Ski\in S_{k}.

If we tried to apply Theorem 6 to Gρ^kG^{\hat{\rho}_{k}}, we would obtain a vacuous result. For instance, if there exists a jj such that ρ^k(i,j)=0\hat{\rho}_{k}(i,j)=0 for all ii, the variance in this direction would be and Theorem 6 would give us a trivial result. Therefore, we further partition SkS_{k} into 2k−12^{k-1} sets indexed by 2[k−1]2^{[k-1]}, where each set contains the elements of SkS_{k} which are non-zero on its indexing set and zero otherwise. More formally, SkI={i ∣ (i∈Sk)∧(ρ^(i,j)≥c ∀j∈I)∧(ρ^(i,j)=0 ∀j∉I)}S_{k}^{\mathcal{I}}=\{i\,|\,(i\in S_{k})\wedge(\hat{\rho}(i,j)\geq c\ \forall j\in\mathcal{I})\wedge(\hat{\rho}(i,j)=0\ \forall j\not\in\mathcal{I})\}. For each of these sets, due to our rounding procedure, we know that the variance is non-negligible in each of the non-zero directions. Naively, we would apply the CLT separately to each of these sets. The issue is that merging the resulting 2k2^{k} Gaussians would be costly. Roughly, merging two Gaussians into one incurs a cost proportional to the inverse of the minimum standard deviation of either Gaussian. In order to avoid the cost of merging exponentially many Gaussians with similar variances, before applying the CLT, we group sets SkIS_{k}^{\mathcal{I}} of similar variance together. The resulting collection of Gaussians have variances which increase rapidly, and by merging them in the correct order, we can minimize this cost.

Recall that γ=O(1)\gamma=O(1) and t=poly⁡(k/ε)t=\operatorname*{poly}(k/\varepsilon) (as specified in Section 2.1). For an integer l≥0l\geq 0, define Bl=⋃I∈QlSkIB^{l}=\bigcup_{\mathcal{I}\in Q_{l}}S_{k}^{\mathcal{I}}, where Ql={I ∣ ∣SkI∣∈[lγt,(l+1)γt)}Q_{l}=\{\mathcal{I}\,|\,|S_{k}^{\mathcal{I}}|\in[l^{\gamma}t,(l+1)^{\gamma}t)\}. In other words, bucket ll will contain a collection of truncated CRVs, defined by the union of the previously defined sets which have a size falling in a particular interval.

At this point, we are ready to apply the central limit theorem:

Let Gρ^klG^{\hat{\rho}_{k}^{l}} be the (∣Bl∣,k)(|B^{l}|,k)-GMD induced by the truncated CRVs in BlB^{l}, and μkl\mu_{k}^{l} and Σkl\Sigma_{k}^{l} be its mean and covariance matrix. Then

Furthermore, the minimum non-zero eigenvalue of Σkl\Sigma_{k}^{l} is at least lγtck\frac{l^{\gamma}tc}{k}.

This follows from Theorem 6, it suffices to bound the values of “nn” and “σ2\sigma^{2}” which appear in the theorem statement.

BlB^{l} is the union of at most 2k2^{k} sets, each of size at most (l+1)γt(l+1)^{\gamma}t, which gives us the upper bound of 2k(l+1)γt2^{k}(l+1)^{\gamma}t as the size of induced GMD.

We must be more careful when reasoning about the minimum eigenvalue of Σkl\Sigma_{k}^{l} – indeed, it may be if there exists a j′j^{\prime} such that for all ii, ρ^kl(i,j′)=0\hat{\rho}_{k}^{l}(i,j^{\prime})=0. Therefore, we apply the CLT on the GMD defined by removing all zero-columns from ρkl\rho_{k}^{l}, taking us down to a dimension k′≤kk^{\prime}\leq k. Afterwards, we lift the related discretized Gaussian up to kk dimensions by inserting for the means and covariances involving any of the k−k′k-k^{\prime} dimensions we removed. This operation will not increase the total variation distance, by Lemma 13. From this point, we assume that all columns of ρ^kl\hat{\rho}_{k}^{l} are non-zero.

By substituting these values into Theorem 6, we obtain the claimed bound. ∎

We note that this gives us a vacuous bound for B0B^{0}, which we must deal with separately. The issue with this bucket is that the variance in some directions might be small compared to the size of the GMD induced by the bucket. The intuition is that we can remove the truncated CRVs which are non-zero in these low-variance dimensions, and the remaining truncated CRVs can be combined into another GMD.

The algorithm iteratively eliminates columns which have fewer than tt non-zero entries. For each such column jj, add all truncated CRVs which have non-zero entries in column jj to Sˉ\bar{S}. Since there are only kk columns, we add at most ktkt truncated CRVs to Sˉ\bar{S}.

Now, we apply Theorem 6 to the truncated CRVs in SS. The analysis of this is similar to the proof of Lemma 18. As argued before, we can drop the dimensions which have variance. This time, the size of the GMD is at most 2kt2^{k}t, which follows from the definition of B0B^{0}. Recall that the minimum variance of a single truncated CRV in SS is at least ck\frac{c}{k} in any direction in the span of its non-zero columns. After removing the CRVs in Sˉ\bar{S}, every dimension with non-zero variance must have at least tt truncated CRVs which are non-zero in that dimension, giving a variance of at least tck\frac{tc}{k}. Substituting these parameters into Theorem 6 gives the claimed bound. ∎

We assemble the two lemmata to obtain the following result:

Let Gρ^kG^{\hat{\rho}_{k}} be a (n,k)(n,k)-GMD with ρ^k(i,j)∉(0,c)\hat{\rho}_{k}(i,j)\not\in(0,c) and ∑jρk(i,j)≤1−1k\sum_{j}\rho_{k}(i,j)\leq 1-\frac{1}{k} for all ii, and let SkS_{k} be its set of component truncated CRVs. There exists an efficiently computable partition of SkS_{k} into SS and Sˉ\bar{S}, where ∣Sˉ∣≤kt|\bar{S}|\leq kt. Furthermore, letting μS\mu_{S} and ΣS\Sigma_{S} be the mean and covariance matrix of the (∣S∣,k)(|S|,k)-GMD induced by SS, and Gρ^kSˉG^{\hat{\rho}_{k}^{\bar{S}}} be the (∣Sˉ∣,k)(|\bar{S}|,k)-GMD induced by Sˉ\bar{S},

Furthermore, the minimum non-zero eigenvalue of ΣS\Sigma_{S} is at least tck\frac{tc}{k}.

This is a combination of Lemmas 18 and 3, with the results merged using Lemma 2.

As described above, we will group the truncated CRVs into several buckets. We first apply Lemma 18 to each of the non-empty buckets BlB^{l} for l>0l>0. This will give us a sum of many discretized Gaussians. If applicable, we apply Lemma 3 to B0B^{0} to obtain another discretized Gaussian and a set Sˉ\bar{S} of ≤kt\leq kt truncated CRVs. By applying Lemma 2, we can “merge” the sum of many discretized Gaussians into a single discretized Gaussian. By triangle inequality, the error occured in the theorem statement is the sum of all of these approximations.

We start by analyzing the cost of applying Lemma 18. Recall γ=6+δγ\gamma=6+\delta_{\gamma} for some constant δγ>0\delta_{\gamma}>0. Let the set of NN non-empty buckets be X\mathcal{X}. Then the sum of the errors incurred by all NN applications of Lemma 18 is at most

for any constant 0<δ′<δγ0<\delta^{\prime}<\delta_{\gamma}. The final inequality is because the series ∑n=1∞n−c\sum_{n=1}^{\infty}n^{-c} converges for any c>1c>1.

The cost of applying Lemma 3 is analyzed similarly,

Finally, we analyze the cost of merging the N+1N+1 Gaussians into one. We will analyze this by considering the following process: we maintain a discretized Gaussian, which we will name the candidate. The candidate is initialized to be the Gaussian generated from the highest numbered non-empty bucket. At every time step, we update the candidate to be the result of merging itself with the Gaussian from the highest numbered non-empty bucket which has not yet been merged. We continue until the Gaussian from every non-empty bucket has been merged with the candidate.

By Lemma 2, the cost of merging two Gaussians is at most O(kσ)O\left(\frac{k}{\sigma}\right), where σ2\sigma^{2} is the minimum variance of either Gaussian in any direction where either has a non-zero variance. From Lemma 18, the variance of the Gaussian from BlB^{l} is at least lγtckl^{\gamma}t\frac{c}{k} in every direction of non-zero variance. Since we are considering the buckets in decreasing order and merging two Gaussians only increases the variance, when merging the candidate with bucket ll, the maximum cost we can incur is (k3/2lγ/2c1/2t1/2)\left(\frac{k^{3/2}}{l^{\gamma/2}c^{1/2}t^{1/2}}\right). Summing over all buckets in X\mathcal{X},

where the second inequality is because the series ∑n=1∞n−c\sum_{n=1}^{\infty}n^{-c} converges for any c>1c>1. We note that, from Lemma 3, the variance of the Gaussian obtained from B0B^{0} is at least tck\frac{tc}{k} in any non-zero direction. Therefore, merging this Gaussian with the rest does not affect our bound asymptotically. Since the minimum non-zero variance of any Gaussian we merged was at least tck\frac{tc}{k}, the same holds for the resulting merged Gaussian and its minimum non-zero eigenvalue.

By adding the error terms obtained from each of the approximations, we obtain the claimed bound on total variation distance. ∎

B.3 Merging k𝑘k Gaussians into one

In order to merge the kk discretized Gaussians into one, we perform a series of “swap-and-merge” operations, in which we swap the pivots of two discretized Gaussians to be the same, and then merge the resulting distributions into one. We repeat this process until all Gaussians which overlap in some dimension are merged together. The following lemma bounds the cost of swapping a pivot.

As shown in Lemma 2, merging two Gaussians is cheap, assuming the minimum eigenvalues of their covariance matrices are sufficiently large. The following lemma shows that this value stays large throughout the sequence of swap-and-merge operations. See 5

We have that yTΣy=∑iyTΣ(i)y≥max⁡iyTΣ(i)yy^{T}\Sigma y=\sum_{i}y^{T}\Sigma^{(i)}y\geq\max_{i}y^{T}\Sigma^{(i)}y since all matrices are positive semidefinite. We now consider a coordinate j′j^{\prime} of yy with maximum absolute value which has weight at least 1k\frac{1}{\sqrt{k}}. Since the covariance matrix Σ\Sigma is the result of summing matrices with common coordinates (by property 3 in the lemma statement), there is a sequence of coordinates starting from j′j^{\prime} and ending with jj that has length at most kk, such that any two consecutive coordinates belong to at least one of the sets S(i)S^{(i)}. Since ∣yj′∣≥1k|y_{j^{\prime}}|\geq\frac{1}{\sqrt{k}} while yj=0y_{j}=0, it means that there exists a pair (a,b)(a,b) of consecutive coordinates in the path such that ∣ya−yb∣≥1kk|y_{a}-y_{b}|\geq\frac{1}{k\sqrt{k}}.

Consider Σ(i)\Sigma^{(i)} such that a,b∈S(i)a,b\in S^{(i)}. Let j∗∈S(i)j^{*}\in S^{(i)} be the coordinate such that ΣS(i)∖{j∗}(i)\Sigma^{(i)}_{S^{(i)}\setminus\{j^{*}\}} has minimum eigenvalue at least λ\lambda. We have that:

where the second equality follows by property 1 in the lemma statement and the last inequality follows since ΣS(i)∖{j∗}(i)\Sigma^{(i)}_{S^{(i)}\setminus\{j^{*}\}} has minimum eigenvalue at least λ\lambda. Moreover since ∣ya−yb∣≥1kk|y_{a}-y_{b}|\geq\frac{1}{k\sqrt{k}}, we have that ∥yS(i)−yj∗1⃗S(i)∥22≥(ya−yj∗)2+(yb−yj∗)2≥12k3\|y_{S^{(i)}}-y_{j^{*}}\vec{1}_{S^{(i)}}\|_{2}^{2}\geq(y_{a}-y_{j^{*}})^{2}+(y_{b}-y_{j^{*}})^{2}\geq\frac{1}{2k^{3}} which completes the proof of the lemma. ∎

Finally, with these two lemmas in hand, we can conclude with the proof of Theorem 5.

Now, we show that our choices of cc and tt make the resulting distribution be ε\varepsilon-close to the original. Applying Lemma 1 introduces a cost of O(c1/2k5/2log⁡1/2(1ck))O\left(c^{1/2}k^{5/2}\log^{1/2}\left(\frac{1}{ck}\right)\right) in our approximation. We apply Lemma 19 kk times (once to each set SlS_{l}), so the total cost introduced here is O(k19/6log⁡2/3tc1/6t1/6+k5/2c1/2t1/2)O\left(\frac{k^{19/6}\log^{2/3}t}{c^{1/6}t^{1/6}}+\frac{k^{5/2}}{c^{1/2}t^{1/2}}\right). Lemma 4 shows that each pivot swap costs k2σ\frac{k}{2\sigma} in total variation distance. Lemma 5 combined with 19 imply that σ2≥ct2k4\sigma^{2}\geq\frac{ct}{2k^{4}}, and there are at most 2k2k pivot swaps, so this sequence of swaps costs at most 2k4ct\frac{2k^{4}}{\sqrt{ct}}. Similarly, by Lemma 2, each our (at most) kk merges costs k2σ≤k4ct\frac{k}{2\sigma}\leq\frac{k^{4}}{\sqrt{ct}}. Therefore, the total variation distance introduced in this entire sequence of operations is

Recalling our choice of parameters, c=(ε2k5)1+δc,t=(k19cε6)1+δtc=\left(\frac{\varepsilon^{2}}{k^{5}}\right)^{1+\delta_{c}},t=\left(\frac{k^{19}}{c\varepsilon^{6}}\right)^{1+\delta_{t}} for δc,δt>0\delta_{c},\delta_{t}>0, this results in a total variation distance which is O(ε)O(\varepsilon). \hfill\qed\hfill\qed

Appendix C Details from Section 4

In this section, we present a direct cover of the class, following from the structural result of Theorem 5. At a high level, we grid over the O(k2)O(k^{2}) parameters of the Gaussian component with granularity poly⁡(ε/k)/n\operatorname*{poly}(\varepsilon/k)/n, and the poly⁡(k/ε)\operatorname*{poly}(k/\varepsilon) parameters of the (tk2,k)(tk^{2},k)-PMD with granularity poly⁡(ε/k)\operatorname*{poly}(\varepsilon/k), resulting in a cover of the claimed size.

Proof of Lemma 6: Our strategy will be as follows: Theorem 5 implies that the original distribution is O(ε)O(\varepsilon) close to a particular class of distributions. We generate an O(ε)O(\varepsilon)-cover for this generated class. By triangle inequality, this is an O(ε)O(\varepsilon)-cover for (n,k)(n,k)-PMDs. In order to generate a cover, we will use a technique known as “gridding”. We will generate a set of values for each parameter, and take the Cartesian product of these sets. Our guarantee is that the resulting set will contain at least one set of parameters defining a distribution which is O(ε)O(\varepsilon)-close to the PMD.

First, observe that we can naively grid over the set of (tk2,k)(tk^{2},k)-PMDs. We note that if two CRVs have parameters which are within ±εk\pm\frac{\varepsilon}{k} of each other, then their total variation distance is at most ε\varepsilon. Similarly, by triangle inequality, two PMDs of size k2tk^{2}t and dimension kk with parameters within ±εk3t\pm\frac{\varepsilon}{k^{3}t} of each other have a total variation distance at most ε\varepsilon. By taking an additive grid of granularity εk3t\frac{\varepsilon}{k^{3}t} over all k2tk^{2}t parameters, we can generate an O(ε)O(\varepsilon)-cover for PMDs of size k2tk^{2}t and dimension kk with O(k3tε)k2tO\left(\frac{k^{3}t}{\varepsilon}\right)^{k^{2}t} candidates.

Next, we wish to cover the Gaussian component. For a block, we will use μi\mu_{i} and Σi\Sigma_{i} to refer to the mean and covariance, nin_{i} to the sum of the means within the block, and SiS_{i} to refer to the set of coordinates. It will actually be more convenient to think of Σi\Sigma_{i} in terms of a Cholesky decomposition LiLiTL_{i}L_{i}^{T}Recall that the Cholesky decomposition implies that LiL_{i} will be lower triangular., which is guaranteed to exist since Σi\Sigma_{i} is symmetric and positive semidefinite. We describe how to generate a O(εk)O\left(\frac{\varepsilon}{k}\right)-cover for a single block. We will prove that the underlying (continuous) Gaussians are O(εk)O\left(\frac{\varepsilon}{k}\right) close, the closeness of the corresponding discretized versions follows by Lemma 13. By taking the Cartesian product of the cover for each of the blocks and applying the triangle inequality, we generate a O(ε)O(\varepsilon)-cover for the overall Gaussian at the cost of a factor of kk in the exponent of the cover size.

First, we examine the size parameter nin_{i}. Since the size parameter is an integer between and nn, we can simply try them all, giving us a factor of nn in the size of our cover.

Covering the mean and covariance matrix takes a bit more care. We use Proposition 3 to analyze the error incurred by inaccurate guesses for these parameters. We let N1\mathcal{N}_{1} be the Gaussian corresponding to a single block of our Gaussian, and we will construct a N2\mathcal{N}_{2} which is close to it. By Theorem 5, we know that σ2≥tc2k4\sigma^{2}\geq\frac{tc}{2k^{4}}.

Combining the gridding for the size, mean, and covariance, a O(εk)O\left(\frac{\varepsilon}{k}\right)-cover for one block is of size

Taking the Cartesian product over all the blocks of the Gaussian and noting this function is convex in the values of {∣Si∣}\{|S_{i}|\}, we cover the entire Gaussian with a set of size at most

Combining the cover for the Gaussian component and the (tk2,k)(tk^{2},k)-PMD gives us a cover of size

Substituting in the values of cc and tt gives us a cover of size

for constants δ1,δ2>0\delta_{1},\delta_{2}>0, which satisfies the statement of the theorem. \hfill\qed\hfill\qed

C.2 A Sparser Cover

For an arbitrary vector q⃗\vec{q} with ∣q⃗∣≤1|\vec{q}|\leq 1, the density of the generalized multinomial distribution MρM^{\rho} at any point xx can be expressed as:

where M(n,q⃗,x)\mathcal{M}(n,\vec{q},x) represents the density of the multinomial distribution with probabilities q⃗\vec{q} at point xx and au(q⃗)a_{u}(\vec{q}) is the coefficient of the term ∏jzjuj\prod_{j}z_{j}^{u_{j}} in the expansion of the polynomial:

Roos also showed that considering fewer terms in the summation above provides a good approximation to the density of the original generalized multinomial distribution. We consider the approximator:

We will use these results to produce a sparser cover. We will first show that for a particular class of generalized multinomial distributions, there exist good approximators.

Consider a generalized multinomial distribution MρM^{\rho}. If for all j∈[k]j\in[k], it holds that ∣max⁡iρ(i,j)−min⁡iρ(i,j)∣≤(4ek3)−1|\max_{i}\rho(i,j)-\min_{i}\rho(i,j)|\leq(4ek^{3})^{-1} and moreover ∑i=1nρ(i,0)≥nk\sum_{i=1}^{n}\rho(i,0)\geq\frac{n}{k}, then:

for the vector q⃗\vec{q} with qj=1n∑i=1nρ(i,j)q_{j}=\frac{1}{n}\sum_{i=1}^{n}\rho(i,j)

By our choice of q⃗\vec{q} it holds that ∑i=1n(ρ(i,j)−qj)=0\sum_{i=1}^{n}(\rho(i,j)-q_{j})=0. Therefore, we have that:

since q0≥1kq_{0}\geq\frac{1}{k}. Moreover, we have that ∑i=1n(ρ(i,j)−qj)2nqj≤∣max⁡iρ(i,j)−min⁡iρ(i,j)∣≤(4ek3)−1\frac{\sum_{i=1}^{n}(\rho(i,j)-q_{j})^{2}}{nq_{j}}\leq|\max_{i}\rho(i,j)-\min_{i}\rho(i,j)|\leq(4ek^{3})^{-1}. Plugging this bound in the above expression for α\alpha gives the desired bound. ∎

We now show that if two PMDs have matching moments then their approximators are the same. This will allow us to compare the total variation between them by looking at their distance to the common approximator.

Consider two generalized multinomial distributions MρM^{\rho}, Mρ′M^{\rho^{\prime}} and their approximators mw,q⃗m_{w,\vec{q}} and mw,q⃗′m^{\prime}_{w,\vec{q}}. If for all u∈Vk(w)u\in V_{k}(w) and j∈[k]j\in[k]:

then mw,q⃗=mw,q⃗′m_{w,\vec{q}}=m^{\prime}_{w,\vec{q}}

We first note that if the condition holds for all u∈Vk(w)u\in V_{k}(w), then it also holds that for all u∈Vk(w)u\in V_{k}(w):

This is because when expanding the product ∏j=1k(ρ(i,j)−qj)uj\prod_{j=1}^{k}(\rho(i,j)-q_{j})^{u_{j}} and treating it as a polynomial in qjq_{j}, the coefficients in each term are a polynomial of degree at most ww in the ρ(i,j)\rho(i,j) and summing over all ii we get that the two sides are equal.

We now define ρˉ(i,j)=ρ(i,j)−qj\bar{\rho}(i,j)=\rho(i,j)-q_{j} and note that according to Lemma 20, the coefficients of the approximator mw,q⃗m_{w,\vec{q}} are given by the expansion of the polynomial: ∏i=1n(1+∑j=1kρˉ(i,j)zj)\prod_{i=1}^{n}\left(1+\sum_{j=1}^{k}\bar{\rho}(i,j)z_{j}\right). We observe that for any given uu, the coefficient au(q⃗)a_{u}(\vec{q}) of the term ∏jzjuj\prod_{j}z_{j}^{u_{j}} is a degree ∣u∣|u| polynomial in terms of ρˉ(i,j)\bar{\rho}(i,j) which, by the theory of multisymmetric polynomials, can be written entirely as a polynomial of the elementary multisymmetric polynomials, ∑i=1n∏j=1kρˉ(i,j)vi\sum_{i=1}^{n}\prod_{j=1}^{k}\bar{\rho}(i,j)^{v_{i}} for v∈Vk(w)v\in V_{k}(w). Since MρM^{\rho} and Mρ′M^{\rho^{\prime}} are equal in all those terms, it means that they have equal coefficients au(q⃗)a_{u}(\vec{q}) and thus their approximators are the same. ∎

Using those two lemmas, we can construct a cover for (tk2,k)(tk^{2},k)-PMD which has an exponentially better dependence on 1/ε1/\varepsilon. We must cover at most k2tk^{2}t CRVs, which we can assume each have probabilities that are multiples of εk3t\frac{\varepsilon}{k^{3}t}. By the previous section, this induces a cost of O(ε)O(\varepsilon) in total variation distance. To apply Lemma 22, we will first partition the CRVs into (4ek3)k(4ek^{3})^{k} groups. In particular, consider indexing the groups by v⃗∈[4ek3]k\vec{v}\in[4ek^{3}]^{k}. In group vv, we include all CRVs with mean vector pp where pj∈14ek3[vj−1,vj]p_{j}\in\frac{1}{4ek^{3}}[v_{j}-1,v_{j}] for all j∈[k]j\in[k]. For the PMD induced by each group, we have the property ∣max⁡iρ(i,j)−min⁡iρ(i,j)∣≤(4ek3)−1|\max_{i}\rho(i,j)-\min_{i}\rho(i,j)|\leq(4ek^{3})^{-1}. We cover each such PMD separately by considering all possible different moment profiles that it can achieve. A moment profile for a PMD of size nn is a vector of ∣Vk(w)∣|V_{k}(w)| elements, where the entry of the profile indexed by u∈Vk(w)u\in V_{k}(w) is equal to ∑i=1n∏j=1kρ(i,j)uj\sum_{i=1}^{n}\prod_{j=1}^{k}\rho(i,j)^{u_{j}}. By Lemma 23 if two PMDs have the same moment profiles they have the same approximator and thus by Lemma 22 and triangle inequality their total variation is at most 2−w+12^{-w+1}.

We now count how many different moment profiles are possible to arise. For a given uu, there are at most kk5t2εk\frac{k^{5}t^{2}}{\varepsilon} different values when ∣u∣=1|u|=1, (kk5t2ε)2\left(k\frac{k^{5}t^{2}}{\varepsilon}\right)^{2} values for ∣u∣=2|u|=2, and in general (kk5t2ε)i\left(k\frac{k^{5}t^{2}}{\varepsilon}\right)^{i} values when ∣u∣=i|u|=i. Since there are at most ik−1i^{k-1} vectors with ∣u∣=i|u|=i, there are at most

different moment profiles. By picking w=klog⁡(4ek3ε)w=k\log(\frac{4ek^{3}}{\varepsilon}), we get small enough error so that union bounding over all (4ek3)k(4ek^{3})^{k} different groups will still give an ε\varepsilon error. This means that by considering only a single PMD for each moment profile in each of the (4ek3)k(4ek^{3})^{k} groups, we can create an ε\varepsilon-cover of size (kε)O((4ek3)kkk+1log⁡k+1(4ek3ε))=2O(k5klog⁡k+2(1ε))\left(\frac{k}{\varepsilon}\right)^{O((4ek^{3})^{k}k^{k+1}\log^{k+1}(\frac{4ek^{3}}{\varepsilon}))}=2^{O(k^{5k}\log^{k+2}(\frac{1}{\varepsilon}))}, concluding the proof of Lemma 7.

Appendix D Details from Section 5

We will prove an analogue of Lemma 6 in [DDS12], i.e., that we can accurately estimate the mean and covariance of a PMD with a small number of samples. First, we will show that we can get accurate estimates of the moments in any particular direction we desire. Then, taking the union bound over k2k^{2} directions, we show that our estimate is accurate for all directions simultaneously.

For any vector yy, given sample access to a (n,k)(n,k)-PMD XX with mean μ\mu and covariance matrix Σ\Sigma, there exists an algorithm which can produce estimates μ^\hat{\mu} and Σ^\hat{\Sigma} such that with probability at least 9/109/10:

The sample and time complexity are O(1/ε2)O(1/\varepsilon^{2}).

We start with the estimate μ^\hat{\mu}. Let Z1,…,ZmZ_{1},\dots,Z_{m} be independent samples from XX, and let μ^=1m∑iZi\hat{\mu}=\frac{1}{m}\sum_{i}Z_{i}. Then

Choosing t=10t=\sqrt{10} and m=⌈10/ε2⌉m=\lceil 10/\varepsilon^{2}\rceil, the above imply that ∣yT(μ^−μ)∣≤εyTΣy|y^{T}(\hat{\mu}-\mu)|\leq\varepsilon\sqrt{y^{T}\Sigma y} with probability at least 9/109/10.

Next, we describe Σ^\hat{\Sigma}. Let Z1,…,ZmZ_{1},\dots,Z_{m} be independent samples from XX, and let the empirical estimator for the covariance be Σ^=1m−1∑i(Zi−1m∑iZi)(Zi−1m∑iZi)T\hat{\Sigma}=\frac{1}{m-1}\sum_{i}(Z_{i}-\frac{1}{m}\sum_{i}Z_{i})(Z_{i}-\frac{1}{m}\sum_{i}Z_{i})^{T}. Then it can be shown that [Joh11]:

where κy\kappa_{y} is the excess kurtosis of the distribution of XX with respect to the vector yy (i.e., κy=E[(yT(X−μ))4](yTΣy)2−3\kappa_{y}=\frac{E[(y^{T}(X-\mu))^{4}]}{(y^{T}\Sigma y)^{2}}-3).

where XiX_{i} is the iith CRV in the PMD. We note that yT(Xi−μ)≤2∥y∥2y^{T}(X_{i}-\mu)\leq 2\|y\|_{2}. This is because ∥Xi∥2=1\|X_{i}\|_{2}=1, ∥μ∥1=1\|\mu\|_{1}=1 and ∥μ∥2≤∥μ∥1\|\mu\|_{2}\leq\|\mu\|_{1}. Therefore (yT(Xi−μ))4≤4∥y∥22(yT(Xi−μ))2(y^{T}(X_{i}-\mu))^{4}\leq 4\|y\|_{2}^{2}(y^{T}(X_{i}-\mu))^{2}, and thus

Therefore, Var[yTΣ^y]≤(yTΣy)2(2m−1+4yTym(yTΣy))≤4(yTΣy)2m(1+yTyyTΣy)Var[y^{T}\hat{\Sigma}y]\leq(y^{T}\Sigma y)^{2}\left(\frac{2}{m-1}+\frac{4y^{T}y}{m(y^{T}\Sigma y)}\right)\leq\frac{4(y^{T}\Sigma y)^{2}}{m}\left(1+\frac{y^{T}y}{y^{T}\Sigma y}\right). Again using Chebyshev’s inequality,

Taking t=10t=\sqrt{10} and m=⌈40/ε2⌉m=\lceil 40/\varepsilon^{2}\rceil, the above imply that ∣yT(Σ^−Σ)y∣≤εyTΣy1+yTyyTΣy|y^{T}(\hat{\Sigma}-\Sigma)y|\leq\varepsilon y^{T}\Sigma y\sqrt{1+\frac{y^{T}y}{y^{T}\Sigma y}} with probability at least 9/109/10. ∎

For all i∈[k]i\in[k], \Big{|}\Big{(}\frac{v_{i}}{\sqrt{\lambda}_{i}}\Big{)}^{T}\Big{(}\hat{\Sigma}-\Sigma\Big{)}\Big{(}\frac{v_{i}}{\sqrt{\lambda}_{i}}\Big{)}\Big{|}\leq\varepsilon,

For all i,j∈[k]i,j\in[k], \Big{|}\Big{(}\frac{v_{i}}{\sqrt{\lambda}_{i}}+\frac{v_{j}}{\sqrt{\lambda}_{j}}\Big{)}^{T}\Big{(}\hat{\Sigma}-\Sigma\Big{)}\Big{(}\frac{v_{i}}{\sqrt{\lambda}_{i}}+\frac{v_{j}}{\sqrt{\lambda}_{j}}\Big{)}\Big{|}\leq 4\varepsilon.

Without loss of generality, we can focus on the case Σ=I\Sigma=I, with eigenvalue-eigenvector pairs (1,ej)(1,e_{j}) for all j∈[k]j\in[k]. To see this, write Σ\Sigma as its eigendecomposition QΛQTQ\Lambda Q^{T}, and replace yy with QΛ−1/2xQ\Lambda^{-1/2}x, which will place the matrix Σ\Sigma in “isotropic position.”

For all i∈[k]i\in[k], ∣eiT(Σ^−I)ei∣≤ε|e_{i}^{T}(\hat{\Sigma}-I)e_{i}|\leq\varepsilon,

For all i,j∈[k]i,j\in[k], ∣(ei+ej)T(Σ^−I)(ei+ej)∣≤4ε|(e_{i}+e_{j})^{T}(\hat{\Sigma}-I)(e_{i}+e_{j})|\leq 4\varepsilon,

where eie_{i} is the iith standard basis vector.

Adding the 2∑ixi2eiTAei2\sum_{i}x_{i}^{2}e_{i}^{T}Ae_{i} term gives us

Subtracting the final term gives the desired result. ∎

We apply this to ∣yT(Σ^−I)y∣|y^{T}(\hat{\Sigma}-I)y|, giving

Using the guarantees in the lemma statement,

where the final inequality is Cauchy-Schwarz. ∎

The proof will follow by applying Lemma 24 to k2k^{2} carefully chosen vectors simultaneously using the union bound. Using the resulting guarantees, we show that the same estimates hold for any direction, at a cost of rescaling ε\varepsilon by a factor of kk.

Let SS be the set of k2k^{2} vectors {vi}\{v_{i}\} and \Big{\{}\frac{v_{i}}{\sqrt{\lambda}_{i}}+\frac{v_{j}}{\sqrt{\lambda}_{j}}\Big{\}} for all (i,j)∈[k]×[k](i,j)\in[k]\times[k], where {(λi,vi)}\{(\lambda_{i},v_{i})\} are the (unknown) eigenvalue-eigenvector pairs of Σ\Sigma. From O(k4/ε2)O(k^{4}/\varepsilon^{2}) samples, with probability 9/109/10, we can obtain estimators μ^\hat{\mu} and Σ^\hat{\Sigma} such that

This follows by Lemma 24, the eigenvalue condition on Σ\Sigma, and an application of the union bound.

We first prove that the mean estimator μ^\hat{\mu} is accurate. Consider an arbitrary vector yy, which can be decomposed into a linear composition of the eigenvectors y=∑iαiviy=\sum_{i}\alpha_{i}v_{i}.

where the last inequality is Cauchy-Schwarz. Since ∑iαi2λi=yTΣy\sum_{i}\alpha_{i}^{2}{\lambda_{i}}=y^{T}\Sigma y, this proves the desired accuracy bound for the mean’s estimator.

The accuracy of Σ^\hat{\Sigma} follows from an application of Lemma 25. ∎

D.2 Rounding preserves the mean and covariance

In order to convert our estimate of the covariance matrix for the PMD to an estimate of the covariance matrix for the Gaussian component, we first need to understand how much the rounding step affected the covariance matrix. We will use the fact that the unrounded GMD we are sampling from and the rounded GMD we want to estimate are ε\varepsilon-close in total variation and show the following lemma:

Suppose there exist two ε\varepsilon-close (n,k)(n,k)-GMDs with covariance matrices Σ1\Sigma_{1} and Σ2\Sigma_{2}, where the minimum eigenvalue of Σ1\Sigma_{1} is at least 1/ε31/\varepsilon^{3}. Then for any vector yy, ∣yT(Σ1−Σ2)y∣≤9εyTΣ1y|y^{T}(\Sigma_{1}-\Sigma_{2})y|\leq 9\varepsilon y^{T}\Sigma_{1}y.

Since the variance of the GMD with covariance matrix Σ1\Sigma_{1} is at least 1/ε31/\varepsilon^{3} when projecting to direction yy, we can apply the Berry-Esseen theorem (Proposition 4) to show that it is close in Kolmogorov distance to a Gaussian with the same mean and variance yTΣ1yy^{T}\Sigma_{1}y. To do this, we first re-center the GMD by subtracting the mean from each summand and projecting in direction yy with ∥y∥2=1\|y\|_{2}=1. This gives us a sum of nn independent random variables that lie in [−2,2][-\sqrt{2},\sqrt{2}]. This implies that ρi≤2σi2\rho_{i}\leq\sqrt{2}\sigma_{i}^{2} and Proposition 4 gives the Kolmogorov distance induced to be:

We will now show that the variance of the second GMD along direction yy needs to also be at least 1/ε21/\varepsilon^{2}, in order for the two GMDs to have total variation distance less than ε\varepsilon. We assume that this is not the case, for the sake of contradiction.

Consider the random variable YY that is distributed according to the second GMD in direction yy. By Chebyshev’s inequality, we have that: Pr⁡[∣Y−E[Y]∣>1/ε3]≤ε\Pr[|Y-E[Y]|>\sqrt{1/\varepsilon^{3}}]\leq\varepsilon. However, the first GMD has Ω(1)\Omega(1) probability mass distributed outside the interval one standard deviation from its mean, since it is well approximated in Kolmogorov distance (and thus, by Fact 1, in total variation distance) by a Gaussian. Therefore, the two GMDs are Ω(1)\Omega(1)-far, which is a contradiction.

Now, since the second GMD has minimum variance at least 1/ε21/\varepsilon^{2}, we can also approximate it by a Gaussian as before using the Berry-Esseen Bound, losing ε\varepsilon in Kolmogorov distance. Proposition 12 then implies that in order for the total variation distance between the two to be at most 3ε3\varepsilon, we must have that ∣yT(Σ1−Σ2)y∣≤9εyTΣ1y|y^{T}(\Sigma_{1}-\Sigma_{2})y|\leq 9\varepsilon y^{T}\Sigma_{1}y. ∎

For two single dimensional Gaussians N1=N(μ1,σ12)\mathcal{N}_{1}=\mathcal{N}(\mu_{1},\sigma_{1}^{2}), N2=N(μ2,σ22)\mathcal{N}_{2}=\mathcal{N}(\mu_{2},\sigma_{2}^{2}) such that σ1σ2∉(1−ε,1+ε)\frac{\sigma_{1}}{\sigma_{2}}\not\in(1-\varepsilon,1+\varepsilon), it holds that

Applying Lemma 26 implies that our estimate for the PMD’s covariance matrix is also a good estimate of the covariance matrix after applying the rounding procedure described in Section B.1. Moreover, the mean is preserved almost exactly since, by construction, there is a small additive error of cc in each coordinate. Since the minimum eigenvalue of the PMD’s covariance matrix is at least 11, this additive error is negligible.

D.3 Converting moment estimates from the PMD to the Gaussian

In the previous sections, we showed how to estimate the moments of the rounded PMD. However, we can not use these estimates to obtain the moments of the Gaussian component of the structure directly. The problem is that since the rounded (n,k)(n,k)-Poisson multinomial random vector might be the sum of a Gaussian and a (tk2,k)(tk^{2},k)-Poisson multinomial random vector, the empirical mean and covariance of the samples might be very different than the mean and covariance of the Gaussian component we want to estimate. In this section, we show how to convert our estimates to accurately describe the Gaussian component by appropriately guessing the error induced by the non-Gaussian component.

Let (μ,Σ),(μG,ΣG),(μS,ΣS)(\mu,\Sigma),(\mu_{G},\Sigma_{G}),(\mu_{S},\Sigma_{S}) be the means and covariance matrices of the (rounded) (n,k)(n,k)-PMD, of the Gaussian component, and of the (tk2,k)(tk^{2},k)-PMD respectively and (μ^,Σ^)(\hat{\mu},\hat{\Sigma}) be the empirical mean and covariance matrix we estimated in the previous section. It holds that μ=μG+μS\mu=\mu_{G}+\mu_{S} and Σ=ΣG+ΣS\Sigma=\Sigma_{G}+\Sigma_{S}.

By Lemma 8 and Lemma 26, after taking O(k4/ε2)O(k^{4}/\varepsilon^{2}) samples, with high probability, we have that for all vectors yy, ∣yT(μ^−μ)∣≤εyTΣy|y^{T}(\hat{\mu}-\mu)|\leq\varepsilon\sqrt{y^{T}\Sigma y} and ∣yT(Σ^−Σ)y∣≤εyTΣy|y^{T}(\hat{\Sigma}-\Sigma)y|\leq\varepsilon y^{T}\Sigma y. We show how to correct our estimate (μ^,Σ^)(\hat{\mu},\hat{\Sigma}). In particular, we will generate a set of candidates which contains an estimate (μ^G,Σ^G)(\hat{\mu}_{G},\hat{\Sigma}_{G}) such that for all vectors yy, ∣yT(μ^G−μG)∣≤εyTΣGy|y^{T}(\hat{\mu}_{G}-\mu_{G})|\leq\varepsilon\sqrt{y^{T}\Sigma_{G}y} and ∣yT(Σ^G−ΣG)y∣≤εyTΣGy|y^{T}(\hat{\Sigma}_{G}-\Sigma_{G})y|\leq\varepsilon y^{T}\Sigma_{G}y. We do this without any additional samples, by carefully gridding around the estimated mean and covariance.

To achieve the guarantee for the covariance matrix, we compute a sparse cover of the space of all PSD matrices around Σ^\hat{\Sigma}.

Let S be a set of symmetric k×kk\times k PSD matrices. An ε\varepsilon-cover of the set SS, denoted by SεS_{\varepsilon}, is a set of PSD matrices such that for any matrix A∈SA\in S, there exists a matrix B∈SεB\in S_{\varepsilon} such that for all vectors yy: ∣yT(A−B)y∣≤εyTAy|y^{T}(A-B)y|\leq\varepsilon y^{T}Ay.

Using the fact that ∣yT(Σ^−Σ)y∣≤εyTΣy|y^{T}(\hat{\Sigma}-\Sigma)y|\leq\varepsilon y^{T}\Sigma y and ∣yT(Σ−ΣG)y∣=∣yTΣSy∣≤myTy|y^{T}(\Sigma-\Sigma_{G})y|=|y^{T}\Sigma_{S}y|\leq my^{T}y, we know that ∣yT(Σ^−ΣG)y∣≤ε1−εyTΣ^y+myTy≤2εyTΣ^y+myTy|y^{T}(\hat{\Sigma}-\Sigma_{G})y|\leq\frac{\varepsilon}{1-\varepsilon}y^{T}\hat{\Sigma}y+my^{T}y\leq 2\varepsilon y^{T}\hat{\Sigma}y+my^{T}y. This means that in order to get an estimate Σ^G\hat{\Sigma}_{G} such that for all directions yy, ∣yT(Σ^G−ΣG)y∣≤εyTΣGy|y^{T}(\hat{\Sigma}_{G}-\Sigma_{G})y|\leq\varepsilon y^{T}\Sigma_{G}y, it suffices to consider an ε\varepsilon-cover of the PSD matrices AA that satisfy the property ∣yT(Σ^−A)y∣≤2εyTΣ^y+myTy|y^{T}(\hat{\Sigma}-A)y|\leq 2\varepsilon y^{T}\hat{\Sigma}y+my^{T}y for all vectors yy. The following lemma gives an efficient construction of the cover and bounds its size.

To construct the cover, we will make use of the eigenvalues and eigenvectors of the matrix AA. We first show that for any matrix B∈SB\in S, its eigenvalues are close to the eigenvalues of AA.

Let A,BA,B be two symmetric k×kk\times k PSD matrices such that for all vectors yy with ∥y∥=1\|y\|=1, ∣yT(A−B)y∣≤ε1yTAy+ε2|y^{T}(A-B)y|\leq\varepsilon_{1}y^{T}Ay+\varepsilon_{2} for some constants ε1,ε2>0\varepsilon_{1},\varepsilon_{2}>0. Then for the eigenvalues λ1A≤...≤λkA\lambda^{A}_{1}\leq...\leq\lambda^{A}_{k} of AA, and the eigenvalues λ1B≤...≤λkB\lambda^{B}_{1}\leq...\leq\lambda^{B}_{k} of BB, it holds that:

From Courant’s minimax principle, we have that the ii-th eigenvalue of AA is equal to:

where CC is an (i−1)×k(i-1)\times k matrix. For the matrix BB, we have that

Similarly, we have that λiB≥(1−ε1)λiA−ε2\lambda^{B}_{i}\geq(1-\varepsilon_{1})\lambda_{i}^{A}-\varepsilon_{2}, so the result follows. ∎

This means that by computing the eigenvalues μ1≤..≤μk\mu_{1}\leq..\leq\mu_{k} of AA and then guessing 8ε28\varepsilon_{2} possible values to subtract in the range [−ε2,ε2][-\varepsilon_{2},\varepsilon_{2}] with accuracy 1/41/4, we can get estimates of the eigenvalues λ1,...,λk\lambda_{1},...,\lambda_{k} of BB within a multiplicative factor of 1±1/21\pm 1/2. This is true because the minimum eigenvalue of BB is at least 11. We can improve our estimates to a better multiplicative factor 1±ε1\pm\varepsilon by gridding multiplicatively around each eigenvalue. This requires another log⁡1+ε(1+1/21−1/2)=O(1/ε)\log_{1+\varepsilon}\left(\frac{1+1/2}{1-1/2}\right)=O(1/\varepsilon) guesses per eigenvalue. So in total, we require (1+ε2ε)O(k)\left(\frac{1+\varepsilon_{2}}{\varepsilon}\right)^{O(k)} guesses for obtaining accurate estimates λ1′,...,λk′\lambda^{\prime}_{1},...,\lambda^{\prime}_{k} of the eigenvalues of BB.

Once we know (approximately) the eigenvalues of BB, we will try to guess also its eigenvectors v1,...,vkv_{1},...,v_{k}. We will do this by performing a careful gridding around the eigenvectors of AA which we can assume, without loss of generality (by rotating), to be the standard basis vectors e1,e2,...,eke_{1},e_{2},...,e_{k}. So for each eigenvector vzv_{z} of BB, we will try to approximate it by guessing its projections to the eigenvectors of AA.

We now bound the projections of eigenvectors of AA to eigenvectors of BB. Since we know that eiTBei≤(1+ε1)eiTAei+ε2e^{T}_{i}Be_{i}\leq(1+\varepsilon_{1})e^{T}_{i}Ae_{i}+\varepsilon_{2}, we get that ∑zλz(vzei)2≤(1+ε1)μi+ε2\sum_{z}\lambda_{z}(v_{z}e_{i})^{2}\leq(1+\varepsilon_{1})\mu_{i}+\varepsilon_{2} which implies that vz,i≤2μi+ε2λzv_{z,i}\leq\sqrt{\frac{2\mu_{i}+\varepsilon_{2}}{\lambda_{z}}}. Moreover, since λz≥max⁡{(1−ε1)μz−ε2,1}\lambda_{z}\geq\max\{(1-\varepsilon_{1})\mu_{z}-\varepsilon_{2},1\}, we know that the projection of vzv_{z} to eie_{i} will be smaller than 2μi+ε2max⁡{μz−2ε2,1}2\sqrt{\frac{\mu_{i}+\varepsilon_{2}}{\max\{\mu_{z}-2\varepsilon_{2},1\}}}. An additional bound for the projection of vzv_{z} to eie_{i} can be obtained by considering the variance of the matrices AA and BB in the direction vzv_{z}. Since we know that vzTBvz≥(1−ε1)vzTAvz−ε2v^{T}_{z}Bv_{z}\geq(1-\varepsilon_{1})v^{T}_{z}Av_{z}-\varepsilon_{2}, we get that ∑iμi(vzei)2≤11−ε1(λz+ε2)≤2(λz+ε2)\sum_{i}\mu_{i}(v_{z}e_{i})^{2}\leq\frac{1}{1-\varepsilon_{1}}\left(\lambda_{z}+\varepsilon_{2}\right)\leq 2(\lambda_{z}+\varepsilon_{2}) which implies that vz,i≤2λz+ε2μiv_{z,i}\leq\sqrt{2\frac{\lambda_{z}+\varepsilon_{2}}{\mu_{i}}}.

We now guess vectors v1′,...,vk′v^{\prime}_{1},...,v^{\prime}_{k} that approximate the eigenvectors of BB by additively gridding over the projections to each eigenvector of AA. To get an approximation vz′v^{\prime}_{z} of the eigenvector vzv_{z}, we grid over a projection to eie_{i} with accuracy ε′min⁡{2μi+ε2max⁡{μz−2ε2,1},1}\varepsilon^{\prime}\min\left\{2\sqrt{\frac{\mu_{i}+\varepsilon_{2}}{\max\{\mu_{z}-2\varepsilon_{2},1\}}},1\right\} for a small enough ε′\varepsilon^{\prime} that only depends on kk, ε1\varepsilon_{1} and ε2\varepsilon_{2}. This requires 1ε′\frac{1}{\varepsilon^{\prime}} guesses for each projection, and thus (1ε′)k2\left(\frac{1}{\varepsilon^{\prime}}\right)^{k^{2}} guesses for all k2k^{2} projections. The final covariance matrix we output is then B^=∑zλz′vz′(vz′)T\hat{B}=\sum_{z}\lambda^{\prime}_{z}v^{\prime}_{z}(v_{z}^{\prime})^{T}.

We will now show that the covariance matrix B^\hat{B} satisfies the property that it is close in all directions to BB. To do this we will make use of Lemma 25, and only consider directions y=vzλzy=\frac{v_{z}}{\sqrt{\lambda}_{z}} for z∈[k]z\in[k] and y=vzλz+vz′λz′y=\frac{v_{z}}{\sqrt{\lambda}_{z}}+\frac{v_{z^{\prime}}}{\sqrt{\lambda}_{z^{\prime}}} for z,z′∈[k]z,z^{\prime}\in[k].

We now consider direction y=vzλzy=\frac{v_{z}}{\sqrt{\lambda}_{z}}. We have that:

The first term is in the range [(1−ε)(1−kε′)2,(1+ε)(1+kε′)2][(1-\varepsilon)(1-k\varepsilon^{\prime})^{2},(1+\varepsilon)(1+k\varepsilon^{\prime})^{2}], which for ε′≤ε/k\varepsilon^{\prime}\leq\varepsilon/k, becomes (1±O(ε))(1\pm O(\varepsilon)). The rest of the terms can be bounded as follows:

for ε′=O(ε((1+ε2)k)−3/2)\varepsilon^{\prime}=O(\sqrt{\varepsilon}((1+\varepsilon_{2})k)^{-3/2}). This means that vzTB^vz∈(1−ε,1+ε)λzv^{T}_{z}\hat{B}v_{z}\in(1-\varepsilon,1+\varepsilon)\lambda_{z}. The proof is similar for directions y=vzλz+vz′λz′y=\frac{v_{z}}{\sqrt{\lambda}_{z}}+\frac{v_{z^{\prime}}}{\sqrt{\lambda}_{z^{\prime}}} for z,z′∈[k]z,z^{\prime}\in[k].

Overall, we can get an estimate B^\hat{B} of any matrix B∈SB\in S by making at most (k(1+ε2)ε)O(k2)\left(\frac{k(1+\varepsilon_{2})}{\varepsilon}\right)^{O(k^{2})} guesses, which implies an ε\varepsilon-cover of this size. ∎

Applying Lemma 9 for ε1=2ε\varepsilon_{1}=2\varepsilon and ε2=m≤tk2\varepsilon_{2}=m\leq tk^{2}, it is easy to see that we can get a good estimate Σ^G\hat{\Sigma}_{G} of ΣG\Sigma_{G} using only (kε)O(k2)\left(\frac{k}{\varepsilon}\right)^{O(k^{2})} guesses. This completes the analysis for obtaining an accurate estimate for the covariance matrix. The same approach also gives us an accurate estimate for the mean vector. We guess the projection of the mean on each of the (approximate) eigenvectors with accuracy proportional to the square root of the corresponding eigenvalue as in Lemma 9. This requires only (kε)O(k)\left(\frac{k}{\varepsilon}\right)^{O(k)} additional guesses, so overall we can compute the estimates (μ^G,Σ^G)(\hat{\mu}_{G},\hat{\Sigma}_{G}) using only (kε)O(k2)\left(\frac{k}{\varepsilon}\right)^{O(k^{2})} guesses.

D.4 Probability Density Computation

In order to apply Theorem 7, we need access to a PDF comparator (Definition 9). We will implement this by explicitly computing the probability mass function (PMF) of a distribution at a given point xx. The naive computation could require time which is polynomial in nn or exponential in 1/ε1/\varepsilon. We will show how to avoid these costs using a dynamic program.

There exists an algorithm which computes the probability mass function for the convolution of a discretized Gaussian with a (poly⁡(k/ε),k)(\operatorname*{poly}(k/\varepsilon),k)-PMD at a given point xx in time (k/ε)O(k)(k/\varepsilon)^{O(k)}.

Let G(⋅)G(\cdot) and Gd(⋅)G_{d}(\cdot) be the PDF and PMF of the non-discretized and the discretized Gaussian, respectively. Similarly, let PMD(⋅)PMD(\cdot) be the PMF of the (poly⁡(k/ε),k)(\operatorname*{poly}(k/\varepsilon),k)-PMD. For any given integer point xx, we can compute Gd(x)G_{d}(x) by computing the integral of the non-discretized Gaussian in a unit box around xx, i.e. by letting R(x)=∏i[xi−1/2,xi+1/2]R(x)=\prod_{i}[x_{i}-1/2,x_{i}+1/2], we have that Gd(x)=∫R(x)G(t)dtG_{d}(x)=\int_{R(x)}G(t)dt. We can compute this integral with very high accuracy using numerical integration methods.

To compute PMD(x)PMD(x), we use dynamic programming. We will maintain the variables P(x,i)P(x,i) that give us the probability at the point xx in the support of the PMD considering only the first ii CRVs. It is easy to compute P(x,i)P(x,i) as ∑jρi,jP(x−ej,i−1)\sum_{j}\rho_{i,j}P(x-e_{j},i-1), where ρi,j\rho_{i,j} is the probability the ii-th CRV assigns to coordinate jj. Since there are (k/ε)O(k)(k/\varepsilon)^{O(k)} points in the support of the PMD and at most poly⁡(k/ε)\operatorname*{poly}(k/\varepsilon) CRVs in the PMD, we can compute the probability density for the whole support of the PMD in time (k/ε)O(k)(k/\varepsilon)^{O(k)}.

To compute the probability density at point xx for the convolution of PMD(⋅)PMD(\cdot) with Gd(⋅)G_{d}(\cdot), we write it as: ∑yPMD(y)Gd(x−y)\sum_{y}PMD(y)G_{d}(x-y). We only need to consider the summation for points yy in the support of the (poly⁡(k/ε),k)(\operatorname*{poly}(k/\varepsilon),k)-PMD. Since there at most (k/ε)O(k)(k/\varepsilon)^{O(k)} such points the lemma follows. ∎

Appendix E Details from Section 6

We first recall the main structural result from [DDO+13]: See 10

Now, we provide learning algorithms for the two cases, corresponding to Lemmas 5.1 and 5.2 in [DDO+13].

Let TPMDT^{PMD} be result when the rounding procedure of Section B.1 is applied to SPMDS^{PMD}, and let T=∑i=1nTiT=\sum_{i=1}^{n}T_{i} where Ti=(1,…,k)T⋅TiPMDT_{i}=(1,\dots,k)^{T}\cdot T^{PMD}_{i}. By Lemma 1 and the Data Processing Inequality (Lemma 13), this tells us that

where the last equality follows by our choice of cc. We prove by contradiction that TT’s variance is still poly⁡(k/ε′)\operatorname*{poly}(k/\varepsilon^{\prime}). Suppose not, that σT2≥ζ2\sigma_{T}^{2}\geq\zeta^{2}, where ζ2≔poly⁡(k/ε′)\zeta^{2}\coloneqq\operatorname*{poly}(k/\varepsilon^{\prime}). We apply the Berry-Esseen theorem (Proposition 4) to T′T^{\prime}, which is a re-centered version of TT. Defining Ti′∼Ti−E[Ti]T_{i}^{\prime}\sim T_{i}-E[T_{i}], and observing that Ti′∈[−k,k]T_{i}^{\prime}\in[-k,k] we note that μT′=0,σT′2=σT2,ρT′≤kσT2\mu_{T^{\prime}}=0,\sigma^{2}_{T^{\prime}}=\sigma^{2}_{T},\rho_{T^{\prime}}\leq k\sigma^{2}_{T}. Thus,

By triangle inequality and the fact that total variation distance upper bounds Kolmogorov distance,

However, anticoncentration of a Gaussian tells us that for any point xx,

Examine the interval of width k9/2ε′4k^{9}/2\varepsilon^{\prime 4} centered at E[S]E[S]. SS assigns at least 1−ε′1-\varepsilon^{\prime} mass to this interval, but N(μT,σT2)\mathcal{N}(\mu_{T},\sigma^{2}_{T}) assigns at most 2πk92ε′4/ζ\sqrt{\frac{2}{\pi}}\frac{k^{9}}{2\varepsilon^{\prime 4}}/\zeta mass. If ∣(1−ε′)−2πk92ε′4/ζ∣>O(ε′)+kζ|(1-\varepsilon^{\prime})-\sqrt{\frac{2}{\pi}}\frac{k^{9}}{2\varepsilon^{\prime 4}}/\zeta|>O(\varepsilon^{\prime})+\frac{k}{\zeta}, which happens for ζ=ω(k9/ε′4)\zeta=\omega(k^{9}/\varepsilon^{\prime 4}), this interval demonstrates that the total variation distance is larger than we showed above, thus arriving at a contradiction. Thus, we have that the variance of TT is at most ζ2\zeta^{2}.

By the rounding procedure, we know that the variance of any TiT_{i} which is non-constant is at least c(1−c)≥c/2c(1-c)\geq c/2. Since variance is additive and the variance of TT is at most ζ2\zeta^{2}, this implies that there are at most 2ζ2/c=O(k24/ε′11)2\zeta^{2}/c=O(k^{24}/\varepsilon^{\prime 11}) non-constant TiT_{i}. Therefore, SS is ε′\varepsilon^{\prime}-close to a shifted (O(k24/ε′11),k)(O(k^{24}/\varepsilon^{\prime 11}),k)-SIIRV, as desired. ∎

We make the following straightforward observation, bounding the Kolmogorov distance between a Gaussian and the corresponding discretized Gaussian.

Now, we can apply the following robust statistics results from [DK14]:

med(F^)≜F^−1(12)∈μ±O(εσ)med(\hat{F})\triangleq\hat{F}^{-1}(\frac{1}{2})\in\mu\pm O(\varepsilon\sigma)

IQR(F^)22erf−1(12)≜F^−1(34)−F^−1(14)22erf−1(12)∈σ±O(εσ)\frac{IQR(\hat{F})}{2\sqrt{2}erf^{-1}(\frac{1}{2})}\triangleq\frac{\hat{F}^{-1}(\frac{3}{4})-\hat{F}^{-1}(\frac{1}{4})}{2\sqrt{2}erf^{-1}(\frac{1}{2})}\in\sigma\pm O(\varepsilon\sigma)

Now, we run Learn-Sparse once, and Learn-Heavy for c=1c=1 to k−1k-1. This will give us a set of kk hypotheses, at least one of which is close to the true distribution. We use the subroutine FastTournament (as described by Theorem 7) to select one of these hypotheses. Theorem 4 follows by combining Lemma 10 with the guarantees provided by Lemmas 28 and 29.