Optimal Learning via the Fourier Transform for Sums of Independent Integer Random Variables

Ilias Diakonikolas, Daniel M. Kane, Alistair Stewart

Introduction

We study sums of independent integer random variables:

For convenience, throughout this paper, we will often blur the distinction between a random variable and its distribution. In particular, we will use the term kk-SIIRV for the random variable or its corresponding distribution, and the distinction will be clear from the context.

Sums of independent integer random variables (SIIRVs) comprise a rich class of distributions that arise in many settings. The special case of k=2k=2, Sn,2{\cal S}_{n,2}, was first considered by Poisson [Poi37] as a non-trivial extension of the Binomial distribution, and is known as Poisson binomial distribution (PBD). In application domains, SIIRVs have many uses in research areas such as survey sampling, case-control studies, and survival analysis, see e.g., [CL97] for a survey of the many practical uses of these distributions. We remark that these distributions are of fundamental interest and have been extensively studied in probability and statistics. For example, tail bounds on SIIRVs form an important special case of Chernoff/Hoeffding bounds [Che52, Hoe63, DP09b]. Moreover, there is a long line of research on approximate limit theorems for SIIRVs, dating back several decades (see e.g., [Pre83, Kru86, BHJ92]), and [CL10, CGS11] for some recent results.

The main motivation of this work was the problem of learning an unknown kk-SIIRV given access to independent samples. Understanding this problem is intimately related to obtaining a refined structural understanding of the space of kk-SIIRVs. The connection between structure and distribution learning is the main thrust of this paper.

While density estimation has been studied for several decades, the number of samples required to learn is not yet well understood, even for surprisingly simple and natural classes of univariate discrete distributions. More specifically, there is no known complexity measure of a distribution family D\mathcal{D} that characterizes the sample complexity of learning an unknown distribution from D.\mathcal{D}. In contrast, the VC dimension of a concept class plays such a role in the PAC model of learning Boolean functions (see, e.g, [BEHW89, KV94]).

Obtaining a computationally efficient learning algorithm with optimal (or near-optimal) sample complexity is an important goal. In many learning settings, achieving this goal turns out to be quite challenging. More specifically, in many scenarios, both supervised and unsupervised, the only computationally efficient learning algorithms known use a (provably) suboptimal sample size. Intuitively, increasing the sample size (e.g., by a polynomial factor) can make the algorithmic task substantially easier. Characterizing the tradeoff between sample complexity and computational complexity is of fundamental importance in learning theory. In this work, we essentially characterize this tradeoff for the unsupervised problem of learning SIIRVs.

2 Our Results

The main technical contribution of this paper is the use of Fourier analytic and geometric tools to obtain a refined structural understanding of the space of kk-SIIRVs. As a byproduct of our techniques, we characterize the sample complexity of learning kk-SIIRVs (up to constant factors), and moreover we obtain a computationally efficient learning algorithm with near-optimal sample complexity. Our results answer the main open questions of [DDS12b, DDO+13].

Along the way we prove several new structural results of independent interest about kk-SIIRVs, including: the approximate sparsity of their Fourier transform; tight upper and lower bounds on ϵ\epsilon-covers (in total variation distance and Kolmogorov distance); and a novel geometric characterization of the space of kk-SIIRVs, that is crucial for our sample complexity lower bound. Below, we state our results in detail and elaborate on their context and the connections between them.

As our first result, we give a sample near-optimal and computationally efficient learning algorithm for kk-SIIRVs:

Our algorithm outputs a succinct description of the hypothesis H,\mathbf{H}, via its Discrete Fourier Transform (DFT) H^,{\widehat{\mathbf{H}}}, which is supported on a set of small cardinality. The DFT immediately gives a fast evaluation oracle for H.\mathbf{H}. We also show how to use the DFT, in a black-box manner, to obtain an efficient approximate sampler for the target distribution P.\mathbf{P}. Our efficient learning algorithm is described in Section 2.1. In Section 2.3 we give the efficient construction of our sampler.

Given our O~(k/ϵ2)\widetilde{O}(k/\epsilon^{2}) sample upper bound, it would be tempting to conjecture that Θ(k/ϵ2)\Theta(k/\epsilon^{2}) is in fact the optimal sample complexity of learning kk-SIIRVs. If true, this would imply that learning a kk-SIIRV is as easy as learning a kk-IRV. Surprisingly, we show that this is not the case:

Theorem 1.2 precisely characterizes the sample complexity of learning kk-SIIRVs (up to constant factors) by giving an upper bound and a matching information-theoretic sample lower bound. The sharp sample complexity bound of Θ((k/ϵ2)log⁡(1/ϵ))\Theta((k/\epsilon^{2})\sqrt{\log(1/\epsilon)}) is surprising, and cannot be obtained using standard information-theoretic tools (e.g., metric entropy). We elaborate on this issue in Section 1.4.

We remark that the upper bound of Theorem 1.2 does not specify the running time of the corresponding algorithm. This is because the simplest such algorithm actually runs in time exponential in k.k. For the important special case of k=2,k=2, we obtain a sample–optimal learning algorithm that runs in sample–linear time:

For any ϵ>0,\epsilon>0, there is an algorithm that learns PBDs within variation distance ϵ\epsilon using O((1/ϵ2)log⁡(1/ϵ))O((1/\epsilon^{2})\sqrt{\log(1/\epsilon)}) samples and running in time O((1/ϵ2)log⁡(1/ϵ)).O((1/\epsilon^{2})\sqrt{\log(1/\epsilon)}).

The upper bound of Theorem 1.2 and Theorem 1.3 are established in Section 2.4. Our tight sample complexity lower bound is proved in Section 5.

Our learning upper bounds are obtained via an approach which is novel in this context. Specifically, we show that the Fourier transform of kk-SIIRVs is approximately sparse, and exploit this property to learn the distribution via learning its Fourier transform in its effective support. The sparsity of the Fourier transform explains why this family of distributions is learnable with sample complexity independent of n,n, and moreover it yields the sharp sample-complexity bound. The algorithmic idea of exploiting Fourier sparsity for distribution learning is general (see Section 2.2), and was subsequently used by the authors in other related settings [DKS15a, DKS15b].

Our core structural result is the following simple property of the Fourier transform of kk-SIIRVs:

Any kk-SIIRV with “large” variance has a Fourier transform with “small” effective support.

One can obtain different versions of the above informal statement depending on the setting and the desired application. See Lemma 2.3 for a formal statement in the context of the DFT. The Fourier sparsity of kk-SIIRVs forms the basis for our upper bounds in this paper. As previously mentioned, this structural property motivates and enables our learning algorithm. Moreover, it is useful in order to obtain sparse ϵ\epsilon-covers for Sn,k,\mathcal{S}_{n,k}, the space of kk-SIIRVs, under the total variation distance.

More specifically, using the approximate sparsity of the Fourier transform of SIIRVs combined with analytic arguments, we obtain a computationally efficient algorithm to construct a proper ϵ\epsilon-cover for Sn,k,\mathcal{S}_{n,k}, of near-minimum size. In particular, we show:

For ϵ≤1/k\epsilon\leq 1/k, there exists a proper ϵ\epsilon-cover Sn,k,ϵ⊆Sn,k{\cal S}_{n,k,\epsilon}\subseteq{\cal S}_{n,k} of Sn,k{\cal S}_{n,k} under the total variation distance of size ∣Sn,k,ϵ∣≤n⋅(1/ϵ)O(klog⁡(1/ϵ))|{\cal S}_{n,k,\epsilon}|\leq n\cdot(1/\epsilon)^{O(k\log(1/\epsilon))} that can be constructed in polynomial time.

We also prove a matching lower bound on the cover size, showing that our above construction is essentially optimal:

Before our work, no non-trivial lower bound on the cover size was known. We view the inherent quasi-polynomial dependence on 1/ϵ1/\epsilon of the cover size established here as a rather surprising fact. Our cover size lower bound proof relies on a new geometric characterization of the space of kk-SIIRVs that we believe is of independent interest, and may find other applications. Our tight lower bound on the sample complexity of learning kk-SIIRVs relies critically on this characterization. Our cover size lower bound is proved in Section 4.

3 Preliminaries

We record a few definitions that will be used throughout this paper.

We emphasize that our learning algorithms output both an ϵ\epsilon-sampler and an ϵ\epsilon-evaluation oracle for the target distribution.

Let F{\cal F} be a family of probability distributions. Given δ>0\delta>0, a subset G⊆F{\cal G}\subseteq{\cal F} is said to be a proper δ\delta-cover of F{\cal F} with respect to the metric d(⋅,⋅)d(\cdot,\cdot) if for every distribution P∈F\mathbf{P}\in{\cal F} there exists some Q∈G\mathbf{Q}\in{\cal G} such that d(P,Q)≤δ.d(\mathbf{P},\mathbf{Q})\leq\delta. If G{\cal G} is not a subset of F,{\cal F}, then the cover is called non-proper. The δ\delta-covering number for (F,d)({\cal F},d) is the minimum cardinality of a δ\delta-cover. The δ\delta-packing number for (F,d)({\cal F},d) is the maximum number of points (distributions) in F\cal{F} at pairwise distance at least δ\delta from each other.

4 Our Approach and Techniques

The unifying idea of this work is an analysis of the structure of the Fourier Transform (FT) of kk-SIIRVs. The FT is a natural tool to consider in this context. Recall that the FT of a sum of independent random variables is the product of the FT’s of the individual variables. Moreover, if two random variables have similar FT’s, they also have similar distributions. These two basic facts are the starting point of our analysis. We now provide an overview of the ideas underlying our results, and give a comparison to previous techniques.

Let D\mathcal{D} be a family of distributions over a domain of size N.N. How many samples are required to learn an arbitrary P∈D\mathbf{P}\in\mathcal{D} within variation distance ϵ\epsilon? Without any restrictions on D,\mathcal{D}, it is a folklore fact that the sample complexity learning is Θ(N/ϵ2).\Theta(N/\epsilon^{2}). The optimal learning algorithm in this case is the obvious one: output the empirical distribution. By exploiting the structure of the family D,\mathcal{D}, one may obtain better results.

A very natural type of structure to consider is some sort of “shape constraint” on the probability density function, such as log-concavity or unimodality. There is a long line of work in statistics on this topic (see, e.g., the books [BBBB72, GJ14]), and more recently in TCS [DDS12a, CDSS14a, CDSS14b, ADLS15]. Alas, it turns out that kk-SIIRVs do not satisfy any of the shape constraints considered in the literature (see [DDO+13] for a discussion).

A different type of structure, based on the notion of metric entropy [Yat85, Bir86, DL01], yields the following implication: If a distribution class D\mathcal{D} has an ϵ/2\epsilon/2-cover of size M,M, then it is learnable with O(log⁡M/ϵ2)O(\log M/\epsilon^{2}) samples.We remark that the running time of this method is Ω(M/ϵ2),\Omega(M/\epsilon^{2}), which is not necessarily polynomial in the sample size. In a celebrated paper in information theory [YB99], Yang and Barron show that, for broad families of (continuous) distributions, the metric entropy characterizes the sample complexity of learning. For kk-SIIRVs, however, this is not the case: Via Theorem 1.4, the metric entropy method implies a sample upper bound of O((1/ϵ2)⋅log⁡n+(k/ϵ2)⋅log⁡2(1/ϵ)).O((1/\epsilon^{2})\cdot\log n+(k/\epsilon^{2})\cdot\log^{2}(1/\epsilon)). Note that, since our cover size upper bound is tight, this sample bound is the limit of the metric entropy method for kk-SIIRVs. Thus, this method gives a suboptimal sample upper bound for our learning problem, both qualitatively (dependence on nn), and quantitatively (dependence on ϵ\epsilon).

Previous work on learning kk-SIIRVs [DDS12b, DDO+13] relies on a certain “regularity” lemma about the structure of these distributions: Any kk-SIIRV is either ϵ\epsilon-close in total variation distance to being L=Θ(k9/ϵ4)L=\Theta(k^{9}/\epsilon^{4})- “sparse”, i.e., it is supported on a set of at most LL consecutive integers, or ϵ\epsilon-close to being “Gaussian like”. In the former case, the distribution can be learned using O(L/ϵ2)O(L/\epsilon^{2}) samples, and in the latter case one can exploit the Gaussian structure to learn with a small number of samples as well. Unfortunately, the sparse case is a bottleneck for this approach, as any algorithm to learn a istribution over support LL requires Ω(L/ϵ2)\Omega(L/\epsilon^{2}) samples. Hence, one needs to exploit the structure of kk-SIIRVs beyond the aforementioned.

In this paper, we depart from the aforementioned approaches. We identify a simple condition – the approximate sparsity of the Fourier transform – as the “right” property that determines the sample complexity of our learning problem. The Fourier sparsity explains why the sample complexity of learning kk-SIIRVs is independent of n,n, and allows us to obtain the sharp sample bound as a function of both kk and ϵ.\epsilon. We show that this is a more general phenomenon (see Theorem 2.5 in Section 2.2): any univariate distribution that has an ss-sparse Fourier transform, in a certain well-defined technical sense, is learnable with O~(s/ϵ2)\widetilde{O}(s/\epsilon^{2}) samples.

Our computationally efficient learning algorithm proceeds as follows: It starts by drawing an initial set of samples to determine the effective support of the target distribution and its Fourier transform. This is achieved by estimating the mean and variance of our SIIRV. We remark that, for computational purposes, our algorithm uses the Discrete Fourier Transform (DFT). For the appropriate definition of the DFT, we show (Lemma 2.3) there exists an explicit set SS of cardinality ∣S∣=O(k2log⁡(k/ϵ))|S|=O(k^{2}\log(k/\epsilon)) that contains all the “heavy” Fourier coefficientsWe moreover show that there exists a set of cardinality O(klog⁡(k/ϵ))O(k\log(k/\epsilon)) that contains all the “heavy” Fourier coefficients, alas this smaller set is not explicitly known a priori.. Our algorithm then draws an additional set of samples to estimate the DFT of the target distribution at the points of the effective support S,S, and sets the DFT to everywhere else. By exploiting the sparsity in the Fourier domain, we show that the inverse of the empirical DFT achieves total variation distance ϵ/2\epsilon/2 after O~(k/ϵ2)\widetilde{O}(k/\epsilon^{2}) samples. Note that an explicit description of an accurate hypothesis for our learning problem can have an effective support of size Ω(kn).\Omega(k\sqrt{n}). While we can easily obtain such a description (by explicitly computing the inverse DFT), this would not lead to a computationally efficient algorithm. We instead output a succinct description of our hypothesis (in time that is independent of nn). In particular, our algorithm outputs the empirical DFT at the points of its effective support. Our learning algorithm is given in Section 2.1.

Finally, we note that our above-described Fourier-learning algorithm achieves a near-optimal sample complexity (up to logarithmic factors). The basic idea to obtain the optimal sample complexity is to smoothly mollify the DFT instead of truncating it. This removes some artifacts caused by a sharp truncation and yields a hypothesis whose error from the true distribution decays rapidly as we move away from the mean. Our sample-optimal upper bound is established in Section 2.4.

We start by commenting on previous approaches for proving cover upper bounds in this context. The main technique for the 22-SIIRV cover upper bound of [DP09a] is the following lemma (that is deduced in [DP09a] using a result from [Roo00]): If two 22-SIIRVs agree on their first Ω(log⁡(1/ϵ))\Omega(\log(1/\epsilon)) moments, then their total variation distance is at most ϵ\epsilon. First, we show that this moment-matching lemma is quantitatively tight: we give an example of two 22-SIIRVs over k+1k+1 variables that agree on the first kk moments and have variation distance 2−Ω(k)2^{-\Omega(k)} (Proposition B.1).

We emphasize however that such a moment-matching technique cannot be generalized to kk-SIIRVs, even for k=3.k=3. Intuitively, this is because knowledge about moments fails to account for potential periodic structure of the probability mass function that comes into play for k>2k>2. For example, Ω(n)\Omega(n) moments do not suffice to distinguish between the cases that a 33-SIIRV of order nn is supported on the even versus the odd integers. More specifically, in Proposition B.2 (Appendix B), we give an explicit example of two 33-SIIRVs of order n/2n/2 that agree exactly on the first n−1n-1 moments and have disjoint supports.

In conclusion, moment-based approaches fail to detect periodic structure. On the other hand, this type of structure is easily detectable by considering the Fourier transform. Our cover upper bound hinges on showing that the Fourier transform of a kk-SIIRV is necessarily of low complexity, i.e., it can be succinctly described up to small error. In particular, since the Fourier transform is smooth, we show (Lemma 3.6), roughly, that its logarithm can be well approximated by a low degree Taylor polynomial on intervals of length O(1/k).O(1/k). (Our actual statement is somewhat more complicated as it needs to account for roots of the Fourier transform close to the unit circle.) Therefore, providing approximations to the low-degree Taylor coefficients of the logarithm of the Fourier transform provides a concise approximate description of the distribution.

Our lower bounds take a geometric view of the problem. At a high-level, we consider the function that maps the set of n(k−1)n(k-1) parameters defining a kk-SIIRV to the corresponding probability mass function. We show that there exists a region of the space of distributions where this function is locally invertible. For k=2k=2, we in fact show that the distribution of any 22-SIIRV with distinct parameters lies in the interior of this region. This structural understanding allows us to use certain appropriately defined expectations to extract the effect of individual parameters on the distribution. In addition, for n=Θ(log⁡(1/ϵ)),n=\Theta(\log(1/\epsilon)), we show that near a particular kk-SIIRV not only is the map from parameters to distribution locally a bijection, but that this map is actually surjective onto a ball of reasonable size. In other words, near this particular distribution, the Ω(klog⁡(1/ϵ))\Omega(k\log(1/\epsilon)) parameters of the output distribution are effectively independent, which intuitively implies the (1/ϵ)Ω(klog⁡(1/ϵ))(1/\epsilon)^{\Omega(k\log(1/\epsilon))} lower bound on the cover size.

To prove our sample lower bound, at a high-level, we combine the aforementioned geometric understanding with Assouad’s lemma [Ass83]. We note that one might naively expect that such a situation would lead to a lower bound of Ω(klog⁡(1/ϵ)/ϵ2)\Omega(k\log(1/\epsilon)/\epsilon^{2}), but since the distributions under consideration have additional structure, it turns out that the best lower bound that can be obtained is Ω(klog⁡(1/ϵ)/ϵ2).\Omega(k\sqrt{\log(1/\epsilon)}/\epsilon^{2}).

5 Related Work

Density estimation is a classical topic in statistics and machine learning with a rich history and extensive literature (see e.g., [BBBB72, DG85, Sil86, Sco92, DL01]). The reader is referred to [Ize91] for a survey of statistical techniques in this context. In recent years, a large body of work in TCS has been studying these questions from a computational perspective; see e.g., [KMR+94, FM99, AK01, CGG02, VW02, FOS05, BS10, KMV10, MV10, DDS12a, DDS12b, DDO+13, CDSS14a, CDSS14b, ADLS15].

Covering numbers (and their logarithms, known as metric entropy numbers) were first defined by A. N. Kolmogorov in the 1950’s and have since played a central role in a number of areas, including approximation theory, geometric functional analysis (see, e.g., [Dud74, Mak86, BGL07] and the books [KT59, Lor66, CS90, ET96]), geometric approximation algorithms [Hp11], information theory, statistics, and machine learning (see, e.g., [Yat85, Bir86, HI90, HO97, YB99, GS13] and the books [vdVW96, DL01, Tsy08]).

Concurrent work by Daskalakis et al. [DKT15], using different techniques, gives upper bounds on the learning sample complexity of Poisson Multinomial Distributions (PMDs). While upper bounds on the sample complexity of PMDs yield similar upper bounds for kk-SIIRVs, the implied upper bounds for kk-SIIRVs are quantitatively significantly weaker than ours. Moreover, the [DKT15] learning algorithm has running time exponential in kk and super-polynomial in 1/ϵ.1/\epsilon.

6 Organization

In Section 2 we describe and analyze our learning algorithms for kk-SIIRVs. Section 3 contains our cover upper bound construction. Our cover lower bound is given in Section 4, and our sample lower bound in Section 5.

Learning SIIRVs

In this section, we describe our algorithms for learning kk-SIIRVs. The structure of this section is as follows: In Section 2.1, we give our sample near-optimal and computationally efficient learning algorithm. As mentioned in the introduction, our algorithm outputs a succinct description of its hypothesis H\mathbf{H}, via its DFT. In Section 2.2, we provide a simple general algorithm that learns any one-dimensional discrete distribution with a sparse Fourier support. In Section 2.3, we show how to efficiently obtain an ϵ\epsilon-sampler for our unknown kk-SIIRV, using the DFT representation of H\mathbf{H} as a black-box. Finally, in Section 2.4 we present our more sophisticated Fourier-based learning algorithm with optimal sample complexity.

The main result of this subsection is Theorem 1.1, which we state below in more detail for the sake of completeness.

For computational purposes, our learning algorithm in this section uses the Discrete Fourier Transform, which we now define.

This obstacle can be circumvented by relying on a new structural result that we believe may be of independent interest. We show that for any kk-SIIRV with large variance, its Fourier Transform will have small effective support. In particular, for any kk-SIIRV with standard deviation ss and ϵ>0\epsilon>0 we consider its Discrete Fourier transform modulo MM, and show the set of points in [M−1][M-1] whose Fourier transform is bigger than ϵ\epsilon in magnitude has size at most O(Mks−1log⁡(1/ϵ))O(Mks^{-1}\sqrt{\log(1/\epsilon)}). By choosing MM to be approximately slog⁡(1/ϵ)s\sqrt{\log(1/\epsilon)}, i.e., of the same order as the effective support of P\mathbf{P}, we conclude that the effective support of P^\widehat{\mathbf{P}} (modulo MM) is O(klog⁡(1/ϵ))O(k\log(1/\epsilon)).

If the effective support for P^\widehat{\mathbf{P}} was explicitly known, we could truncate our empirical Discrete Fourier transform Q^\widehat{\mathbf{Q}} (modulo MM) outside this set and reduce the L2L_{2} error ∥Q^−P^∥2\|\widehat{\mathbf{Q}}-\widehat{\mathbf{P}}\|_{2} to N−1/2k1/2s−1/2log⁡1/4(1/ϵ)N^{-1/2}k^{1/2}s^{-1/2}\log^{1/4}(1/\epsilon). This in turn would correspond to an L1L_{1} error of O(N−1/2k1/2log⁡(1/ϵ))O(N^{-1/2}k^{1/2}\sqrt{\log(1/\epsilon)}). Unfortunately, we do not know exactly where the support of the Fourier transform is, so we will need to approximate it by calculating the empirical DFT where the support might be, and then simply truncating this empirical DFT whenever it is sufficiently small. Fortunately, we do have some idea of where the support is and it is not hard to show that we can truncate at all of the appropriate points with high probability.

The bulk of our analysis will depend on showing that the Fourier transform of P\mathbf{P} has appropriately small effective support. To do this we need the following lemma:

At most 4Mks−1log⁡(1/δ)4Mks^{-1}\sqrt{\log(1/\delta)} many integers 0≤ξ≤M−10\leq\xi\leq M-1 have ∣P^(ξ)∣>δ  .|\widehat{\mathbf{P}}(\xi)|>\delta\;.

Before we proceed with the proof of the lemma some comments are in order. Statement (i) of the lemma exhibits an explicit set L\mathcal{L} of cardinality O(Mk2s−1log⁡(1/δ))O(Mk^{2}s^{-1}\sqrt{\log(1/\delta)}) that contains all the points ξ∈[M−1]\xi\in[M-1] such that ∣P^(ξ)∣>δ.|\widehat{\mathbf{P}}(\xi)|>\delta. Note that the set L\mathcal{L} can be efficiently computed from MM, δ\delta, ss, and does not otherwise depend on the particular kk-SIIRV P\mathbf{P}. Statement (ii) of the lemma shows that the effective support L′=L′(δ)={ξ∈[M−1]∣∣P^(ξ)∣>δ}\mathcal{L}^{\prime}=\mathcal{L}^{\prime}(\delta)=\{\xi\in[M-1]\mid|\widehat{\mathbf{P}}(\xi)|>\delta\} is in fact significantly smaller than L\mathcal{L}, namely ∣L′∣=O(Mks−1log⁡(1/δ))|\mathcal{L}^{\prime}|=O(Mks^{-1}\sqrt{\log(1/\delta)}). This part of the lemma is non-constructive in the sense that it does not provide an explicit description for L′\mathcal{L}^{\prime} (beyond the fact that L′⊆L\mathcal{L}^{\prime}\subseteq\mathcal{L}). The upper bound on the size of the effective support is the basis for the analysis of our algorithm.

Since P∈Sn,k\mathbf{P}\in\mathcal{S}_{n,k}, for X∼PX\sim\mathbf{P}, we have X=∑i=1nXiX=\sum_{i=1}^{n}X_{i} where each Xi∼PiX_{i}\sim\mathbf{P}_{i} for a kk-IRV Pi\mathbf{P}_{i}. Let Yi=Xi−Xi′Y_{i}=X_{i}-X^{\prime}_{i} be the difference of two independent copies of XiX_{i}. Let pij=Pr⁡[∣Yi∣=j].p_{ij}=\Pr\left[|Y_{i}|=j\right]. Note that YiY_{i} is a symmetric random variable. Consider its DFT modulo MM which we will write as Yi^\widehat{Y_{i}}. We have the following sequence of (in)equalities:

Therefore, we have that ∣P^(ξ)∣2=∏i=1n∣Pi^(ξ)∣2≤exp⁡(−8∑i=1n∑j=1k−1pij[ξj/M]2)|\widehat{\mathbf{P}}(\xi)|^{2}=\prod_{i=1}^{n}|\widehat{\mathbf{P}_{i}}(\xi)|^{2}\leq\exp(-8\sum_{i=1}^{n}\sum_{j=1}^{k-1}p_{ij}[\xi j/M]^{2}). Taking square roots, we obtain

Note that we can relate the variance of P\mathbf{P} to the pijp_{ij}’s as follows:

To complete the proof of (i), we will need a simple counting argument given in the following claim:

For each cc satisfying 1≤c≤j−11\leq c\leq j-1 there are either ⌊2Ma⌋\lfloor 2Ma\rfloor or ⌊2Ma⌋+1\lfloor 2Ma\rfloor+1 integers 0≤ξ≤M−10\leq\xi\leq M-1 with ∣ξM−cj∣<a|\frac{\xi}{M}-\frac{c}{j}|<a. For c=0c=0 and c=jc=j there are either ⌊Ma⌋\lfloor Ma\rfloor or ⌊Ma⌋+1\lfloor Ma\rfloor+1 integers with ∣ξM−cj∣<a|\frac{\xi}{M}-\frac{c}{j}|<a. Finally, note that ∣ξM−cj∣<a|\frac{\xi}{M}-\frac{c}{j}|<a for some 1≤c≤j−11\leq c\leq j-1 if and only if [jξ/M]<aj[j\xi/M]<aj. ∎

An application of the above claim for a=(1/2s)ln⁡(1/δ)a=(1/2s)\sqrt{\ln(1/\delta)} implies that there are at most

integers 0≤ξ≤M−10\leq\xi\leq M-1 with \min_{j}\big{(}\frac{[\xi j/M]}{j}\big{)}^{2}<\ln(1/\delta)/(4s^{2}). For all other integers we have ∣P^(ξ)∣≤δ  ,|\widehat{\mathbf{P}}(\xi)|\leq\delta\;, which completes the proof of (i).

Note that [ξj/M]≥1−Nj⋅ks−1ln⁡(1/δ)/2[\xi j/M]\geq\sqrt{1-N_{j}}\cdot ks^{-1}\sqrt{\ln(1/\delta)}/2. Plugging this into (1) gives

Since s2=12∑i=1n∑j=1k−1pijj2≤k22∑i=1n∑j=1k−1pijs^{2}=\frac{1}{2}\sum_{i=1}^{n}\sum_{j=1}^{k-1}p_{ij}j^{2}\leq\frac{k^{2}}{2}\sum_{i=1}^{n}\sum_{j=1}^{k-1}p_{ij}, it follows that θ:=∑i=1n∑j=1k−1pij≥2s2/k2.\theta:=\sum_{i=1}^{n}\sum_{j=1}^{k-1}p_{ij}\geq 2s^{2}/k^{2}. Therefore,

By Markov’s inequality, except with probability 4ks−1ln⁡(1/δ)4ks^{-1}\sqrt{\ln(1/\delta)}, we have that ∑i=1n∑j=1k−1pijNj≤θ2.\sum_{i=1}^{n}\sum_{j=1}^{k-1}p_{ij}N_{j}\leq\frac{\theta}{2}. In this event, we have ∑i=1n∑j=1k−1pij(1−Nj)≥θ2\sum_{i=1}^{n}\sum_{j=1}^{k-1}p_{ij}(1-N_{j})\geq\frac{\theta}{2} and hence

Since ξ\xi is uniformly distributed on [M−1][M-1], it follows that ∣P^(ξ)∣>δ|\widehat{\mathbf{P}}(\xi)|>\delta for at most 4Mks−1ln⁡(1/δ)4Mks^{-1}\sqrt{\ln(1/\delta)} integers ξ\xi in [M−1][M-1]. This completes the proof of (ii). ∎

Note that it is straightforward to verify the sample complexity bound. The running time of the algorithm is dominated by computing the DFT Q^\widehat{\mathbf{Q}}. Since the support of Q\mathbf{Q} is at most NN, for each ξ∈S\xi\in S, we sum at most NN terms to calculate Q^(ξ)\widehat{\mathbf{Q}}(\xi). Therefore, the overall running time is O(N⋅∣S∣)=O(klog⁡2(k/ϵ)/ϵ2⋅k2log⁡(k/ϵ))=O(k3log⁡3(k/ϵ)/ϵ2)O(N\cdot|S|)=O(k\log^{2}(k/\epsilon)/\epsilon^{2}\cdot k^{2}\log(k/\epsilon))=O(k^{3}\log^{3}(k/\epsilon)/\epsilon^{2}) as claimed.

To show correctness, we will prove that the expected squared L2L_{2} norm between H^\widehat{\mathbf{H}} and P^\widehat{\mathbf{P}} is small, i.e., that ∥H^−P^∥22=(1/M)⋅∑ξ=0M−1∣H^(ξ)−P^(ξ)∣2\|\widehat{\mathbf{H}}-\widehat{\mathbf{P}}\|_{2}^{2}=(1/M)\cdot\sum_{\xi=0}^{M-1}|\widehat{\mathbf{H}}(\xi)-\widehat{\mathbf{P}}(\xi)|^{2} has small expected value.

It is easy to see that, after drawing a constant number of samples, the quantities μ~\widetilde{\mu} and σ~\widetilde{\sigma} can be estimated to satisfy the required conditions with probability at least 19/2019/20. (This follows for example by Lemma 6 of [DDS12b] with ϵ=1/2.\epsilon=1/2.) We will henceforth condition on this event.

Since M=1+2⌈6σ~ln⁡(4/ϵ))⌉M=1+2\lceil 6\widetilde{\sigma}\sqrt{\ln(4/\epsilon)})\rceil, a random variable X∼PX\sim\mathbf{P} lies in [⌊μ~⌋−(M−1)/2,⌊μ~⌋+(M−1)/2][\lfloor\widetilde{\mu}\rfloor-(M-1)/2,\lfloor\widetilde{\mu}\rfloor+(M-1)/2] with probability at least 1−ϵ21-\frac{\epsilon}{2}. Indeed, an application of Bernstein’s inequality for XX yields that

where μ\mu is the mean of P\mathbf{P}, for any t>0t>0. For t=2sln⁡(4/ϵ)t=2s\sqrt{\ln(4/\epsilon)}, we have t2=(ln⁡(4/ϵ))4s2t^{2}=(\ln(4/\epsilon))4s^{2} and 2s2+23kt=2s2+43ksln⁡(4/ϵ)≤83s2≤4s22s^{2}+\frac{2}{3}kt=2s^{2}+\frac{4}{3}ks\sqrt{\ln(4/\epsilon)}\leq\frac{8}{3}s^{2}\leq 4s^{2}. Thus, Pr⁡(X>μ+t)≤ϵ/4\Pr(X>\mu+t)\leq\epsilon/4. Similarly, it holds Pr⁡(X<μ−t)≤ϵ/4.\Pr(X<\mu-t)\leq\epsilon/4. Now note that ⌊μ~⌋+(M−1)/2≥(μ−s)+⌈3sln⁡(4/ϵ))⌉≥μ+t\lfloor\widetilde{\mu}\rfloor+(M-1)/2\geq(\mu-s)+\lceil 3s\sqrt{\ln(4/\epsilon)})\rceil\geq\mu+t and ⌊μ~⌋−(M−1)/2≤μ−t\lfloor\widetilde{\mu}\rfloor-(M-1)/2\leq\mu-t. Hence, XX is in [⌊μ~⌋−(M−1)/2,⌊μ~⌋+(M−1)/2][\lfloor\widetilde{\mu}\rfloor-(M-1)/2,\lfloor\widetilde{\mu}\rfloor+(M-1)/2] with probability at least 1−ϵ/21-\epsilon/2 as desired.

Fix T=R/2=C−1ϵ/(kln⁡(k/ϵ))T=R/2=C^{-1}\epsilon/(\sqrt{k\ln(k/\epsilon))}. We analyze separately the contribution to the squared L2L_{2} norm coming from ξ\xi with ∣P^(ξ)∣>T|\widehat{\mathbf{P}}(\xi)|>T and with ∣P^(ξ)∣≤T|\widehat{\mathbf{P}}(\xi)|\leq T. Let us denote L′(T)={ξ∈[M−1]∣∣P^(ξ)∣>T}\mathcal{L^{\prime}}(T)=\{\xi\in[M-1]\mid|\widehat{\mathbf{P}}(\xi)|>T\}. First consider

We first claim that with high probability H^(ξ)=0\widehat{\mathbf{H}}(\xi)=0 for all ξ∈L′‾(T)\xi\in\overline{\mathcal{L^{\prime}}}(T). This happens automatically when ξ∉S\xi\not\in S, where the SS is defined in the algorithm description. Note that ∣S∣=O(k2log⁡(k/ϵ))|S|=O(k^{2}\log(k/\epsilon)). For ξ∈S∖L′(T)\xi\in S\setminus\mathcal{L^{\prime}}(T), we note that Q^(ξ)\widehat{\mathbf{Q}}(\xi) is an average of NN i.i.d. numbers each of absolute value 11 and mean P^(ξ)\widehat{\mathbf{P}}(\xi) (which has absolute value less than 11). Note that if ∣Q^(ξ)−P^(ξ)∣≥R−T|\widehat{\mathbf{Q}}(\xi)-\widehat{\mathbf{P}}(\xi)|\geq R-T, then either the real or the imaginary part is at least (R−T)/2(R-T)/\sqrt{2}. By a Chernoff bound, the probability that for a given ξ∈S∖L′(T)\xi\in S\setminus\mathcal{L^{\prime}}(T), ℜ(Q^(ξ)−P^(ξ))≥(R−T)/2\Re(\widehat{\mathbf{Q}}(\xi)-\widehat{\mathbf{P}}(\xi))\geq(R-T)/\sqrt{2} is at most 2exp⁡(−N(R−T)2/4)2\exp(-N(R-T)^{2}/4). The same is true of the imaginary part so by a union bound the probability that ∣Q^(ξ)−P^(ξ)∣≥R−T|\widehat{\mathbf{Q}}(\xi)-\widehat{\mathbf{P}}(\xi)|\geq R-T is at most 4exp⁡(−N(R−T)2/4)4\exp(-N(R-T)^{2}/4). Again by a union bound we get that the probability that any ξ∈S∖L′(T)\xi\in S\setminus\mathcal{L^{\prime}}(T) has ∣Q^(ξ)−P^(ξ)∣≥R−T|\widehat{\mathbf{Q}}(\xi)-\widehat{\mathbf{P}}(\xi)|\geq R-T is at most O(k2log⁡(k/ϵ)exp⁡(−N(R−T)2/4))=O(k2log⁡(k/ϵ)exp⁡(−Cln⁡(k/ϵ)))=O(ϵC−1)O(k^{2}\log(k/\epsilon)\exp(-N(R-T)^{2}/4))=O(k^{2}\log(k/\epsilon)\exp(-C\ln(k/\epsilon)))=O(\epsilon^{C-1}). Hence, except with probability O(ϵC−1)O(\epsilon^{C-1}), for all ξ\xi in S∖L′(T)S\setminus\mathcal{L^{\prime}}(T) we have ∣Q^(ξ)−P^(ξ)∣<R−T|\widehat{\mathbf{Q}}(\xi)-\widehat{\mathbf{P}}(\xi)|<R-T and so ∣Q^(ξ)∣≤R|\widehat{\mathbf{Q}}(\xi)|\leq R. In fact, the total expected contribution to the squared L2L_{2} norm coming from cases when H^(ξ)\widehat{\mathbf{H}}(\xi) is not identically on all such ξ\xi is also O(ϵC−1)O(\epsilon^{C-1}). Therefore, up to negligible error, the squared L2L_{2} error coming from this range is at most

Applying Lemma 2.3 (ii) with δ:=T2−r−1\delta:=T2^{-r-1} for each r≥0r\geq 0, this is at most

We now consider the remaining contribution

By Lemma 2.3 (ii) applied with δ:=T,\delta:=T, we have ∣L′(T)∣≤4ks−1ln⁡(1/T)|\mathcal{L^{\prime}}(T)|\leq 4ks^{-1}\sqrt{\ln(1/T)}. So, the expected size of the L22L_{2}^{2} error on L′(T)\mathcal{L^{\prime}}(T) has

Combining the above results, we find that the expected L22L_{2}^{2} error between H^\widehat{\mathbf{H}} and P^\widehat{\mathbf{P}} is at most

Therefore, if CC is sufficiently large, Markov’s inequality yields that, with probability 23\frac{2}{3}, we have ∥H^−P^∥22<ϵ2/M.\|\widehat{\mathbf{H}}-\widehat{\mathbf{P}}\|_{2}^{2}<\epsilon^{2}/M.

Since X∼PX\sim\mathbf{P} is in [⌊μ~⌋−(M−1)/2,⌊μ~⌋+(M−1)/2][\lfloor\widetilde{\mu}\rfloor-(M-1)/2,\lfloor\widetilde{\mu}\rfloor+(M-1)/2] with probability at least 1−ϵ/21-\epsilon/2, we have ∥P−P′∥1≤ϵ\|\mathbf{P}-\mathbf{P}^{\prime}\|_{1}\leq\epsilon and so ∥P−H∥1≤∥P−P′∥1+∥H−P′∥1≤2ϵ\|\mathbf{P}-\mathbf{H}\|_{1}\leq\|\mathbf{P}-\mathbf{P}^{\prime}\|_{1}+\|\mathbf{H}-\mathbf{P}^{\prime}\|_{1}\leq 2\epsilon. Since H^(0)=Q^(0)=1\widehat{\mathbf{H}}(0)=\widehat{\mathbf{Q}}(0)=1, it follows that ∑i=0nH(i)=1\sum_{i=0}^{n}\mathbf{H}(i)=1. Also, by symmetry, all the H(i)\mathbf{H}(i)’s are real. This completes the proof of Theorem 2.1. ∎

2 A General Fourier Learning Algorithm

The algorithmic approach of the previous subsection is not specialized to kk-SIIRVs, but is applicable more generally. In essence, the approach really only depended upon two facts:

P\mathbf{P} is effectively supported on a small set T.T.

P^{\widehat{\mathbf{P}}} is effectively supported on a small set S.S.

It turns out that by using similar ideas, we can learn any probability distribution with these properties. The following simple theorem provides a generalization for integer-valued random variables. However, the approach can also be generalized to higher dimensions and to continuous distributions.

Then, there exists an algorithm which learns P\mathbf{P} to total variational distance ϵ\epsilon using N=O(∣T∣μ(S)/ϵ2)N=O(|T|\mu(S)/\epsilon^{2}) samples, where μ(S)\mu(S) is the Lebesgue measure of S.S.

Algorithm Learn-Sparse-FT Input: sample access to a distribution P\mathbf{P} over [n][n] and ϵ>0.\epsilon>0. Let CC be a sufficiently large universal constant. 1. Take N=C∣T∣μ(S)/ϵ2N=C|T|\mu(S)/\epsilon^{2} samples from P\mathbf{P} to get an empirical distribution Q\mathbf{Q}. 2. Compute H^\widehat{\mathbf{H}} which is defined as H^(ξ)=Q^(ξ),\widehat{\mathbf{H}}(\xi)=\widehat{\mathbf{Q}}(\xi), if ξ∈S,\xi\in S, and H^(ξ)=0\widehat{\mathbf{H}}(\xi)=0 otherwise. 3. Output H,\mathbf{H}, where H\mathbf{H} is the inverse Fourier transform on H^{\widehat{\mathbf{H}}} restricted to T.T. In particular H(i)=∫ξ∈Se(−nξ)H^(ξ)dξ\mathbf{H}(i)=\int_{\xi\in S}e(-n\xi){\widehat{\mathbf{H}}}(\xi)d\xi for i∈Ti\in T and for i∉T.i\not\in T.

Note that this is exactly the form of the algorithm for learning kk-SIIRVs, except that the latter algorithm must also learn TT (which is done by computing an approximate mean and variance) and SS (which is obtained through a thresholding procedure). Also, note that we use the continuous Fourier transform here rather than a discrete Fourier transform. This is mostly for conceptual convenience. In practice, the continuous Fourier transform can be replaced by a sufficiently fine discrete Fourier transform, yielding an algorithm in which the integrals can be replaced by finite sums.

The analysis of the algorithm is not difficult. We begin by bounding that the expected L2L_{2} difference between P^{\widehat{\mathbf{P}}} and H^.{\widehat{\mathbf{H}}}. In particular, we note that

Now, for any given value of ξ\xi, we note that P^(ξ)−H^(ξ){\widehat{\mathbf{P}}}(\xi)-{\widehat{\mathbf{H}}}(\xi) has mean and variance at most 1/N1/N. Therefore, we have that

For CC large enough, by the Markov inequality, this is at most ϵ2/(9∣T∣)\epsilon^{2}/(9|T|) with probability at least 2/3.2/3. If this holds, then

By Plancherel’s Theorem, this would imply that the squared L2L^{2} distance between P\mathbf{P} and the inverse Fourier transform of H\mathbf{H} is at most ϵ2/(4∣T∣).\epsilon^{2}/(4|T|). Along with Cauchy-Schwartz, this implies that

3 An Efficient Sampler for our Hypothesis

The learning algorithm of Section 2.1 outputs a succinct description of the hypothesis pseudo-distribution H\mathbf{H}, via its DFT. This immediately provides us with an efficient evaluation oracle for H,\mathbf{H}, i.e., an ϵ\epsilon-evaluation oracle for our target SIIRV P.\mathbf{P}. The running time of this oracle is linear in the size of S,S, the effective support of the DFT.

Note that we can explicitly output the hypothesis H\mathbf{H} by computing the inverse DFT at all the points of the support of H.\mathbf{H}. However, in contrast to the effective support of H^,{\widehat{\mathbf{H}}}, the support of H\mathbf{H} can be large, and this explicit description would not lead to a computationally efficient algorithm. In this subsection, we show how to efficiently obtain an ϵ\epsilon-sampler for our unknown kk-SIIRV P,\mathbf{P}, using the DFT representation of H\mathbf{H} as a black-box. In particular, starting with the DFT of an accurate hypothesis H,\mathbf{H}, represented via its DFT, we show how to efficiently obtain an ϵ\epsilon-sampler for the unknown target distribution. We remark that the efficient procedure of this section is not restricted to kk-SIIRVs, but is more general, applying to all univariate discrete distributions for which an efficient oracle for the DFT is available.

In particular, we prove the following theorem:

Combining the above with Theorem 2.1, we get:

For the output of algorithm Learn-SIIRV, M=O((1+σ)log⁡(1/ϵ))=O(kn)M=O((1+\sigma)\sqrt{\log(1/\epsilon)})=O(kn) and ∣S∣≤∣L′(T)∣≤2Mks−1ln⁡(1/T)=O(klog⁡(k/ϵ))|S|\leq|\mathcal{L^{\prime}}(T)|\leq 2Mks^{-1}\sqrt{\ln(1/T)}=O(k\log(k/\epsilon)). ∎

This section is devoted to the proof of Theorem 2.6. We start by providing some high-level intuition. Roughly speaking, we obtain the desired sampler by the Cumulative Distribution Function (CDF) corresponding to H.\mathbf{H}. We use the DFT to obtain a closed form expression for the CDF of H,\mathbf{H}, and then we query the CDF using an appropriate binary search procedure to sample from the distribution. One subtle point is that H(x)\mathbf{H}(x) is a pseudo-distribution, i.e. it is not necessarily non-negative at all points. Our analysis shows that this does not pose any problems with correctness.

Our first lemma shows that it is sufficient to have an efficient oracle for the CDF:

We begin our analysis by producing an algorithm that works when we are able to exactly compute cH(x).c_{\mathbf{H}}(x).

We have an interval [a′,b′][a^{\prime},b^{\prime}], initially [a−1,b][a-1,b], with cH(a′)≤y≤cH(b′)c_{\mathbf{H}}(a^{\prime})\leq y\leq c_{\mathbf{H}}(b^{\prime}) and cH(a′)<cH(b′).c_{\mathbf{H}}(a^{\prime})<c_{\mathbf{H}}(b^{\prime}).

If b′−a′=1b^{\prime}-a^{\prime}=1, output dH(y)=b′.d_{\mathbf{H}}(y)=b^{\prime}.

Otherwise, find the midpoint c′=⌊(a′+b′)/2⌋.c^{\prime}=\lfloor(a^{\prime}+b^{\prime})/2\rfloor.

If cH(a′)<cH(c′)c_{\mathbf{H}}(a^{\prime})<c_{\mathbf{H}}(c^{\prime}) and y≤cH(c′)y\leq c_{\mathbf{H}}(c^{\prime}), repeat with [a′,c′][a^{\prime},c^{\prime}]; else repeat with [c′,b][c^{\prime},b].

The function dHd_{\mathbf{H}} satisfies: For any y∈y\in, it holds cH(dH(y)−1)≤y≤cH(dH(y))c_{\mathbf{H}}(d_{\mathbf{H}}(y)-1)\leq y\leq c_{\mathbf{H}}(d_{\mathbf{H}}(y)) and cH(dH(y)−1)<cH(dH(y)).c_{\mathbf{H}}(d_{\mathbf{H}}(y)-1)<c_{\mathbf{H}}(d_{\mathbf{H}}(y)).

Note that if we don’t have cH(a′)<cH(c′)c_{\mathbf{H}}(a^{\prime})<c_{\mathbf{H}}(c^{\prime}) and y≤cH(c′)y\leq c_{\mathbf{H}}(c^{\prime}), then cH(c′)<y≤cH(b′)c_{\mathbf{H}}(c^{\prime})<y\leq c_{\mathbf{H}}(b^{\prime}). So, Step 4 gives an interval [a′,b′][a^{\prime},b^{\prime}] which satisfies cH(a′)≤y≤cH(b′)c_{\mathbf{H}}(a^{\prime})\leq y\leq c_{\mathbf{H}}(b^{\prime}) and cH(a′)<cH(b′)c_{\mathbf{H}}(a^{\prime})<c_{\mathbf{H}}(b^{\prime}). The initial interval [a−1,b][a-1,b] satisfies these conditions since cH(a−1)=0c_{\mathbf{H}}(a-1)=0 and cH(b)=1c_{\mathbf{H}}(b)=1. By induction, all [a′,b′][a^{\prime},b^{\prime}] in the execution of the above algorithm have cH(a′)≤y≤cH(b′)c_{\mathbf{H}}(a^{\prime})\leq y\leq c_{\mathbf{H}}(b^{\prime}) and cH(a′)<cH(b′)c_{\mathbf{H}}(a^{\prime})<c_{\mathbf{H}}(b^{\prime}). Since this is impossible if a′=b′a^{\prime}=b^{\prime}, and Step 4 always recurses on a shorter interval, we eventually have b′−a′=1b^{\prime}-a^{\prime}=1. Then, the conditions cH(a′)≤y≤cH(b′)c_{\mathbf{H}}(a^{\prime})\leq y\leq c_{\mathbf{H}}(b^{\prime}) and cH(a′)<cH(b′)c_{\mathbf{H}}(a^{\prime})<c_{\mathbf{H}}(b^{\prime}) give the claim. ∎

Computing dH(y)d_{\mathbf{H}}(y) requires O(log⁡(b−a+1))O(\log(b-a+1)) evaluations of cHc_{\mathbf{H}}, and O(log⁡(b−a+1))O(\log(b-a+1)) comparisons of y.y. For the rest of this proof, we will use n=b−a+1n=b-a+1 to denote the support size.

We now show how to effectively sample from Q′\mathbf{Q}^{\prime}. The issue is how to simulate a sample from the uniform distribution on $withuniformrandombits.Wedothisbyflippingcoinsforthebitsofwith uniform random bits. We do this by flipping coins for the bits ofYlazily.Wenotethatwewillonlyneedtoknowmorethanlazily. We note that we will only need to know more thanmbitsofbits ofYififYiswithinis within2^{-m}ofoneofthevaluesofof one of the values ofc_{\mathbf{H}}(x)forsomefor somex.Byaunionbound,thishappenswithprobabilityatmost. By a union bound, this happens with probability at mostn2^{-m}overthechoiceofover the choice ofY.Therefore,for. Therefore, form>\log_{2}(10n/\epsilon),theprobabilitythatthiswillhappenisatmost, the probability that this will happen is at most\epsilon/10$ and can be ignored.

We next show that we can efficiently compute an appropriate CDF, using the DFT.

Recall that the PMF of H\mathbf{H} at x∈Sx\in S is given by the inverse DFT:

When ξ≠0\xi\not=0, the term ∑i:a≤i≤xe(−ξx/M)\sum_{i:a\leq i\leq x}e(-\xi x/M) is a geometric series. By standard results on its sum, we have:

When ξ=0\xi=0, e(−ξ)=1e(-\xi)=1, and we get ∑a≤i≤xe(−ξx/M)=i+1−a.\sum_{a\leq i\leq x}e(-\xi x/M)=i+1-a. In this case, we also have H^(ξ)=1.\widehat{\mathbf{H}}(\xi)=1. Putting this together we have:

Hence, we obtain a closed form expression for the CDF that can be approximated to desired precision in time O(∣S∣log⁡(1/δ)).O(|S|\log(1/\delta)). ∎

Now we can prove the main theorem of this subsection.

By Proposition 2.10, we can efficiently calculate the CDF of H\mathbf{H}. So, we can apply Lemma 2.8 to this CDF. This gives us an ϵ\epsilon-sampler for H.\mathbf{H}. To find the time it takes to compute each sample, we need to substitute D=O(∣S∣log⁡(M/ϵ))D=O\left(|S|\log(M/\epsilon)\right) from the running time of the CDF into the bound in Lemma 2.8, yielding O(log⁡M⋅log⁡(M/ϵ))⋅∣S∣O\left(\log M\cdot\log(M/\epsilon)\right)\cdot|S| time. This completes the proof. ∎

4 Sample–Optimal Learning Algorithm

In this subsection, we show how to improve the sample complexity of our learning algorithm for kk-SIIRVs given in Section 2.1, and obtain an algorithm with optimal sample complexity (up to constant factors). The basic idea behind the improvement is as follows: In our previous analysis, we made critical use of the fact that essentially all of the mass of the distribution in question lies in an explicit interval of length O(slog⁡(1/ϵ)),O(s\sqrt{\log(1/\epsilon)}), where ss is the standard deviation. By using our Fourier learning approach, we were able to learn a distribution that approximated our target on this support. In order to improve this algorithm, we observe that although it is necessary to move Ω(log⁡(1/ϵ))\Omega(\sqrt{\log(1/\epsilon)}) standard deviations from the mean before the cumulative density function (CDF) drops below ϵ,\epsilon, the CDF has already begun to drop off exponentially after only a single standard deviation from the mean.

We will warm up in Section 2.4.1, where we describe our algorithm in the case of 22-SIIRVs. This will exhibit the important new ideas of this technique. Then, in Section 2.4.2, we extend these results to kk-SIIRVs, which brings with it several technical complications, mostly arising from the fact that we do not know a priori a good effective support for the Fourier transform.

In this subsection, we will prove the following theorem:

There exists an algorithm that given N=O(log⁡(1/ϵ)/ϵ2)N=O(\sqrt{\log(1/\epsilon)}/\epsilon^{2}) independent samples to a 22-SIIRV X,X, runs in time O(N)O(N) and with probability at least 2/32/3 outputs a hypothesis distribution YY that is within ϵ\epsilon of XX in total variational distance.

Our new algorithm Learn-22-SIIRV-Optimal-Sample is described in pseudocode below. We first provide an equivalent alternative interpretation of our algorithm in terms of truncating the Fourier transform. As in our algorithm Learn-SIIRV of Section 2.1, we start by obtain approximations σ~2\widetilde{\sigma}^{2} and μ~\widetilde{\mu} for the variance and mean. Similarly, we output the empirical distribution if σ~≤Θ(ln⁡(1/ϵ)).\widetilde{\sigma}\leq\Theta(\sqrt{\ln(1/\epsilon)}). This allows us to assume that σ~=Ω(ln⁡(1/ϵ)).\widetilde{\sigma}=\Omega(\sqrt{\ln(1/\epsilon)}). (Note that this bound is not as strong as that in Learn-SIIRV because in the current setting we aim to use fewer samples.)

Let I(ξ)I(\xi) be the indicator function of the interval [−Cσ~−1log⁡(1/ϵ),Cσ~−1log⁡(1/ϵ)],[-C\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)},C\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)}], for CC a sufficiently large constant. Let F^{\widehat{F}} be the convolution of II and G^,{\widehat{G}}, i.e., F^=I∗G^.{\widehat{F}}=I\ast{\widehat{G}}. We note that multiplication by F^{\widehat{F}} is an appropriate method of thresholding. In particular, we start by showing that F^{\widehat{F}} approximates II in the following way:

F^(ξ)≥1−ϵ2{\widehat{F}}(\xi)\geq 1-\epsilon^{2} for ∣ξ∣≤(C−3)σ~−1log⁡(1/ϵ)|\xi|\leq(C-3)\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)}.

F^(ξ)≤ϵ2{\widehat{F}}(\xi)\leq\epsilon^{2} for 14≥∣ξ∣≥(C+3)σ~−1log⁡(1/ϵ)\frac{1}{4}\geq|\xi|\geq(C+3)\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)}.

Note that F^{\widehat{F}} is the convolution of II and G^.{\widehat{G}}. We can write:

Clearly, this convolution is positive at all points. Thus, we get (i).

When ∣ξ∣≤(C−3)σ~−1log⁡(1/ϵ),|\xi|\leq(C-3)\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)}, note that the integral in (5) is over

By standard tail bounds, the Gaussian s2πe−σ~2ν2/2\frac{s}{\sqrt{2\pi}}e^{-\widetilde{\sigma}^{2}\nu^{2}/2} has all but 1−ϵ21-\epsilon^{2} of its mass in the interval [−3σ~−1log⁡(1/ϵ),3σ~−1log⁡(1/ϵ)],[-3\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)},3\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)}], and so F^(ξ)≥1−ϵ2.{\widehat{F}}(\xi)\geq 1-\epsilon^{2}. This gives us (ii).

When 14≥∣ξ∣≥(C+3)σ~−1log⁡(1/ϵ),\frac{1}{4}\geq|\xi|\geq(C+3)\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)}, the integral in (5) is over ν∈[ξ−Cσ~−1log⁡(1/ϵ),ξ+Cσ~−1log⁡(1/ϵ)],\nu\in[\xi-C\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)},\xi+C\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)}], which is disjoint from the interval [−3σ~−1log⁡(1/ϵ),3σ~−1log⁡(1/ϵ)].[-3\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)},3\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)}]. By the same bound, the Gaussian has at most ϵ2\epsilon^{2} of its mass outside [−3σ~−1log⁡(1/ϵ),3σ~−1log⁡(1/ϵ)].[-3\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)},3\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)}]. So, we deduce (iii). ∎

At a high-level, our new algorithm involves the following steps:

Let ZZ be the empirical distribution and Z^{\widehat{Z}} be the (continuous) Fourier transform of Z.Z.

Let Y^(ξ)=Z^(ξ)F^(ξ).{\widehat{Y}}(\xi)={\widehat{Z}}(\xi){\widehat{F}}(\xi).

Let YY be the truncation of the inverse Fourier transform of Y^{\widehat{Y}} to [μ~−Cσ~log⁡(1/ϵ),μ~+Cσ~log⁡(1/ϵ)],[\widetilde{\mu}-C\widetilde{\sigma}\sqrt{\log(1/\epsilon)},\widetilde{\mu}+C\widetilde{\sigma}\sqrt{\log(1/\epsilon)}], for CC a sufficiently large constant.

We now proceed to show correctness. In the proof of Theorem 2.1, we argued that O(1)O(1) samples suffice to get that with high probability σ~\widetilde{\sigma} and μ~\widetilde{\mu} satisfy the desired bounds. We condition on this event. We claim that when σ~\widetilde{\sigma} is small, namely O(ln⁡(1/ϵ)),O(\sqrt{\ln(1/\epsilon)}), the empirical distribution suffices. This follows from the fact that the empirical estimate of a discrete distribution P\mathbf{P} has expected variation distance ≤ϵ\leq\epsilon from P\mathbf{P} after O(∥P∥1/2/ϵ2)O(\|\mathbf{P}\|_{1/2}/\epsilon^{2}) samples. By an application of Bernstein’s inequality (see Lemma C.3) it follows that a 22-SIIRV with standard deviation σ\sigma has 1/21/2-norm bounded from above by O(σ+1).O(\sigma+1). This proves our claim.

So, we henceforth assume that σ~\widetilde{\sigma} is Ω(ln⁡(1/ϵ))\Omega(\sqrt{\ln(1/\epsilon)}) and O(1/ϵ).O(1/\epsilon). We now proceed with the main part of the analysis. We start with the following simple claim:

Recall that YY is a the convolution of ZZ with F.F. If we consider our samples to be random variables X(1),…,X(N)X_{(1)},\ldots,X_{(N)} each of which is an i.i.d. copy of X,X, we can express Y(p)Y(p) for a given pp as a random variable: Y(p)=1N∑i=1NF(p−X(i))  ,Y(p)=\frac{1}{N}\sum_{i=1}^{N}F(p-X_{(i)})\;, for a≤p≤b,a\leq p\leq b, where a=μ~−Cσ~log⁡(1/ϵ)a=\widetilde{\mu}-C\widetilde{\sigma}\sqrt{\log(1/\epsilon)} and b=μ~+Cσ~log⁡(1/ϵ).b=\widetilde{\mu}+C\widetilde{\sigma}\sqrt{\log(1/\epsilon)}. Note that the expectation of Y(p)Y(p) is

We claim that this quantity will become small as pp moves away from μ.\mu. Intuitively, this should be the case because for pp far from μ,\mu, then for all qq either ∣p−q∣|p-q| will be large or ∣q−μ∣|q-\mu| will be large. In the former case, F(p−q)F(p-q) is small, and in the latter X(q)X(q) is. In order to properly analyze this quantity, we will have to group up these errors for pp in blocks of size σ~.\widetilde{\sigma}. In particular, we have that

for N=log⁡(1/ϵ)/ϵ2.N=\sqrt{\log(1/\epsilon)}/\epsilon^{2}. This completes the proof. ∎

4.2 Sample Optimal Learning Algorithm for k𝑘k-SIIRVs

The proof of this theorem is somewhat analogous to that of Theorem 2.11. However, it should be noted that the runtime of this algorithm is not given. This is because the runtime of the simplest such algorithm is actually exponential in k.k. The difficulty is that while in the 22-SIIRV case we could determine the effective support of the Fourier transform just from the standard deviation, in the case of kk-SIIRVs this is not the case. In essence, our algorithm will first guess this effective support (of which there are exponentially many possibilities), and then given this guess will run an appropriate algorithm. At the end, we will need to run a standard tournament procedure (e.g., [DL01]) to determine which of these guesses lead to the closest approximation to X.X. Since the number of possibilities is 2O(k)2^{O(k)} (see Claim 2.19), the sample complexity of this tournament is O(k/ϵ2).O(k/\epsilon^{2}).

Once again, under these assumptions, we can use Bernstein’s inequality to prove concentration bounds for XX:

Suppose that σ~≥Cklog⁡(1/ϵ)\widetilde{\sigma}\geq Ck\sqrt{\log(1/\epsilon)}, for CC sufficiently large, then for all t≥0t\geq 0 we have that

We assumed that ∣μ−μ~∣≤σ~|\mu-\widetilde{\mu}|\leq\widetilde{\sigma}. So, if ∣X−μ~∣≥(2+t)σ~)|X-\widetilde{\mu}|\geq(2+t)\widetilde{\sigma}), then ∣X−μ∣≥(1+t)σ~|X-\mu|\geq(1+t)\widetilde{\sigma}. Bernstein’s inequality gives that

Since σ~=Ω(klog⁡(1/ϵ))=Ω(k)\widetilde{\sigma}=\Omega(k\sqrt{\log(1/\epsilon)})=\Omega(k) and Var[X]=O(σ~2)\mathop{\textnormal{Var}}\nolimits[X]=O(\widetilde{\sigma}^{2}), we have that Var[X]+13k=O(σ~2)\mathop{\textnormal{Var}}\nolimits[X]+\frac{1}{3}k=O(\widetilde{\sigma}^{2}). ∎

In particular, this implies that with probability 1−2ϵ21-2\epsilon^{2} that ∣X−μ~∣=O(σ~log⁡(1/ϵ)).|X-\widetilde{\mu}|=O(\widetilde{\sigma}\sqrt{\log(1/\epsilon)}). Next, we will recall concentration bounds on the Fourier transform of XX. To do so, we first devise some notation. Let X=∑i=1nXi  ,X=\sum_{i=1}^{n}X_{i}\;, where XiX_{i} are independent kk-IRVs. We let pi,jp_{i,j} be the probability that two independent copies of XiX_{i} have absolute difference jj. We let vj=∑i=1npi,jv_{j}=\sum_{i=1}^{n}p_{i,j}. In terms of this, we restate Equations (1) and (2) from the proof of Lemma 2.3 as

Finally, we note that we can find some particular good scale to consider. In particular, we note

There exists an m∈[k]m\in[k] so that ∑j=m2mvj=Ω(σ~/k)2.\sum_{j=m}^{2m}v_{j}=\Omega(\widetilde{\sigma}/k)^{2}.

We assume for sake of contradiction that this is not the case. We have that

where cc is a sufficiently small constant. This implies that

Summing over mm powers of 22 less than or equal to kk, we find that

This yields a contradiction for cc sufficiently small. ∎

Our algorithm will begin by guessing a value for m.m. We assume throughout the following that mm represents such an integer. Furthermore, we assume that our algorithm has guessed values wm,wm+1,…,w2mw_{m},w_{m+1},\ldots,w_{2m} so that wi≤viw_{i}\leq v_{i} for all ii and ∑j=m2mwj=Ω(σ~/k)2.\sum_{j=m}^{2m}w_{j}=\Omega(\widetilde{\sigma}/k)^{2}.

Given mm and σ~\widetilde{\sigma}, this can be done by considering only 2O(k)2^{O(k)} possible vectors of ww’s.

By Lemma 2.18, we have that ∑j=m2mvj=Ω(σ~/k)2.\sum_{j=m}^{2m}v_{j}=\Omega(\widetilde{\sigma}/k)^{2}. Suppose concretely that C′C^{\prime} is a constant such that we always have ∑j=m2mvj≥C′(σ~/k)2.\sum_{j=m}^{2m}v_{j}\geq C^{\prime}(\widetilde{\sigma}/k)^{2}. Then, we claim that there is some set of non-negative integers aj,a_{j}, for m≤j≤2mm\leq j\leq 2m such that ∑j=m2maj=m\sum_{j=m}^{2m}a_{j}=m and vj≥(aj/(m+1))⋅C′(σ~/k)2/2.v_{j}\geq(a_{j}/(m+1))\cdot C^{\prime}(\widetilde{\sigma}/k)^{2}/2. In particular, take aj=⌊vj2(m+1)C′(σ~/k)2⌋a_{j}=\lfloor\frac{v_{j}2(m+1)}{C^{\prime}(\widetilde{\sigma}/k)^{2}}\rfloor then ∣(C′(σ~/k)2/2(m+1))(∑j=m2maj)−vj∣≤C′(σ~/k)2/2,|(C^{\prime}(\widetilde{\sigma}/k)^{2}/2(m+1))\left(\sum_{j=m}^{2m}a_{j}\right)-v_{j}|\leq C^{\prime}(\widetilde{\sigma}/k)^{2}/2, and so ∑j=m2maj≥∣vj−C′(σ~/k)2/2∣C′(σ~/k)2/2(m+1)≥m+1.\sum_{j=m}^{2m}a_{j}\geq\frac{|v_{j}-C^{\prime}(\widetilde{\sigma}/k)^{2}/2|}{C^{\prime}(\widetilde{\sigma}/k)^{2}/2(m+1)}\geq m+1.

If we guess such integers, then we can set wj=(aj/(m+1))⋅C′(σ~/k)2/2w_{j}=(a_{j}/(m+1))\cdot C^{\prime}(\widetilde{\sigma}/k)^{2}/2 and have vj≥wjv_{j}\geq w_{j} and ∑j=m2mwj≥C′(σ~/k)2/2=Ω(σ~/k)2.\sum_{j=m}^{2m}w_{j}\geq C^{\prime}(\widetilde{\sigma}/k)^{2}/2=\Omega(\widetilde{\sigma}/k)^{2}. There are (n+kn){n+k\choose n} kk-vectors aa of non-negative integers summing to n.n. So in our case, there are (2mm)≤22m≤22k{2m\choose m}\leq 2^{2m}\leq 2^{2k} possible combinations of wj.w_{j}. ∎

We have the following simple lemma about BB:

Firstly, we show that for each m≤j≤2mm\leq j\leq 2m, either we have [jξ]≥j∣ξ−ξ′∣/2[j\xi]\geq j|\xi-\xi^{\prime}|/2 or [jξ′]≥j∣ξ−ξ′∣/2[j\xi^{\prime}]\geq j|\xi-\xi^{\prime}|/2. If [jξ]≤j∣ξ−ξ′∣/2[j\xi]\leq j|\xi-\xi^{\prime}|/2, then there is an integer ii such that ∣jξ−i∣≤∣jξ−jξ′∣/2|j\xi-i|\leq|j\xi-j\xi^{\prime}|/2 and so ∣jξ′−i∣≥∣jξ−jξ′∣−∣jξ−i∣≥∣jξ−jξ′∣/2|j\xi^{\prime}-i|\geq|j\xi-j\xi^{\prime}|-|j\xi-i|\geq|j\xi-j\xi^{\prime}|/2. But we also have ∣jξ′−i∣≤∣jξ−jξ′∣+∣jξ−i∣≥3∣jξ−jξ′∣/2≤3j/12m≤12|j\xi^{\prime}-i|\leq|j\xi-j\xi^{\prime}|+|j\xi-i|\geq 3|j\xi-j\xi^{\prime}|/2\leq 3j/12m\leq\frac{1}{2}. So, ii is still one of the closest integers to jξ′j\xi^{\prime} and [jξ′]=∣jξ′−i∣≥∣jξ−jξ′∣/2.[j\xi^{\prime}]=|j\xi^{\prime}-i|\geq|j\xi-j\xi^{\prime}|/2.

where the final line follows since we guessed ww so that ∑j=m2mwj=Ω(σ~/k)2.\sum_{j=m}^{2m}w_{j}=\Omega(\widetilde{\sigma}/k)^{2}. ∎

This implies that within each interval of length 1/(6m),1/(6m), B(ξ)B(\xi) is bounded by an appropriate Gaussian. In particular, for 0≤i<6m0\leq i<6m, let IiI_{i} be the interval [i/6m,(i+1)/6m][i/6m,(i+1)/6m], and let ξi\xi_{i} be the element of IiI_{i} at which BB is maximized. Since ∑j=m2mwj[jξ]2\sum_{j=m}^{2m}w_{j}[j\xi]^{2} is a piecewise quadratic, we can easily calculate its minima ξi\xi_{i} on each IiI_{i} given wjw_{j} for m≤j≤2m.m\leq j\leq 2m. As a corollary of the above, we have:

We can write ∣X^(ξ)∣≤B(ξ)≤B(ξ)B(ξi)=exp⁡(−Ω(σ~2(ξ−ξi)2)m2/k2)  .|{\widehat{X}}(\xi)|\leq B(\xi)\leq\sqrt{B(\xi)B(\xi_{i})}=\exp(-\Omega(\widetilde{\sigma}^{2}(\xi-\xi_{i})^{2})m^{2}/k^{2})\;. ∎

Our algorithm depends on taking the empirical Fourier transform of XX and truncating it in a judiciously chosen way. Let G^(ξ){\widehat{G}}(\xi) be a Gaussian of standard deviation 1/σ~1/\widetilde{\sigma} taken modulo 1.1. In particular,

Let I(ξ)I(\xi) be the indicator function that is 11 if and only if ξ\xi is within Ckσ~−1log⁡(1/ϵ)/mCk\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)}/m of one of the ξi\xi_{i} modulo 1,1, for CC a sufficiently large constant. Let F^{\widehat{F}} be the convolution of II and G^.{\widehat{G}}. As before, F^{\widehat{F}} approximates II in that:

F^(ξ)≥1−ϵ2/k{\widehat{F}}(\xi)\geq 1-\epsilon^{2}/k for ξ\xi within (Ck/m−3)σ~−1log⁡(1/ϵ)(Ck/m-3)\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)} of some ξi\xi_{i}.

F^(ξ)≤ϵ2/k{\widehat{F}}(\xi)\leq\epsilon^{2}/k for ξ\xi not within (Ck/m+3)σ~−1log⁡(1/ϵ)(Ck/m+3)\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)} of any ξi\xi_{i}.

Note that F^{\widehat{F}} is the convolution of II and G^.{\widehat{G}}. I(x)I(x) is the indicator function of some set TT. Explicitly, we have:

For (ii), we note that since II contains the interval [ξi−Ckσ~−1log⁡(1/ϵ)/m,ξi+Ckσ~−1log⁡(1/ϵ)/m],[\xi_{i}-Ck\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)}/m,\xi_{i}+Ck\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)}/m], we have

Since ∣ξ−ξi∣≤(Ck/m−3)σ~−1log⁡(1/ϵ),|\xi-\xi_{i}|\leq(Ck/m-3)\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)}, this interval contains [−3σ~−1log⁡(1/ϵ),3σ~−1log⁡(1/ϵ)],[-3\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)},3\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)}], and so

For (iii), we note that TT is disjoint from the set [ξ−3σ~−1log⁡(1/ϵ),ξ+3σ~−1log⁡(1/ϵ)].[\xi-3\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)},\xi+3\widetilde{\sigma}^{-1}\sqrt{\log(1/\epsilon)}]. We have

Our algorithm is now quite simple to state and works as follows:

Let ZZ be the empirical distribution and Z^{\widehat{Z}} be the Fourier transform of Z.Z.

Let Y^{\widehat{Y}} be the pointwise product of Z^{\widehat{Z}} with F^{\widehat{F}}.

Let YY be the truncation of the inverse Fourier transform of Y^{\widehat{Y}} to [μ−Cσ~log⁡(1/ϵ),μ+Cσ~log⁡(1/ϵ)],\left[\mu-C\widetilde{\sigma}\sqrt{\log(1/\epsilon)},\mu+C\widetilde{\sigma}\sqrt{\log(1/\epsilon)}\right], for CC a sufficiently large constant.

Taking an inverse Fourier transform implies that ∣X−Y′∣∞=O(ϵ2log⁡(1/ϵ)/σ~),|X-Y^{\prime}|_{\infty}=O(\epsilon^{2}\sqrt{\log(1/\epsilon)}/\widetilde{\sigma}), at least within the domain of truncation. Since this domain has size O(σ~log⁡(1/ϵ)),O(\widetilde{\sigma}\sqrt{\log(1/\epsilon)}), we have that the L1L_{1} error between XX and Y′Y^{\prime} within this domain is O(log⁡(1/ϵ)ϵ2).O(\sqrt{\log(1/\epsilon)}\epsilon^{2}). However, both XX and Y′Y^{\prime} have at most O(ϵ2)O(\epsilon^{2}) mass outside of this domain, and therefore we have that

Recall that YY is a the convolution of ZZ with F.F. If we consider our samples to be random variables X(1),…,X(N)X_{(1)},\ldots,X_{(N)} each of which is an i.i.d. copy of X,X, we can express Y(p)Y(p) for a given pp as a random variable:

for a≤p≤b,a\leq p\leq b, where a=μ~−Cσ~log⁡(1/ϵ)a=\widetilde{\mu}-C\widetilde{\sigma}\sqrt{\log(1/\epsilon)} and b=μ~+Cσ~log⁡(1/ϵ).b=\widetilde{\mu}+C\widetilde{\sigma}\sqrt{\log(1/\epsilon)}. Note that the expectation of Y(p)Y(p) is

for N=klog⁡(1/ϵ)/ϵ2.N=k\sqrt{\log(1/\epsilon)}/\epsilon^{2}. This completes the proof. ∎

Cover Size Upper Bound and Efficient Construction

Our starting point is the following theorem:

[[DDO+13], Theorem I.2] Let P∈Sn,k\mathbf{P}\in\mathcal{S}_{n,k} be a kk-SIIRV of order nn. Then, for any ϵ>0\epsilon>0, P\mathbf{P} is either

Moreover, it is not difficult to show that there exists an ϵ\epsilon-cover for distributions in Case 2 with at most n⋅(k/ϵ)O(k)n\cdot(k/\epsilon)^{O(k)} points. In particular, we claim that for distributions in sub-case 2(i) there exists an ϵ\epsilon-cover of size (1/ϵ)O(k)(1/\epsilon)^{O(k)}, and for distributions in sub-case 2(ii) there exists an ϵ\epsilon-cover of size O(n).O(n). Assuming these claims, the sub-additivity of total variation distance (Proposition A.3) implies that distributions in Case 2 have a 2ϵ2\epsilon-cover of size n⋅(1/ϵ)O(k)n\cdot(1/\epsilon)^{O(k)} as desired.

Note that the random variable YY in Case 2(i) is distributed as a kk-IRV, i.e., it has support kk. It is well-known and easy to show that the set of all distributions over a domain of size kk has an ϵ\epsilon-cover of size (1/ϵ)O(k).(1/\epsilon)^{O(k)}. It remains to show that we can ϵ\epsilon-cover the set of discretized normal distributions of Case2(ii) with O(nk/ϵ)O(nk/\epsilon) points. To do this, we exploit the fact that the variance of such distributions is large. Let σmin⁡=Ω(k9/ϵ3)\sigma_{\min}={\Omega(k^{9}/\epsilon^{3})} be the minimum variance of a kk-SIIRV XX in Case 2. Note that the discrete Gaussian in Case 2 has a variance of Var[X]/c2\mathop{\textnormal{Var}}\nolimits[X]/c^{2}. Hence, we want to ϵ\epsilon-cover the set of discrete Gaussians with standard deviation σ\sigma in the interval [σmin⁡,σmax⁡][\sigma_{\min},\sigma_{\max}], where σmax⁡=O(nk)\sigma_{\max}=O(\sqrt{n}k), and mean value μ\mu in the interval [0,n(k−1)][0,n(k-1)]. Consider the following discretization of the space (σ2,μ)(\sigma^{2},\mu): We first define a geometric grid on σ2\sigma^{2} with ratio (1+ϵ)(1+\epsilon), i.e., σi2=σmin⁡2(1+ϵ)i\sigma_{i}^{2}=\sigma^{2}_{\min}(1+\epsilon)^{i}, where where 0≤i≤imax⁡0\leq i\leq i_{\max} and imax⁡=O((1/ϵ)⋅log⁡(n)).i_{\max}=O((1/\epsilon)\cdot\log(n)). For every fixed ii, we define an additive grid on the means, so that ∣μj+1−μj∣≤ϵ⋅σi|\mu_{j+1}-\mu_{j}|\leq\epsilon\cdot\sigma_{i}. A combination of Propositions A.2 and A.4 implies that this grid defines an ϵ\epsilon-cover. Note that the total size of the described grid on (σ2,μ)(\sigma^{2},\mu) is

where the last inequality follows from the lower bound on σmin⁡\sigma_{\min} and the elementary inequality ∑i(1+ϵ)−i/2=O(1/ϵ).\sum_{i}(1+\epsilon)^{-i/2}=O(1/\epsilon).

The proof of Lemma 3.2 is deferred to Appendix D.1. Note that an application of the lemma for δ=ϵ/V\delta=\epsilon/V completes the proof.

2 Cover Upper Bound for Sparse Support

In this subsection we prove the desired upper bound on the cover size for the sparse case:

Our proof proceeds by analyzing the Fourier transform of the probability density functions of kk-SIIRVs. We will need the following definitions.

At a high-level, our proof is conceptually simple: For a kk-SIIRV P\mathbf{P}, we would like to show that the logarithm of its Fourier transform log⁡P^(ξ)\log\widehat{\mathbf{P}}(\xi) is determined up to an additive ϵ\epsilon by its degree O(log⁡(1/ϵ))O(\log(1/\epsilon)) Taylor polynomial. Assuming this holds, it is relatively straightforward to prove the desired upper bound on the cover size. Unfortunately, such a statement cannot be true in general for the following reason: the function P~(z)\widetilde{\mathbf{P}}(z) may have roots near (or on) the unit circle, in which case the logarithm of the Fourier transform is either very big or infinite at certain points. Intuitively, we would like to show that the magnitude of P~(z)\widetilde{\mathbf{P}}(z) close to a root is small. Unfortunately, this is not necessarily true.

We circumvent this problem as follows: We partition the unit circle into O(k)O(k) arcs each of length O(1/k)O(1/k). We perform a case analysis based on the number of roots that are close to an arc. If there are at least Ω(log⁡(1/ϵ))\Omega(\log(1/\epsilon)) roots of P~(z)\widetilde{\mathbf{P}}(z) close to a particular arc, then we show (Lemma 3.5(i)) that the magnitude of P~(z)\widetilde{\mathbf{P}}(z) within the arc is going to be negligibly small. Otherwise, we consider the polynomial q(z)q(z) obtained by P~(z)\widetilde{\mathbf{P}}(z) after dividing by the corresponding roots, and show that log⁡q(z)\log q(z) is determined up to an additive ϵ\epsilon by its degree O(log⁡(1/ϵ))O(\log(1/\epsilon)) Taylor polynomial within the arc (see Lemma 3.6). Using the aforementioned structural understanding, to prove the cover upper bound, we define a “succinct” description of the Fourier Transform based on the logarithm of q(z)q(z) and appropriate discretization of O(log⁡(1/ϵ))O(\log(1/\epsilon)) nearby roots.

For the rest of this section we fix an arbitrary P∈Sn,k\mathbf{P}\in{\cal S}_{n,k} and analyze the polynomial P~(x)\widetilde{\mathbf{P}}(x). We start with the following important lemma whose proof is deferred to Appendix D.2:

∣P~(x)∣≤2−m  .|\widetilde{\mathbf{P}}(x)|\leq 2^{-m}\;.

For the polynomial q(x)=P~(x)/∏i=1m(x−ρi)q(x)=\widetilde{\mathbf{P}}(x)/\prod_{i=1}^{m}(x-\rho_{i}), we have that ∣q(x)∣≤km|q(x)|\leq k^{m}.

Our main lemma for this section shows that we can ϵ\epsilon-approximate the Taylor series of q(x)q(x) by only considering the first O(log⁡(1/ϵ))O(\log(1/\epsilon)) terms:

Note that ln⁡(q(x))\ln(q(x)) can be expressed as a sum of the form

where c0=ln⁡[q(w)]c_{0}=\ln[q(w)], rjr_{j} are the roots of q(x)q(x), and R≤n(k−1)R\leq n(k-1) is the degree of q(x)q(x). By the definition of qq, it follows that ∣rh−w∣>13k|r_{h}-w|>\frac{1}{3k} for all 1≤h≤R1\leq h\leq R.

Inserting the standard Taylor series ln⁡(1+y)=∑j=0∞yjj\ln(1+y)=\sum_{j=0}^{\infty}\frac{y^{j}}{j} gives

Considering the (x−w)j(x-w)^{j} term above gives cj=(−1)jj∑j=1R(rj−w)−jc_{j}=\frac{(-1)^{j}}{j}\sum_{j=1}^{R}(r_{j}-w)^{-j}. Therefore,

This gives the desired bound on ∣cj∣|c_{j}|, j≥1j\geq 1.

We now proceed to prove (6). We start by considering the difference

for xx in the appropriate range. Since ∣x−w∣≤16k≤1/2|x-w|\leq\frac{1}{6k}\leq 1/2 and ∣cj′−cj∣≤ϵ|c^{\prime}_{j}-c_{j}|\leq\epsilon, we have

Thus, the multiplicative error in this approximation, i.e.,

We next replace each ρj\rho_{j} by the corresponding ρj′\rho^{\prime}_{j} one at a time. By a simple induction, we will show that for all 1≤h≤m1\leq h\leq m

We have just shown this for h=0h=0. So, we assume (7) for 0≤h≤m−10\leq h\leq m-1 and seek to prove it for h+1h+1. For simplicity, we rewrite (7) as

But this is just (7) for h+1h+1, completing the induction.

We are now prepared to prove Proposition 3.3.

By replacing ϵ\epsilon by a power of itself, we may assume that ϵ≤k−1\epsilon\leq k^{-1} and that n≤ϵ−1n\leq\epsilon^{-1}. We may additionally assume that ϵ\epsilon is sufficiently small.

To each P∈Sn,k\mathbf{P}\in{\cal S}_{n,k} we associate the following data:

For each arc in our partition with midpoint wIw_{I}, define q(z)q(z) as in Lemma 3.6. Then we define PI\mathbf{P}_{I} as follows:

If P~(z)\widetilde{\mathbf{P}}(z) has at least mm roots within distance 1/(3k)1/(3k) of wIw_{I} or if ∣q(wI)∣<ϵ3exp⁡(−nk)|q(w_{I})|<\epsilon^{3}\exp(-nk), we let PI=Small\mathbf{P}_{I}=\textbf{Small}.

Otherwise, we let PI\mathbf{P}_{I} consist of the following data:

Roundings of the roots of P~(z)\widetilde{\mathbf{P}}(z) that are within 1/(3k)1/(3k) of wIw_{I} to the nearest complex numbers whose real and imaginary parts are multiples of δ/2\delta/2.

We then let D(P)D(\mathbf{P}) be the sequence {PI}I an arc in the partition\{\mathbf{P}_{I}\}_{I\textrm{ an arc in the partition}}. For each value VV that can be obtained as D(P)D(\mathbf{P}) for some P∈Sn,k\mathbf{P}\in\mathcal{S}_{n,k}, we pick one such P\mathbf{P} called QV\mathbf{Q}_{V}. We define our cover TT to be the set of all such QV\mathbf{Q}_{V}. In order to show that this is an appropriate cover, we need to show two claims:

The number of possible values of D(P)D(\mathbf{P}) is at most (1/ϵ)O(klog⁡(1/ϵ)).\left(1/\epsilon\right)^{O(k\log(1/\epsilon))}. This implies that ∣T∣|T| is appropriately small.

where by Lemma 3.6, ∣ci∣≤nk(3k)i.|c_{i}|\leq nk(3k)^{i}. Therefore, for z∈Iz\in I, since ∣z−wI∣≤1/(6k)|z-w_{I}|\leq 1/(6k), we have by Lemma 3.5 that

This completes the proof of Proposition 3.3.

3 Efficient Cover Construction

In this section, we give an algorithm to construct a near-minimum size cover in output polynomial time:

Let n,kn,k be positive integers and ϵ>0\epsilon>0. There exists an algorithm that runs in time n(k/ϵ)O(klog⁡(1/ϵ))n\left(k/\epsilon\right)^{O(k\log(1/\epsilon))} and returns a proper ϵ\epsilon-cover for Sn,k\mathcal{S}_{n,k}, i.e., a cover consisting of n(k/ϵ)O(klog⁡(1/ϵ))n\left(k/\epsilon\right)^{O(k\log(1/\epsilon))} kk-SIIRVs each given as an explicit sum of kk-IRVs.

Our algorithm builds on the existential upper bound established in the previous subsections. We first construct an ϵ\epsilon-cover for kk-SIIRVs in Case 2 of Theorem 3.1, i.e., kk-SIIRVs whose variance is more than a sufficiently large polynomial in k/ϵk/\epsilon. By Theorem 3.1 each such kk-SIIRV is ϵ\epsilon-close to a random variable of the form cZ+YcZ+Y, where 1≤c≤k−11\leq c\leq k-1 is an integer, ZZ is a discrete Gaussian and YY is a cc-IRV. In Section 3.1 we exploited this structural fact to construct a non-proper cover for kk-SIIRVs in this case. We remark that this non-proper cover may contain “spurious” points, i.e., points not close to a large variance kk-SIIRV. Efficiently constructing a proper cover without spurious points for the high variance case requires careful arguments and is deferred to Appendix D.3.

Our main workhorse here will once again be Lemma 3.6. The cover we construct will be much the same as in Proposition 3.3, but we will now explicitly produce SIIRVs that obtain every possible value of DD. Fortunately, the Taylor series of the log of the Fourier transform is additive in the composite kk-IRVs, and so there exists an appropriate dynamic program to solve this problem.

Given a sequence P1,P2,…,Ph\mathbf{P}_{1},\mathbf{P}_{2},\ldots,\mathbf{P}_{h} of kk-IRVs, we let D(P1,…,Pk)D(\mathbf{P}_{1},\ldots,\mathbf{P}_{k}) be given by the following data for each II:

The first mm elements of the concatenation of the lists of approximate roots of ∏i=1hPi~(z)\prod_{i=1}^{h}\widetilde{\mathbf{P}_{i}}(z) near wIw_{I}.

The list of elements ∑i=1hcj,I′(Pi)\sum_{i=1}^{h}c^{\prime}_{j,I}(\mathbf{P}_{i}) for 0≤j≤m0\leq j\leq m, with the exception that the j=0j=0 term is replaced by −∞-\infty if for any h′<hh^{\prime}<h we have that the real part of ∑i=1h′c0,I′(Pi)\sum_{i=1}^{h^{\prime}}c^{\prime}_{0,I}(\mathbf{P}_{i}) is less than −nk−m−mln⁡k-nk-m{-m\ln k}.

Our algorithm will follow from three important claims:

There are only (k/ϵ)O(klog⁡(1/ϵ))\left(k/\epsilon\right)^{O(k\log(1/\epsilon))} possible values for D(P1,…,Ph)D(\mathbf{P}_{1},\ldots,\mathbf{P}_{h}) for any h≤nh\leq n.

The first statement follows from the fact that the lists of roots in D(P1,…,Ph)D(\mathbf{P}_{1},\ldots,\mathbf{P}_{h}) are obtained by concatenating those in D(P1,…,Ph−1)D(\mathbf{P}_{1},\ldots,\mathbf{P}_{h-1}) with those in D(Ph)D(\mathbf{P}_{h}), and truncating if necessary. And moreover that ∑i=1hcj,I′(Pi)\sum_{i=1}^{h}c^{\prime}_{j,I}(\mathbf{P}_{i}) is obtained by adding cj,I′(Ph)c^{\prime}_{j,I}(\mathbf{P}_{h}) to ∑i=1h−1cj,I′(Pi)\sum_{i=1}^{h-1}c^{\prime}_{j,I}(\mathbf{P}_{i}) (with the term remaining −∞-\infty if it was in D(P1,…,Ph−1)D(\mathbf{P}_{1},\ldots,\mathbf{P}_{h-1})).

The third statement is true for essentially the same reasons as in the proof of Proposition 3.3. Once again, we simply need to show that for each interval II it holds ∣P~(z)−Q(~z)∣≤(ϵ/k)c|\widetilde{\mathbf{P}}(z)-\widetilde{\mathbf{Q}(}z)|\leq(\epsilon/k)^{c} for all z∈Iz\in I and cc a sufficiently large constant. Note that the listed roots are simply δ\delta-approximations of the (first mm) roots of P~\widetilde{\mathbf{P}} and q~\widetilde{q} within distance 1/(3k)1/(3k) of wIw_{I}, and the ∑i=1ncj,I′(Pi)\sum_{i=1}^{n}c^{\prime}_{j,I}(\mathbf{P}_{i}) are within distance nδn\delta of the coefficients of the Taylor expansion of the logarithm of q(z)q(z) about wIw_{I}. If we have mm nearby roots, both P~\widetilde{\mathbf{P}} and Q~\widetilde{\mathbf{Q}} are small for all zz in this range. Otherwise, unless there is a −∞-\infty in D(P)=D(Q)D(\mathbf{P})=D(\mathbf{Q}), they are close by Lemma 3.6. If we do have a −∞-\infty then

for some h′≤hh^{\prime}\leq h. Since the later c0,I(Pi)c_{0,I}(\mathbf{P}_{i}) and c0,I(Qi)c_{0,I}(\mathbf{Q}_{i}) have ℜc0,I(Pi)≤miln⁡k\Re c_{0,I}(\mathbf{P}_{i})\leq m_{i}\ln k and ℜc0,I(Pi)≤miln⁡k\Re c_{0,I}(\mathbf{P}_{i})\leq m_{i}\ln k by Lemma 3.6, this means that ∣q(wI)∣<e−me−nk|q(w_{I})|<e^{-m}e^{-nk}, and as in Proposition 3.3, this implies that both P~\widetilde{\mathbf{P}} and Q~\widetilde{\mathbf{Q}} are sufficiently small. ∎

We can now present the algorithm for producing our cover. The basic idea is to use a dynamic program to come up with one representative collection of P1,…,Ph\mathbf{P}_{1},\ldots,\mathbf{P}_{h} to obtain each achievable value of DD. The algorithm is as follows:

Cover Size Lower Bound

In this section we prove our lower bound on the cover size of kk-SIIRVs. In Section 4.1 we show the desired lower bound for the case of 22-SIIRVs. In Section 4.2 we generalize this construction for general kk-SIIRVs.

We start by providing an explicit lower bound on the cover size of 22-SIIRVs. In particular, we show the following:

We begin with the following useful lemma:

Let P\mathbf{P} and Q\mathbf{Q} be 22-SIIRVs given by parameters pip_{i} and qiq_{i} for 1≤i≤n1\leq i\leq n, for some n≥7n\geq 7. Suppose that for all ii, 1≤i≤n1\leq i\leq n, it holds ∣pi−i/(n+1)∣≤1/4(n+1)\left|p_{i}-i/(n+1)\right|\leq 1/4(n+1) and ∣qi−i/(n+1)∣≤1/4(n+1).\left|q_{i}-i/(n+1)\right|\leq 1/4(n+1). Then,

Let ϵ=∣pi−qi∣e−3n\epsilon=|p_{i}-q_{i}|e^{-3n}. For a distribution P\mathbf{P} supported on [n][n], define rP(p)r_{\mathbf{P}}(p) to be the polynomial

Hence, the roots of the polynomial rPr_{\mathbf{P}} are exactly the parameters pip_{i} of the 22-SIIRV P∈Sn,2\mathbf{P}\in\mathcal{S}_{n,2}. We have the following simple claim:

We have the following sequence of (in)equalities:

where the second line is the triangle inequality and the third line uses the fact that ∣(p−1)ipn−i∣≤1|(p-1)^{i}p^{n-i}|\leq 1 for all i∈[n]i\in[n] and p∈.p\in. ∎

Hence, to prove the lemma, it suffices to show that for some p∈p\in that

In particular, we show this for p=pip=p_{i}. Noting that rP(pi)=0r_{\mathbf{P}}(p_{i})=0, it suffices to show that ∣rQ(pi)∣≥2ϵ|r_{\mathbf{Q}}(p_{i})|\geq 2\epsilon. We now proceed to prove this fact. If j≠ij\neq i we have that,

where we use the elementary inequalities n!≥(n/e)nn!\geq(n/e)^{n} and (n−1i∗−1)≤2n−1.{\binom{n-1}{i^{\ast}-1}}\leq 2^{n-1}. Applying this to the above, we find that

In particular, if a≠b\mathbf{a}\neq\mathbf{b}, then there must be some ii so that ai≠bia_{i}\neq b_{i}. Then, by Lemma 4.2, we have that

As a simple corollary we obtain the desired lower bound:

By Theorem 4.1, for any 0<ϵ≤e−42/30<\epsilon\leq e^{-42}/3, if we fix n0=⌊16ln⁡(1/3ϵ)⌋n_{0}=\lfloor\frac{1}{6}\ln(1/3\epsilon)\rfloor, there is a 3ϵ3\epsilon-packing for Sn0,2\mathcal{S}_{n_{0},2} of size (1/ϵ)Ω(log⁡(1/ϵ))(1/\epsilon)^{\Omega\left(\log(1/\epsilon)\right)}. From the argument of the previous paragraph, any ϵ\epsilon-cover for Sn0,2\mathcal{S}_{n_{0},2} is of size (1/ϵ)Ω(log⁡(1/ϵ))(1/\epsilon)^{\Omega\left(\log(1/\epsilon)\right)}.

2 Cover Size Lower Bound for k𝑘k-SIIRVs

In this section, we prove our cover lower bound for kk-SIIRVs:

For convenience, we will denote γa,i=(1−δ⋅∑jaij).\gamma_{\mathbf{a},i}=\left(1-\delta\cdot\sum_{j}a_{ij}\right). We claim that the set of distributions Pa\mathbf{P}_{\mathbf{a}}, a∈[m]n(k−2)\mathbf{a}\in[m]^{n(k-2)}, is an ϵ\epsilon-packing. To prove this statement we proceed similarly to the proof of Theorem 4.1. For a distribution P\mathbf{P}, we will consider the expectations

for i∈{1,…,n}i\in\{1,\ldots,n\} and j∈{1,…,k−2}j\in\{1,\ldots,k-2\}. Similarly to Claim 4.3, we have the following:

We have the following sequence of (in)equalities:

where the second line is the triangle inequality and the third line uses the fact that ∣pin−l(pi−1)l∣≤1|p_{i}^{n-l}(p_{i}-1)^{l}|\leq 1 for all l∈[n]l\in[n] and i∈{1,…,n}i\in\{1,\ldots,n\}. ∎

By the above claim, to complete the proof, it suffices to show that ∣rPa,ij−rPb,ij∣≥2ϵ|r_{\mathbf{P}_{\mathbf{a}},ij}-r_{\mathbf{P}_{\mathbf{b}},ij}|\geq 2\epsilon whenever aij≠bija_{ij}\neq b_{ij}. To prove this statement, we exploit the fact that these kk-SIIRVs are close to a multiple of P0\mathbf{P}_{0}, by ignoring terms in the expectations that are O(δ2)O(\delta^{2}).

Let Y=∑i=1nYiY=\sum_{i=1}^{n}Y_{i} with Y∼PaY\sim\mathbf{P}_{\mathbf{a}} for a given a∈[m]n(k−2)\mathbf{a}\in[m]^{n(k-2)}. We define several events depending on which coordinates YiY_{i} are equal to or k−1k-1, and consider their contribution to the expectation rPa,ijr_{\mathbf{P}_{\mathbf{a}},ij} separately.

Firstly, let A≥2A_{\geq 2} be the event that more than one YiY_{i} is not or k−1k-1 . The probability that any fixed YiY_{i} is not or k−1k-1 is small, namely

The contribution of A≥2A_{\geq 2} to rPa,ijr_{\mathbf{P}_{\mathbf{a}},ij} is rPa,ij,A≥2:=∑l=0npin−l(pi−1)lPrY∼Pa[Y=l(k−1)+j∩A≥2]  ,r_{\mathbf{P}_{\mathbf{a}},ij,A_{\geq 2}}:=\sum_{l=0}^{n}p_{i}^{n-l}(p_{i}-1)^{l}\text{Pr}_{Y\sim\mathbf{P}_{\mathbf{a}}}\left[Y=l(k-1)+j\cap A_{\geq 2}\right]\;, and therefore

since ∣pin−l(pi−1)l∣≤1|p_{i}^{n-l}(p_{i}-1)^{l}|\leq 1.

Secondly, let A0A_{0} be the event that all YiY_{i}’s are or k−1k-1. If A0A_{0} occurs then YY is a multiple of k−1k-1. Thus, for l∈[n]l\in[n] and j∈{1,…,k−2}j\in\{1,\ldots,k-2\}, we have PrY∼Pa[Y=l(k−1)+j∩A0]=0\text{Pr}_{Y\sim\mathbf{P}_{\mathbf{a}}}\left[Y=l(k-1)+j\cap A_{0}\right]=0. The contribution of A0A_{0} to rPa,ijr_{\mathbf{P}_{\mathbf{a}},ij} is

Then, the contribution of BiB_{i} to rPa,gjr_{\mathbf{P}_{\mathbf{a}},gj} is

where rP−ir_{\mathbf{P}_{-i}} above is as defined in the previous section, and when g≠ig\neq i, the second product includes the term pg−pg=0p_{g}-p_{g}=0, so rPa,gj,Bi=0r_{\mathbf{P}_{\mathbf{a}},gj,B_{i}}=0. Summing these contributions to the expectation rPa,ijr_{\mathbf{P}_{\mathbf{a}},ij} gives:

Now consider a\mathbf{a} and b\mathbf{b} which for some i∈{1,2,...,n}i\in\{1,2,...,n\} and j∈{1,2,...,k−2}j\in\{1,2,...,k-2\} have aij≠bija_{ij}\neq b_{ij}. We have that ∏h≠i∣ph−pi∣≥e−3n\prod_{h\neq i}|p_{h}-p_{i}|\geq e^{-3n} by Equation (8), and thus,

∣aij−bij∣≥1|a_{ij}-b_{ij}|\geq 1, and ∣rPa,ij,A≥2∣≤12(n(k−2)mδ)2|r_{\mathbf{P}_{\mathbf{a}},ij,A_{\geq 2}}|\leq\frac{1}{2}(n(k-2)m\delta)^{2}.

We obtain the following sequence of inequalities:

Recall that by assumption ϵ≤e−12(2k)−9\epsilon\leq e^{-12}(2k)^{-9}. We set n=⌊112log⁡(1/ϵ)⌋n=\lfloor\frac{1}{12}\log(1/\epsilon)\rfloor, δ=3ϵ3/4\delta=3\epsilon^{3/4}, and m=⌊ϵ−1/42n2(k−2)2⌋m=\lfloor\frac{\epsilon^{-1/4}}{2n^{2}(k-2)^{2}}\rfloor. Then, e−3nδ≥3ϵe^{-3n}\delta\geq 3\epsilon and 3(n(k−2)mδ)2≤ϵ3(n(k-2)m\delta)^{2}\leq\epsilon. So, we have that ∣rPa,ij−rPb,ij∣≥2ϵ|r_{\mathbf{P}_{\mathbf{a}},ij}-r_{\mathbf{P}_{\mathbf{b}},ij}|\geq 2\epsilon as required. Also, γa≥1−ϵ≥0\gamma_{\mathbf{a}}\geq 1-\sqrt{\epsilon}\geq 0, so the kk-IRVs are indeed well-defined.

Therefore, we have exhibited a set of mn(k−2)m^{n(k-2)} kk-SIIRVs that have pairwise total variation distance at least ϵ\epsilon. The proof follows by observing that mn(k−2)=(1/ϵ)Ω(klog⁡1/ϵ)m^{n(k-2)}=(1/\epsilon)^{\Omega(k\log 1/\epsilon)}. ∎

Sample Complexity Lower Bound

In this section, we prove our sample complexity lower bounds. We start with the case k=2,k=2, and then generalize our construction for an arbitrary value of k.k. As mentioned in the introduction, our sample lower bounds make crucial use of a geometric characterization of the space of kk-SIIRVs. In Section 5.1, we describe our geometric characterization for 22-SIIRVs, and in Section 5.2 we use it to prove our 22-SIIRV sample lower bound. Similarly, in Section 5.3, we describe our geometric characterization for kk-SIIRVs, and in Section 5.4 we use it to prove our kk-SIIRV sample lower bound.

In this subsection, we prove a novel structural result for the space of 22-SIIRVs (Lemma 5.1). This allows us to obtain a simple non-constructive lower bound on the cover size of 22-SIIRVs under the Kolmogorov distance metric. More importantly, this lemma is crucial for our tight sample complexity lower bound of the following subsection.

Before we state our lemma, we provide some basic intuition. The set of all distributions supported on [n][n] is nn-dimensional (viewed as a metric space). Note that each P∈Sn,2\mathbf{P}\in{\cal S}_{n,2} is defined by nn parameters. It turns out that Sn,2{\cal S}_{n,2} is also nn-dimensional in a precise sense. This intuition is formalized in the following lemma:

We consider the space of cumulative distribution functions (CDF’s) of all distributions of support [n][n]. Let TnT_{n} be the set of sequences 0≤x1≤x2≤…≤xn≤10\leq x_{1}\leq x_{2}\leq\ldots\leq x_{n}\leq 1. Consider the map Pn:Tn→Tn\mathcal{P}_{n}:T_{n}\to T_{n} defined as follows: For p=(p1,…,pn)∈Tn\mathbf{p}=(p_{1},\dots,p_{n})\in T_{n} (i.e., with ordered parameters 0≤p1≤…≤pn≤10\leq p_{1}\leq\ldots\leq p_{n}\leq 1), let P\mathbf{P} be the corresponding 22-SIIRV in Sn,2\mathcal{S}_{n,2}. For i∈{1,…,n}i\in\{1,\ldots,n\}, let (Pn(p))i=P(<i)(\mathcal{P}_{n}(\mathbf{p}))_{i}=\mathbf{P}(<i). Namely, Pn\mathcal{P}_{n} maps a sequence of probabilities to the sequence of probabilities defining the CDF of the corresponding 22-SIIRV.

The basic idea of the proof is that the mapping Pn\mathcal{P}_{n} is invertible in a neighborhood of a point p\mathbf{p} with distinct coordinates. This allows us to uniquely obtain the distinct parameters of a 22-SIIRV P∈Sn,2\mathbf{P}\in{\cal S}_{n,2} from its CDF. We will make essential use of the inverse function theorem for Pn\mathcal{P}_{n}, which we now recall:

For a 22-SIIRV P∈Sn,2\mathbf{P}\in{\cal S}_{n,2} with parameters p\mathbf{p}, we have

Therefore, for 1≤i,j≤n1\leq i,j\leq n, we can write

As a simple application of our structural lemma, we obtain a non-constructive lower bound on the cover size under the Kolmogorov distance metric:

Note that by an argument identical to that of Corollary 4.4 it suffices to prove a packing lower bound of (1/ϵ)Ω(log⁡(1/ϵ))(1/\epsilon)^{\Omega(\log(1/\epsilon))} for n=Θ(log⁡(1/ϵ))n=\Theta(\log(1/\epsilon)).

We claim that every x∈S\mathbf{x}\in S is the CDF of a 22-SIIRV Q∈Sn,2\mathbf{Q}\in\mathcal{S}_{n,2} . By Lemma 5.1, this follows immediately if x∈Tn\mathbf{x}\in T_{n}, i.e., if x\mathbf{x} is the CDF of a distribution. So, it suffices to show that S⊆TnS\subseteq T_{n}. Suppose for the sake of contradiction that there is a point y∈S∖Tn\mathbf{y}\in S\setminus T_{n}. Then, there is a point x∈S\mathbf{x}\in S such that x\mathbf{x} lies on the boundary of TnT_{n}. For such a point x\mathbf{x}, one of the inequalities 0≤x1≤x2≤…≤xn≤10\leq x_{1}\leq x_{2}\leq\ldots\leq x_{n}\leq 1 is tight. Thus, x\mathbf{x} is the CDF of a distribution Q\mathbf{Q} which has Q(i)=0\mathbf{Q}(i)=0 for some ii. Since x∈S∩Tn\mathbf{x}\in S\cap T_{n}, Q\mathbf{Q} is a 22-SIIRV with parameters given by Lemma 5.1. In particular Q\mathbf{Q} does not have any parameters equal to or 11. Thus, we have Q(i)>0\mathbf{Q}(i)>0 for all i∈[n]i\in[n], a contradiction.

Therefore, any ϵ\epsilon-cover of Sn,2\mathcal{S}_{n,2} in Kolmogorov distance induces an ϵ\epsilon-cover of the same size in L∞L_{\infty} distance of the CDFs of distributions in Sn,2\mathcal{S}_{n,2}. If ss is the size of such a cover, then we have ss nn-cubes of side length ϵ\epsilon whose union contains SS. Recall that SS is an nn-cube of side length ϵ\sqrt{\epsilon}. The volume of each of these ss nn-cubes is (2ϵ)n(2\epsilon)^{n} and the volume of SS is (2ϵ)n(2\sqrt{\epsilon})^{n}. The volume of the union of ss nn-cubes is at most s⋅(2ϵ)ns\cdot(2\epsilon)^{n} and hence s⋅(2ϵ)n≥(2ϵ)ns\cdot(2\epsilon)^{n}\geq(2\sqrt{\epsilon})^{n} or s=(1/ϵ)Ω(n)s=(1/\epsilon)^{\Omega(n)}, which competes the proof. ∎

2 Sample complexity lower bound for 222-SIIRVs

In this subsection, we prove our tight sample lower bound for learning 22-SIIRVs. Our proof uses a combination of information-theoretic arguments and the structural lemma of the previous subsection. In particular, we show:

Our main information-theoretic tool to prove our lower bound is Assouad’s Lemma [Ass83]. We recall the statement of the lemma (see, e.g., [DG85]), tailored to discrete distributions below:

Then, for any any algorithm A\mathcal{A} that draws ss samples from an unknown P∈Pb\mathbf{P}\in\mathbf{P}_{\mathbf{b}} and outputs a hypothesis distribution H\mathbf{H}, there is some b∈{−1,1}r\mathbf{b}\in\{-1,1\}^{r} such that if the target distribution P\mathbf{P} is Pb\mathbf{P}_{\mathbf{b}},

Recall that 22-SIIRVs are discrete log-concave distributions. We will use the following basic properties of log-concave distributions:

There exists a universal constant c>0c>0 such that the following holds: For any log-concave distribution P\mathbf{P} supported on the integers and standard deviation σ\sigma, there exist at least Ω(σ)\Omega(\sigma) consecutive integers with probability mass under P\mathbf{P} at least c⋅11+σc\cdot\frac{1}{1+\sigma}.

Note that if σ≤1\sigma\leq 1, taking the mode trivially satisfies this property.

Similarly, defining σ−\sigma_{-} and t−t_{-}, we find that σ2=Θ(σ+2+σ−2)=Θ(P(0)(t+3+t−3)).\sigma^{2}=\Theta(\sigma_{+}^{2}+\sigma_{-}^{2})=\Theta(\mathbf{P}(0)(t_{+}^{3}+t_{-}^{3})). Thus, max⁡(t+,t−)3P(0)=Θ(σ2)\max(t_{+},t_{-})^{3}\mathbf{P}(0)=\Theta(\sigma^{2}) and max⁡(t+,t−)P(0)=Ω(1)\max(t_{+},t_{-})\mathbf{P}(0)=\Omega(1). Without loss of generality this maximum is t+t_{+}. Note that for all 0≤x≤t+0\leq x\leq t_{+} that P(x)=Θ(P(t+))\mathbf{P}(x)=\Theta(\mathbf{P}(t_{+})). This implies that t+P(0)=O(1)t_{+}\mathbf{P}(0)=O(1), and thus, by the above is Θ(1)\Theta(1). Therefore, it follows by the variance bounds that t+2=Ω(σ2)t_{+}^{2}=\Omega(\sigma^{2}), so t+=Θ(σ).t_{+}=\Theta(\sigma). Hence, x=0,1,…,t+x=0,1,\ldots,t_{+} are Ω(σ)\Omega(\sigma) terms on which the value of P\mathbf{P} is Ω(1/t+)=Ω(1/σ).\Omega(1/t_{+})=\Omega(1/\sigma). This completes the proof. ∎

Ideally, we would like to use the set of 22-SIIRVs whose parameters are explicitly described in Theorem 4.1 in our application of Assouad’s lemma. Unfortunately, however, this particular set is not in a form that allows a direct application of the theorem. The difficulty lies in the fact that it is not clear how to isolate the changes between distributions in disjoint intervals using explicit parameters.

We therefore proceed with an indirect approach making essential use of Lemma 5.1(ii). We start from the 22-SIIRV P0\mathbf{P}_{0} in the statement of the lemma and we perturb its pdf appropriately to construct our “hypercube” distributions Pb.\mathbf{P}_{\mathbf{b}}. The lemma guarantees that, if the perturbation is small enough, all these distributions are indeed 22-SIIRVs.

Observe that the variance of P0\mathbf{P}_{0} is Ω(n)\Omega(n) since Ω(n)\Omega(n) parameters pip_{i} lie in [1/4,3/4].[1/4,3/4]. By Lemma 5.7, there exist r=Ω(n)r=\Omega(\sqrt{n}) consecutive integers, an integer mm, 0≤m≤n0\leq m\leq n, and a real value tt with t≥c⋅rt\geq c\cdot r, such that for all ii, with m≤i≤m+2rm\leq i\leq m+2r, we have

For nn sufficiently large, we can assume that 2−9n≤c2^{-9n}\leq c and therefore 1t≥2−9nr.\frac{1}{t}\geq\frac{2^{-9n}}{r}.

We are now ready to define our “hypercube” of 22-SIIRVs. For b∈{−1,1}r\mathbf{b}\in\{-1,1\}^{r}, consider the distribution Pb\mathbf{P}_{\mathbf{b}} with

Note that all these distributions are 22-SIIRVs as follows from Lemma 5.1(ii) since

For 0≤i≤r−10\leq i\leq r-1, the sets Ai+1={m+2i,m+2i+1}A_{i+1}=\{m+2i,m+2i+1\} define the partition of the domain. We can now apply Assouad’s lemma to this instance.

For b∈{−1,1}r\mathbf{b}\in\{-1,1\}^{r} we can write

where the first inequality uses the fact that

Therefore, the parameters in Assouad’s Lemma are

from which we obtain that that there is a Pb\mathbf{P}_{\mathbf{b}} with

Hence, for ϵ=2−9n−2\epsilon=2^{-9n-2}, if the number of samples satisfies

3 A Useful Structural Result for k𝑘k-SIIRVs

In this subsection, we prove the analogous structural result to Lemma 5.1 for kk-SIIRVs.

The basic idea of the proof will be topological. We note that the dimensionality of the parameter space of nn-variate kk-SIIRVs is the same as the dimensionality of the space of random variables of appropriate support size. Our result will follow from the following lemma:

Assuming nn is sufficiently large, the roots of Xi~(z)=0\widetilde{X_{i}}(z)=0 satisfy

Specifically we claim that when n≥200n\geq 200, there is a root within distance 33/(k−1)n.33/(k-1)n.

If m∣x/b∣≤1/3,m|x/b|\leq 1/3, then ∣(b+x)m−bm−(m−1)xbm−1∣≤(m−1)∣xbm−1∣/2.|(b+x)^{m}-b^{m}-(m-1)xb^{m-1}|\leq(m-1)|xb^{m-1}|/2.

By the binomial theorem (b+x)m=∑j=0m(mj)xjbm−j.(b+x)^{m}=\sum_{j=0}^{m}{m\choose j}x^{j}b^{m-j}. Note that the ratio of the absolute values of the xj+1x^{j+1} and xjx^{j} terms is

When ∣w∣=33/(k−1)n|w|=33/(k-1)n, we have (k−1)∣(w/aI)∣≤66/n≤1/3,(k-1)|(w/a_{I})|\leq 66/n\leq 1/3, and therefore

Since ∣(1/3+(n−I)/(3n))(k−1)∣waIk−1∣/2≥33/12n,|(1/3+(n-I)/(3n))(k-1)|wa_{I}^{k-1}|/2\geq 33/12n, and so ∣fI(w+aI)∣≥33/12n.|f_{I}(w+a_{I})|\geq 33/12n.

By Claim 5.11 on (∣a1∣+33/(k−1)n)j(|a_{1}|+33/(k-1)n)^{j}, we have that

Our lemma will follow easily from the following claim:

Therefore, the largest coefficient of XI~(z)−YI~(z)\widetilde{X_{I}}(z)-\widetilde{Y_{I}}(z) is at most

Let B1B_{1} be the set of parameters of kk-SIIRVs within ϵ2/3\epsilon^{2/3} in L∞L^{\infty} of those of X.X. Let B2B_{2} be the set of distributions on [n(k−1)][n(k-1)] within ϵ\epsilon of XX. Let V=F(B1)∩B2V=F(B_{1})\cap B_{2}. On the one hand since B1B_{1} is compact, this must be a closed subset of B2.B_{2}. On the other hand, Lemma 5.9 implies that V=F(Int(B1))∩B2,V=F(\textrm{Int}(B_{1}))\cap B_{2}, which is an open subset of B2,B_{2}, since FF is an open map. Therefore, VV is both an open and closed subset of B2.B_{2}. Since B2B_{2} is connected, this implies that V=B2.V=B_{2}. Thus, every element of B2B_{2} is in the image of F,F, and is thus a kk-SIIRV, proving Proposition 5.8. ∎

4 Sample complexity lower bound for k𝑘k-SIIRVs

In this subsection, we prove our general sample lower bound against kk-SIIRVs:

In addition to the structural result of the previous subsection, we also need to prove an analogue of Lemma 5.7, which does not immediately apply, as kk-SIIRVs need not be logconcave. In fact, we remark that Lemma 5.7 does not apply to the kk-SIIRVs used in the lower bound construction of Section 4.2. So, we need to use a slightly different construction.

For the kk-SIIRV P\mathbf{P} defined in Proposition 5.8, there exist Ω((k−1)n)\Omega((k-1)\sqrt{n}) consecutive integers with probability mass under P\mathbf{P} at least Ω(1(k−1)n).\Omega(\frac{1}{(k-1)\sqrt{n}}).

We wish to reduce this claim to Lemma 5.7, which gives that there are universal constants c>0c>0 such that for any PBD Q\mathbf{Q} with standard deviation σ,\sigma, there are at least Ω(σ)\Omega(\sigma) consecutive integers with probability mass at least c⋅11+σ.c\cdot\frac{1}{1+\sigma}.

Recall that P\mathbf{P} is the kk-SIIRV given by X∼PX\sim\mathbf{P} such that X=∑i=1nXi  ,X=\sum_{i=1}^{n}X_{i}\;, where Xi(j)=pi,jX_{i}(j)=p_{i,j} and for 1≤i≤n,1\leq i\leq n, 1≤j≤k−2,1\leq j\leq k-2, we have that pi,j=1/(3(k−2)n),p_{i,j}=1/(3(k-2)n), pi,0=1/3+(i−1)/(3n),p_{i,0}=1/3+(i-1)/(3n), pi,k−1(k−1)=1/3+(n−i)/(3n).p_{i,k-1}(k-1)=1/3+(n-i)/(3n). So, we have that Pr⁡[Xi=0∨Xi=k−1]=1−1/3n\Pr[X_{i}=0\vee X_{i}=k-1]=1-1/3n for all i.i.

Let A0A_{0} be the event that all XiX_{i} are equal to or k−1.k-1. Then, Pr⁡[A0]=(1−1/3n)n=Ω(1).\Pr[A_{0}]=(1-1/3n)^{n}=\Omega(1). Let Y=X/(k−1)Y=X/(k-1) and Yi=Xi/(k−1).Y_{i}=X_{i}/(k-1). Conditioned on the event A0A_{0}, each YiY_{i} is a Bernoulli random variable and YY is a PBD Q.\mathbf{Q}. Note that Var[Y∣A0]≥n(1/3⋅2/3)=2n/9=Ω(n).\mathop{\textnormal{Var}}\nolimits[Y\mid A_{0}]\geq n(1/3\cdot 2/3)=2n/9=\Omega(n). So, by Lemma 5.7, we have that there are integers a,b,a,b, with a−b=Ω(n)a-b=\Omega(\sqrt{n}) such that Q(h)≥3c2(1+n),\mathbf{Q}(h)\geq\frac{3c}{\sqrt{2}(1+\sqrt{n})}, for each integer a≤i≤b.a\leq i\leq b. Since the probability of A0A_{0} is Ω(1),\Omega(1), it follows that any integer h∈[(k−1)a,(k−1)b]h\in[(k-1)a,(k-1)b] with h≡0(modk−1)h\equiv 0\pmod{k-1} has Pr⁡[X=h]≥Ω(1n)≥Ω(1(k−1)n).\Pr[X=h]\geq\Omega(\frac{1}{\sqrt{n}})\geq\Omega(\frac{1}{(k-1)\sqrt{n}}).

For a given 1≤i≤n1\leq i\leq n, let BiB_{i} be the event that only XiX_{i} takes a value between 11 and k−2.k-2. Then, the conditional distribution of Y−i=∑j≠iYiY_{-i}=\sum_{j\neq i}Y_{i} under either A0A_{0} or BiB_{i} is a PBD Q−i,\mathbf{Q}_{-i}, which is the same in both cases. Now, Y=Y−i+YiY=Y_{-i}+Y_{i} and conditional on A0,A_{0}, YiY_{i} is a Bernoulli for any integer h,h, so either Pr[Y−i=h∣A0]≥Pr[Y=h∣A0]/2,\text{Pr}[Y_{-i}=h\mid A_{0}]\geq\text{Pr}[Y=h|A_{0}]/2, or Pr[Y−i=h−1∣A0]≥Pr[Y=h∣A0]/2.\text{Pr}[Y_{-i}=h-1\mid A_{0}]\geq\text{Pr}[Y=h\mid A_{0}]/2. In particular, Q(a)≥Ω(1/n)\mathbf{Q}(a)\geq\Omega(1/\sqrt{n}) and Q(b)≥Ω(1/n),\mathbf{Q}(b)\geq\Omega(1/\sqrt{n}), so it follows that either Q−i(a)≥Ω(1/n)\mathbf{Q}_{-i}(a)\geq\Omega(1/\sqrt{n}) or Q−i(a−1)≥Ω(1/n)\mathbf{Q}_{-i}(a-1)\geq\Omega(1/\sqrt{n}) and either Q−i(b)≥Ω(1/n)\mathbf{Q}_{-i}(b)\geq\Omega(1/\sqrt{n}) or Q−i(b−1)≥Ω(1/n).\mathbf{Q}_{-i}(b-1)\geq\Omega(1/\sqrt{n}). However, as a PBD, Q−j\mathbf{Q}_{-j} is unimodal, and it follows that for every integer a≤h≤b−1a\leq h\leq b-1, Q−i(h)≥Ω(1/n).\mathbf{Q}_{-i}(h)\geq\Omega(1/\sqrt{n}). Now, consider an integer (k−1)a<h<(k−1)b(k-1)a<h<(k-1)b with h≢0(modk−1)h\not\equiv 0\pmod{k-1}. We can write h=q(k−1)+rh=q(k-1)+r for integers a≤q≤b−1a\leq q\leq b-1 and 1≤r≤k−11\leq r\leq k-1. Note that Pr[Xi=r∣Bi]=1/(k−2),\text{Pr}[X_{i}=r|B_{i}]=1/(k-2), since we are conditioning on it not taking the values or k−1.k-1. Then Pr[X=h∣Bi]=Pr[Y−i=q∣Bi]Pr[Xi=r∣Bi]=Ω(1/n)⋅1/(k−2)=Ω(1/((k−1)n).\text{Pr}[X=h\mid B_{i}]=\text{Pr}[Y_{-i}=q\mid B_{i}]\text{Pr}[X_{i}=r\mid B_{i}]=\Omega(1/\sqrt{n})\cdot 1/(k-2)=\Omega(1/((k-1)\sqrt{n}).

For each 1≤i≤n1\leq i\leq n, Pr[Bi]=(1−1/3n)n−1⋅1/3n=Ω(1/n)\text{Pr}[B_{i}]=(1-1/3n)^{n-1}\cdot 1/3n=\Omega(1/n). So, consider any integer (k−1)a≤h≤(k−1)b.(k-1)a\leq h\leq(k-1)b. If h≢0(modk−1),h\not\equiv 0\pmod{k-1}, Pr[X=h]≥∑i=1nPr⁡[X=h∧Bi]=∑i=1nPr⁡[X=h∣Bi]Pr[Ai]=∑i=1nΩ(1/((k−1)n)⋅Ω(1/n)=Ω(1/((k−1)n)\text{Pr}[X=h]\geq\sum_{i=1}^{n}\Pr[X=h\wedge B_{i}]=\sum_{i=1}^{n}\Pr[X=h|B_{i}]\text{Pr}[A_{i}]=\sum_{i=1}^{n}\Omega(1/((k-1)\sqrt{n})\cdot\Omega(1/n)=\Omega(1/((k-1)\sqrt{n}). When h≡0(modk−1)h\equiv 0\pmod{k-1}, we showed earlier using A0A_{0} that Ω(1(k−1)n))\Omega(\frac{1}{(k-1)\sqrt{n})}). This holds for (k−1)(a−b)≥(k−1)(Ω(n)−1)=Ω((k−1)n)(k-1)(a-b)\geq(k-1)(\Omega(\sqrt{n})-1)=\Omega((k-1)\sqrt{n}) consecutive integers. ∎

The proof of Theorem 5.14 using Assouad’s Lemma is now almost identical to that of Theorem 5.5.

By Lemma 5.15, there exists some c>0c>0 and r=Ω((k−1)n)r=\Omega((k-1)\sqrt{n}) consecutive integers, an integer mm, 0≤m≤n0\leq m\leq n, and a real value tt with t≥c⋅rt\geq c\cdot r, such that for all ii, with m≤i≤m+2rm\leq i\leq m+2r, we have

For nn sufficiently large, we can assume that 2−Cn≤c2^{-Cn}\leq c and therefore 1t≥2−Cnr.\frac{1}{t}\geq\frac{2^{-Cn}}{r}.

We are now ready to define our “hypercube” of kk-SIIRVs. For b∈{−1,1}r\mathbf{b}\in\{-1,1\}^{r}, consider the distribution Pb\mathbf{P}_{\mathbf{b}} with

Note that Proposition 5.8 yields that all these distributions are kk-SIIRVs since

For 0≤i≤r−10\leq i\leq r-1, the sets Ai+1={m+2i,m+2i+1}A_{i+1}=\{m+2i,m+2i+1\} define the partition of the domain. We can now apply Assouad’s lemma to this instance.

For b∈{−1,1}r\mathbf{b}\in\{-1,1\}^{r} we can write

where the first inequality uses the fact that

Therefore, the parameters in Assouad’s Lemma are

from which we obtain that that there is a Pb\mathbf{P}_{\mathbf{b}} with

Hence, for ϵ=2−Cn−2\epsilon=2^{-Cn-2}, if the number of samples satisfies

References

Appendix

Appendix A Basic Facts from Probability

We begin by recalling some basic facts concerning total variation distance, starting with the “data processing inequality for total variation distance”:

Next we recall the subadditivity of total variation distance for independent random variables:

We will use the following standard result which bounds the variation distance between two normal distributions in terms of their means and variances:

Appendix B Lower Bounds on Matching Moments

We start by giving an explicit example of two PBDs over k+1k+1 variables that agree exactly on the first kk moments and have total variation distance 2−Ω(k).2^{-\Omega(k)}.

Let X=∑i=1k+1XiX=\sum_{i=1}^{k+1}X_{i}, where XiX_{i} are independent Bernoulli variables, and suppose that X∼PX\sim\mathbf{P}. We note that, for m≤km\leq k, the random variable XmX^{m} can be expressed as a degree mm polynomial in the XiX_{i}’s. Therefore, the mm-th moment of P\mathbf{P} is a degree mm symmetric polynomial of the pip_{i}’s. Similarly, the mm-th moment of Q\mathbf{Q} must be the same symmetric polynomial of the qiq_{i}. Therefore, to show that the first kk moments of P\mathbf{P} and Q\mathbf{Q} agree, it suffices to show that the first kk elementary symmetric polynomials in the pip_{i} have the same values as the corresponding polynomials of the qiq_{i}’s.

Note that the pip_{i} are the roots of Tk+1(2x−1)−1T_{k+1}(2x-1)-1 and that the qiq_{i} are the roots of Tk+1(2x−1)+1T_{k+1}(2x-1)+1, where Tk+1T_{k+1} is the (k+1)(k+1)-st Chebychev polynomial. Therefore, for m≤km\leq k, the mm-th elementary symmetric polynomial in the pip_{i} is [xk+1−m](−1)m2−2k−1Tk+1(2x+1)[x^{k+1-m}](-1)^{m}2^{-2k-1}T_{k+1}(2x+1) and the same holds for the qiq_{i}. Thus, the first kk moments of P\mathbf{P} and Q\mathbf{Q} agree. To bound the total variation distance from below we observe that

Therefore, the probability that P=k+1\mathbf{P}=k+1 and the probability that Q=k+1\mathbf{Q}=k+1 differ by 4−k4^{-k}. This implies the appropriate bound in their variational distance and completes the proof. ∎

We also show that matching moments does not suffice for the case of kk-SIIRVs, even for k=3k=3:

For nn an even integer, there exist P,Q∈Sn/2,3\mathbf{P},\mathbf{Q}\in\mathcal{S}_{n/2,3} with disjoint supports such that their first n−1n-1 moments agree.

We first show that there exist such P\mathbf{P} and Q\mathbf{Q} with P\mathbf{P} supported on even numbers and Q\mathbf{Q} supported on odd numbers, so that

We begin by showing that P∈Sn/2,3\mathbf{P}\in\mathcal{S}_{n/2,3}. Since ∑j2−n+1(n2j)=1\sum_{j}2^{-n+1}\binom{n}{2j}=1, we will show that the polynomial P~(z)=∑j2−n+1(n2j)z2j\widetilde{\mathbf{P}}(z)=\sum_{j}2^{-n+1}\binom{n}{2j}z^{2j} factors as a product of n/2n/2 quadratic polynomials with non-negative coefficients. To prove this, we note that it suffices to show that all roots of P~\widetilde{\mathbf{P}} are pure imaginary; then, the natural factorization into quadratics using complex conjugate pairs will complete the argument. For this, we observe that P~(z)=2−n((1+z)n+(1−z)n)\widetilde{\mathbf{P}}(z)=2^{-n}((1+z)^{n}+(1-z)^{n}). Therefore, zz is a root of P~\widetilde{\mathbf{P}} only when ∣1+z∣=∣1−z∣|1+z|=|1-z|, or when zz is equidistant from 11 and −1-1, which happens only when the real part of zz is , i.e., when zz is pure imaginary.

Similarly, we show that Q∈Sn/2,3\mathbf{Q}\in\mathcal{S}_{n/2,3}. Once again ∑j2−n+1(n2j+1)=1\sum_{j}2^{-n+1}\binom{n}{2j+1}=1, and so we merely need to show that Q~(z)=∑j2−n+1(n2j+1)z2j+1\widetilde{\mathbf{Q}}(z)=\sum_{j}2^{-n+1}\binom{n}{2j+1}z^{2j+1} factors into quadratics with non-negative coefficients. Since Q~(z)=2−n((1+z)n−(1−z)n)\widetilde{\mathbf{Q}}(z)=2^{-n}((1+z)^{n}-(1-z)^{n}), it also has only purely imaginary roots.

It remains to show that P\mathbf{P} and Q\mathbf{Q} have identical first n−1n-1 moments. For this, it suffices to show that P~(z)(k)(1)=Q~(z)(k)(1)\widetilde{\mathbf{P}}(z)^{(k)}(1)=\widetilde{\mathbf{Q}}(z)^{(k)}(1) for all 0≤k<n0\leq k<n. Indeed, we have that

Appendix C Omitted Proofs from Section 2

We start by guessing c.c. For each guess for c,c, we learn the appropriate YY and Z.Z. Finally, we run a tournament over the possible values of c.c. Fix 1≤c≤k.1\leq c\leq k. To learn YY, we first draw Θ(c/ϵ2)\Theta(c/\epsilon^{2}) samples and let X′X^{\prime} be the resulting empirical distribution. Then, we take Y=X′(modc).Y=X^{\prime}\pmod{c}. To learn Z,Z, we take Θ(1/ϵ2)\Theta(1/\epsilon^{2}) samples from XX and calculate the empirical mean and variance, μ~\widetilde{\mu} and σ~2.\widetilde{\sigma}^{2}. Then, we let ZZ be the distribution obtained by sampling from N(μ~/c,σ~2/c2)\mathcal{N}(\widetilde{\mu}/c,\widetilde{\sigma}^{2}/c^{2}) and rounding the sample to the nearest integer.

C.2 A Bound on the 1/2121/2-norm of k𝑘k-SIIRVs

The 1/21/2-norm of a kk-SIIRV P\mathbf{P} with variance σ2\sigma^{2} is O(σ+k).O(\sigma+k).

Recall that ∥P∥1/2=(∑iP(i))2.\|\mathbf{P}\|_{1/2}=(\sum_{i}\sqrt{\mathbf{P}(i)})^{2}. Let μ\mu be the mean of X∼P.X\sim\mathbf{P}. By Cauchy-Schwartz, for any S⊆[kn]S\subseteq[kn], we have ∑i∈SP(i)≤P(S)⋅∣S∣\sum_{i\in S}\sqrt{\mathbf{P}(i)}\leq\sqrt{\mathbf{P}(S)\cdot|S|}. By Bernstein’s inequality, for any ϵ>0\epsilon>0, it holds Pr⁡[∣X−μ∣>(k+σ)log⁡(1/ϵ)]≤ϵ\Pr[|X-\mu|>(k+\sigma)\log(1/\epsilon)]\leq\epsilon. Therefore, we can write

Appendix D Omitted Proofs from Section 3

For a kk-IRV AA let m(A)m(A) be an index ii so that Pr[A=i]\text{Pr}[A=i] is maximized. Let d(A)=Pr[A≠m(A)]d(A)=\text{Pr}[A\neq m(A)] be the probability AA assigns to values in [k]∖{i}[k]\setminus\{i\}. Suppose that d(A)≤1/2.d(A)\leq 1/2. Then we have that

where A′A^{\prime} is an independent copy of AA. The leftmost inequality follows from our assumption that d(A)≤1/2.d(A)\leq 1/2. The proof of the lemma will make repeated applications of the following claim:

Let m(A)=m(B)=im(A)=m(B)=i. Let d(A)=δ1,d(B)=δ2d(A)=\delta_{1},d(B)=\delta_{2}. Let A′A^{\prime} be the random variable AA conditioned on AA not equaling ii, and B′B^{\prime} be the random variable BB conditioned on it not equaling ii. Note that AA is a mixture of ii and A′A^{\prime} and BB a mixture of ii and B′B^{\prime}. Furthermore A+BA+B equals 2i2i with probability (1−δ1)(1−δ2)(1-\delta_{1})(1-\delta_{2}), i+A′i+A^{\prime} with probability δ1(1−δ2)\delta_{1}(1-\delta_{2}), i+B′i+B^{\prime} with probability (1−δ1)δ2(1-\delta_{1})\delta_{2} and A′+B′A^{\prime}+B^{\prime} with probability δ1δ2\delta_{1}\delta_{2}.

For a random variable X∼PX\sim\mathbf{P}, we have that X=∑i=1nAiX=\sum_{i=1}^{n}A_{i} where the AiA_{i}’s are independent kk-IRV’s. We iteratively modify P\mathbf{P} as follows: If two of the non-constant component kk-IRV’s of P\mathbf{P} are AA and BB, with m(A)=m(B)m(A)=m(B) and d(A),d(B)<δd(A),d(B)<\delta, then we replace the pair AA and BB with the pair CC and DD as described by the above claim. Notice that every step reduces the number of non-constant component variables, and therefore this process terminates, giving a kk-SIIRV Q\mathbf{Q} with for Y∼QY\sim\mathbf{Q}, Y=∑i=1nBiY=\sum_{i=1}^{n}B_{i}.

By construction, for each 1≤i≤k1\leq i\leq k, Q\mathbf{Q} has at most one non-constant component variable with m(Bj)=im(B_{j})=i and d(Bj)<δd(B_{j})<\delta. Claim D.1 implies the sum of the dd’s of the component variables does not increase in any iteration, and therefore

where the second inequality uses the aforementioned lower bound on the variance of a kk-IRV. Hence, the number of non-constant component variables in Q\mathbf{Q} is at most k+2Vδ−1k+2V\delta^{-1}.

D.2 Proof of Lemma 3.5.

∣P~(x)∣≤2−m  .|\widetilde{\mathbf{P}}(x)|\leq 2^{-m}\;.

For the polynomial q(x)=P~(x)/∏i=1m(x−ρi)q(x)=\widetilde{\mathbf{P}}(x)/\prod_{i=1}^{m}(x-\rho_{i}), we have that ∣q(x)∣≤km|q(x)|\leq k^{m}.

To prove our lemma, we will make essential use of the following simple lemma:

for the polynomial q(x)=p(x)/∏i=1m(x−ρi)q(x)=p(x)/\prod_{i=1}^{m}(x-\rho_{i}) we have that ∣q(z)∣≤dm.|q(z)|\leq d^{m}.

The lemma is proved by repeated applications of the following claim:

We write the coefficients of p(x)p(x) and q(x)q(x) as p(x)=∑i=0dpixip(x)=\sum_{i=0}^{d}p_{i}x^{i} and q(x)=∑i=0d−1qixiq(x)=\sum_{i=0}^{d-1}q_{i}x^{i}. Since p(x)=(x−ρ)q(x)p(x)=(x-\rho)q(x), for 1≤i≤d−11\leq i\leq d-1, we have

and similarly pd=qd−1p_{d}=q_{d-1}, p0=−ρq0p_{0}=-\rho q_{0}.

We consider two cases based on the magnitude of ρ\rho. First, suppose that ∣ρ∣≤1|\rho|\leq 1. Since qd−1=pdq_{d-1}=p_{d} and, by (10), qi−1=pi+ρqiq_{i-1}=p_{i}+\rho q_{i}, for 1≤i≤d−11\leq i\leq d-1, an easy induction gives that qi=∑j=i+1dpjρj−i−1q_{i}=\sum_{j=i+1}^{d}p_{j}\rho^{j-i-1} for 0≤i≤d−10\leq i\leq d-1. Summing and taking absolute values gives:

Second, suppose ∣ρ∣>1|\rho|>1. Then, 1∣ρ∣<1\frac{1}{|\rho|}<1. We have q0=−1ρp0q_{0}=-\frac{1}{\rho}p_{0} and by (10), for 1≤i≤d−11\leq i\leq d-1, qi=1ρ(qi−1−pi)q_{i}=\frac{1}{\rho}(q_{i-1}-p_{i}). By an easy induction, for 0≤i≤d0\leq i\leq d, qi=−∑j=0ipj1ρi−jq_{i}=-\sum_{j=0}^{i}p_{j}\frac{1}{\rho^{i-j}}. Summing and taking absolute values gives:

By repeated applications of the claim it follows that the polynomial q(x)q(x) has the sum of the absolute values of its coefficients at most dmd^{m}. Since ∣z∣=1|z|=1, it follows that ∣q(z)∣≤dm|q(z)|\leq d^{m} which gives (ii). To show (i) we note that

Note that P~(x)\widetilde{\mathbf{P}}(x) is the degree n(k−1)n(k-1) polynomial defined by P~(x)=∑i=0n(k−1)P(i)xi.\widetilde{\mathbf{P}}(x)=\sum_{i=0}^{n(k-1)}\mathbf{P}(i)x^{i}. Note that the sum of the absolute values of P~\widetilde{\mathbf{P}}’s coefficients is 11. However, to apply Lemma D.2 directly to P~\widetilde{\mathbf{P}} we would need the roots to be at distance at most 12n(k−1).\frac{1}{2n(k-1)}.

Lemma D.2(ii) implies that the polynomial qi(x)=pi(x)/∏j∈Si(x−ρj)q_{i}(x)=p_{i}(x)/\prod_{j\in S_{i}}(x-{\rho_{j}}), for Si⊆{1,…,m}S_{i}\subseteq\{1,\ldots,m\} with ∣Si∣=mi|S_{i}|=m_{i}, satisfies ∣qi(x)∣≤kmi|q_{i}(x)|\leq k^{m_{i}}. Note that q(x)=∏i=1nqi(x)q(x)=\prod_{i=1}^{n}q_{i}(x). Therefore, ∣q(x)∣≤∏ikmi=km|q(x)|\leq\prod_{i}k^{m_{i}}=k^{m}, giving part (ii) of Lemma 3.5. ∎

D.3 Proper Cover Construction for the High Variance Case.

Exhausting over the k−1k-1 possible values of cc, we can assume that cc is known to the algorithm. Before proceeding further, we will need further structural information about the kk-SIIRVs in this case. We start with the following simple lemma giving an upper bound on the total variation distance between two high variance kk-SIIRVs:

where X(modc)X\pmod{c} is the cc-IRV with Pr⁡[X(modc)=i]=Pr⁡[X≡i(modc)]\Pr[X\pmod{c}=i]=\Pr[X\equiv i\pmod{c}] for i∈[c]i\in[c].

To use the above lemma, we need a way to characterize the constant cc in the statement of Theorem 3.1, namely to show that the theorem applies to both XX and X′X^{\prime} for the same value of cc. For a kk-IRV AA, let m(A)m(A) be an index ii so that Pr[A=i]\text{Pr}[A=i] is maximized. The following result is implicit in the proof of Theorem 3.1 in [DDO+13] (in particular, in Theorem 4.3 of that paper):

For 1≤i≤H1\leq i\leq H, where H=Θ(k7/ϵ2)H=\Theta(k^{7}/\epsilon^{2}), Xi′X_{i}^{\prime} is either or cc each with equal probability.

For 1≤i≤n−11\leq i\leq n-1, Xi′X_{i}^{\prime} is constant modulo cc.

We can construct such an X′X^{\prime} from XX as follows. For 1≤i≤H1\leq i\leq H, we replace XiX_{i} with the Xi′X_{i}^{\prime} above that is or cc with equal probability. For H+1≤i≤n−1H+1\leq i\leq n-1, we replace each XiX_{i} by XiX_{i} conditioned on the event that Xi(modc)=m(Xi)(modc)X_{i}\pmod{c}=m(X_{i})\pmod{c}. Finally we take Xn′X^{\prime}_{n} to be (X−∑i=1n−1Xi′)(modc)(X-\sum_{i=1}^{n-1}X_{i}^{\prime})\pmod{c} noting that ∑i=1n−1Xi′(modc)\sum_{i=1}^{n-1}X_{i}^{\prime}\pmod{c} is a constant.

This is because any kk-IRV that is constant modulo cc has a distance of at most CC between its minimum and maximum values, and thus has variance at most C2/4.C^{2}/4. ∎

This follows from the previous observation by considering the random variable n(k−1)−Xn(k-1)-X. ∎