<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Private High-Dimensional Hypothesis Testing</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>2022</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10343431</idno>
					<idno type="doi"></idno>
					<title level='j'>Conference on Learning Theory (COLT 2022)</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>S. Narayanan</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[We provide improved differentially private algorithms for identity testing of high-dimensional distributions. Specifically, for d-dimensional Gaussian distributions with known covariance Σ, we can test whether the distribution comes from N(μ∗,Σ) for some fixed μ∗ or from some N(μ,Σ) with total variation distance at least α from N(μ∗,Σ) with (ε,0)-differential privacy, using onlyO~(d1/2α2+d1/3α4/3⋅ε2/3+1α⋅ε)samples if the algorithm is allowed to be computationally inefficient, and onlyO~(d1/2α2+d1/4α⋅ε)samples for a computationally efficient algorithm. We also provide a matching lower bound showing that our computationally inefficient algorithm has optimal sample complexity. We also extend our algorithms to various related problems, including mean testing of Gaussians with bounded but unknown covariance, uniformity testing of product distributions over {−1,1}d, and tolerant testing.Our results improve over the previous best work of Canonne et al.~\cite{CanonneKMUZ20} for both computationally efficient and inefficient algorithms, and even our computationally efficient algorithm matches the optimal \emph{non-private} sample complexity of O(d√α2) in many standard parameter settings.In addition, our results show that, surprisingly, private identity testing of d-dimensional Gaussians can be done with fewer samples than private identity testing of discrete distributions over a domain of size d \cite{AcharyaSZ18}, which refutes a conjectured lower bound of~\cite{CanonneKMUZ20}.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Hypothesis testing is one of the oldest and most widely studied problems in statistical inference, and is critical in research for nearly every scientific branch. Simply put, hypothesis testing asks, given a collection of N data points X = {X (1) , . . . , X (N ) }, whether the data points come from a distribution proposed by a null hypothesis H 0 or by an alternative hypothesis H 1 .</p><p>Classical hypothesis testing often focuses on univariate or discrete distributions. However, these distributions may be insufficient in many applications. For instance, if we wish to test a hypothesis on patient data, each patient may have numerous features such as those corresponding to vitals, organ function, metabolic rate, presence or severity of diseases, etc. Consequently, it is crucial to develop hypothesis testing procedures for high-dimensional distributions.</p><p>In many practical applications of hypothesis testing, the data may reveal highly sensitive information about an individual. For instance, the data may include whether a patient has a certain disease, or has participated in a crime or embarrassing activity. For this reason, an increasingly important challenge that has arisen in hypothesis testing to ensure that the test is not only accurate but also preserves the privacy of the individuals that contribute data. The notion of privacy we wish to guarantee is commonly called differential privacy, which was first formulated by <ref type="bibr">[DMNS06]</ref>. Differential privacy has emerged as the leading notion of privacy both in theory and practice, and has been utilized to measure privacy by companies such as Apple <ref type="bibr">[Tea17]</ref>, Google <ref type="bibr">[EPK14]</ref>, and Microsoft <ref type="bibr">[DKY17]</ref>, as well as the US Census Bureau [DLS + 17]. Informally, differential privacy provably ensures that changing one piece of the data does not affect the output of the algorithm significantly. Hence, an adversary cannot reconstruct any single user's data based on the algorithm's output, thereby ensuring that each user's data is secure.</p><p>In this paper, we study differentially private hypothesis testing for high-dimensional distributions. We primarily study two major classes of distributions: multivariate Gaussians and Boolean product distributions. Specifically, we consider the following problems, as well as certain generalizations of them, and improve over the previous state-of-the-art results by [CKM + 20].</p><p>1. How many samples from a multivariate Gaussian distribution N (&#181;, &#931;), where &#181; &#8712; R d is the mean vector and &#931; &#8712; R d&#215;d is the covariance matrix, are necessary to privately determine whether &#181; = &#181; * for some fixed &#181; * &#8712; R d or &#181; is "far" from &#181; * ? 2. How many samples from a product distribution D over {-1, 1} d are necessary to privately determine whether D equals some fixed product distribution D * or D is "far" from D * ?</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1">Private Hypothesis Testing</head><p>In this subsection, we describe the basics of differential privacy and differentially private hypothesis testing. First, we define the notion of neighboring datasets and differential privacy.</p><p>Definition 1.1 (Neighboring Datasets). Let X be some domain, and let X = (X (1) , . . . , X (N ) ) &#8712; X N and X &#8242; = (X &#8242;(1) , . . . , X &#8242;(N ) ) &#8712; X N be two datasets of size N from X . Then, we say that X and X &#8242; are neighboring datasets if there is at most one value of 1 &#8804; i &#8804; N such that X (i) = X &#8242;(i) .</p><p>Definition 1.2 (Differential Privacy <ref type="bibr">[DMNS06]</ref>). Let 0 &#8804; &#949;, &#948; &#8804; 1. A randomized algorithm A : X N &#8594; O is said to be (&#949;, &#948;)-differentially private (DP) if for any two neighboring datasets X, X &#8242; &#8712; X N and any subset O &#8834; O,</p><p>We next describe hypothesis testing. A hypothesis H represents a class of distributions over X , which may consist of either a single distribution or a family of distributions with certain constraints. In distribution testing, we are given two hypotheses H 0 and H 1 that are disjoint, meaning no distribution is in both classes. We are then given N i.i.d. samples from D, where D is a distribution from H 0 &#8746; H 1 , and our goal is to determine whether D &#8712; H 0 or D &#8712; H 1 .</p><p>We now give a formal definition for hypothesis testing, and then we formally define private hypothesis testing.</p><p>Definition 1.3. Fix N &#8712; N as the number of samples, and let A : (R d ) N &#8594; {0, 1} be an algorithm that takes as input X (<ref type="foot">foot_0</ref>) , . . . , X (N ) &#8712; R d . Given disjoint hypotheses H 0 and H 1 , and parameters 0 &#8804; &#949;, &#948; &#8804; 1, we say that an algorithm A is a hypothesis testing algorithm that can distinguish between H 0 and H 1 if:</p><p>&#8226; For all distributions D &#8712; H 0 , if each X (i) is drawn i.i.d. from D, then for X = (X (1) , . . . , X (N ) ), P[A(X) = 0] &#8805; 2 3 , where the probability is over both the samples X (1) , . . . , X (N ) &#8592; D and the randomness of the algorithm A.</p><p>&#8226; For all distributions D &#8242; &#8712; H 1 , if each X (i) is drawn i.i.d. from D &#8242; , then P[A(X) = 1] &#8805; 2 3 . Definition 1.4. Fix N &#8712; N as the number of samples, and let A : (R d ) N &#8594; {0, 1} be an algorithm that takes as input X (1) , . . . , X (N ) &#8712; R d . Given disjoint hypotheses H 0 and H 1 , and parameters 0 &#8804; &#949;, &#948; &#8804; 1, we say that an algorithm A can (&#949;, &#948;)-privately distinguish between H 0 and H 1 if:</p><p>&#8226; A can distinguish between H 0 and H 1 .</p><p>&#8226; A is (&#949;, &#948;)-DP (where X = R d and O = {0, 1}).</p><p>Note that the privacy must hold for any neighboring datasets X, X &#8242; &#8712; (R d ) N , even if they are not drawn from any distribution.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.2">Our Results</head><p>In all of the problems we investigate, our goal is to devise an algorithm A that can (&#949;, &#948;)-privately distinguish between a null hypothesis H 0 and an alternative hypothesis H 1 , where the number of samples N is as small as possible. We also are interested in constructing such an algorithm that is efficient, meaning that the runtime is polynomial in the number of samples N and the dimension d.</p><p>Identity testing of Gaussians with known covariance: The main and perhaps simplest problem we study in this paper is private identity testing of a multivariate Gaussian with known covariance matrix &#931;. In identity testing, the goal is to distinguish between a null hypothesis that only consists of N samples drawn i.i.d. from a single hypothesis distribution N (&#181; * , &#931;), and an alternative hypothesis consisting of N samples drawn i.i.d. from N (&#181;, &#931;), where the mean &#181; is "far" from &#181; * . In this work, we improve over work by [CKM + 20] by improving their sample complexity both in the case of inefficient and efficient algorithms, and by providing an optimal lower bound to complement these results.</p><p>First, we state our sample complexity upper bound where we allow for an inefficient algorithm.</p><p>Theorem 1.5 (Inefficient Upper Bound). Fix &#181; * &#8712; R d and &#931; &#8712; R d&#215;d as a known positive definite covariance matrix. Also, fix parameters 0 &lt; &#945;, &#949; &#8804; 1 2 . Then, there exists an algorithm that, using</p><p>samples 1 , can (&#949;, 0)-privately distinguish between H 0 , which solely consists of N (&#181; * , &#931;), and H 1 , which consists of all distributions N (&#181;, &#931;) for &#181; with (&#181;&#181; * ) T &#931; -1 (&#181;&#181; * ) &#8805; &#945;.</p><p>Next, we show that Theorem 1.5 is tight, even if the algorithm is allowed to be (0, &#949;)-differentially private as opposed to (&#949;, 0)-differentially private<ref type="foot">foot_1</ref> . Specifically, we prove the following: Theorem 1.6 (Lower Bound). Let all notation be as in Theorem 1.5. Then, any algorithm that can (0, &#949;)-privately distinguish between H 0 and H 1 must have sample complexity at least</p><p>This improves over the previous lower bound of &#8486; d 1/2 &#945; 2 + 1 &#945;&#8226;&#949; [CKM + 20], which combines the non-private lower bound of &#8486; d 1/2 &#945; 2</p><p>[CDKS20] and the private lower bound of &#8486; 1 &#945;&#8226;&#949; for testing 1-dimensional distributions <ref type="bibr">[ASZ18]</ref>. We remark that the previous lower bound was technically shown only for testing Boolean product distributions, but it extends to multivariate Gaussians easily.</p><p>Because the algorithm we devise for Theorem 1.5 has very slow runtime, a natural question is how many samples are necessary if the algorithm must run in polynomial time in N and d. Indeed, we show the following result, that only needs a slightly larger number of samples but runs efficiently.</p><p>Theorem 1.7 (Efficient Upper Bound). Let all notation be as in Theorem 1.5. Then, there exists an algorithm that, using</p><p>samples, can (&#949;, 0)-privately distinguish between H 0 and H 1 in time polynomial in N and d.</p><p>This improves over the previous best polynomial-time algorithm of [CKM + 20], which required</p><p>samples. This algorithm matches even the optimal non-private algorithm as long as &#945; d 1/4 &#8804; &#949;, and strictly improves over the previous best efficient algorithm whenever &#949; &lt; &#945;. It also strictly improves even over the previous best inefficient private algorithm if </p><p>Generalizations to other distributions: Our results above generalize to related hypothesis testing problems, such as hypothesis testing for Gaussians with unknown covariance, hypothesis testing for Boolean Product distributions, and tolerant identity testing. We describe the results informally here, and provide more formal statements in the Appendix. First, we show that our results on privately testing multivariate Gaussians with known covariance can be extended to Gaussians with unknown but bounded covariance. One caveat is that we are no longer able to distinguish between &#181; = &#181; * and &#181;, &#181; * being far in Mahalanobis distance, as the Mahalanobis distance depends on the unknown matrix &#931;. Instead, we distinguish between &#181; = &#181; * and &#181;, &#181; * being far in &#8467; 2 distance, if we are promised that &#931; has bounded spectral norm.</p><p>Theorem 1.8 (Bounded but Unknown Covariance, Informal). Let H 0 consist of N (&#181; * , &#931;) over all covariance matrices with bounded spectral norm &#931; 2 &#8804; 1, and H 1 consist of N (&#181;, &#931;) over all covariance matrices &#931; 2 &#8804; 1 and &#181; : &#181;&#181; * &#8805; &#945;. Then, to distinguish between H 0 and H 1 , the same upper and lower bounds as in Theorems 1.5, 1.6, and 1.7 hold.</p><p>Next, we show that our results on testing multivariate Gaussians also extend to identity testing for "balanced" Boolean product distributions over {-1, 1} d , i.e., distributions where each coordinate is independent (but not necessarily identically distributed). Namely, we can privately test whether a product distribution is some fixed P * or has total variation distance far from P * , as long as the expectation of P * is between -1/2 and 1/2 in each coordinate<ref type="foot">foot_2</ref> . Theorem 1.9 (Product Distributions, Informal). Fix &#181; * &#8712; [-1/2, 1/2] d , and suppose that H 0 consists only of the product distribution P * over {-1, 1} d with mean &#181; * , and H 1 consists of all product distributions P over {-1, 1} d such that d TV (P, P * ) &#8805; &#945;. Then, to distinguish between H 0 and H 1 , the same upper and lower bounds as in Theorems 1.5, 1.6, and 1.7 all hold for any &#181;</p><p>Theorem 1.9 implies bounds for private uniformity testing of Boolean product distributions, since the uniform distribution over {-1, 1} d is a product distribution with mean 0. Theorem 1.9 improves over both the previous best upper bound of</p><p>&#945;&#949; for efficient algorithms [CKM + 20]. In addition, it also improves over the best lower bound of</p><p>Note that the previous best upper and lower bounds for privately testing balanced Boolean product distributions and multivariate Gaussian distributions match, as do our bounds.</p><p>We remark that identity testing of "unbalanced" Boolean product distributions, i.e., where &#181; * is not promised to be in [-1/2, 1/2] d , is not always achievable with the same number of samples. Indeed, [CKM + 20] showed that if the null hypothesis distribution P * is sufficiently unbalanced, there is a sample complexity lower bound of</p><p>Finally, we show that our results on private identity testing of Gaussians and Boolean product distributions extend to private tolerant identity testing. In this setting, we allow for some slack in the null hypothesis, and have to distinguish between the mean &#181; being far from &#181; * versus close to &#181; * , as opposed to just equaling &#181; * . Tolerant testing is useful as it provides meaningful guarantees even if the underlying distribution is very close to, but does not perfectly satisfy, the null distribution.</p><p>Theorem 1.10 (Tolerant Hypothesis Testing, Informal). Theorems 1.5, 1.6, and 1.7 all hold if we replace the null hypothesis H 0 with all distributions N (&#181;, &#931;) such that (&#181;&#181; * ) T &#931; -1 (&#181;&#181; * ) &#8804; &#945; 2 . Likewise, for any &#181; * &#8712; [-1/2, 1/2] d and for P * the product distribution with mean &#181; * , Theorem 1.9 holds even if H 0 consists of all product distributions P with d TV (P, P * ) &#8804; &#945; C and H 1 consists of product distributions P with d TV (P, P * ) &#8805; &#945;, for a sufficiently large constant C.</p><p>One surprising consequence of our algorithms is that the number of samples we require for private identity testing of d-dimensional Gaussians and private uniformity testing of d-dimensional Boolean product distributions is in fact smaller than the number of samples needed for private uniformity testing of a discrete distribution over just d elements. Indeed, private uniformity testing of a discrete distribution requires &#920;</p><p>, whereas for d-dimensional product distributions and Gaussians, we are able to remove the dependence on</p><p>Hence, we refute a conjecture of [CKM + 20], which postulates that private uniformity testing of discrete distributions over [d] and of product distributions over {-1, 1} d have asymptotically equivalent sample complexities.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.3">Related Work</head><p>Ignoring privacy constraints, hypothesis testing from a statistical point of view dates back nearly a century, notably to <ref type="bibr">[NP33]</ref>. Hypothesis testing has become a popular area of study in theoretical computer science more recently (where it is also called distribution testing), starting with [GR00, BFR + 00], and with a large body of subsequent literature over the past two decades (see, for instance, <ref type="bibr">[Can20]</ref> for a survey of the distribution testing field). While much of the work has focused on discrete or univariate distributions, there has recently been significant work in the multivariate setting as well. This work on multivariate hypothesis testing has come both from statistical [Hot31, SD08, CQ10, CM13, JM14, RISW16] and computational [AAK + 07, RX10, ADK15, DP17, ABDK18, DDK18, GLP18, BBC + 20, CDKS20 Apart from private hypothesis testing of high-dimensional multivariate distributions, there has also been been work on private learning of Gaussians and multivariate distributions [KV18, KLSU19, KSSU19, BDKU20, KSU20, CWZ21, WX21]. Notably, however, learning a distribution requires a linear dependence on the dimension d, whereas hypothesis testing only requires a square-root dependence on the dimension.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.4">Roadmap</head><p>In Section 2, we give a technical outline for Theorems 1.5 through 1.10. All formal proofs are deferred to the appendix. In Appendix A, we define notation and prove some preliminary results. In Appendix B, we prove several important concentration bounds. In Appendix C, we prove Theorem 1.5. In Appendix D, we prove Theorem 1.6. In Appendix E, we prove Theorem 1.7. Finally, in Appendix F, we prove Theorems 1.8, 1.9, and 1.10.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Technical Overview</head><p>In this section, we provide an outline for each of the theorems we prove. We first describe the nonprivate algorithm for testing the mean of a known-covariance Gaussian. We then outline Theorems 1.7, 1.5, and 1.6 (in that order), and then outline how we can generalize these results to prove Theorems 1.8, 1.9, and 1.10. We view Theorems 1.7 and 1.6 as our most interesting results from a technical perspective.</p><p>If the covariance &#931; is known, we may scale and shift so that WLOG &#181; * = 0 and &#931; = I is the identity covariance matrix in d dimensions. So, our goal is to determine whether &#181; = 0 or &#181; &#8805; &#945;. For simplicity, we will assume that the alternative hypothesis is &#181; = &#945; as opposed to &#181; &#8805; &#945;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Non-Private Hypothesis Testing:</head><p>The optimal non-private algorithm <ref type="bibr">[SD08,</ref><ref type="bibr">CDKS20]</ref> is incredibly simple: given N samples X (1) , . . . , X (N ) &#8712; R d , it just takes the sum of the samples, X = X (1) + &#8226; &#8226; &#8226; + X (N ) , and computes the statistic T = X 2 . Based on how large T is, the algorithm decides whether &#181; = 0 or &#181; &#8805; &#945;. It is simple to show that if each X (i) is drawn i.i.d. from N (0, I), then</p><p>For the statistic T to successfully distinguish between the two hypotheses, by Chebyshev's inequality, the square of difference in the means must significantly exceed the variances. As the difference in means is &#945; 2 &#8226; N 2 and the variances are</p><p>for a sufficiently large constant C, we will be able to distinguish between &#181; = 0 and &#181; = &#945;.</p><p>Theorem 1.7: We note that our algorithm, while somewhat based on the non-private hypothesis testing result, deviates significantly from [CKM + 20] and other work on private hypothesis testing. For that reason, we do not describe the previous techniques of [CKM + 20].</p><p>Before returning to the private setting, we note that X 2 , where X = X (1) + &#8226; &#8226; &#8226;+ X (N ) , can be rewritten as N i=1 N j=1 X (i) , X (j) . Because of this, if we write T i,j = X (i) , X (j) , the non-private algorithm can be rephrased as outputting 0 (null hypothesis</p><p>2 . This motivates our private algorithm, which will attempt to compute T = N i=1 N j=1 T i,j privately. However, we note that when a single data sample X (i) changes, this affects T i,j and T j,i for all j. In other words, instead of preserving privacy when a single entry in the matrix {T i,j } changes, we need to preserve privacy when an entire row and column in the matrix changes.</p><p>We will modify the matrix T consisting of all the entries T i,j , by subtracting d from each diagonal entry and then dividing the matrix by &#213;( &#8730; d) to get a new matrix V. By applying classic concentration bounds, we can show that, assuming the original datapoints X (1) , . . . , X (N ) are drawn i.i.d. from some N (&#181;, I), with &#181; &#8804; 1, then each entry in V is bounded in the range [-1, 1] and each row/column sum of V is bounded in magnitude by &#8730; N . Our goal will roughly be to distinguish between the sum of all the entries in V being either in the range [-N, N ] or [&#947;N 2 -N, &#947;N 2 + N ], for &#947; &#8776; &#945; 2 &#8730; d . In addition, we wish to perform this privately, where we consider two matrices V, V &#8242; &#8712; R N &#215;N to be adjacent if they differ only in a single row or a single column.</p><p>If we may restrict ourselves to matrices where every row and column sum is at most &#8730; N in absolute value, the algorithm is quite simple. Let V := N i=1 N j=1 V i,j . By our restriction, V cannot change by more than 2 &#8730; N if we only change a single row or column, so the statistic</p><p>This means that as long as N, &#949; -1 &#8730; N &#8810; &#947;N 2 , our algorithm will be accurate. This is equivalent to</p><p>. The problem, however, is that we want differential privacy for arbitrary adjacent datasets X (1) , . . . , X (N ) , for which we may not have the &#8730; N bound on the row and column sums of the corresponding matrix V . Even if each entry is bounded in the range [-1, 1], we can increase V by N in the worst case.</p><p>A common approach to fixing this is to "clip" each data point, i.e., replace a data point x with max(x min , min(x max , x)) to keep x in the range [x min , x max ]. This technique has been used in statistical data analysis since the early 20th century. In our case, a natural first attempt to clip the row and column sums. Indeed, we can rewrite</p><p>V is simply the average of the sum over all row sums and the sum over all column sums. Since we want each row sum and column sum to be bounded by the range [-&#8730; N , &#8730; N ], we can consider replacing our statistic V with</p><p>where g(x) := min( &#8730; N , max(-&#8730; N , x)) prevents each row/column sum from exceeding &#8730; N in absolute value. However, this still runs into the same problem as before. If we alter a row of V by increasing each entry in the row by 1, while the modified row sum does not increase by more than &#8730; N now, we still have that each column sum could potentially increase by 1, causing an overall increase by N .</p><p>To fix this, we consider an even stronger version of clipping, where after x exceeds &#8730; N , the function starts going back down again. Specifically, we instead consider the function</p><p>Replacing g in our Equation (2) with the new function g, we now see what happens when we change a single row. If we increase every element in a row by 1, each column sum increases by 1, from which we would ideally hope that that g applied to each column sum increases by 1. Conversely, for the row that we update, we use the fact that g</p><p>] to say that in fact g applied to the row decreases by roughly N -O( &#8730; N ). So, the overall change in the statistic G(V) is ideally O( &#8730; N ), because the increase of each column sum by 1 cancels out with the decrease in g applied to the row sum.</p><p>The problem with this, however, is that if a column sum exceeds &#8730; N in absolute value, g applied to that column sum goes down instead. This is not an issue even if up to &#8730; N column sums exceed &#8730; N in absolute value, as even in this case, we have that &#8730; N column sums are decreasing by 1 instead of increasing by 1, so overall the statistic G(V) still does not change by more than O( &#8730; N ). To fix this, we propose another private algorithm which detects and throws out matrices if too many row and column sums exceed &#8730; N in absolute value. We remark that if V comes from X (1) , . . . , X (N ) drawn from either the null or alternative hypothesis, with high probability no row or column sum will exceed &#8730; N in absolute value, so we do not sacrifice accuracy with this algorithm. We will consider a new threshold function f (x) = max(0, min( |x| &#8730; N -1, 1)): this function takes |x| &#8730; N -1 and clips it to keep it in the range [0, 1]. Suppose we apply f to each row and column sum of V , i.e., we consider the statistic</p><p>If X (1) , . . . , X (N ) actually came from the distribution, then f applied to each row and column is 0 with very high probability, as no row or column sum exceeds &#8730; N in absolute value. In addition, because f is capped by 0 and 1, f applied to a row sum doesn't change by more than 1 if we change the entire row. In addition, each column sum does not change by more than 1, so f does not change by more than 1/ &#8730; N for each column sum. So, F (V) does not change by more than &#8730; N for adjacent datasets. In addition, if more than 2 &#8730; N row/column sums of V exceed 2 &#8730; N in absolute value, then F (V) &#8805; &#8730; N . It will be quite simple to utilize a Laplace Mechanism to privately reject any datasets with F (V) exceeding 2&#949; -1 &#8730; N , which is an &#949; -1 factor greater than desired. However, with this weaker bound we can ensure G(V) does not change by more than &#949; -1 &#8730; N if a single row/column changes, which can be used to obtain a &#213; d 1/2 &#945; 2 + d 1/3 &#945; 4/3 &#949; 4/3 -sample upper bound. This is already an improvement in many regimes.</p><p>To improve upon this, we create a series of logarithmic threshold functions f k for 1 &#8804; k &#8804; O(log N ), which have increasing thresholds. This will allow us to create statistics F k (V) for each k, similar to F (V). Roughly, we will show that in order for F k+1 to change significantly if we change a single row/column, we require F k to be large. From here, we can show that the relative change in F k+1 is much smaller than the relative change in F k , unless F k is sufficiently large that we could use a Laplace Mechanism to reject such a dataset. We can use these to privately reject any X with</p><p>), which will allow for a better sample complexity bound for N .</p><p>Theorem 1.5: The proof of Theorem 1.5 is based on the corresponding result in [CKM + 20]: while their result is not fully accurate, we show how to simultaneously fix their result and improve upon it. We first sketch the ideas behind the computationally inefficient algorithm of [CKM + 20]. The objective in [CKM + 20] is to create a map T that sends any dataset X &#8712; (R d ) N to R with two properties. The first property is that for any two adjacent datasets X, X &#8242; , T (X) and T (X &#8242; ) are "close" in value. The second is that T (X) should almost always be "small" if X is a sample of N i.i.d. N (0, I) values, and T (X) should almost always be "large" if X is a sample of N i.i.d. N (&#181;, I) values, for any &#181; with &#181; = &#945;. ("Close", "small", and "large" can be effectively quantified.) By adding Laplace noise to T (X) and determine if the output exceeds a certain threshold, one can privately distinguish between &#181; = 0 and &#181; = &#945;.</p><p>In the case where the data points X (1) , . . . , X (N ) i.i.d.</p><p>&#8764; N (&#181;, I), we have strong concentration of the row and column sums of the corresponding matrix T &#8712; R N &#215;N , due to the independence of the data points. (Recall that T is the matrix with T i,j = X (i) , X (j) .) If we restrict ourselves exclusively to such datasets where the row and column sums of T are properly bounded (call this set C), we can successfully obtain that any two adjacent datasets X, X &#8242; have relatively close values of T (X) := X (i) 2 and T (X &#8242; ) = X &#8242;(i) 2 . Hence, T (X) = T (X) would actually be a suitable choice if we could restrict ourselves to C.</p><p>[CKM + 20] combines this observation with a theorem about Lipschitz extensions <ref type="bibr">[McS34]</ref>. The theorem by <ref type="bibr">[McS34]</ref> states that if there exists a function T : C &#8834; X where X is equipped with some metric (in our case X = (R d ) N and the metric measures the number of different data points), and T is D-Lipschitz for some D, then there exists an extension T : X &#8594; R that is also D-Lipschitz. Expressed more simply in our setting, if we can ensure that</p><p>that differ in exactly K data points, then we can extend the function T to some T which ensures that T does not change by more than K on adjacent datasets. The smaller we can make D as a function of N , the smaller our sample complexity needs to be.</p><p>The</p><p>that differ in at most K data points, this does not actually hold. For instance, if we change K of the data points in X to make X &#8242; , the intermediate datasets (obtained by changing the data points one at a time) may not be in C. As a result, we in fact must prove that for all integers K, |T (X) -T (X &#8242; )| &#8804; K &#8226; D for X, X &#8242; &#8712; C that differ in exactly K data points. To do this, we further restrict the class C &#8834; (R d ) N , by showing a tight concentration of the norm of i&#8712;S X (i) for all subsets S &#8834; [N ] of size K simultaneously, assuming each X (i) was drawn i.i.d. from some N (&#181;, I), and restricting C to datasets that satisfy these tight concentration bounds. We then prove that for the restricted set C, we obtain our desired Lipschitz property. Our concentration analysis is tighter than that of [CKM + 20], which provides a smaller Lipschitz parameter D, and therefore we obtain a reduced value of N as well. Hence, we are able to fix their inaccuracy as well as improve upon their result.</p><p>Theorem 1.6: Our starting point for the lower bound is a theorem of <ref type="bibr">[ASZ18]</ref>, which relates a coupling of two distributions U and V over X N with privacy lower bounds. A coupling of U and V is a joint distribution over (X, X &#8242; ) &#8764; X N &#215; X N where the marginal of X is U and the marginal of X &#8242; is V. Specifically, they prove that if there exists a coupling over X = (X (1) , . . . , X (N ) ) and X &#8242; = (X &#8242;(1) , . . . , X &#8242;(N ) ) where the expected number of i &#8804; N such that X (i) = X &#8242;(i) is at most O(1/&#949;), then it is impossible to (0, &#949;)-privately distinguish between U and V. This method has been used to provide privacy lower bounds in the discrete distribution setting <ref type="bibr">[ASZ18]</ref>.</p><p>As noted by [CKM + 20], proving lower bounds for multivariate Gaussians is much more challenging than for discrete distributions, as the coupled distributions U , V must be generated as Gaussians with identity covariance, which will usually need strong independence guarantees in</p><p>Figure <ref type="figure">1</ref>: In this figure, we have a series of black points X (1) , . . . , X (N ) and a red point representing their mean X. We decompose an individual</p><p>&#8226; v goes in the same direction as X from the origin, and z (i) is perpendicular to v. Our reduction ignores the direction of v and the orthogonal component z (i) , and focuses on the quantities a + y (i) .</p><p>each coordinate. In contrast, proving similar lower bounds for distributions over a discrete domain {1, 2, . . . , d} do not require us to prove any independence guarantees. Hence, to apply this result in our setting, two things are necessary. First, we need to decide the distributions U and V. Next, we need to establish a suitable coupling. The choice for U is simple: it will just be the distribution over (R d ) N where each sample is i.i.d. N (0, I). For V, we wish to find some distribution of mean vectors &#181; with &#181; &#8805; &#945;, and then sample N points from N (&#181;, I). The distribution for the mean vectors we choose will roughly be &#181; &#8764; N (0, &#945; 2 d &#8226; I). While this does not ensure that &#181; &#8805; &#945;, a simple concentration inequality ensures that &#181; &#8805; &#8486;(&#945;) with overwhelming probability, which will end up being sufficient.</p><p>Next, how do we establish a coupling between U and V? The first trick we use is to rewrite the distributions U , V based on the mean vector X = X (1) +&#8226;&#8226;&#8226;+X (N) N of the N points in U (or V), which we will write as a &#8226; v, where a := X &#8712; R &#8805;0 and v := X/ X is a unit vector. Given X, we consider each vector X</p><p>, where y (i) &#8712; R and z (i) &#8712; R d is orthogonal to v. This means that we decompose X (i) -X into a component in the v direction and a component in the hyperplane orthogonal to v. (See Figure <ref type="figure">1</ref> for an example of this decomposition.) The advantage of this is that one can show that for both the distribution U and V, the distribution of the vector v is uniform across the unit sphere, and the distribution of z (i) are the same for both U and V.</p><p>Hence, we can reduce our coupling problem to a single dimension, by considering the distributions {a + y (i) } N i=1 and {b + y (i) } N i=1 , where a = X for X &#8764; U and b = X for X &#8764; V. Note that a, b are also random variables. One can show that a and b converge (in total variation distance)</p><p>), respectively. To explain the intuition behind the Normality, since X is a spherical Gaussian, a 2 behaves exactly like a &#967; 2 -random variable with d degrees of freedom, as the mean of the distribution U is the origin. Likewise, b 2 behaves like an off-centered &#967; 2 -random variable with d degrees of freedom, as the mean of the distribution V is not the origin but is somewhat close. Therefore, a behaves like a &#967; random variable and b behaves like an off-centered &#967; random variable, and as d grows, this converges to Normal. (We remark that the rate of convergence of a, b to Normal will not matter: it will just matter that for sufficiently large d, the total variation distances between a, b and their respective Normal distributions is less than, say, 0.01.) In addition, one can show that {y (i) } are distributed as i.i.d. standard Normals minus their mean, which has distribution N (0, 1 N ). Indeed, one can use this observation to show that if a, b were approximately Normal with variance 1 N instead of 1 2N , then {a + y (i) } N i=1 would converge in total variation distance to the distribution of N i.i.d. samples from N ( d N , 1), and similarly, {b + y (i) } N i=1 would converge in total variation distance to the distribution of N i.i.d. samples from N ( d N + 2&#945; 2 , 1). To fix the issue that a, b have the wrong variance, we use the fact that the total variation distance between N (0, 1 N ) and N (0, 1 2N ) is less than 0.2. We use this to show that if could privately distinguish between {a + y (i) } N i=1 and {b + y (i) } N i=1 with 0.9 probability, then we could distinguish between N i.i.d. samples from N ( d N , 1) and from N ( d N + 2&#945; 2 , 1) with a weaker 0.7 probability. Now that we have reduced it to univariate and independent samples, we are in a position to create a coupling, which will indeed get us the correct lower bound.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Generalizations</head><p>Theorem 1.8: In the case where the samples come from N (&#181;, &#931;) where &#931; is unknown, we run into the problem that</p><p>, where J = T r(&#931;) is unknown. Because J is unknown, we cannot attempt to directly privately estimate T and accept or reject the hypothesis based on whether T exceeds a threshold.</p><p>Instead, we will use the fact that given samples from N (&#181;, &#931;), we can generate samples from N (0, &#931;). This is because if X, Y i.i.d.</p><p>&#8764; N (&#181;, &#931;) for any &#181; &#8712; R d , then X-Y &#8730; 2 &#8764; N (0, &#931;). Therefore, we can use this to privately estimate J and privately estimate T , and then accept or reject based on whether our estimate for T significantly exceeds our estimate for N &#8226; J. Indeed, we can estimate both T and J similarly with the same sample complexity (up to constant factors) as in Theorem 1.5 and Theorem 1.7, using the fact that &#931; is spectrally bounded by I. Since estimating T and J are sufficient for the testing problem, we can therefore generalize both Theorems 1.5 and 1.7.</p><p>Theorem 1.9: This case will be almost identical to the Gaussian case. For simplicity, we consider testing whether a product distribution P(&#181;) has mean &#181; = 0 or mean &#181; with &#181; 2 = &#945;. (Indeed, the &#8467; 2 norm of &#181; is asymptotically equal to the total variation distance between P(&#181;) and P(0).) For the upper bound, if we let T i,j := X (i) , X (j) , we are able to obtain the same concentration bounds as in the Gaussian case for each entry T i,j and the sum of each row/column of the matrix T, which is required in proving Theorem 1.7. In addition, we are able to obtain the same concentration bounds as in the Gaussian case for the sum i&#8712;S X (i) for all subsets S &#8834; [N ]. From here, the rest of the upper bounds proceed in the same way as in the Gaussian case.</p><p>For the lower bound, there is a known reduction [CKM + 20] from private identity testing of Gaussians to private uniformity testing of Boolean products, i.e., any upper bound for uniformity testing of Boolean products also holds for Gaussians. Therefore, our lower bound for identity testing of Gaussians implies a lower bound for uniformity testing of Boolean products.</p><p>Theorem 1.10: While in many scenarios tolerant identity testing is more difficult than standard identity testing, it will not be so in our case. For instance, suppose we wished to distinguish between i.i.d. samples from N (&#181;, I), where either &#181; = &#945; 2 or &#181; = &#945;. In the non-private setting, we can use the fact that the statistic T has expectation N &#8226; d + &#945; 2 4 &#8226; N 2 in the former setting, and expectation N &#8226; d + &#945; 2 &#8226; N 2 in the latter setting. In other words, the difference between the mean of the respective statistics is still &#8486;(&#945; 2 &#8226; N 2 ). Because of this, we can still do non-private hypothesis testing using the same number of samples. The private setting will work similarly, as our goal has been to output a private version of the statistic T (or some scaled version of it like V ). Hence, we can apply the same algorithms as before, but change the threshold value accordingly, and still require the same number of samples up to an asymptotic factor.</p><p>[Yao77] Andrew Chi-Chih Yao. Probabilistic computations: Toward a unified measure of complexity. In 18th Annual Symposium on Foundations of Computer Science (FOCS), pages 222-227. IEEE Computer Society, 1977.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A Preliminaries</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.1 Notation</head><p>We first note several pieces of notation that we use in our proofs.</p><p>&#8226; We use X = (X (1) , . . . , X (N ) ) to represent a dataset of N points in R d . We use X to denote either the sum or average of the data points in X, depending on context.</p><p>&#8226; For two datasets X, X &#8242; , we use &#961;(X, X &#8242; ) to represent the number of data points X (i) = X &#8242;(i) .</p><p>&#8226; We use N (&#181;, &#931;) to represent the d-dimensional Multivariate Gaussian distribution with mean vector &#181; and covariance matrix &#931;. We use I to represent the d &#215; d identity matrix.</p><p>&#8226; We use P(&#181;) to represent the Boolean product distribution over {-1, 1} d with expectation &#181;.</p><p>&#8226; We use &#8226; to represent the Euclidean (&#8467; 2 ) norm of a vector, and &#8226; 2 to represent the spectral (operator) norm of a symmetric matrix.</p><p>Note that N will always be at least &#8730; d, &#945; -1 , and &#949; -1 , so any logarithmic factors in d, &#945; -1 , and &#949; -1 can be incorporated into the &#213; notation.</p><p>&#8226; We use d TV (D, D &#8242; ) to represent the total variation distance between two distributions D and D &#8242; over the same domain.</p><p>Finally, we will always assume that our privacy parameter &#949; and error parameter &#945; are at most a small constant (such as 1/3).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.2 Preliminary Propositions</head><p>We define a subgaussian random variable and recall some important properties of it.</p><p>Definition A.1. A 1-dimensional random variable X with mean &#181; is subgaussian if there exists a constant C such that P(|X -&#181;| &#8805; t) &#8804; 2e -t 2 /C 2 for all t &#8805; 0. We define the subgaussian norm of such a variable X to be the infimum over all C such that P(|X -&#181;| &#8805; t) &#8804; 2e -t 2 /C 2 for all t &#8805; 0.</p><p>We note the following standard propositions about subgaussian random variables.</p><p>Proposition A.2. The univariate Normal distribution N (&#181;, &#963; 2 ) has subgaussian norm &#963;.</p><p>Next, we note the following proposition linking the total variation distance between two multivariate Gaussians with covariance &#931; and their Mahalanobis distance.</p><p>Proposition A.4. (Folklore) For two distributions N (&#181;, &#931;) and N (&#957;, &#931;), recall that the Mahalanobis distance between these two distributions is (&#181;&#957;) T &#931; -1 (&#181;&#957;). Then, d TV (N (&#181;, &#931;), N (&#957;, &#931;)) = &#920;(min( (&#181;&#957;) T &#931; -1 (&#181;&#957;), 1)), i.e., the total variation distance and the Mahalanobis distance are asymptotically equivalent assuming the Mahalanobis distance does not exceed &#920;(1).</p><p>We also have a similar proposition linking the total variation distance between two product distributions with their means.</p><p>Proposition A.5 implies the following are equivalent: distinguishing between &#181; * = &#181; and &#181; *&#181; &#8805; &#945;, and distinguishing between P(&#181;) = P(&#181; * ) and d TV (P(&#181;), P(&#181; * )) &#8805; &#920;(&#945;), assuming that &#181; * &#8712; [-1/2, 1/2] d . Hence, in Theorem 1.9, it is sufficient to distinguish between P * := P(&#181; * ) and all distributions P(&#181;) with &#181;&#181; * &#8805; &#945;. Likewise, in Theorem 1.10, if C is sufficiently large, it is sufficient to distinguish between P(&#181;) with &#181;&#181; * &#8804; &#945; 2 and P(&#181;) with &#181;&#181; * &#8805; &#945;. Next, we recall a basic proposition about sufficient statistics of Normal distributions.</p><p>Definition A.6. Given a distribution D(&#952;) over R d parameterized by some &#952; in a domain &#920;, and given samples X (1) , . . . , X (N ) i.i.d.</p><p>&#8764; D(&#952;), we say that a function T = T (X (1) , . . . , X (N ) ) is a sufficient statistic for &#952; if the distribution of X (1) , . . . , X (N ) conditioned on T is the same as the distribution of X (1) , . . . , X (N ) conditioned on T and &#952;.</p><p>Proposition A.7. Let &#931; be a fixed covariance matrix, and let N (&#181;, &#931;) be parameterized only by &#181;. Then, given samples X (1) , . . . , X (N ) , the empirical mean</p><p>N is a sufficient statistic for &#181;. In other words, if given N i.i.d. samples from N (&#181;, &#931;), the conditional distribution of X (1) , . . . , X (N ) conditioned on</p><p>Corollary A.8. Let X (1) , . . . , X (N ) be distributed i.i.d. as N (&#181;, &#931;), and let X =</p><p>Then, for Z (1) , . . . , Z (N ) i.i.d.</p><p>&#8764; N (0, &#931;) and</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>N</head><p>, we have that X (1) , . . . , X (N ) has the same distribution as X + Z (1) -Z, . . . , X + Z (N ) -Z.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Proof. It suffices to show they have the same distribution if we condition on X and Z.</head><p>By Proposition A.7, if we know X, it does not matter whether X (1) , . . . , X (N ) were originally drawn from N (&#181;, &#931;) or from N (&#181; &#8242; , &#931;) for some &#181; &#8242; = &#181;. So, we can instead pretend that X (1) , . . . , X (N ) were drawn from N (v, &#931;), for v = X -Z. In this case, by an additive shift of v, the conditional distribution of X (1) , . . . , X (N ) i.i.d.</p><p>&#8764; N (v, &#931;) conditioned on X is the same as the conditional distribution of</p><p>&#8764; N (0, &#931;) conditioned on Z. Hence, by writing v = X -Z, we are done.</p><p>Finally, we note the following concentration bound, due to <ref type="bibr">[LM00]</ref>.</p><p>Theorem A.9. [LM00, Lemma 1] Let a 1 , . . . , a n be nonnegative reals, all bounded by some |a| &#8734; &gt;</p><p>&#8764; N (0, 1), and let Z = n i=1 a i Z 2 i . Then, for any positive real t, we have that</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.3 Reductions</head><p>In this subsection, we note several reductions between problems that will make things easier to prove. First, we note the asymptotic equivalence between (&#949;, &#948;)-DP and (&#949; + &#948;, 0)-DP in the hypothesis testing case. Roughly, this follows because we assume the probability of acceptance/rejection has two-sided error. For instance, if we additively change the probability of acceptance from 1/3 to 1/3 + &#949;, this is also a multiplicative 1 + O(&#949;) change in the probability of acceptange, and a multiplicative 1 -O(&#949;) change in the probability of rejection. Formally, we have the following: Proposition A.10. [ASZ18, Lemma 5] There is an (&#949;, &#948;)-DP algorithm for a testing problem if and only if there is an (O(&#949; + &#948;), 0)-DP algorithm for the same testing problem.</p><p>Next, we recall Propositions A.4 and A.5. From here, we note that it is asymptotically equivalent to distinguish between the the distribution being far from the null hypothesis distribution in total variation distance and the mean being far from the null hypothesis mean in Mahalanobis distance (in the known-covariance Gaussian case) or &#8467; 2 distance (in the Boolean product case). As we saw in Subsection A.2, in the Boolean product case the equivalence also extends to tolerant distribution testing.</p><p>Next, we note that by shifting the distribution, we may always assume WLOG (in the multivariate Gaussian cases) that &#181; * = 0. In addition, if the covariance is known, we may also assume WLOG that &#931; = I, by multiplying all data points by the matrix &#931; -1/2 .</p><p>We also note that in the Boolean product case, we may assume that &#181; * = 0. Indeed, we have the following lemma, due to [CKM + 20]: Lemma A.11. [CKM + 20, Lemma 5.1, rephrased] Suppose that P(&#181; * ) is a known Boolean product distribution, and we are given a sample X &#8764; P(&#181;) where &#181; is unknown. Then, there exists a randomized transformation Y = f &#181; * (X) such that Y &#8764; P( &#181;-&#181; * 2 ).</p><p>Thus, up to changing &#945; by a factor of 2, we may assume WLOG that &#181; * = 0 for identity testing of Boolean products, since</p><p>Note that this reduction also holds for the tolerant testing case as well. Next, we note a proposition showing that testing known-covariance Gaussians is easier than Testing Product distributions. Because of this, the only lower bounds we need to show is for testing known-covariance Gaussians. Of course, testing of unknown-covariance Gaussians and tolerant testing of Gaussians are harder problems, so the same lower bounds must hold, and the proposition we are about to state also implies that the same lower bounds hold for testing (and tolerant testing) of product distributions as well.</p><p>Proposition A.12. [CKM + 20, Theorem 3.1, rephrased] There exists a function F : R d &#8594; {-1, 1} d and an absolute constant c &gt; 0 such that the following holds. Suppose that X &#8764; N (&#181;, I), where &#181; is unknown (so, F does not depend on &#181;). Then:</p><p>&#8226; If &#181; = 0, the distribution of F (X) is a product distribuiton P(&#181; &#8242; ) where d TV (P(0),</p><p>Hence, we have a reduction from testing the mean of a Gaussian with identity covariance to testing uniformity of a product distribution, which implies that any lower bound for testing the mean of a identity covariance Gaussian implies the same lower bound for testing uniformity of a product distribution.</p><p>Finally, we note that in all of our cases, our alternative hypothesis may be phrased as &#181; &#8805; &#945; (since we may assume &#181; * = 0 and since we have provided an equivalence between total variation distance being large and &#181; being large in the Boolean product case). In the following proposition, we show that it suffices to consider the weaker alternative hypothesis of &#945; &#8804; &#181; &#8804; 2&#945;.</p><p>Proposition A.13. Let 0 &lt; &#945; &#8804; 1, and fix some positive integer N , where N &#8805; &#949; -1 . Suppose A is an algorithm that can (&#949;, 0)-privately distinguish between H 0 : N samples drawn i.i.d. from N (0, I), and H 1 : N samples drawn i.i.d. from N (&#181;, I) where &#945; &#8804; &#181; &#8804; 2&#945;. Then, using</p><p>samples, we can (O(&#949;), 0)-privately distinguish between H 0 : N samples drawn i.i.d. from N (0, I), and H 1 : N samples drawn i.i.d. from N (&#181;, I) where &#181; &#8805; &#945;.</p><p>Proof. First, we can learn the mean &#181; with 1o(1) probability up to error O( &#8730; d) and with (0, &#949;)privacy, by picking a random point among the sampled N &#8242; &#8805; N &#8805; 1 &#949; points and outputting that as our initial guess &#956;. If the estimate &#956; is not O( &#8730; d) in magnitude, we can instantly reject the null hypothesis and output 1.</p><p>Next, consider partitioning the points X (1) , . . . , X (N &#8242; ) into groups that each contain N points, and the groups are in turn partitioned into "supergroups" that each contain O(log log d &#945; ). There are a total of O(log d &#945; ) supergroups. Now, for each point X (j) in the tth supergroup, we replace it with X &#8242;(j) := (X</p><p>, where Z j &#8764; N (0, I) is independent for each point X (j) . Note that if X (j) &#8764; N (&#181;, I), then X &#8242;(j) &#8764; N (&#181;/2 t-1 , I). Now, for each group, we run A on the N points X &#8242;(j) that are now in it. The output for each group will either be 0 or 1. Next, for each t, we compute the majority output for all groups in the tth supergroup to obtain a bit b t , which is either 0 or 1. Our final algorithm returns 0 if and only if b t = 0 for all 1 &#8804; t &#8804; O(log d &#945; ). First, suppose that the samples X (j) are drawn i.i.d. from N (0, I). Then, the samples X &#8242;(j) are also i.i.d. from N (0, I). This means that each time we run A on some group, we output 0 with probability at least 2/3, which means that the majority output in any supergroup will be 0 with probability at least 1 -c log d/&#945; for some small constant c. So, each b t equals 0 with probability at least 1 -c log d/&#945; , which means that all of the b t 's equal 0 with probability at least 3/4. In addition, our initial guess &#956; has norm at most O( &#8730; d) with 1o(1) probability, so we output 0 as our final answer with probability at least 3/4o(1) &#8805; 2/3.</p><p>Next, suppose that the samples are drawn i.i.d. from N (&#181;, I), where O(</p><p>. Then, every X &#8242;(j) in the th supergroup is i.i.d. N (&#181;/2 t-1 , I), where &#945; &#8804; &#181;/2 t-1 &#8804; 2&#945;. So, in each group in the tth supergroup, A outputs 1 with probability at least 2/3, which means that b t = 1 with probability at least 1 -c log d/&#945; &#8805; 2/3. We may have rejected the null hypothesis immediately, but that only helps us.</p><p>Finally, if the samples are drawn i.i.d. from N (&#181;, I), where &#181; &#8805; O( &#8730; d), then we would have rejected the null hypothesis immediately with probability at least 1o(1). Hence, the overall algorithm is accurate.</p><p>To verify that the algorithm is private, note that replacing each X (j) with X &#8242;(j) only depends on the value X (j) and the position j. In addition, we are performing (&#949;, 0)-DP algorithms on each group, but the groups are distinct. So, any algorithm that only depends on the output of A on each group is still (&#949;, 0)-DP. In addition, the first part of the algorithm of determining &#956; is (0, &#949;)-DP, so the overall algorithm is (&#949;, &#949;)-DP by the weak composition theorem. Thus, we can modify the algorithm to be (O(&#949;), 0)-DP, by Proposition A.10.</p><p>Remark. We note that Proposition A.13 extends easily to the cases of unknown but bounded covariance Gaussians, product distributions, and tolerant identity testing. Indeed, for the case of bounded covariance Gaussians, we note that we can replace each X (j) in the tth supergroup with X &#8242;(j) := (X (j) + &#8730; 2 2t-2 -1 &#8226; Z j )/2 t-1 where Z j &#8764; N (0, I), and then each X &#8242;(j) in the tth supergroup is independent and has distribution</p><p>For the case of product distributions, if each sample X (j) were drawn from P(&#181;), we can replace it with X &#8242;(j) where each coordinate of X &#8242;(j) i is independently equal to X (j) i with probability 1 2 + 1 2 t and is -X</p><p>Then, note that the distribution of X &#8242;(j) is precisely P(&#181;/2 t-1 ). Finally, in the case of tolerant testing, note that if &#181; &#8804; &#945;/2, then &#181;/2 t-1 &#8804; &#945;/2 t &#8804; &#945;/2 for all t &#8805; 1, so the same reduction in Proposition A.13 holds.</p><p>Therefore, in all of our theorems, it suffices to consider the null hypothesis of &#181; = 0 and the alternative hypothesis of &#945; &#8804; &#181; &#8804; 2&#945;. (Recall that we can assume WLOG that &#181; * = 0 always, and that &#931; = I in the known-covariance Gaussian case.)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B Concentration Bounds</head><p>The main focus of this section is to state and prove various concentration bounds that are crucial in establishing accuracy of our differentially private algorithms. These bounds establish important properties of a matrix T where T i,j = X (i) , X (j) , and each X (i) is drawn i.i.d. either from some Gaussian N (&#181;, I) or some Boolean Product distribution P(&#181;). We have 4 types of bounds. We will combine these bounds together in Theorem B.13. We will also prove related results (Propositions B.14 and B.15, and Theorem B.16) for when each sample X (i) is drawn i.i.d. from some Gaussian N (&#181;, &#931;), where &#931; 2 &#8804; 1 is unknown. This will be important for generalizing our upper bound results in Theorem 1.8. Finally, we will also prove two results relating to univariate Normal and chi variables (Propositions B.17 and B.18), which will be important in establishing our sample complexity lower bound.</p><p>Lemma B.1. [CKM + 20] Let X (1) , . . . , X (N ) i.i.d.</p><p>&#8764; N (&#181;, I), and let X = N i=1 X (i) . Then,</p><p>Lemma B.2. [CKM + 20] Let X (1) , . . . , X (N ) i.i.d. &#8764; P(&#181;), where &#181; &#8804; 1, and let X = N i=1 X (i) . Then,</p><p>&#8764; N (&#181;, I), where &#181; &#8804; 1. Then, with probability at least 1 -</p><p>Proof. By rotational symmetry of Gaussians, we may assume WLOG that &#181; = (&#946;, 0, 0, . . . , 0), where &#946; = &#181; . Then,</p><p>. By Theorem A.9, we have that P(|&#967; 2 k -k| &#8805; 2 &#8730; kt+2t) &#8804; 2e -t for all t &#8805; 0, so by setting k = d-1 and t = O(log N ), we have that</p><p>&#8764; N (0, 1). We have</p><p>and using the fact that</p><p>&#8764; P(&#181;). Then, X 2 = d with probability 1, and with probability at least 1 -</p><p>Proof. Since X &#8712; {-1, 1} d , we always have X 2 = 1. So, the first part of the lemma is immediate.</p><p>For the second part of the lemma, we have</p><p>In addition, X i Y i is bounded, so it has variance O(1). By Hoeffding's inequality, with probability at least 1</p><p>. This proves the second part of the lemma.</p><p>Proposition B.5. Fix a vector v &#8712; R d of magnitude 1 and a vector &#181; &#8712; [-1, 1] d , and let K &#8805; 1 be a fixed integer. Let X (1) , . . . , X (K) be distributed either as i.i.d. d-dimensional Gaussians N (&#181;, I) or as i.i.d. product distributions P(&#181;), and define X := X (1) +&#8226; &#8226; &#8226;+X (K) . Then, Y := X -K &#8226;&#181;, v is a subgaussian random variable with subgaussian norm at most O( &#8730; K), meaning that P[|Y | &#8805; t] &#8804; 2e -&#8486;(t 2 /K) for all t &#8805; 0.</p><p>Proof. Suppose X is distributed as the sum of K i.i.d. d-dimensional Gaussians N (&#181;, I). Then,</p><p>Hence it has subgaussian norm at most &#8730; K. Suppose X is distributed as the sum of K i.i.d. d-dimensional product distributions over {-1, 1} d with mean &#181;. Then, Xi -K &#8226; &#181; i is the sum of K i.i.d. mean 0 variables bounded in magnitude by 2. Hence, each of these bounded variables has subgaussian norm O(1), so Xi -</p><p>, and the random variables Xi -K &#8226; &#181; i have mean 0 and are independent. Therefore, by</p><p>Lemma B.6. Let X (1) , . . . , X (N ) be distributed either as i.i.d. d-dimensional Gaussians N (&#181;, I) or as i.i.d. product distributions P(&#181;), where &#181; &#8804; 1. Then, X (1) , X (1) +</p><p>Proof. First, note that by Lemmas B.3 and B.4, we have that N ) , by setting K = N -1, v = X (1) / X (1) , and t = O( (N -1) log N ) in Proposition B.5, we have that with probability at least 1 -</p><p>. In addition, we know that</p><p>) with probability at least 1 -1 N 3 . Finally, we note that in the Gaussian setting, X (1) , &#181; is distributed as N (0, &#181; 2 ), and in the product distribution testing, X (1) , &#181; is distributed as d i=1 X</p><p>(1)</p><p>for both the Gaussian and product settings.</p><p>To summarize, we have that</p><p>which with probability at least 1</p><p>Proposition B.7. Let Z &#8764; N (0, 1) be a standard univariate Gaussian. Then, for any -</p><p>Proof. By integrating the PDF of the standard normal, we have that</p><p>for all &#947; &#8712; [-1/10, 1/10].</p><p>Proposition B.8. Let K &#8805; 1 be an integer, and</p><p>). Proof. First, by Hoeffding's inequality, we have that for any t &#8805; 0, P(|Z| &#8805; t) &#8804; 2e -t 2 /2 . Therefore,</p><p>Now, for all x &#8712; R, note that e x &#8804; 1 + x + x 2 e |x| , which is immediate by the Taylor series expansion of x. Hence, for any -1 10 &#8804; &#947; &#8804; 1 10 , e &#947;Z 2 &#8804; 1 + &#947;Z 2 + &#947; 2 Z 4 e |&#947;|Z 2 . Further, we can write x &#8804; e x for all x, which means Z 2 /10 &#8804; e Z 2 /10 , so Z 2 &#8804; 10e Z 2 /10 . Therefore, e &#947;Z 2 &#8804; 1 + &#947;Z 2 + &#947; 2 Z 4 e |&#947;|Z 2 &#8804; 1 + &#947;Z 2 + 10 2 &#947; 2 e (|&#947;|+1/5)Z 2 . Now, using the fact that E[Z 2 ] = Var(Z) = &#951;, we have that</p><p>Proposition B.9. Let X (1) , . . . , X (K) &#8764; N (0, 1) be i.i.d. d-dimensional Gaussians. Then, for any sufficiently large C, X (1) + ) . Note that each coordinate Xi has distribution N (0, K). Therefore, for any &#947; &#8712;</p><p>. Therefore, since each coordinate of X is independent, by Proposition B.7,</p><p>If we set 0 &lt; &#947; &lt; 0.1, this means that for any C &#8805; 0,</p><p>Likewise, if we set -0.1 &lt; &#947; &lt; 0, this means that for any C &#8805; 0,</p><p>In the case that K &#8804; d/100, we set</p><p>) &#8804; e -C/20&#8226;K , assuming C is sufficiently large. Hence, we have that</p><p>Proposition B.10. Let X (1) , . . . , X (K) &#8764; N (0, 1) be i.i.d. from P(&#181;), where &#181; &#8712; [-1, 1] d . Then, for any sufficiently large C,</p><p>Proof. The proof is almost identical to that of Proposition B.9. Now, note that X (k) i for each k &#8712; [K] is i.i.d., bounded in magnitude by 1, and has mean &#181; i . Therefore, the ith coordinate of X := X</p><p>where Z is captured by the distribution in Proposition B.8, and V ar(Z) = 1&#181; 2 i . Therefore, for any &#947; &#8712;</p><p>The remainder of the proof is identical, except with replacing Kd + C(K</p><p>Lemma B.11. Let X (1) , . . . , X (K) be distributed i.i.d. from N (&#181;, I), where &#181; &#8804; 1. Then, with probability at least 1 -O(N -2K ), we have that</p><p>Proof. By Proposition B.9, if we set C as a sufficiently large multiple of log N , then with probability at least 1 -</p><p>Therefore, with probability at least 1 -O(N -2K ), we have</p><p>Lemma B.12. Let X (1) , . . . , X (K) be distributed i.i.d. from P(&#181;), where &#181; &#8804; 1. Then, with probability at least 1 -O(N -2K ), we have that</p><p>Proof. By Proposition B.10, if we set C as a sufficiently large multiple of log N , then with probability at least 1 -</p><p>In addition, for any fixed vector &#181;, by Proposition B.5,</p><p>Therefore, with probability at least 1 -O(N -2K ), we have</p><p>Combining these concentration bounds together, we obtain the following theorem.</p><p>Theorem B.13. Let &#945; &#8804; 1 2 , and let &#181; &#8712; R d satisfy &#181; &#8804; 2&#945;. Let X (1) , . . . , X (N ) be drawn i.i.d. either according to N (&#181;, I) or according to P(&#181;). Finally, let T be the matrix with entries T i,j = X (i) , X (j) . Then, with probability at least 0.99, the following all hold simultaneously.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">We have</head><p>2. For all i, T i,i = d &#177; &#213;( &#8730; d) and for all i = j, T i,j = &#177; &#213;( &#8730; d).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">For all</head><p>Proof. Part 1 of the theorem is immediate from Lemmas B.1 and B.2, if we use Chebyshev's inequality to make the failure probability 0.005. Part 2 is immediate from Lemmas B.3 and B.4, and since we need this to be true for all pairs (i, j), the failure probability is at most</p><p>To see why Part 3 follows from Lemma B.6, note that by symmetry, the result of Lemma B.6 also holds for N j=1 T i,j = X (i) , X (1) + &#8226; &#8226; &#8226; + X (N ) . Since we need this to be true for all i, the failure probability is at most O(1/N 3 ) &#8226; N = O(1/N 2 ). In addition, since T is a symmetric matrix, we have that the sum of the entries in row i and the sum of the entries in column i are the same, so we also have that for all j, N i=1</p><p>Finally, Part 4 follows from Lemmas B.11 and B.12, since they imply that i&#8712;S X (i) 2 = i,j&#8712;S T i,j = Kd &#177; &#213;(K &#8730; Kd + K 2 ) with failure probability O(N -2K ). Union bounding this over all subsets of size K in [N ] and over all choices of K still means the failure probability is at most</p><p>Hence, the overall failure probability is at most 0.005 + O(1/N ) &#8804; 0.01. Proposition B.14. Let X &#8764; N (0, &#931;), where &#931; 2 &#8804; 1. In addition, let J := T r(&#931;). Then, for any sufficiently large C, X 2 = J &#177; ( &#8730; Cd + C) with probability at least 1e -C/10 . Proof. By rotating, we may assume WLOG that &#931; is diagonal. Then, note that</p><p>N (0, 1). We apply Theorem A.9, where n = d, and</p><p>Proposition B.15. Let X &#8764; N (0, &#931;), where &#931; 2 &#8804; 1. Then, for any vector &#181; of magnitude at most 2&#945;, &#181;, &#931; has subgaussian norm at most O(&#945;).</p><p>Proof. Note that &#181;, &#931; is a Gaussian with variance &#181; T &#931;&#181; &#8804; &#181; 2 &#8226; &#931; 2 &#8804; 4&#945; 2 . So, the subgaussian norm is at most O(&#945;).</p><p>Theorem B.16. Let &#945; &#8804; 1 2 , and let &#181; &#8712; R d satisfy &#181; &#8804; 2&#945;. Let X (1) , . . . , X (N ) be drawn i.i.d. either according to N (&#181;, &#931;), where &#931; 2 &#8804; 1 is unknown. Finally, let T be the matrix with entries T i,j = X (i) , X (j) . Then, with probability at least 0.99, the following all hold simultaneously.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">We have</head><p>2. For all i, T i,i = d &#177; &#213;( &#8730; d) and for all i = j, T i,j = &#177; &#213;( &#8730; d).</p><p>3. For all i, N j=1 T i,j = d &#177; &#213;( &#8730; N d + &#945; &#8226; N ), and for all j, N i=1 T i,j = J &#177; &#213;(</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">For all subsets</head><p>Proof. For part 1 of the theorem, note that</p><p>But we know that since &#181;, X has subgaussian norm at most O(&#945;), so doesn't exceed O(&#945;) in absolute value with probability at least 0.999. In addition, by Proposition B.14, we have that X 2 = J &#177; O( &#8730; d) with probability at least 0.999. Together, this implies that</p><p>For part 2 of the theorem, note that T i,i has distribution &#181; + X 2 , where &#181; &#8804; 1 and X &#8764; N (0, &#931;). In addition, note that &#181; + X 2 = &#181; 2 + 2 &#181;, X + X 2 . By Proposition B.14, X 2 = J &#177; &#213;( &#8730; d) with probability at least 1 -1 N 3 , and by Proposition B.15, &#181;, X = &#177; &#213;(1) with probability at least 1 -1 N 3 . Finally, &#181; 2 &#8804; 1. Overall, this implies that with probability at least 1 -2 N 2 , T i,i = J &#177; &#213;( &#8730; d) for all i.</p><p>For i = j, note that T i,j has distribution &#181; + X, &#181; + X &#8242; , where X, X &#8242; i.i.d. &#8764; N (0, &#931;). So, &#181; + X, &#181; + X &#8242; = &#181; 2 + &#181;, X + &#181;, X &#8242; + X, X &#8242; . We already know that &#181; 2 , &#181;, X , &#181;, X &#8242; are all in the range &#177; &#213;(1) with probability 1 -2 N 3 . In addition, X,</p><p>) with probability at least 1 -2 N 3 . Overall, we have that for all i = j, T i,j = &#181; + X, &#181; + X &#8242; = &#177; &#213;( &#8730; d) with probability at least 1 -O( 1 N ). For part 3 of the theorem, by symmetry it suffices to show that N j=1 T i,j = d &#177; &#213;( &#8730; N d + &#945; &#8226; N ) for any fixed i with probability at least 1 -O( 1 N 2 ). Note that j =i T i,j = X (i) , j =i X (j) and j =i X (j) has distribution N ((N -1) &#8226; &#181;, (N -1) &#8226; &#931;). Hence, j =i T i,j has distribution &#181; + X, (N -1)&#181; + &#8730; N -1X &#8242; , where X, X &#8242; i.i.d. &#8764; N (0, &#931;). We can write this as (N -1)</p><p>). Also, we already saw that with probability at least 1 -O( 1 N 2 ), &#181;, X , &#181;, X &#8242; = &#177; &#213;(&#945;), and X, X &#8242; = &#213;( &#8730; d). So overall, with failure probability at most</p><p>with the desired failure probability. For part 4, note that for any fixed subset</p><p>, and since X, &#181; has subgaussian norm at most O(1) by Proposition B.15, we have that 2K &#8730; K X, &#181; = &#177; &#213;(K 2 ) with probability at least 1 -N -2K . Finally, by Proposition B.14, we have that K</p><p>with probability at least 1 -N -2K . Hence, with probability at least 1 -2N -2K , we have that</p><p>). Taking a union bound over all 1 &#8804; K &#8804; N and all N K &#8804; N K sets S of size K, we have that this holds for all S with probability at least 1 -O( 1 N ). Finally, we also prove a result relating the Normal distribution and the &#967; d distribution, as well as a result relating Normal distributions with different scalings.</p><p>Proposition B.17. As d &#8594; &#8734;, we have that</p><p>where the first equality follows by Stirling's formula and the second equality follows by rearrangement. For x = &#8730; d + &#952; for any &#952; bounded by a constant, this equals</p><p>where the first equality follows by setting x = &#8730; d + &#952;, the second equality follows using a Taylor expansion for ln(1 + x) for x = &#952; &#8730; d and noting that &#952; = &#177;O(1), and the third equality follows by rearrangement.</p><p>Hence, for any fixed constant C, the PDF of</p><p>For any two distributions F, G over with PDFs f (x), g(x), it is well known that d TV (F, G) &#8804; &#8734; -&#8734; max(f (x)g(x), 0). Hence, by setting f (x) as the PDF of N (0, 1/2) and g(x) as the PDF of &#967; d , we have that</p><p>). As this is true for all C, the result is immediate.</p><p>Proposition B.18. We have that d TV N (0, 1 2 ), N (0, 1) &#8804; 1 6 . Proof. We can compute the total variation distance as</p><p>C Proof of Theorem 1.5</p><p>In this section, we prove Theorem 1.5, which establishes a (tight) sample complexity upper bound of</p><p>for identity testing of Gaussians with known covariance. We also conclude with a brief section describing the necessity of changing the construction used by [CKM + 20] in order to make the construction fully correct.</p><p>First, we note by Proposition A.13, we may assume that the null hypothesis H 0 is that we are given N samples i.i.d. from N (0, I), and the alternative hypothesis H 1 is that we are given N samples i.i.d. from N (&#181;, I), where &#945; &#8804; &#181; &#8804; 2&#945;.</p><p>The major tool we use in developing our sample-optimal but inefficient upper bound is the McShane-Whitney Extension theorem, which we now state.</p><p>Theorem C.1. <ref type="bibr">[McS34]</ref> Let X be any metric space with a metric &#961;, and let C &#8834; X . Suppose there is a function F : C &#8594; R and a positive real number D such that F is D-Lipschitz on C, i.e., for all x, y &#8712; C, |F (x) -F (y)| &#8804; D &#8226; &#961;(x, y). Then, there exists an extension F : X &#8594; R such that F (x) = F (x) for all x &#8712; C, and F is D-Lipschitz on all of X , meaning that for all x, y &#8712; X ,</p><p>We will apply Theorem C.1 with X = (R d ) N , i.e., X is the set of all datasets of size N in R d . The distance metric &#961; that we use measures the number of differing rows, i.e., for X = {X (1) , . . . , X (N ) } and X &#8242; = {X &#8242;(1) , . . . , X &#8242;(N ) }, we define &#961;(X, X &#8242; ) = {i : X (i) = X &#8242;(i) } . For a dataset X &#8712; (R d ) N , we associate with it the matrix T &#8712; R N &#215;N with entries T i,j := X (i) , X (j) . We will define C := C &#945; &#8834; (R d ) N to be the set of datasets {X (1) , . . . , X (N ) } that satisfy Properties 2, 3, and 4 listed in Theorem B.13. More precisely, we choose some sufficiently large L = poly(log N ), and define C to be the set of all datasets X &#8712; (R d ) N such that</p><p>We prove the following lemma.</p><p>Lemma C.2. Let X, X &#8242; &#8834; C be datasets that differ in K &#8804; C &#949; rows, for some fixed C. Let X = N i=1 X (i) , and X&#8242; = N i=1 X &#8242;(i) . Then,</p><p>Proof. Write X = Y + Z and X&#8242; = Y + Z &#8242; , where Y is the sum of the identical rows in X and X &#8242; , Z is the sum of the rows in X that are not the same in X &#8242; , and Z &#8242; is the sum of the rows in X &#8242; that are not the same in X. Let T be the matrix with T i,j = X (i) , X (j) , and T &#8242; be the matrix with</p><p>represent the indices of the rows in X and X &#8242; that differ. Then, note that Z, X equals the sum of the entries T i,j with i &#8712; S, j &#8712; [N ] (and similarly Z &#8242; , X&#8242; is the sum of the entries T &#8242; i,j with i &#8712; S, j &#8712; [N ]). Also, Z 2 is the sum of the entries T i,j with i, j &#8712; S (and similarly Z &#8242; 2 is the sum of the entries</p><p>In addition, since Z 2 is the sum of the entries T i,j with i, j &#8712; S, and since |S| = K, we have that</p><p>Similarly, we also have</p><p>where the last line follows because K &#8804; C &#949; and K &#8804; N .</p><p>Let C be a sufficiently large constant, and let &#8710; :</p><p>, and suppose that &#8710; &#8804; D. We now consider the statistic function T :</p><p>We first show that T : C &#8594; R is D-Lipschitz, where we recall that the distance metric &#961; over C is the number of differing rows.</p><p>Lemma C.3. Assume that &#8710; &#8804; D. Then, for any integer K and any datasets X,</p><p>Proof. First, assume that K &#8805; C &#8226; &#949; -1 , where we recall that C is a large constant and that</p><p>Then, since T (X) and T (X &#8242; ) are bounded below by 0 and bounded above by</p><p>Since T (X) simply takes X 2 , subtracts N d, and then prevents the statistic from being less than 0 or more than &#945; 2 &#8226; N 2 (and similar for T (X &#8242; )), we will also have that</p><p>Hence, by Theorem C.1, there exists an extension T of T from (R d ) N &#8594; R, such that for any datasets X, X &#8242; &#8712; (R d ) N that differ in K rows, | T (X) -T (X &#8242; )| &#8804; K &#8226; D. Our final (computationally inefficient) algorithm will be the following. We compute T (X) + Lap(D/&#949;). If this exceeds &#945; 2 &#8226;N 2 2 , we output 1, and otherwise we output 0. (Note that this algorithm is computationally inefficient because computing the extension T is computationally inefficient.)</p><p>We are now ready to prove Theorem 1.5.</p><p>Proof. of Theorem 1.5: First, we note that this algorithm is (&#949;, 0)-differentially private because T (X) has sensitivity at most D whenever we change a single row of X, by the properties of our Lipschitz extension.</p><p>To verify accuracy, note that if each row of X is drawn i.i.d. from N (0, I), then with probability at least 0.99, X &#8712; C and X 2 &#8804; N d &#177; CN &#8730; d by Theorem B.13, assuming C is sufficiently large. Hence, with probability at least 0.99, T (X) = T (X) &#8804; CN &#8730; d, which means that with probability at least 0.9, T (X) + Lap(D/&#949;) &#8804; CN &#8730; d + 10 &#8226; D &#949; , which we want to be at most &#945; 2 &#8226;N 2 2 . Indeed, if C is sufficiently large, then 10</p><p>) by Theorem B.13. Hence, with probability at least 0.99, T (X) = T (X)</p><p>, which means that with probability at least 0.9, T (X</p><p>&#949; , which we want to be at least &#945; 2 &#8226;N 2 2 . If C is sufficiently large, then 10</p><p>Hence, our algorithm is both accurate and private as long as N is sufficiently large so that &#8710; = 6L</p><p>This completes the proof.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C.1 On changing the construction of [CKM + 20]</head><p>An important part of both our argument and the argument of [CKM + 20] for the inefficient testing algorithm was that the statistic F on the subset C is D-Lipschitz. The previous work of [CKM + 20] made the subtle mistake of assuming that it suffices for any two adjacent datasets X , X &#8242; in C to satisfy |F (X ) -F (X &#8242; )| &#8804; D. In reality, we need that for any datasets X , X &#8242; &#8712; C that differ in K positions (for any</p><p>It is reasonable to believe these definitions are equivalent: indeed, if X , X &#8242; &#8712; C differ by K positions, then we can construct a series of adjacent datasets X =: X (0) , X (1) , X (2) , . . . , X (N ) := X &#8242; where X (i-1) and X (i) are adjacent. A natural guess is that if X , X &#8242; &#8712; C, then one can ensure that each X (i) is also in C. If so, then a triangle inequality implies the statistic F is D-Lipschitz on C, as long as adjacent datasets in C have the statistic differ by at most D.</p><p>Unfortunately, it may be impossible to make the intermediate datasets X (i) be in C for the choice of C used in [CKM + 20]. Indeed, the choice of C used in [CKM + 20] was the set of data X = {X (1) , . . . , X (N ) } (where each X (i) &#8712; R d ) such that X (i) 2 &#8804; &#8710; and | X (i) , X (1) + &#8226; &#8226; &#8226;+ X (N ) | &#8804; &#8710; for some appropriate choice of &#8710;. However, even if N = 2, d = 3, and K = 2, we lose our desired property. For instance, define a = (1, 0, 1), b = (-1, 0, 1), c = (0, 1, 1), and d = (0, -1, 1) to be points in R d . Let C be the set of pairs {X (1) , X (2) } such that X (i) 2 &#8804; 2 and | X (i) , X (1) + X (2) | &#8804; 2, for both i = 1 and i = 2. It is clear that the sets {a, b} and {c, d} are in C, and they differ in K = 2 positions. However, any method of 2 steps used to convert {a, b} to {c, d} cannot stay in C throughout, because one can see that none of {a, c}, {a, d}, {b, c}, or {b, d} are in C.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D Proof of Theorem 1.6</head><p>In this section, we prove Theorem 1.6. In other words, we show that any (0, &#949;)-differentially private algorithm that can successfully distinguish between samples from N (0, I) and N (&#181;, I) for &#181; &#8805; &#945; requires at least &#8486; d 1/2 &#945; 2 + d 1/3 &#945; 4/3 &#8226;&#949; 2/3 + 1 &#945;&#8226;&#949; samples. We reiterate that in the case of differentially private hypothesis testing, the sample complexity required for (&#949;, 0)-DP and (0, &#949;)-DP are known to be asymptotically equivalent for any &#949; &lt; 1 2 <ref type="bibr">[ASZ18]</ref>. First, we note that even a non-private algorithm that can successfully distinguish between N samples from N (0, I) and N (&#181;, I) where &#181; &#8805; &#945; requires</p><p>]. Hence, it suffices to show that a (0, &#949;)-private algorithm that can successfully distinguish between N samples from N (0, I) and N (&#181;, I) where &#181; &#8805; &#945; requires N &#8805; &#8486;</p><p>We remark that in the related scenario of privately testing a binary discrete distribution, the N &#8805; &#8486; 1 &#945;&#8226;&#949; has already been established <ref type="bibr">[ASZ18]</ref>. The proof in the Multivariate Gaussian case will not be significantly different (in fact, this part of the lower bound holds even for a univariate Gaussian), but we include the proof for completeness.</p><p>First, we will generalize our previous notion of privately distinguishing between two hypotheses of i.i.d. samples to privately distinguishing between hypotheses of possibly non-i.i.d. samples. Now, we will consider the problem of privately distinguishing between two distributions U and V over X N . Here, U and V need not be i.i.d. samples. For an algorithm A : X N &#8594; {0, 1} to (&#949;, &#948;)-privately distinguish between two distributions U and V over X N (in our case X = R d ), it must hold that:</p><p>&#8226; If X = (X (1) , . . . , X (N ) ) &#8764; U , then P(A(X) = 0) &#8805; 2 3 .</p><p>&#8226; If X = (X (1) , . . . , X (N ) ) &#8764; V, then P(A(X) = 1) &#8805; 2 3 .</p><p>To prove our lower bound on the number of samples N , it suffices to prove a lower bound for distinguishing between U and V where U is the distribution of N i.i.d. samples from N (0, I), and V is generated by first taking some distribution D supported only on points &#181; &#8712; R d with &#181; 2 &#8805; &#945;, and then sampling X (1) , . . . , X (N ) &#8764; N (&#181;, I), where &#181; &#8764; D. To see why, suppose there existed an algorithm A that could privately distinguish between H 0 of all samples being i.i.d. N (0, I) and H 1 of all samples being i.i.d. N (&#181;, I) for any &#181; &#8805; &#945;. Then, A would be (&#949;, &#948;)-DP, and if X &#8764; U , then P(A(X) = 0) &#8805; 2 3 . Finally, if X = (X (1) , . . . , X (N ) ) &#8764; V, then P(A(X) = 1) &#8805; 2 3 . This is true because we can condition on the choice of &#181; &#8764; D, and we always have that P(A(X) = 1) &#8805; 2 3 regardless of what choice of &#181; we picked. <ref type="foot">4</ref>Next, we note the following theorem which will be crucial in establishing our lower bounds.</p><p>Theorem D.1. [ASZ18, Theorem 11, rephrased] Let X represent the domain that samples are coming from, and assume U and V be distributions over X N (which may not necessarily be i.i.d. samples), such that there is a coupling between U , V such that E X&#8764;U ,X &#8242; &#8764;V [&#961;(X, X &#8242; )] &#8804; D. Then, if there existed an algorithm that could (0, &#949;)-privately distinguish between H 0 : X &#8764; U and H 1 : X &#8764; V, then D &#8805; c 1 /&#949; for some constant c 1 &gt; 0.</p><p>As a corollary, we have the following result.</p><p>Corollary D.2. Again, let X represent the domain, and let U , V be distributions over X N . Suppose that there exist distributions U &#8242; , V &#8242; such that d TV (U , U &#8242; ), d TV (V, V &#8242; ) &#8804; 1 4 . In addition, suppose there is a coupling between U &#8242; , V &#8242; such that E X&#8764;U &#8242; ,X &#8242; &#8764;V &#8242; [&#961;(X, X &#8242; )] &#8804; D. Then, if there existed an algorithm that could (0, &#949;)-privately distinguish between H 0 : X &#8764; U and H 1 : X &#8764; V, then D &#8805; c 2 /&#949; for some constant c 2 &gt; 0.</p><p>Proof. Suppose there exists an algorithm A that could (0, &#949;)-privately distinguish between H 0 : X &#8764; U and H 1 : X &#8764; V. This means that if X &#8764; U , A = 0 with probability at least 2/3, and if X &#8764; V, A = 1 with probability at least 2/3. By repeating the algorithm O(1) times and taking the majority, we can improve the value 2/3 to 11/12, though the algorithm is now (0, C&#949;)-DP for some constant C. But then, since d TV (U , U &#8242; ) &#8804; 1/4, this means that |P X&#8764;U (A(X) = 0) -P X&#8764;U &#8242; (A(X) = 0)| &#8804; 1/4 for any algorithm A, which means that P X&#8764;U &#8242; (A(X) = 0) &#8805; 11 12 -1 4 &#8805; 2 3 . By a symmetric argument, P X&#8764;V &#8242; (A(X) = 1) &#8805; 2 3 . Therefore, we can apply Theorem D.1 to conclude that</p><p>Before we prove the main part of the lower bound (i.e., that N &#8805; &#8486; d 1/3 &#945; 4/3 &#8226;&#949; 2/3 ), we first show how Theorem D.1 implies an &#8486; 1 &#945;&#8226;&#949; -lower bound. We first have the following proposition.</p><p>Proposition D.3. Let U represent the distribution of selecting X = {X (1) , . . . , X (N ) } i.i.d.</p><p>&#8764; N (0, I), and let V represent the distribution of selecting X &#8242; = {X &#8242;(1) , . . . , X &#8242;(N ) } i.i.d.</p><p>&#8764; N (&#181;, I), where &#181; = (&#945;, 0, 0, . . . , 0) &#8712; R d , and 0 &lt; &#945; &#8804; 1. Then, there exists a coupling between U , V such that</p><p>Proof. We start by considering univariate Normal distributions. Consider drawing the PDF of N (0, 1) and of N (&#945;, 1). Let S be the region of points (x, y) &#8712; R 2 , where y is nonnegative but below the PDF of N (0, 1) at x. Likewise, let S &#8242; be the region of points (x, y) &#8712; R 2 , where y is nonnegative but below the PDF of N (&#945;, 1) at x. Both S, S &#8242; have area 1 by definition of PDF, and the intersection of S, S &#8242; has area 1d TV (N (0, 1), N (&#945;, 1)) = 1 -&#920;(&#945;). Now, we consider the following method of generating samples X (1) , . . . , X (N ) and X &#8242;(1) , . . . , X &#8242;(N ) over R d . For each i, pick a point (x, y) uniformly at random in S, and let X (i) 1 = x. If (x, y) &#8712; S &#8242; , then we define (x &#8242; , y &#8242; ) = (x, y). Otherwise, we choose (x &#8242; , y &#8242; ) uniformly at random from S &#8242; \S. Finally, we let X</p><p>n each as an i.i.d. N (0, 1). First, note that each X (i) is independent and has the correct distribution. Also, note that each X &#8242;(i) is independent. To check the distribution of X &#8242;(i) , note that we select a point (x, y) in S &#8745; S &#8242; with probability 1d TV (N (0, 1), N (&#945;, 1)) = 1 -&#920;(&#945;), which equals the area of S &#8745; S &#8242; . Hence, with probability equal to this area, we select a uniform point (x &#8242; , y &#8242; ) in S &#8745; S &#8242; , and otherwise, we select a uniform point (x &#8242; , y &#8242; ) in S &#8242; \S, so the overall distribution of (x, y) is just uniform from S &#8242; . Hence, X &#8242;(i) 1 has the distribution N (&#945;, 1), which means that X &#8242;(i) has the correct distribution. The final thing we verify is that E[&#961;(X, X &#8242; )] = O(&#945;)&#8226;N . Indeed, note that X (i) = X &#8242;(i) whenever we selected (x, y) &#8712; S &#8745; S &#8242; , so P(X (i) = X &#8242;(i) ) is at most 1 minus the area of S &#8745; S &#8242; , which is O(&#945;). Hence, by linearity of expectation, we have that E[&#961;(X, X &#8242; )] = O(&#945;) &#8226; N .</p><p>Note that we immediately get an &#8486; 1 &#945;&#8226;&#949; sample complexity lower bound, even in 1 dimension. Indeed, to determine whether we have N samples from N (0, I) or from N (&#181;, I), by combining Proposition D.3 and Theorem D.1, we need that O(&#945;) &#8226; N &#8805; c 1 /&#949;, which means that N &#8805; &#8486; 1 &#945;&#8226;&#949; . We now set up our main lower bound. Let D be the distribution N (0, 2&#945; 2 d &#8226; I) conditioned on the magnitude being at least &#945;. Note that D has no support in the region {x : x &#8804; &#945;}. Let V be the distribution over {X (1) , . . . , X (N ) } where we first draw &#181; &#8764; D and then draw each X (i) from N (&#181;, I). Also, let U be the distribution over {X (1) , . . . , X (N ) } where we draw each X (i) from N (0, I). Our goal will be to show the following: unless N &#8805; &#8486;</p><p>We will also need the following two basic propositions.</p><p>Proposition D.4. Let X (1) , . . . , X (N ) &#8764; N (0, I) and X = X</p><p>, where &#967; d is the square root of a chi-square variable with d degrees of freedom.</p><p>Proof. This is immediate from the fact that X &#8764; N (0, 1</p><p>&#8764; N (0, 1), which completes the proof.</p><p>Proposition D.5. Let X (1) , . . . , X (N ) &#8764; N (&#181;, I), where &#181; &#8764; N (0, 2&#945; 2 d I), and let X =</p><p>Proof. This is immediate from the fact that X = &#181; + N (0, 1</p><p>We now prove the following result.</p><p>Theorem D.6. Let D, U , V be as defined previously. Suppose that d &#8805; C and d &#945; 2 &#8805; C &#8226; N for some sufficiently large constant C. Then, unless N &#8805; &#8486;</p><p>Proof. We first show how to sample X (1) , . . . , X (N ) in a different manner that ends up with the same distribution as U . By Corollary A.8, the distribution of X (1) , . . . , X (N ) is the same as the distribution of X + Z (1) -Z, X + Z (2) -Z, . . . , X + Z (N ) -Z, where Z (1) , . . . , Z (N ) i.i.d. &#8764; N (0, I) and Z = Z (1) +&#8226;&#8226;&#8226;+Z (N)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>N</head><p>. By Proposition D.4 and the rotational symmetry of Gaussians, we can sample Therefore, we can replace the distribution b &#8764;</p><p>From here, we consider the distribution V &#8242; over {X &#8242;(1) , . . . , X &#8242;(N ) } where we draw each X &#8242;(i) &#8764; (b &#8242; +y &#8242;(i) )&#8226;v+z &#8242;(i) . Since the total variation distance between</p><p>In addition, as in the U case, we have that samples from {b &#8242; + y &#8242;(i) } N i=1 has the same distribution as samples from d N + 2&#945; 2 + y (i) , where each y (i) i.i.d.</p><p>&#8764; N (0, 1). So, we can draw samples from V &#8242; by sampling v uniformly from the unit sphere, sampling y (i) , z &#8242;(i) as before, and letting</p><p>for all i. To finish, we have to establish a coupling between U &#8242; and V &#8242; . To do this, we sample the same v uniformly on the sphere for both U &#8242; and V &#8242; , and the same choices of z &#8242;(i) for each i &#8712; [N ] for both U &#8242; and V &#8242; . Next, we note that we can couple the samples of d N + y (i) and the samples of</p><p>and applying Proposition D.3 in the one-dimensional case, we have that there exists a coupling between U &#8242; and V</p><p>samples for some constant c 3 . We wish to show that this is at</p><p>&#8226; d 1/3 &#945; 4/3 &#949; 2/3 , as desired. This completes the proof.</p><p>We are now ready to prove Theorem 1.6.</p><p>Proof. of Theorem 1.6: First, we already know that N &#8805; &#8486; &#8730; d &#945; 2 even in the non-private setting, and that N &#8805; &#8486; 1 &#945;&#8226;&#949; using Proposition D.3. So, it suffices to show that N &#8805; &#8486;</p><p>&#8226;N for some sufficiently large constant C, we will apply Theorem D.6. Consider the null hypothesis H 0 where the distribution {X (1) , . . . , X (N ) } is generated by sampling each X (i) i.i.d.</p><p>&#8764; N (0, I), and the alternative hypothesis H 1 where the distribution is generated by sampling &#181; &#8764; D and {X (1) , . . . , X (N ) } is generated by sampling each X (i) i.i.d. &#8764; N (&#181;, I). Since D only has support on &#181; 2 &#8805; &#945;, this is a valid alternative hypothesis. In this case, by Corollary D.2 and Theorem D.6, we must have that if an algorithm can (0, &#949;)-privately distinguish between H 0 and H 1 , then N &#8805; &#8486;</p><p>In addition, we also know that N &#8805; &#8486; 1 &#945;&#8226;&#949; . It is simple to verify that d 1/3 &#945; 4/3 &#8226;&#949; 2/3 is a weighted geometric average of d &#945; and 1 &#945;&#8226;&#949; , so we therefore also have N &#8805; &#8486; d 1/3 &#945; 4/3 &#8226;&#949; 2/3 . This completes the proof.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E Proof of Theorem 1.7</head><p>In this section, we prove Theorem 1.7. Again, we may apply Proposition A.13, and assume WLOG the null hypothesis H 0 is that we are given N samples i.i.d. from N (0, I), and the alternative hypothesis H 1 is that we are given N samples i.i.d. from N (&#181;, I), where &#945; &#8804; &#181; &#8804; 2&#945;. In addition, due to Proposition A.10, it suffices to show (0, O(&#949;))-DP rather than (&#949;, 0)-DP.</p><p>The main technical contribution in our proof is the following theorem, which provides an algorithm that can test whether the sum of the entries of a matrix is large or small, but the algorithm's output does not change significantly even if we alter an entire row or column of the matrix.</p><p>for some sufficiently large constant C. Then, there exists an algorithm A that runs in poly(N ) time on matrices in [-1, 1] N &#215;N and outputs either 0 or 1, with the following properties.</p><p>&#8226; For any matrices V, V &#8242; &#8712; [-1, 1] N &#215;N that only differ in a single row (or only differ in a single column),</p><p>&#8226; For any matrix V &#8712; [-1, 1] N &#215;N that has every row and column sum at most L in absolute value, and with sum of all entries at most &#947;&#8226;N 2 4 , then P[A(V) = 0] &#8805; 0.99.</p><p>&#8226; For any matrix V &#8712; [-1, 1] N &#215;N that has every row and column sum at most L in absolute value, and with sum of all entries at least 3&#947;&#8226;N 2 4 , then P[A(V) = 1] &#8805; 0.99.</p><p>Proof. Consider setting a threshold &#964; := L + 16K &#949; , where K := log 2 N . Now, consider the following set of functions {f k } K k=1 . For each k &#8712; [N ], we define f k (x) := max min(1, |x| &#964;k), 0 , i.e., it takes the function |x| &#964;k and prevents it from exceeding 1 or becoming negative. Now, given a matrix V &#8712; [-1, 1] N &#215;N and for each k &#8712; [K], we define the statistic</p><p>We prove the following fact. Proposition E.2. Consider two matrices V, V &#8242; &#8712; [-1, 1] N &#215;N that only differ either in a single row or in a single column, and consider some k &#8805; 2. Then,</p><p>Proof. By symmetry of F k with respect to rows and columns, assume WLOG that V, V &#8242; only differ in a single row i. Then, we can bound the absolute difference between F k (V) and F k (V &#8242; ) by considering only how the ith row changes, and how each column changes at the ith row position. As a result, we have</p><p>.</p><p>We note that since the range of f k is bounded in the range [0, 1], the first part of the summand above is at most 1. To bound the second part of the summand, we note that for all j &#8712; [N ], N i &#8242; =1 V i &#8242; ,j and N i &#8242; =1 V &#8242; i &#8242; ,j differ by at most 2, since only a single row changes and each entry remains in [-1, 1]. In this case, the difference between f k N i &#8242; =1 V i &#8242; ,j and f k N i &#8242; =1 V &#8242; i &#8242; ,j is at most 2 &#964; , and in fact only changes if either N i &#8242; =1 V i &#8242; ,j or N i &#8242; =1 V &#8242; i &#8242; ,j is at least k &#8226; &#964; in absolute value. This means that N i &#8242; =1 V i &#8242; ,j is at least k&#8226;&#964; -2 in absolute value, which means that f k-1 N i &#8242; =1 V i &#8242; ,j &#8805; 1-2 &#964; &#8805; 1 2 . Overall, this means that for all j &#8712; [N ],</p><p>Combining everything, we have that if V, V &#8242; &#8712; [-1, 1] N &#215;N differ in a single row, then</p><p>Now, let &#951; := 8&#8226;K &#949;&#8226;&#964; , and define F (V) := K k=1 &#8970; F k (V) 2+2N &#8226;&#951; k-1 &#8971;. Recall that &#964; &#8805; 16K &#949; , which means that 16K &#964; &#949; &#8804; 1, and &#951; &#8804; 1 2 . We now show the following. Proposition E.3. Suppose that V, V &#8242; &#8712; [-1, 1] N &#215;N only differ either in a single row or in a single column. If F (V) &#8804; K/&#949;, then |F (V) -F (V &#8242; )| &#8804; K.</p><p>Proof. Again, by symmetry of F k with respect to rows and columns, assume WLOG that V, V &#8242; only differ in a single row i. It suffices to show that for all k &#8712; [K], |F k (V)-F k (V &#8242; )| &#8804; 2+2N &#8226;&#951; k-1 . This would imply that &#8970; F k (V) 2+2N &#8226;&#951; k-1 &#8971; and &#8970; F k (V &#8242; ) 2+2N &#8226;&#951; k-1 &#8971; differ by at most 1 for all k &#8712; [K], which is sufficient.</p><p>For k = 1, we have that F 1 (V), F 1 (V &#8242; ) are trivially between 0 and 2N , and since 2 + 2N &#8226; &#951; k-1 = 2 + 2N , the claim is immediate.</p><p>For k &#8805; 2, note that</p><p>by Proposition E.2. In addition, since</p><p>Next, we consider the piecewise linear function First note that for any real numbers x, y, that |(g(x)g(y)) -(yx)| &#8804; 4(K + 2) &#8226; &#964; . In addition, note that g is a 1-Lipschitz function, meaning |g(x)g(y)| &#8804; |x -y| for all x, y &#8712; R. Given this, we can prove the following.</p><p>Proposition E.4. Suppose that V, V &#8242; &#8712; [-1, 1] N &#215;N only differ either in a single row or in a single column. If F (V) &#8804; K/&#949;, then |G(V) -G(V &#8242; )| &#8804; 4(K + 2)&#964; + 48K &#949; .</p><p>Proof. Again, by symmetry of G with respect to rows and columns, assume WLOG that V, V &#8242; only differ in a single row i. To compute G(V) -G(V &#8242; ), note that we only have to consider how the ith row changes, and how each column sum changes due to the ith row position. For each j &#8712; [N ], define a j := V &#8242; i,j -V i,j . Then, N j=1 V &#8242; i,j -N j=1 V i,j = N j=1 a j , which means that g N j=1 V &#8242; i,jg N j=1 V i,j = -N j=1 a j &#177; 4(K + 2)&#964; . Next, we consider how each column j changes. We note that for any fixed j &#8712; [N ], N i &#8242; =1 V &#8242; i &#8242; ,j -N i &#8242; =1 V i &#8242; ,j = a j . In addition, if</p><p>Alternatively, because g is 1-Lipschitz, we still have that g</p><p>V i &#8242; ,j = a j &#177; 4. Now, note that since F (V) &#8804; K/&#949;, this means that F K (V) &#8804; (2 + 2N &#8226; &#951; K-1 )</p><p>&#949; . Since &#951; &#8804; 1 2 and K = log 2 N , this means that F K (V) &#8804; 12K &#949; . This, in turn, implies that the number of columns j such that N j=1 V i,j &gt; (K + 1) &#8226; &#964; is at most 12K &#949; . So, we have that</p><p>So, overall, we have that</p><p>The algorithm A will work as follows. First, we compute F (V). With probability min 1, F (V) &#8226; &#949; K , we will automatically output 1. Alternatively, if we have not yet output 1, we compute G(V) := G(V) + Lap 4(K+2)&#964; &#949; + 48K &#949; 2</p><p>. If G(T ) is more than &#947; &#8226; N 2 , we output 1; otherwise we output 0. We will prove that this algorithm is private up to changing an entire row or column of V, and then we prove that this algorithm is accurate. Together, these complete the proof of Theorem E.1. These are precisely the bounds we used for the matrix to distinguish between &#181; = 0 and &#945; &#8804; &#181; 2 &#8804; 2&#945; in Section C. Hence, we can apply the same algorithm using this matrix T instead. Indeed, we define C to be the set of datasets (X, Y, Z) &#8712; (R d ) 3N that satisfy the second, third, and fourth properties above. Then, the same proof as in Lemmas C.2 and C.3 imply that for any datasets (X, Y, Z) &#8712; C and (X &#8242; , Y &#8242; , Z &#8242; ) &#8712; C that differ in K rows, | T (X, Y, Z) -T (X &#8242; , Y &#8242; , Z &#8242; )| &#8804; K &#8226; D, assuming that &#8710; := 6L</p><p>Here, T (X, Y, Z) is the statistic that adds up the entries of the corresponding matrix T &#8712; R N &#215;N , subtracts N d, and clips the result by 0 from below and &#945; 2 &#8226; N 2 from above.</p><p>Therefore, we can create our D-Lipschitz extension T of T that sends all datasets (X, Y, Z) &#8712; (R d ) 3N to R. Finally, because we also have that the sum of all entries in T equals N d + N 2 &#181; 2 &#177; O(N &#8730; d + &#945;N &#8730; N ) with probability at least 0.98 if each X (i) , Y (i) , Z (i) is drawn i.i.d. from N (&#181;, I), we can apply the same algorithm as in Theorem 1.5 to obtain a private algorithm that succeeds with high probability using the same number of samples, up to a factor of 3. This completes the proof in the computationally inefficient case.</p><p>For the computationally efficient case, we let V be the matrix where we divide each entry of U by R, where R = &#213;( &#8730; d) is a sufficiently large polylogarithmic multiple of &#8730; d. Then, with probability at least 0.98,</p><p>&#8226; For all i, j &#8712; [N ], V i,j &#8712; [-1, 1].</p><p>&#8226; For all i, N j=1 V i,j = &#177;( &#8730; N + &#945; &#8226; N &#8730; d ), and for all j, N i=1 V i,j = &#177;L( &#8730; N + &#945; &#8226; N &#8730; d ). These are the same guarantees as in Corollary E.7. In addition, we again have that if we change exactly one entry among (X, Y, Z), this changes at most one row and one column. Because of this, we can apply Theorem E.1 in the same way that we prove Theorem 1.7 to complete the proof in the computationally efficient case.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>F.3 Upper Bounds: Product Distributions</head><p>We establish the following theorem.</p><p>Theorem F.3. Let &#181; * &#8712; [-1/2, 1/2] d be fixed, and let H 0 consist of P(&#181; * ), and H 1 consist of P(&#181;) over all &#181; with d TV (P(&#181;), P(&#181; * )) &#8805; &#945;. Then: 1. (Theorem 1.9, computationally inefficient case) There exists a computationally inefficient algorithm that, using</p><p>samples, can (&#949;, 0)-privately distinguish between H 0 and H 1 .</p><p>2. (Theorem 1.9, computationally efficient case) There exists a computationally efficient algorithm that, using</p><p>samples, can (&#949;, 0)-privately distinguish between H 0 and H 1 .</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>We use N = &#213;(F ) to mean that there exists a fixed constant C such that N = O(F (log F ) C ).</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1"><p>We remark that in the case of private hypothesis testing, (&#949;, &#948;)-DP and (&#949;+&#948;, 0)-DP are known to be asymptotically equivalent for any &#949;, &#948; &lt; 1 2<ref type="bibr">[ASZ18]</ref>. In general, however, it is harder to achieve (&#949; + &#948;, 0)-DP.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_2"><p>-1/2 and 1/2 can be replaced by any constants bounded away from -1 and 1.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_3"><p>This idea of choosing a distribution for &#181; is quite standard, and is similar to Yao's Minimax Principle [Yao77].</p></note>
		</body>
		</text>
</TEI>
