   Improving the Variance of Differentially Private Randomized Experiments
                             through Clustering


                              Adel Javanmard 1 2 Vahab Mirrokni 2 Jean Pouget-Abadie 2


                         Abstract                                    regulations for protecting individuals’ online data. Many
                                                                     participants and regulatory guidelines agree with sharing
     Estimating causal effects from randomized exper-
                                                                     some degree of information, as long as there is plausible
     iments is only possible if participants are willing
                                                                     deniability, meaning no response can be tracked to any in-
     to disclose their potentially sensitive responses.
                                                                     dividual. While this can be achieved by sharing only ag-
     Differential privacy, a widely used framework for
                                                                     gregated data, this is often not sufficient to entirely prevent
     ensuring an algorithm’s privacy guarantees, can
                                                                     the risk of de-anonymization (Sweeney, 2000; Narayanan
     encourage participants to share their responses
                                                                     & Shmatikov, 2008). Differential privacy is one possible
     without the risk of de-anonymization. However,
                                                                     data-sharing framework which diminishes this risk.
     many mechanisms achieve differential privacy by
     adding noise to the original dataset, which reduces             Ensuring a differential privacy guarantee often comes at
     the precision of causal effect estimation. This                 the cost of adding additional noise to the original dataset,
     introduces a fundamental trade-off between pri-                 which increases the variance of statistical estimators. This
     vacy and variance when performing causal anal-                  poses a challenge for many causal inference applications
     yses on differentially private data. In this work,              that aim to obtain the most precise measurements possible
     we propose a new differentially private mecha-                  of a causal effect. However, not all attributes are sensitive.
     nism, C LUSTER -DP, which leverages a given                     If non-sensitive attributes can be used to cluster users, we
     cluster structure in the data to improve the privacy-           may be able to improve this privacy-variance trade-off.
     variance trade-off. While our results apply to any
                                                                     Motivating application. We are specifically motivated by
     clustering, we demonstrate that selecting higher-
                                                                     the following real-world scenario: suppose we own an adver-
     quality clusters—according to a quality metric
                                                                     tising platform, and an advertiser wants to analyze the effect
     we introduce—can decrease the variance penalty
                                                                     of their advertising on custom user segments (e.g., users
     without compromising privacy guarantees. Fi-
                                                                     who have already signed up for their service versus those
     nally, we evaluate the theoretical and empirical
                                                                     who have not). This segmentation is proprietary information
     performance of our C LUSTER -DP algorithm on
                                                                     that the advertiser does not wish to share with the platform.
     both real and simulated data, comparing it to com-
                                                                     Meanwhile, the platform mandates that user responses (e.g.,
     mon baselines, including two special cases of our
                                                                     whether a user has seen or clicked on an advertisement) can
     algorithm: its unclustered version and a uniform-
                                                                     only be shared with the advertiser in a differentially private
     prior version.
                                                                     manner. By obtaining privatized user-level data, the adver-
                                                                     tiser can analyze the effect along this proprietary dimension.
                                                                     Notably, the platform can share non-private information,
1. Introduction                                                      such as the user’s country or, more granularly, their DMA
Measuring causal effects from randomized experiments as-             (designated marketing area), and use this non-private cluster
sumes that participants are willing to share potentially sen-        information to improve the privacy-variance trade-off of
sitive or private responses to treatment. This assumption is         their differentially-private mechanism. Motivated by this
constantly challenged by the rise of privacy concerns and            application, we focus on the problem of releasing privatized
                                                                     user-level data rather than solely protecting the privacy
   1
     Marshall School of Business, University of Southern Cali-       of the final causal effect estimation. Leveraging the post-
fornia, Los Angeles, USA 2 Google Research, New York, USA.           processing property of differential privacy (Dwork et al.,
Correspondence to: Adel Javanmard <ajavanma@usc.edu>, Jean           2014), this approach provides advertisers with flexibility to
Pouget-Abadie <jeanpa@google.com>.
                                                                     conduct further analysis on privatized data without compro-
Proceedings of the 42 nd International Conference on Machine         mising user privacy.
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025
by the author(s).                                                    Our paper introduces a novel causal and differentially pri-

                                                                 1
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

vate mechanism C LUSTER -DP that theoretically and empir-            without clustering (cf. Equation (9)).
ically improves on the privacy-variance trade-off of other
                                                                     Among other works in this space, Guha & Reiter (2024) de-
baseline mechanisms by leveraging non-private cluster in-
                                                                     velops differentially private (DP) algorithms for estimating
formation about the dataset. To do so, we analyze the
                                                                     weighted average treatment effects with binary outcomes
privacy-variance trade-off for an intuitive set of causal and
                                                                     by first characterizing the global sensitivities of point and
differentially private baselines. These baselines assume the
                                                                     variance estimators. A subsample-and-aggregate approach
existence of a central unit that observes all outcomes, and
                                                                     generates noisy versions of these estimators, followed by
computes and shares a privatized dataset on which causal
                                                                     a Bayesian procedure to produce interval estimates. In
inference analyses can be run by a third-party. In particular,
                                                                     contrast, Lee et al. (2019) use DP empirical risk minimiza-
we show that our mechanism, and its analysis, general-
                                                                     tion to estimate propensity scores via a logistic regression
izes baselines like U NIFORM -P RIOR -DP, which samples re-
                                                                     model, adding privacy-preserving noise using the Gaussian
sponses at random from the space of possible outcomes, and
                                                                     mechanism. Both (Guha & Reiter, 2024; Lee et al., 2019)
C LUSTER -F REE DP, which is a special case when all units
                                                                     operate within the central DP framework, where a trusted
belong to the same cluster. As this last baseline indicates,
                                                                     curator collects raw data. Ohnishi & Awan (2023) take a
our mechanism imposes no restrictions on the properties of
                                                                     local DP approach, where individuals privatize their data
the clusters, except that they each be of cardinality at least
                                                                     before sharing, and propose a minimax optimal estimator
two. Our mechanism yields the largest improvements when
                                                                     for population average treatment effects (ATE) under fixed
the clusters exhibit a specific measure of cluster quality.
                                                                     assignment probabilities, achieving optimal mean-squared
Organization of the paper. In Section 2, we define and               error (MSE) rates. The proposed estimator is a special case
motivate the differential privacy setting and causal objective       of Algorithm 3 (with one cluster), a benchmark that we
of our work, and discuss several intuitive mechanisms for            discuss in Section A.4 and in our numerical experiments in
privatizing a dataset while still allowing for unbiased and          Section A.8.
consistent estimation of the average treatment effect. In Sec-
                                                                     Other works have explored the privacy-utility trade-off
tion 3, we introduce our novel private-and-causal C LUSTER -
                                                                     in various causal inference settings. Betlei et al. (2021)
DP mechanism, and its special case when all units belong to
                                                                     developed a differentially private method called ADUM
the same cluster, the C LUSTER -F REE DP mechanism. We
                                                                     for learning uplift models in randomized control trials.
evaluate their privacy guarantees and their variance gap to
                                                                     Their approach involves adding Laplace noise to aggre-
their non-differentially-private counterparts. We conclude
                                                                     gated responses within feature-based bins. They examine
in Section 4 with numerical experiments on simulated and
                                                                     the privacy-utility trade-off through the mean-squared er-
real graphs to validate our claims and compare the empirical
                                                                     ror of the estimator, although they do not utilize clustering
performance of each algorithm.
                                                                     to reduce estimator variance. Niu et al. (2022) introduced
1.1. Related works                                                   a multi-stage learning meta-algorithm under privacy con-
                                                                     straints, employing DP-EBMs and sample-splitting to esti-
There is a vast literature on differential privacy and causal        mate conditional average treatment effects (CATE). Their
inference. Here, we will discuss only the works closely              work focuses on privacy-accuracy trade-offs but does not
related to ours to better position our research.                     provide private unit-level data or use clustering techniques
Causal inference under privacy constraints. Within the               to improve variance. These studies underscore ongoing ef-
growing body of work recently at the intersection of privacy         forts to balance privacy and utility in causal inference, each
and causal inference, Kancharla & Kang (2021) explore                employing distinct approaches with their own limitations.
the problem of estimating average treatment effects in ran-          Label-Differential privacy. The notion of differential pri-
domized control trials where binary outcomes are privatized          vacy measure (Dwork et al., 2006a;b) is widely used in
using a differentially private mechanism. Their mechanism            practice and is extensively covered in the literature. In this
randomly returns altered responses or the true responses,            work, we focus primarily on label differential privacy, intro-
with some predefined probabilities. In contrast, our work            duced by Chaudhuri & Hsu (2011); cf our privacy setting
extends beyond binary outcomes to a general discrete out-            and Remark 2.1. The literature on label differential privacy
come space and improves the privacy-variance tradeoff by             is mostly dedicated to classification and regression tasks
leveraging a clustering structure of responses, which is quan-       with the goal of improving excess risk while offering pro-
tified by cluster quality. Unlike their approach, which does         tection for labels (Beimel et al., 2013; Bassily et al., 2018;
not account for the empirical distribution of responses, our         Wang & Xu, 2019).
method offers broader applicability and variance reduction
through clustering. In the absence of non-compliers, the             Our approach draws inspiration from the work of Esfan-
procedure in (Kancharla & Kang, 2021) can be viewed as a             diari et al. (2022), adapting their technique to the context
special case of this work when considering binary outcomes           of causal effect estimation. While their method was devel-

                                                                 2
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

oped for a different purpose, namely reducing excess risk             potential outcome of unit i if it is controlled, and yi (1) if
of a model trained on private labels, we have modified and            it is treated, each sampled from a finite response space Y
extended it to address the specific challenges of privacy-            of cardinality K = |Y|. While finite response spaces are
preserving causal inference. To highlight our contributions,          common in many advertising settings (e.g. number of clicks
first note that the two works operate under different settings        or impressions), we suggest binning when outcomes are
and assumptions: Esfandiari et al. (2022) posits an underly-          continuous, as illustrated later in Section 4.
ing data-generating law p(y|x) and a cluster heterogeneity
                                                                      For our C LUSTER -DP algorithm, we will further assume
measure based on the distance of the “conditional” label
                                                                      that there is some known clustered structure of these units
distribution of a sample to its cluster, averaged on the entire
                                                                      into C = |C| non-overlapping clusters of size nc , and let
population. In our work, the features are only used to form
                                                                      ci ∈ C be the cluster membership of unit i. These clusters
the cluster, and nothing beyond that. This allows us to have
                                                                      can be geographic regions or broad demographic groups
the flexibility of making our proposal fully DP (using DP
                                                                      the units belong to. We do not make any assumptions on
clustering per Remark 2.1) and in general better control the
                                                                      the number of clusters or their size, except that they must
privacy leakage of features (if any) as it is only used to make
                                                                      contain at least two units. In particular, our results hold for
clusters. Additionally, and unlike (Esfandiari et al., 2022),
                                                                      a single large cluster. We show later in Section 3 that our
we do not assume any underlying data generative model and
                                                                      results improve with a specific measure of cluster quality.
the cluster homogeneity we define is simpler, as it is only
based on the outcomes and clusters, without conditioning              Our causal estimand is the average treatment effect es-
on the features. Our variance analysis contains completely               Pn defined in the finite sample regime by τ =
                                                                      timand
                                                                       1
new ideas with no resemblance to the analysis of (Esfandiari           n     i=1 (yi (1) − yi (0)) . While we focus on the common
et al., 2022). Here, we need to analyze the variance of the           finite sample setting, our results can be extended to their
ATE and its inflation due to the DP mechanism, which is               super-population equivalents, in which case, we denote by
done in multiple steps, considering the randomness with               xi ∈ Rd the covariate vector of each unit i such that each
respect to the treatments, and the DP mechanism separately.           (xi , yi (0), yi (1), ci ) is drawn from some joint distribution
In addition, we provide a tighter analysis of the privacy             P.
guarantee than the proof methodology of (Esfandiari et al.,
                                                                      Let zi correspond to the treatment assignment of unit i,
2022), and also extend it to an (ε, δ)-type guarantee (See
                                                                      zi = 1 if treated and zi = 0 if controlled. Let n1 be the
Theorem 3.1 and Definition 2.2).
                                                                      total number of treated units and n0 to be the total number
                                                                      of controlled units across units. Treatment and control are
2. Causal Objective, Privacy Setting, and                             assigned completely at random. When a clustering of the
   Common Baselines                                                   data is available, the treatment assignment is sampled in a
                                                                      completely randomized way over clusters: a fixed number
We are motivated by a real-world scenario of a technol-               of n1,c (resp n0,c ) units is chosen uniformly at random to
ogy company selling advertising space to advertisers. Its             be treated (resp. controlled) within each cluster C, with
clients, the advertisers, wish to measure the effectiveness           nc = n1,c + n0,c the total number of units in cluster c.
of their advertising campaigns by running A/B tests, but
do not want to rely on this technology company to provide             Privacy Setting. In the real-world advertising setting pre-
their causal estimates. Instead, they would like access to            sented above, it is assumed that a central unit privatizes the
user-level data, such as whether a user clicked on their ad,          dataset before sharing it externally. Some of the mecha-
as well as any meaningful covariates about that user. One             nisms we explore also work without the presence of this
reason for this might be that advertisers wish to run their           central unit, a setting known as local differential privacy, but
own covariate-adjustment methods, or they would like to in-           this is not a requirement.
vestigate proprietary sub-slices of users. On the other hand,         In our setting, we have three key variables: outcomes, treat-
this technology company seeks to protect the privacy of its           ment assignments, cluster membership. An important ques-
users. Hence it must act as a central unit which privatizes its       tion is which of these variables should be privatized. In our
datasets before passing them on to advertisers for them to            advertising setting, a unit’s treatment assignment is assigned
perform their own causal inference analyses. We now intro-            purely at random; it is therefore not sensitive, and can be
duce the formal causal objective and privacy setting, as well         shared as-is. Outcomes are clearly sensitive and should
as a set of common baselines. To guide the reader through             be privatized. In our exposition, we primarily assume that
abundant notation, we include a glossary at the beginning             the cluster structure is non-sensitive information (as is the
of the Appendix.                                                      case in our motivating application, where clusters can be
Causal Objective. We consider a fixed population of n                 formed based on user’s country of designated market area).
units where we can assume the Stable Unit Treatment Value             Nonetheless, as we discuss in the following remark, we can
Assumption (Imbens & Rubin, 2015). Let yi (0) be the                  easily extend it to applications where cluster structure is

                                                                  3
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

also deemed sensitive and should be privatized.                       for the central unit to add noise to the frequency of responses
Remark 2.1. The privacy protection of cluster structure can           in each cluster before sharing the histogram externally, since
be decoupled from that of outcomes. In particular, by virtue          the estimated treatment effect depends only on the histogram
of the composition property of differential privacy (Dwork            of responses of treated and controlled units in each cluster.
et al., 2014), we can allocate ε1 privacy budget for priva-           We refer to this approach as the N OISY H ISTOGRAM ap-
tizing the clusters and ε2 privacy budget for privatizing the         proach. We provide in Appendix A.4 a formal description
outcomes. The end-to-end process will be ε(= ε1 + ε2 )-DP.            of this approach, written in the broadest generality when a
It is worth noting that there already exists a rich literature        clustering is available, as well as a proof of its differential
on DP-clustering algorithms, see e.g., (Nissim et al., 2007;          privacy guarantee along with its variance gap.
Feldman et al., 2009; 2017; Stemmer & Kaplan, 2018; Co-
                                                                      Limitations. These aggregation-based approaches have
hen et al., 2021).
                                                                      two drawbacks in the real-world setting described in Sec-
Following Remark 2.1, we focus on privatizing the out-                tion 2. First, in practice, advertisers expect user-level data,
comes, assuming a given non-sensitive cluster structure.              even if privatized. This is likely because they wish to ana-
This approach aligns with the concept of label-differential           lyze their own segments of the user population or apply their
privacy, introduced by Chaudhuri & Hsu (2011).                        own proprietary covariate-adjustment methods. Second, the
                                                                      noise of these aggregated approaches is averaged over the
Definition 2.2. (Label Differential Privacy) Consider a
                                                                      number of clusters C (if any) or over the number of possible
randomized mechanism M : D → O that takes as in-
                                                                      outcomes K. User-level mechanisms on the other hand, add
put a dataset D and outputs into O. Let ε, δ ∈ R≥0 . A
                                                                      noise that is averaged over n, the number of users. This
mechanism M is called (ε, δ)-label differentially private—
                                                                      becomes yet another competitive advantage of user-level
or (ε, δ)-label DP—if for any two datasets (D, D′ ) that dif-
                                                                      methods in the case of one-shot communication between the
fer in the label (outcome) of a single example and any subset
                                                                      central unit and the advertisers. In particular, a user-level
O ⊆ O we have P[M (D) ∈ O] ≤ eε P[M (D′ ) ∈ O] + δ ,
                                                                      privatizing scheme achieves lower finite-sample conditional
where ε is the privacy budget and δ is the failure probability.
                                                                      bias than the prior two aggregation baselines when n ≫ K
If δ = 0, then M is said to be ε-label differentially private,
                                                                      and n ≫ C, when we condition on the randomness of the
or ε-label DP.
                                                                      DP mechanism and consider the bias with respect to the
The (ε, δ)-differential privacy property states that it is un-        randomization in the sub-population. We will illustrate this
likely that the observed output has a much higher or lower            point further through experiments in Appendix A.8.
chance to be generated under a dataset D compared to a                The U NIFORM -P RIOR -DP baseline. We also consider a
neighboring dataset D′ . In our context, a unit’s “label”             differentially private causal mechanism that reports the true
refers to its observed outcome; we use the words outcome              outcome with some probability, and otherwise reports an out-
and label interchangeably.                                            come sampled uniformly at random from the space of pos-
It is worth noting that the differential privacy focuses on           sible outcomes. We refer to it as the UNIFORM - PRIOR -DP
the privacy loss to an individual by her contribution to a            mechanism, formalized in Algorithm 1, because it does not
dataset. In the context of label-DP, one may wonder that              leverage any information about the empirical distribution
the potential correlation between non-sensitive features and          of outcomes beyond its support. The UNIFORM - PRIOR -DP
the labels may violate privacy of individuals. In such cases,         mechanism is a generalization of the mechanism proposed
it is the correlational pattern and the conclusions reached           by (Kancharla & Kang, 2021) in the binary-outcome setting,
that affect the individual, not her presence or absence in the        when there are no non-compliers.
data set. We refer to (Dwork et al., 2014)(Chapter 1) for an
elaborate discussion.                                                 Algorithm 1 UNIFORM - PRIOR -DP mechanism
Two aggregation-based baselines. Perhaps the simplest                   Input: Individual responses y1 , . . . , yn
approach to sharing a differentially private estimate of the            Output: Privatized responses ỹ1 , . . . , ỹn
average treatment effect is for the central unit to compute             for i ∈ {1,
                                                                                  . . . n} do
some unbiased estimator based on the original responses                          yi0 ∼ U(Y) with probability λ
yi and add noise to the estimate before sharing it exter-
                                                                                 
                                                                          ỹi ←                 // U is the uniform distribution
nally. We provide in Appendix A.4 a formal description                           
                                                                                   yi           with probability 1 − λ
                                                                                 
of this approach for the Horvitz-Thompson estimator, de-
fined in Appendix A.2, which we refer to as the N OISY                  Return privatized responses {ỹ1 , . . . , ỹn }.
H ORVITZ -T HOMPSON mechanism, along with a proof of
its differential privacy guarantee and its variance gap.
                                                                      In the broadest generality when a clustering is available, the
A second and slightly more sophisticated approach would be            following stratified estimator is unbiased for the average

                                                                  4
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

treatment effect:                                                            For the sake of exposition, we focus on the controlled units
                           X                                               of a cluster c ∈ C.
              1 X nc              ỹi zi   ỹi (1 − zi )
     τˆλ =                               −                     .   (1)
             1−λ  n i∈c           n1,c          n0,c                         (1) Compute the empirical response distribution of the con-
                    c∈C
                                                                             trolled units in the cluster p̂0 (y|c).
As we discuss in Section 3, the UNIFORM - PRIOR -DP mech-
                                                                             (2) Add noise drawn from a Laplace distribution with pa-
anism is a special case of our proposed algorithm. We
                                                                             rameter (σ/n0,c ) to each response probability.
include its privacy guarantees and the variance gap of τ̂λ in
Appendix A.5.                                                                (3) Truncate the response probabilities to be within the in-
                                                                             terval [γ, 1], with γ ≤ 1/K .
3. The C LUSTER -DP and                                                      (4) Renormalize the response probabilities to form a dis-
   C LUSTER -F REE -DP Mechanisms                                            tribution, i.e. such that the resulting response probabilities
                                                                             remain in [γ, 1], and add up to one.
We now introduce our differentially private mechanism,
C LUSTER -DP, which not only provides user-level priva-                      (5) With probability λ, each original response is replaced by
tized outcomes, but also leverages information about the                     a random sample from this distribution constructed in the
empirical distribution of outcomes within each cluster to im-                previous step.
prove its variance gap. When no good clustering is available,
we consider its special case when all units can be considered                3.1. Privacy guarantees
part of the same cluster, the C LUSTER -F REE -DP mecha-                     The following theorem and its corollary state the differential
nism.                                                                        privacy guarantee of our C LUSTER -DP mechanism.
Algorithm 2 Our C LUSTER -DP mechanism
                                                                             Theorem 3.1. Let ε̃ > 0 and δ := max(0, 1 − λ + λγ(1 −
  Parameters: threshold γ ∈ [0, 1/K ]; noise scale σ ≥ 0;                    eε̃ )) . The C LUSTER -DP mechanism described in Algo-
  re-sampling probability λ ∈ [0, 1]
                                                                                                                    
                                                                                                                           1 2
                                                                             rithm 2 is (ε, δ)-label DP with ε = min       σ, γ   + ε̃ . By
  Input: Individual responses y1 , . . . , yn , treatment assign-
  ments z1 , . . . , zn .                                                    setting ε̃ =  log(1 + 1−λ
                                                                                                    λγ ), we have δ   = 0, and there-
  Output: Privatized responses ỹ1 , . . . , ỹn                             fore the CLUSTER
                                                                                              -DP mechanism
                                                                                                            is also ε-label DP, with
                                                                                         1 2            1−λ
  for c ∈ C do                                                               ε = min σ , γ + log 1 + λγ .
     for a ∈ {0, 1}, y ∈ Y do
       qa (y|c) ← max{γ, min{1, p̂a (y|c)+w}} , where
                                                                             We refer the reader to Appendix A.13 for a full proof of
       w ∼ Laplace(σ/na,c )
                                                                             Theorem 3.1 and provide here some intuition for its stated
     for a ∈ {0, 1} do
                                                                             privacy loss ε. The first term min (1/σ, 2/γ ) is the privacy
       for yP  ∈ Y do
                                                                             budget used to privately estimate the empirical response
          if y qa (y|c) > 1 then
                                                                             distribution q̃a (·|c) for each cluster. Fixing the transformed
              ζy ← qa (y|c) − γ
                                                                             empirical distributions q̃a (·|c), the log term is the privacy
          else
                                                                             budget used to generate the privatized responses ỹi . By the
              ζy ← 1 − qa (y|c)
                                                                             composition theorem for differential privacy (Dwork et al.
       for y ∈ Y do
                                    ζ
                                                  P                        (2014), Theorem B.1), the total privacy loss is given by the
          q̃a (y|c) ← qa (y|c) + P ′yζ ′ 1 − y qa (y|c)                      sum of these two losses. As expected, when the resampling
                                     y   y
  for i ∈ {1,
           ( . . . n} do                                                     probability goes to zero (λ → 0), the privacy loss grows
            yi0 ∼ q̃zi (·|ci ) with probability λ                            large (ε → +∞). Similarly, as the Laplace noise σ and
    ỹi ←                                                                    truncation parameter γ grow large, the privacy guarantee
            yi                 with probability 1 − λ
                                                                             improves (ε → 0).
  Return privatized responses {ỹ1 , . . . , ỹn }.

                                                                             The C LUSTER -F REE mechanism. Because these privacy
Formalized in Algorithm 2, our proposed mechanism deals
                                                                             guarantees do not depend on the size, cardinality, or quality
with each cluster individually and independently of other
                                                                             of the clusters, Theorem 3.1 also holds for the special case
clusters, handling treated and controlled groups separately.
                                                                             where there is no cluster structure to the data, in which case
It returns a privatized potential outcome ỹi for each unit,
                                                                             we can repeat the same mechanism as if all units belong to
which is either the true outcome with some probability or
                                                                             the same large cluster. We refer to this mechanism as the
sampled from a transformed empirical distribution of re-
                                                                             C LUSTER -F REE -DP mechanism, it has the same privacy
sponses from units in the same cluster. The transformation
                                                                             guarantee as the C LUSTER -DP mechanism. We will show
is inspired from a mechanism in (Esfandiari et al., 2022).
                                                                             the benefit that clusters may have in Section 3.2.
                                                                         5
                  Improving the Variance of Differentially Private Randomized Experiments through Clustering

Similarity with U NIFORM -P RIOR -DP. The distribu-                           treatment assignment, the privatized response ỹi , as well
tions q̃a (y|c) constructed in the CLUSTER -DP mechanism                      as the vector of probabilities yT Q−1
                                                                                                                 c,zi . An illustration is
obey theP   following properties: q̃a (y|c) ≥ γ for all y ∈                   included in Figure 1.
Y , and y q̃a (y|c) = 1 . When setting the truncation pa-
rameter γ = 1/K , these distributions reduce to uniform dis-
tributions over the space of all outcomes, in which case the
cluster-DP mechanism amounts to the simpler UNIFORM -
PRIOR -DP mechanism introduced briefly at the end of Sec-
tion 2, regardless of the value of the Laplace noise variance
σ 2 . We obtain the privacy guarantees of this baseline, de-
tailed in Section A.5, as a corollary of Theorem 3.1.

3.2. Estimation and variance guarantees
We now consider estimating causal effects from the pri-
vatized outcomes provided by our C LUSTER -DP mecha-
                                                                              Figure 1: Illustration of C LUSTER -DP mechanism with a
nism. For each cluster c ∈ C and each value a ∈ {0, 1} of
                                                                              central unit computing the (clustered) privatized outcomes
treatment, we construct the response randomization matrix
                                                                              for valid causal inference.
Qc,a ∈ RK×K :

       Qc,a [y ′ , y] := (1 − λ)I(y ′ = y) + λq̃a (y ′ |c) .       (2)
                                                                              Since q̃a (·|c) and the responses y˜i are ε-DP, by the post-
Conditional on its true outcome yi , treatment assignment                     processing property of differential privacy (Dwork et al.
zi , and cluster assignment ci , the privatized response ỹi of               (2014), Proposition 2.1), all the information passed to the
unit i is distributed according to Qci ,zi [ỹi , yi ]: ∀y ′ , P (ỹi =       third-party, as well as any estimation based on this informa-
y ′ |ci , zi , yi ) = Qci ,zi [y ′ , yi ].                                    tion, is also ε-DP.
                                                                              Remark 3.3. Note that the estimator τ̂Q depends on Q−1       c,a
We use the inverse of the response randomization matrix to
                                                                              for a ∈ {0, 1}. From (2), Qc,a is a scalar of the identity
debias the privatized responses. We use the notation y to
                                                                              matrix plus a rank one matrix. As shown in the proof of
represent in vector form the space of all possible potential
                                                                              Proposition A.9 (cf. (27)), Q−1c,a is also a rank one perturba-
outcomes, with similar ordering of rows and columns as
                                                                              tion of the (scaled) identity matrix. In Lemma A.11 we bound
Qci ,zi . With a small abuse of notation, we write the index
                                                                              the maximum singular value of Q−1    c,a . Using this lemma, the
ỹi of the vector yT Q−1            T −1
                           c,zi as y Qc,zi [ỹi ] and show that it is                                                                 √
an unbiased estimate for yi over the randomness of Algo-                      minimum singular value of Q is at least (1−λ)/(λ K +1).
rithm 2. As a result, by reweighting each privatized outcome                  Therefore, Q is well-conditioned if λ < 1, which will be
by the inverse of its conditional probability of occurring                    the case by choosing σ < ε in our privacy bound in Theo-
Qci ,zi [ỹi , yi ], we construct an unbiased and consistent es-              rem 3.1. This is also reflected in the variance bound, Theo-
timator for the average treatment effect in the following                     rem 3.5, where (1 − λ)2 appears in the denominator.
Theorem, a proof of which can be found in Appendix A.14.
                                                                              Our goal for Algorithm 2 is to make the gap between the
Theorem 3.2. Consider the following τ̂Q estimator,                            variance of our differentially-private estimator τ̂ and its non-
       X nc X                                                               differentially private counterpart τ̂N O -DP as small as possible
                                 zi                  1 − zi
τ̂Q :=           yT Q−1   [
                      c,zi i˜
                            y ]      − y T −1
                                          Q    [
                                           c,zi i˜
                                                 y ]                          for a given privacy guarantee. While all our results hold
         n i∈c                  n1,c                  n0,c                    for any given clustering, they are greatly improved when
        c∈C
                                                                              clusters are homogeneous.
Conditionally on the randomness of the treatment assign-
ment, τ̂Q is equal in expectation over the randomness of the                  Definition 3.4 (Cluster homogeneity). For a ∈ {0, 1}, de-
DP mechanism to the stratified difference-in-means estima-                    fine a clustering’s homogeneity as the average intra-cluster
tor below, henceforth τ̂N O -DP , which also implies that τ̂Q is              variance of outcomes ϕa ≥ 0:
an unbiased and consistent estimator of τ .                                                             X n2 S 2 (⃗yc (a))
                                                                                                               c
                                                                                                ϕa :=                        ,
                                                                                                              n2   na,c
                            n                 n
                                                               !
                X nc X                 zi    X         1 − zi                                           c∈C
EDP [τ̂Q |z] =                 yi (1)     −     yi (0)
                     n i=1            n1,c i=1          n0,c                                                          1
                                                                              where for vector ⃗u ∈ Rd , S 2 (⃗u) := d−1                     2
                 c∈C
                                                                                                                             P
                                                                                                                                   u (u − ū) .
                                                                                                                                 u∈⃗

For third parties to compute this estimator themselves, the                   The quantity ϕa has a natural super-population interpreta-
central unit must pass along the cluster assignment, the                      tion when taking its expectation of over the distribution P:

                                                                          6
                 Improving the Variance of Differentially Private Randomized Experiments through Clustering

ϕa = E[Var(y(a)|c)] = Var(y(a)) − Var(E[y(a)|c]) > 0.                   mechanisms reduces to the guarantee of the UNIFORM -
Holding Var(y(a)) constant, lower values of ϕa implies                  PRIOR -DP mechanism in Theorem A.5 when setting the
that clusters are better separated. For ϕa = 0, the outcome             truncation parameter γ = 1/K and σ = ∞. Because both
values of each clusters are contained within a singleton set.           C LUSTER -DP and C LUSTER - FREE -DP mechanisms use
On the other hand, if ϕa is high, clusters contain a wide               data-dependent priors, there may exist choices of (σ, γ, λ)
range of responses, up to the variation of outcomes of the              which result in better privacy-variance trade-offs than the
population.                                                             latter for certain outcome distributions. In the following
                                                                        section, we conduct empirical evaluations of the privacy-
We now state our key theorem, which provides a bound
                                                                        variance trade-off of the different mechanisms.
on the variance of our estimator τ̂Q , with respect to the
randomness of Algorithm 2 and the random assignment z,
as a function of Varz [τ̂N O -DP ] and ϕa .                             4. Numerical Experiments
Theorem 3.5. The variance of τ̂Q defined in Theorem A.14                In this section, we perform several experiments to validate
is bounded by                                                           the claims we make in the paper and to illustrate their useful-
                                                                        ness. Due to the strong limitations of the aggregation-based
0 ≤ VarDP,z [τˆQ ] − Varz [τ̂N O -DP ]
                                                                        baselines in our real-world setting, we focus our attention
    
          1
                     X                X X n2 A(na,c )
  ≤             −  1            ϕa +        c
                                                       ,                on three U NIFORM - PRIOR DP, C LUSTER -F REE -DP, and
      (1 − λ)2                             n2 na,c
                        a∈{0,1}        a∈{0,1} c∈C
                                                                        C LUSTER -DP mechanisms, and relegate further experimen-
                                                                        tal investigations of these aggregation-based baselines to
where ϕa is the measure of cluster homogeneity defined in               Appendix A.8.
Definition 3.4, and for any x,
                                                                        We start by considering a Gaussian Mixture Model setting
                                                                        where for every unit i in cluster c, a continuous quantity yi′
                                            "
               h     σ  −γx/σ      −x/σ
                                         i
 A(x) := 2K γ +          e      −e           2∥y∥2∞ + . . .             is given by
                     x
                   √                                   #                                          p          p
      3∥y∥2∞ + (λ K + 1)2 + ∥y∥22 (1 − λ(K − 1)γ)                                   ∀i ∈ c, yi′ = βµc + v − βwi ,                 (3)
  ...                                                     ,
                           (1 − λ)2
                                                                        where µc and wi are drawn from the standard normal distri-
with K the number of possible outcomes and y ∈ {Y}K the                 bution. The coefficient β ∈ [0, v] measures the dependence
vector of all possible outcomes.                                        of the response on the cluster center. This specific param-
                                                                        eterization is chosen to fix the variance of the response,
Theorem 3.1 and Theorem 3.5 together allow us to capture                equal to v, as β varies. Since the proposed mechanism is
the privacy-variance trade-off of our proposed mechanism.               for discrete outcome spaces, we quantize the response in the
Recall that the privacy guarantee of Theorem 3.1 is agnos-              following way:
tic to the clustering. On the other hand, the variance gap                                                  
                                                                                                                ′    ′
                                                                                                                          √
in Theorem 3.5 depends first on the homogeneity of clus-                                                    K if yi > 2 v √
                                                                                                            
ters, as defined in Definition 3.4, and a second term that              yi (1) = yi (0)+τ and yi (0) = −K ′ if yi′ < −2 v
is agnostic to the clustering. As a result, more homoge-                                                    
                                                                                                              [y/∆] otherwise
                                                                                                            
neous clusters—those with low ϕa —result in a smaller vari-
ance gap with equal privacy guarantees, leading to a better                                  √
                                                                        where ∆ := 2 v/K ′ and [x] denotes the rounding of x
privacy-variance trade-off than less homogeneous clusters.
                                                                        to the nearest integer. The treatment effect is an additive
We can also provide some intuition for the second term                  τ term on the potential outcome under control. We fix
A(x). By choosing γ and σ to be arbitrarily small, we can               τ = 1, such that the outcomes take values in the set Y =
make this second term arbitrarily small. As expected, the pri-          {−K ′ , . . . , 0, . . . , K ′ , K ′ +1}. We denote by K := 2(K ′ +
vacy guarantees of Theorem 3.1 suffer in that regime. When              1) the size of outcome space.
setting λ = 0, our C LUSTER -DP mechanism always out-
                                                                        Unless otherwise specified, and with no particular reason
puts the true outcome, and we no longer produce privatized
                                                                        to fix parameters one way or another, we take K ′ = 5,
outcomes. In that case, we can set the truncation parameter
                                                                        v = 5, and β = 4.5. We consider C = 3 clusters of sizes
γ and the Laplace noise σ to be zero with no consequence
                                                                        500, 103 , 2 × 103 with an equal number of controlled and
to recover the trivial equality VarDP,z (τ̂ ) = Varz [τ̂N O -DP ]
                                                                        treated units in each cluster. To display confidence intervals
from our bound above. Naturally, the more interesting set-
                                                                        around certain results, we consider a super-population of
ting from a privacy perspective is λ ∈ (0, 1).
                                                                        three clusters of sizes 2.5 × 103 , 5 × 103 , and 104 units,
As discussed previously, the privacy guarantee in Theo-                 and repeatedly draw uniformly at random sub-populations
rem 3.1 for the C LUSTER -DP and C LUSTER FREE -DP                      of three clusters from these original clusters.

                                                                    7
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

For any given sub-population, we compute the variance                Experiment 2. (Role of clustering quality) In this ex-
VarDP,z [τ̂Q ] by empirically computing the variance (or his-        periment we show that, as the clustering quality improves,
togram) of τ̂Q empirically over 500 realizations of the ran-         the variance of the estimator for the CLUSTER -DP mech-
domness in the corresponding DP mechanism (e.g. Laplace              anism decreases when compared to the variance of the
noise and response randomization), as well as the treatment          estimator for the CLUSTER FREE -DP mechanism, with-
assignments, which are done by choosing balanced set of              out affecting their privacy guarantees, since these are ag-
treated and controlled units uniformly at random within              nostic to the clustering according to Theorem 3.1. Under
each cluster. Unless otherwise specified, for C LUSTER -             our specified potential outcome model (3), the cluster ho-
DP mechanism, we set the truncation parameter γ = 0.02,              mogeneity ϕa , as defined in Definition 3.4, is given by
the Laplace noise σ = 10, and the resampling probability             ϕ0 = E(Var(yi (0)|c)) ∝ v − β = ϕ1 , hence our clusters
λ = 0.8.                                                             become more homogeneous as β increases. From Theo-
                                                                     rem 3.5, the clustering structure reduces the variance of the
                                                                     estimator at more homogeneous clusters, i.e. lower values
                                                                     of ϕ0 , ϕ1 , and λ. We verify this in Figure (1.c), which plots
Experiment 1. (Privacy-variance trade-off) We com-                   the ratio of the variances for two values of λ ∈ {0.5, 0.8}
pare the privacy-variance trade-off of our suggested                 as we vary β . As β grows, we observe a stronger reduction
C LUSTER -DP mechanism with the C LUSTER -F REE -DP                  in the variance using the clustering structure of data. This
mechanism, as well as the stratified and unstratified versions       effect is stronger at smaller values of λ.
of the U NIFORM - PRIOR -DP mechanism. We observe that               Experiment 3. (Simulation on YouTube data) Finally,
the C LUSTER -DP can have significantly lower variance for           we validate our results on a subset of the YouTube social
its estimator, compared to the other mechanisms, for the             network to replicate two experiment results in a setting with
same privacy loss (ε, δ).                                            natural clusters. We compare the variance of our suggested
In Figure (1.a), we aim to fix the privacy loss to ε = 0.2           estimator for the C LUSTER -DP mechanism with its variance
and δ = 10−4 for all three mechanisms. For the C LUSTER -            when using the C LUSTER FREE -DP mechanism to show the
DP and C LUSTER -F REE -DP, we set the Laplace param-                benefit of leveraging the clustering structure, replicating the
eter to σ = 10, and vary the truncation parameter γ ∈                results of Experiment 1.
[0.1/K, 1/K]. Following Theorem 3.1, we first choose ε̃              The YouTube social network dataset (Leskovec & Krevl,
so that the corresponding privacy ε, is equal to its target          2014) contains the friendship links of a set of users on
ε = 0.2, and then choose the re-sampling probability λ to            YouTube, and the ground-truth clusters correspond to groups
obtain the failure probability δ = 10−4 . Likewise, for the          created by users. We form a smaller dataset, by considering
U NIFORM - PRIOR -DP mechanism, we set the re-sampling               only the 50 largest communities, which includes a total
probability λ according to Theorem A.5, such that ε = 0.2            of 22,179 users with a minimum cluster size of 199. We
and δ = 10−4 . In summary, as the truncation parameter γ             generate the potential outcomes for the users as follows:
varies, we compare the three mechanisms at the same pri-
vacy loss. As we observe in Figure (1.a), for small values of                 yi (0) = xT
                                                                                        i β + wi ,    yi (1) = yi (0) + τ ,
γ, the C LUSTER -DP achieves significantly lower variance
                                                                     with wi ∼ N(0, v 2 ) capturing individual i’s effect and the
compared to to the other mechanisms. When γ = 1/K and
                                                                     xTi β term capturing the cluster-level effect. We follow a
σ = ∞, the theory tells us that C LUSTER -DP reduces to
                                                                     similar model as in (Zhou et al., 2020) and consider a four-
UNIFORM - PRIOR -DP (stratified) and the C LUSTER FREE -
                                                                     dimensional feature vector xi , with xi1 being the number of
DP reduces to UNIFORM - PRIOR -DP (unstratified). How-
                                                                     nodes in cluster ci (the cluster of user i), xi2 the number of
ever, since we have set σ = 10, we observe that the variance
                                                                     edges in ci , xi3 the number of edges in ci with other clusters,
for the UNIFORM - PRIOR -DP becomes lower than the other
                                                                     and xi4 the density of cluster ci . Recall that for a cluster
mechanisms for γ = 1/K . The error-bars here correspond
                                                                     with n nodes and e edges, its density is defined as ne .
to 50 independent draws of the sub-population.                                                                              (2)
In Figure (1.b), we plot the variance of each estimator ver-         Since the proposed mechanism is for discrete outcome
sus its privacy loss ε, as we fix δ = 10−4 . Here, we op-            spaces, we quantize the responses into K = 8 levels. We
timize the choice of Laplace parameter σ ∈ {10, 20, ∞}               standardize the features by making each of the four features
and the truncation parameter γ ∈ {0.01/K , 0.1/K , 1/K }. We         zero mean and unit norm across clusters, and setting the
observe that both C LUSTER -DP and C LUSTER FREE -DP                 standard deviation of the Gaussian noise wi to v = 0.1. In
estimators achieve a better trade-off than either version of         our experiments, we set β = (1, 1, 1, 1)T and τ = 1. In the
the U NIFORM - PRIOR -DP mechanism. Furthermore, the                 C LUSTER -DP mechanism, we set the truncation threshold
C LUSTER -DP mechanism, which also leverages the cluster-            to γ = 0.1/K and the Laplace noise level to σ = 5.
ing structure, showcases an even better trade-off compared           In Figure (1.d), we plot the privacy-variance trade-off for the
to the C LUSTER FREE -DP mechanism.
                                                                 8
                         Improving the Variance of Differentially Private Randomized Experiments through Clustering
    2                                                      2.5                                                                                           1.4
                                                                               uniform-prior(unstratified)                                                                         cluster DP
                                                                               uniform-prior(stratified)                1                                1.2                       no-cluster DP
   1.8
                                                            2                  cluster DP                                                                                          non-private stratified
                                                                               cluster-free DP                         0.9                                1
   1.6
                                                           1.5                                                                                           0.8
                                                                                                                       0.8
   1.4
                                                                                                                                                         0.6
                         uniform-prior(unstratified)
                                                            1                                                          0.7
   1.2                   uniform-prior(stratified)
                                                                                                                                                         0.4
                         cluster DP
                         cluster-free DP                                                                               0.6
    1                                                      0.5                                                                                           0.2

                                                                                                                       0.5                                0
   0.8                                                      0
         0   0.2   0.4        0.6        0.8           1         0   0.5      1            1.5               2               0   1    2      3   4   5         1   1.5   2   2.5      3        3.5          4



                   (1.a)                                                   (1.b)                                                     (1.c)                               (1.d)

Figure 2: Fuller figures can be found in Appendix A.10. (1.a) Variances of each mechanism as we vary the truncation level
γ ∈ [0.1/K, 1/K] in Experiment 1. Privacy loss fixed at ε = 0.2 and δ = 10−4 . (1.b) Privacy-variance trade-off of each
mechanism under the setting of Experiment 1. We fix the DP failure probability to δ = 10−4 , and optimize the choice of
σ and γ in the sets σ ∈ {10, 20, ∞} and γ ∈ {0.01/K , 0.1/K , 1/K }. (1.c) Ratio of the variance of the estimators under the
CLUSTER -DP and CLUSTER FREE -DP mechanisms in Experiment 2. The benefit of CLUSTER -DP mechanism is stronger
at larger β and smaller value of λ. (1.d) Privacy-variance trade-off of the C LUSTER -DP and C LUSTER FREE -DP stratified
estimators for the YouTube dataset in Experiment 3. The dotted line is the variance of the non-private stratified estimator.


C LUSTER -DP and the C LUSTER FREE -DP mechanisms,                                                                   reviewers for their feedback on improving this paper.
along with the variance of the non-private stratified estima-
tor, finding once again that the C LUSTER -DP mechanism                                                              Impact Statement
achieves a better trade-off by leveraging the natural cluster
structure of the Youtube users.                                                                                      This paper presents work whose goal is to advance the field
                                                                                                                     of Machine Learning. There are many potential societal
In Appendix. We include further experimental investiga-                                                              consequences of our work, none of which we feel must be
tions in Appendix A.6, A.8, and A.9, to verify, amongst                                                              specifically highlighted here
others the unbiasedness and consistency of our estimators,
as well as illustrate the limitations of aggregation-based                                                           References
baselines against either of these three user-level mecha-
nisms. We also include fuller versions of the subfigures in                                                          Bassily, R., Thakurta, A. G., and Thakkar, O. D. Model-
Figure 2.                                                                                                              agnostic private learning. Advances in Neural Information
                                                                                                                       Processing Systems, 2018.
5. Conclusion                                                                                                        Beimel, A., Nissim, K., and Stemmer, U. Private learning
                                                                                                                       and sanitization: Pure vs. approximate differential privacy.
Among differentially private algorithms that allow for valid                                                           In Approximation, Randomization, and Combinatorial
causal inference, our approach leverages the presence of a                                                             Optimization. Algorithms and Techniques, pp. 363–378.
non-private clustering structure to minimize the variance                                                              Springer, 2013.
gap, as a function of cluster quality, while maintaining
privacy guarantees constant. Our procedure generalizes                                                               Betlei, A., Gregoir, T., Rahier, T., Bissuel, A., Diemert,
a cluster-free procedure, which we propose and compare to,                                                             E., and Amini, M.-R. Differentially private individual
as well as a more common uniform-prior baseline. We find                                                               treatment effect estimation from aggregated data. hal-
that, theoretically and empirically on synthetic and semi-                                                             03339723, 2021.
synthetic data, our approach outperforms these two methods.
Furthermore, our setting, motivated by a real advertising                                                            Chaudhuri, K. and Hsu, D. Sample complexity bounds for
scenario, precludes the use of aggregation-based methods,                                                              differentially private learning. In Proceedings of the 24th
which we investigate as well.                                                                                          Annual Conference on Learning Theory, pp. 155–186.
                                                                                                                       JMLR Workshop and Conference Proceedings, 2011.

Acknowledgment                                                                                                       Cohen, E., Kaplan, H., Mansour, Y., Stemmer, U., and Tsfa-
                                                                                                                       dia, E. Differentially-private clustering of easy instances.
Adel Javanmard is supported in part by the NSF Award                                                                   In International Conference on Machine Learning, pp.
DMS-2311024, the Sloan fellowship in Mathematics, an                                                                   2049–2059. PMLR, 2021.
Adobe Faculty Research Award, an Amazon Faculty Re-
search Award, and an iORB grant from USC Marshall                                                                    Dwork, C., Kenthapadi, K., McSherry, F., Mironov, I.,
School of Business. The authors are grateful to anonymous                                                             and Naor, M. Our data, ourselves: Privacy via dis-

                                                                                                                 9
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

  tributed noise generation. In Advances in Cryptology-                Narayanan, A. and Shmatikov, V. Robust de-anonymization
  EUROCRYPT 2006: 24th Annual International Confer-                      of large sparse datasets. In 2008 IEEE Symposium on
  ence on the Theory and Applications of Cryptographic                   Security and Privacy (sp 2008), pp. 111–125. IEEE, 2008.
  Techniques, St. Petersburg, Russia, May 28-June 1, 2006.
  Proceedings 25, pp. 486–503. Springer, 2006a.                        Nissim, K., Raskhodnikova, S., and Smith, A. Smooth
                                                                         sensitivity and sampling in private data analysis. In Pro-
Dwork, C., McSherry, F., Nissim, K., and Smith, A. Cal-                  ceedings of the thirty-ninth annual ACM symposium on
 ibrating noise to sensitivity in private data analysis. In              Theory of computing, pp. 75–84, 2007.
 Theory of Cryptography: Third Theory of Cryptography
 Conference, TCC 2006, New York, NY, USA, March 4-7,                   Niu, F., Nori, H., Quistorff, B., Caruana, R., Ngwe, D., and
 2006. Proceedings 3, pp. 265–284. Springer, 2006b.                      Kannan, A. Differentially private estimation of heteroge-
                                                                         neous causal effects. In Conference on Causal Learning
Dwork, C., Roth, A., et al. The algorithmic foundations of               and Reasoning, pp. 618–633. PMLR, 2022.
 differential privacy. Foundations and Trends in Theoreti-
 cal Computer Science, 9(3–4):211–407, 2014.                           Ohnishi, Y. and Awan, J. Locally private causal in-
                                                                         ference for randomized experiments. arXiv preprint
Esfandiari, H., Mirrokni, V., Syed, U., and Vassilvitskii, S.            arXiv:2301.01616, 2023.
  Label differential privacy via clustering. In International
  Conference on Artificial Intelligence and Statistics, pp.            Stemmer, U. and Kaplan, H. Differentially private k-means
  7055–7075. PMLR, 2022.                                                 with constant multiplicative error. Advances in Neural
                                                                         Information Processing Systems, 31, 2018.
Feldman, D., Fiat, A., Kaplan, H., and Nissim, K. Private
  coresets. In Proceedings of the forty-first annual ACM               Sweeney, L. Simple demographics often identify people
  symposium on Theory of computing, pp. 361–370, 2009.                   uniquely. Health (San Francisco), 671(2000):1–34, 2000.

Feldman, D., Xiang, C., Zhu, R., and Rus, D. Coresets for              Wang, D. and Xu, J. On sparse linear regression in the local
  differentially private k-means clustering and applications            differential privacy model. In International Conference
  to privacy in mobile sensor networks. In Proceedings of               on Machine Learning, pp. 6628–6637. PMLR, 2019.
  the 16th ACM/IEEE International Conference on Infor-
  mation Processing in Sensor Networks, pp. 3–15, 2017.                Wasserman, L. and Zhou, S. A statistical framework for
                                                                        differential privacy. Journal of the American Statistical
Guha, S. and Reiter, J. P. Differentially private estimation of         Association, 105(489):375–389, 2010.
  weighted average treatment effects for binary outcomes.
  arXiv preprint arXiv:2408.14766, 2024.                               Zhou, Y., Liu, Y., Li, P., and Hu, F. Cluster-adaptive network
                                                                         a/b testing: From randomization to estimation. arXiv
Imbens, G. W. and Rubin, D. B. Causal inference in statis-               preprint arXiv:2008.08648, 2020.
  tics, social, and biomedical sciences. Cambridge Univer-
  sity Press, 2015.
Kairouz, P., Oh, S., and Viswanath, P. The composition the-
  orem for differential privacy. In International conference
  on machine learning, pp. 1376–1385. PMLR, 2015.
Kancharla, M. and Kang, H. A robust, differentially private
  randomized experiment for evaluating online educational
  programs with sensitive student data. arXiv preprint
  arXiv:2112.02452, 2021.
Kasiviswanathan, S. P., Lee, H. K., Nissim, K., Raskhod-
  nikova, S., and Smith, A. What can we learn privately?
  SIAM Journal on Computing, 40(3):793–826, 2011.
Lee, S. K., Gresele, L., Park, M., and Muandet, K. Privacy-
  preserving causal inference via inverse probability weight-
  ing. arXiv preprint arXiv:1905.12592, 2019.
Leskovec, J. and Krevl, A. SNAP Datasets: Stan-
  ford large network dataset collection. http://snap.
  stanford.edu/data, June 2014.

                                                                  10
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

A. Appendix
A.1. Notation and common formulas
We recall here all the notations used in the paper and in the proofs:

                    n           total number of units.
              n0 (resp. n1 )    total number of controlled (resp. treated) units.
                    zi          treatment assignment of unit i in {0, 1}, with zi = 1 (resp. 0) indicating
                                treatment (resp. control).
                    Y           response space of cardinality K = |Y| < ∞.
                  yi (z)        potential outcome in Y of unit i under treatment assignment z.
                    y˜i         privatized outcome in Y of unit i returned by the DP mechanism.
                     y          vector notation of the entire response space (y)y∈Y .
                     C          set of all clusters of cardinality C = |C| < ∞.
                    ci          cluster membership of unit i.
                   nc           number of units in cluster c, equal to |{i ∈ [n] : ci = c}|.
                  Oa,c          units belonging to cluster c with treatment assignment a, equal to
                                {i : ci = c, zi = a}.
                   Oc           units belonging to cluster c, equal to {i : ci = c}.
                  na,c          |Oa,c | for a ∈ {0, 1}.
                     γ          minimum of clipped empirical distribution, in [0, 1/K] .
                     σ          noise scale.
                  1−λ           true response sampling probability.
                 pa (y|c)       true distribution for treated (a = 1) and controlled (a = 0) units within cluster
                                c, equal to P(Y (a) = y|ci = c) .
                 p̂a (y|c)      empirical distribution for treated (a = 1) and controlled (a = 0) units within
                                                      |{i : ci = c, zi = a, yi = y}|
                                cluster c, equal to                                  .
                                                           |{i : ci = c, zi = a}|
                   ϕa           measure of cluster quality, equal to Var(E[Y (a)|cX ]) .
               Qc,a [y ′ , y]   response   randomization matrix equal to (1 − λ)I(y ′ = y) + λq̃a (y ′ |c) .
                                                       −1     ′        ′
                                P          P
                  ua,c             i∈Oa,c     y ′ ∈Y Qci ,a [y , ỹi ]y .
                  ⃗ya,c         vector of outcomes observed by the central unit in cluster c with treatment
                                assignment a, equal to {yi (a) : i ∈ Oa,c }, for a ∈ {0, 1}.
                  ⃗yc (a)       all potential outcomes corresponding on the units in cluster c and treatment
                                assignment a, equal to {yi (a) : ci = c}. Note that ⃗yc (a) contains unobserved
                                values.
                    eℓ          indicator vector in RK×1 with 1 at the ℓ-th position and zero
                                                                                           n everywhere
                                                                                                            else.
                                                                                                              
                                                                                            3
                  A(x)          recurring expression in variance bounds, equal to 2K B 2 (1−λ)2 + 2 +
                                  √      2
                                                                oh                     i
                                (λ K+1)       2
                                  (1−λ)2 ∥Y∥ (1 − λ(K − 1)γ)      γ + x e−γx/σ − e−x/σ .
                                                                      σ




                                                               11
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

When the context is clear, we sometimes adopt this lightened notation

                    p̂ℓ    empirical probability of outcome ℓ for the controlled units in cluster c, equal to
                             1
                           n0,c |{i ∈ O0,c : yi = ℓ}| .
                    p̂     empirical distribution of outcomes of the controlled units in cluster c, arranged
                           into a K-dimensional vector, with coordinates p̂ℓ , equal to [p̂l ]l∈Y ∈ RK×1 .
                    Q      Qc,0
                   Qa,b    Qc,0 [a, b],
                   Q−1
                     a,b   Q−1
                             c,0 [a, b],
                   Q−T     (Q−1 )T .
                    q̃     distribution constructed in the DP mechanism (after adding noise to empiri-
                           cal distribution p̂0,D , truncation and normalization), equal to [q̃0 (y|c)]y∈Y ∈
                           RK×1 .
                    q̃l    coordinate l of vector q̃ .


A.2. Variance of the Horvitz-Thompson estimator
The variance of the stratified Horvitz-Thompson estimator is well-known. We recall it below:
                                                    X nc X  yi zi   yi (1 − zi )
                                                                                  
                                       τ̂N O -DP :=                −                .
                                                      n i∈c n1,c         n0,c
                                                    c∈C

Let ⃗yc := {yi : ci = c} ∈ Y nc be the vector of outcomes of units in cluster c, and ⃗τc := ⃗yc (1) − ⃗yc (0) be the vector of the
differences between each unit’s potential outcome in treatment and in control. The variance of τ̂N O -DP is given by
                                                 X n2  S 2 (⃗yc (1)) S 2 (⃗yc (0)) S 2 (⃗τc ) 
                                                       c
                             Varz [τ̂N O -DP ] =                     +              −             ,
                                                      n2      n1,c         n0,c          nc
                                                 c∈C
                                               1                            1
where, for any vector u ∈ Rd , S 2 (⃗u) := d−1                   2                                                  u
                                                  P                           P
                                                       u (u − ū) and ū := d
                                                     u∈⃗                           u u . The formula for Varz [τ̂N O -DP ] can be
                                                                                 u∈⃗
obtained from the formula above where all units belong to a single cluster |C| = 1 and nc = n.

A.3. Definition of Label Differential Privacy
We recall here a formal definition of label differential privacy.
Definition A.1. (Label Differential Privacy) Consider a randomized mechanism M : D → O that takes as input a
dataset D and outputs into O. Let ε, δ ∈ R≥0 . A mechanism M is called (ε, δ)-label differentially private—or (ε, δ)-label
DP—if for any two datasets (D, D′ ) that differ in the label (outcome) of a single example and any subset O ⊆ O we have
P[M (D) ∈ O] ≤ eε P[M (D′ ) ∈ O] + δ , where ε is the privacy budget and δ is the failure probability. If δ = 0, then M is
said to be ε-label differentially private, or ε-label DP.

Achieving label-differential privacy implies that the output of a mechanism does not change too much if a single label in
the input dataset is changed. The privacy loss ε controls the size of the possible change, and δ is the failure probability
in providing such a guarantee. In other words, (ε, 0)-differential privacy ensures that, for every run of the mechanism M ,
the observed output is (almost) equally likely to be observed on every other neighboring dataset, simultaneously. The
(ε, δ)-differential privacy property relaxes this constraint and states only that it is unlikely that the observed value M (D)
has a much higher or lower chance to be generated under a dataset D compared to a neighboring dataset D′ . Differential
privacy can also be viewed from a statistical hypothesis testing framework, where an attacker aims to distinguish D from D′
based on the output of the mechanism. This viewpoint has been put forward by (Wasserman & Zhou, 2010) and (Kairouz
et al., 2015), who show that, by using the output of an (ε, δ)-DP mechanism, the power of any test with significance level
α ∈ [0, 1] is bounded by eε α + δ. For small enough (ε, δ), this bound is only slightly larger than α, and so any test which
aims to distinguishing D from D′ is powerless.

A.4. Two aggregation-based baselines: description and guarantees.
The simplest approach to sharing a differentially private estimate of the average treatment effect is for the central unit
to compute some unbiased estimator based on the original responses yi and add noise to the estimate before sharing it

                                                               12
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

externally. We provide an example in Algorithm 3, written in the broadest generality when a clustering is available. When
no clustering is available, we can simply assume that all units belong to the same cluster.

Algorithm 3 NOISY H ORVITZ -T HOMPSON mechanism
  Input: Individual responses y1 , . . . , yn , (optional) cluster memberships c1 , . . . , cn
  Output: Privatized estimate τ̂

                                                    (                                            )
                                          X nc          X  yi zi      yi (1 − zi )
                                                                                      
                       Return    τ̂ :=                               −                    + wc       ,   wc ∼ Laplace(ηc ) .              (4)
                                                n       i∈c
                                                                n1,c       n0,c
                                          c∈C




The variances of the noise parameters ηc determine both the privacy guarantee ε and additional estimator variance of the
Noisy Horvitz-Thompson algorithm. To compute its privacy guarantee, we apply (Dwork et al. (2014), Theorem 3.6) and
consider the sensitivity ∆c of the inner function 1/n1,c yi zi − 1/n0,c yi (1 − zi ), defined as the maximum change in its value
when changing only one label in the data set. The variance of τ̂ can be expressed easily as a function of the variance of its
non-differentially-private equivalent, the Horvitz-Thompson estimator without the Laplace noise:
                                                     X nc X  yi zi         yi (1 − zi )
                                                                                         
                                        τ̂N O -DP :=                     −                 .                                 (5)
                                                        n i∈c n1,c              n0,c
                                                              c∈C


Proposition A.2. The noisy Horvitz-Thompson estimator τ̂ is ε-DP when setting ηc = ∆c/ε for every cluster, where
∆c = min{n0,c , n1,c }−1 × maxy∈Y |y|. Furthermore, its variance with respect to the treatment assignment z and the
Laplace noise (DP ) is given by

                                                                                  X  nc ∆c 2
                                          VarDP,z [τ̂ ] = Varz [τ̂N O -DP ] + 2                           ,
                                                                                            n ε
                                                                                  c∈C


where τ̂N O -DP is the non-differentially-private stratified Horvitz-Thompson estimator defined in Eq. 5, and Varz [τ̂N O -DP ] is
its variance with respect to the treatment assignment z.

Because these results hold for any clustering, they also hold when no clustering is available; in that case, we consider all
units to be part of the same cluster. We refer the reader to Appendix A.2 for the well-known closed-form expression of
Varz [τ̂N O -DP ].
A second and slightly more sophisticated approach would be for the central unit to add noise to the frequency of responses
in each cluster before sharing the histogram externally, since the estimated treatment effect depends only on the histogram
of responses of treated and controlled units in each cluster. We provide an example in Algorithm 4, written in the broadest
generality when a clustering is available.

Algorithm 4 NOISY HISTOGRAM mechanism
  Input: Individual responses y1 , . . . , yn , (optional) cluster memberships c1 , . . . , cn
  Output: Privatized estimate τ̂
  Compute the empirical distribution p̂a (y|c) of treated (a = 1) and controlled (a = 0) units within cluster c.
                                X nc X
              Return    τ̂ :=                   y × (p̂1 (y|c) + w1,c,y − p̂0 (y|c) − w0,c,y ) ,              wa,c,y ∼ Laplace(ηa,c ) .   (6)
                                      n
                                c∈C       y∈Y




Since the K bins corresponding to the K elements of Y are disjoint, and the sensitivity of the value of each histogram bin
is n−1
    a,c , the central unit can share the histogram privately by adding independent draws from Laplace((na,c ε)
                                                                                                                 −1
                                                                                                                    ) to the
frequency of each value. Furthermore, we can compute in closed form the variance gap of the Noisy Histogram mechanism
compared to its non-private Horvitz-Thompson counterpart.

                                                                        13
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

Proposition A.3. The noisy Histogram mechanism τ̂ is ε-DP when setting ηa,c = (na,c ε)−1 for every cluster. Furthermore,
its variance with respect to the treatment assignment z and the Laplace noise (DP ) is given by
                                                                                              !
                                                           2  X 2  X  n c 2     1       1
                       VarDP,z [τ̂ ] = Varz [τ̂N O -DP ] + 2     y                      + 2       ,
                                                          ε                n      n20,c    n1,c
                                                                   y∈Y    c∈C

where τ̂N O -DP is the non-differentially-private stratified Horvitz-Thompson estimator defined in Eq. 5, and Varz [τ̂N O -DP ] is
its variance with respect to the treatment assignment z.

For the same privacy guarantee, the N OISY-H ORVITZ -T HOMPSON mechanism has a smaller variance gap than the
N OISY-H ISTOGRAM mechanism, since ∥y∥∞ ≤ ∥y∥2 and min(n0,c , n1,c )−2 ≤ min(n0,c , n1,c )−2 + max(n0,c , n1,c )−2 =
n−2     −2
 0,c + n1,c .

A proof of Propositions A.3 and A.2 can be found below in Appendix A.11.

A.5. The U NIFORM - PRIOR DP mechanism
Unlike the two prior mechanisms, the U NIFORM - PRIOR DP mechanism provides user-level outcomes. As formalized in
Algorithm 1, it reports the true outcome with some probability, and otherwise reports an outcome sampled uniformly at
random from the space of possible outcomes.
Our next result shows that the stratified estimator (1) is unbiased for the average treatment effect.
Proposition A.4. The conditional expectation of the estimator τ̂λ defined in Eq. (1), with respect to the DP mechanism, is
equal to the non-differentially private Horvitz-Thompson estimator. It is therefore unbiased for the average treatment effect
τ over z and the DP mechanism.

                                        EDP [τ̂λ |z] = τ̂N O -DP    and   EDP,z [τ̂λ ] = τ

Having an unbiased estimator for causal inference is an important but not entirely surprising result. In fact, many differentially
private mechanisms can recover true labels in expectation; (Kancharla & Kang, 2021) also propose an unbiased differentially
private estimator in the setting of binary potential outcomes yi ∈ {0, 1}. Instead, the main difficulty is to minimize
the variance gap with non-differentially-private estimators.PTo state the variance of    Pτ̂ under the UNIFORM - PRIOR -DP
mechanism, we consider the following notation: ȳ := 1/|Y| y∈Y y and y2 := 1/|Y| y∈Y y 2 over all possible outcomes.
For a ∈ {0, 1}, we also define yc (a) := 1/nc i∈c yi (a) and yc2 (a) := 1/nc i∈c yi2 (a) over the units of cluster c.
                                              P                                P

                                                               is (ε̃, δ)-label DP when we set δ = max(0, 1 − λ +
Theorem A.5. For any ε̃ > 0, the UNIFORM - PRIOR -DPmechanism 
λ       ε̃
K (1 − e )) . In particular, it is ε-label DP with ε = log    1 + (1−λ)K
                                                                       λ     . Furthermore, the variance of estimator τ̂λ in (1)
under the UNIFORM - PRIOR -DP mechanism and the treatment assignment z is given by
                                                      X n2  1              1    λy − λ2 ȳ2
                                                                                2
                                                             c
                 VarDP,z [τ̂λ ] = Varz [τ̂N O -DP ] +                   +
                                                           n2 n0,c        n1,c     (1 − λ)2
                                                      c∈C
                                          "                               !                              !#
                                  X n2          λ      y 2 (0)    y 2 (1)       2λȳ   y c (0)   y c (1)
                                        c               c
                                +                              + c          −                  +            ,                (7)
                                     n2 1 − λ           n0,c       n1,c        1 − λ n0,c         n1,c
                                     c∈C


As the sampling probability grows small λ → 0, we recover the non-private variance formula VarDP,z (τ̂ ) → Varz [τ̂N O -DP ],
but the ε-DP guarantee goes to infinity. Since the UNIFORM - PRIOR -DP mechanism itself does not depend on the clusters,
the privacy guarantee does not depend on the clustering properties of the data, if any. The dependence on the clustering
in Equation (7) is only due to the definition of the stratified estimator. When a good clustering is not available, the above
estimator can be simplified to its unstratified version τ̂ u by considering that all units belong to the same cluster:
                                                           n                        
                                             u      1 X ỹi zi         ỹi (1 − zi )
                                           τ̂ =                      −                 .                                   (8)
                                                  1 − λ i=1 n1               n0

The following variance result is a direct corollary of Theorem A.5.

                                                                   14
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

Corollary A.6. Under the UNIFORM - PRIOR -DP mechanism, the variance of the unstratified estimator τ̂ u defined in Eq. 8
is given by
                                                                                  !                           !
                   u            u            n λy2 − λ2 ȳ2    λ  y 2 (0) y 2 (1)       2λȳ   y(0) y(1)
        VarDP,z [τ̂ ] = Varz [τ̂N O -DP ] +                 +            +          −                 +
                                            n1 n0 (1 − λ)2    1−λ   n0      n1         1−λ      n0        n1

where Varz [τ̂NuO -DP ] denotes the variance of its non-private equivalent τ̂NuO -DP . Its differential privacy guarantees are the
same as those in Theorem A.5.

We refer the reader to Appendix A.2 for the well-known closed form formula of Varz [τ̂NuO -DP ]. The special case of the
unstratified estimator τ̂ u in (8) for binary outcomes Y = {0, 1} was previously proposed by (Kancharla & Kang, 2021), in
which case the variance of the estimator can be further simplified:

                                                                               n λ2 (1 − λ2 )
                                      VarDP,z [τ̂ u ] = Varz [τ̂NuO -DP ] +                   .                                (9)
                                                                              n0 n1 (1 − λ)2

The first two aggregation-based mechanisms in Section A.4 assumed that a trusted data curator (e.g. a technology company,
in the motivating example in Section 2) has access to the true outcomes and computes a differentially private estimate or
empirical distribution of these responses. In contrast, the U NIFORM - PRIOR -DP mechanism can be implemented without
such a curator: each user can privatize their response before sharing it with the experimenter. In other words, the U NIFORM -
PRIOR -DP mechanism provides a local DP guarantee, defined by (Kasiviswanathan et al., 2011), which is stronger than a DP
guarantee. That said, in our motivating example, assuming the existence of a trusted curator—the technology company—is
more natural than putting the burden of privatizing responses on each individual user.

A.6. Experiment 4. (Bias and Gaussianity)
We first verify that our C LUSTER -DP estimator τˆQ , given in Theorem 3.2, is unbiased and admits an asymptotically Gaussian
distribution by plotting the histogram and the qq-plot of τ̂ − τ in Figures 3 and 4.

                                                                       1.5
      80

                                                                         1

      60
                                                                       0.5

                                                                         0
      40

                                                                      -0.5
      20
                                                                        -1

                                                                      -1.5
       0                                                                  -4            -2          0             2       4
       -1.5     -1     -0.5     0      0.5      1       1.5

                Figure 3: histogram of τ̂ − τ
                                                                                    Figure 4: qq-plot of τ̂ − τ


A.7. Experiment 5. (Validation of theoretical bound)
In Theorem 3.5, we bounded the excess variance of the private estimator given in Theorem 3.2 compared to the non-
private estimator (5). The bound had two additive terms. The first one depends on the cluster structure of data, namely
the cluster homogeneity quantities ϕ0 , ϕ1 , and the second term did not depend on the clusters, capturing instead an
increase in the variance due to the randomness of the C LUSTER -DP mechanism. In Figure 5, we compute the gap
VarDP,z [τ̂ ]−Varz [τ̂N O -DP ] empirically, by averaging over 500 different realizations of the randomness in the DP mechanism
and the treatment assignments in the same setting as the previous experiment. We plot this gap as we vary β, along with

                                                                 15
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

a shaded region whose upper boundary corresponds to the upper bound given in Theorem 3.5 and its lower boundary
corresponds to only the first term in that bound. We observe that the variance gap remains in the shaded area which validates
the theoretical upper bound given by Theorem 3.5, and shows that the derived bound is tight, up to the second term.

                                     0.35

                                      0.3

                                     0.25

                                      0.2

                                     0.15

                                      0.1

                                     0.05

                                        0
                                            0      1        2         3           4        5


Figure 5: The variance gap between the private estimator τ̂Q , given given in Theorem 3.2, and the non-private estimator
τ̂N O -DP in the setting of Experiment 5. The upper boundary of the shaded area corresponds to the upper bound derived in
Theorem 3.5, and it lower boundary corresponds to the the first term in that bound. As we see the gap remains between the
two boundaries.


A.8. Experiment 6. (Comparisons with aggregation-based baselines)

                                      2.5
                                                                  Horvitz-Thompson+noise
                                                                  noisy histogram
                                       2                          Cluster-DP


                                      1.5


                                       1


                                      0.5


                                       0
                                            0       0.5           1         1.5            2


Figure 6: Bias of the CLUSTER -DP, noisy Horvitz-Thompson and noisy histogram estimators under one shot communication
between the central unit and the advertisers in the setting of Experiment 6.


We next compare the privacy-variance trade-off of the estimator based on the CLUSTER -DP mechanism with the other
baselines discussed in Section 2 and Appendix A.4, namely the noisy Horvitz-Thompson estimator and the noisy histogram
estimator. The goal of this experiment is to show that in the case of one-shot communication between the central unit and
the advertisers, the CLUSTER -DP estimator achieves lower finite-sample conditional bias than the other two baselines. To
demonstrate this point, we fix the noise and randomization in each DP mechanisms for the super-population and compute the
bias of each estimator with respect to random draws from the super-population and of the treatment assignments. Specifically
we compute the expectation of the treatment effect estimator over 500 sub-populations, each consisting of 500, 1000, 2000
units from each cluster, uniformly at random with a balanced number of treated and controlled units in each cluster. The
bias is then computed as the difference between the expectation of the estimator and the true treatment effect. As we see in

                                                             16
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

Figure 6, C LUSTER -DP estimator achieves a lower conditional bias compared to the other two baselines, as we vary the
privacy loss ε. The error bars are obtained by considering 50 different realizations of the noise/randomization in the DP
mechanisms.

A.9. Experiment 7. (Additional qq-plot for YouTube data experiment)
Figure 7 shows the qqplot of τ̂ − τ with τ̂ being the C LUSTER -DP mechanism, using 500 realizations of the randomness in
the outcomes and the DP mechanism, for the YouTube dataset described at the end of Section 4. As the plot demonstrates τ̂
is an unbiased and Gaussian estimator.

                                    Quantiles of Input Sample     1



                                                                0.5



                                                                  0



                                                                -0.5



                                                                 -1
                                                                   -4              -2            0                  2          4
                                                                                Standard Normal Quantiles

Figure 7: qqplot of τ̂ − τ , with τ̂ the C LUSTER -DP estimator using 500 realizations of randomness in the outcomes and the
DP mechanism.



A.10. Fuller versions of Figures from Experiments 1-3
We include in Figure 8 on the next page fuller versions of the Figures from Experiments 1-3, included in Section 4.

A.11. Proof of Proposition A.2 and A.3
We start by proving Proposition A.2. Recall the noisy Horvitz-Thompson estimator τ̂ given by (4):

                                                                  (                                             )
                                  X nc                                 X  yi zi    yi (1 − zi )
                                                                                                     
                          τ̂ :=                                                   −                      + wc       , wc ∼ Laplace(ηc ) .
                                                          n            i∈c
                                                                             n1,c       n0,c
                                  c∈C



To show its privacy guarantee, we apply (Dwork et al. (2014), Theorem 3.6). Consider the sensitivity ∆c of the inner
function 1/n1,c yi zi − 1/n0,c yi (1 − zi ), defined as the maximum change in its value when changing only one label in the data
set. Since the assignments are not private, we keep them intact in computing the sensitivity. Therefore, changing only on
label will change the inner function by at most ∆c = min{n0,c , n1,c }−1 × maxy∈Y |y|. By using (Dwork et al. (2014),
Theorem 3.6), adding Laplace noise with parameter ∆c/ε will make each of the inner terms ε-DP and by the post-processing
property (Dwork et al. (2014), Proposition 2.1), τ̂ is also ε-DP.
For the variance, recall the non-differentially-private Horvitz-Thompson estimator τ̂N O -DP from (5), by which we can write

                                                                                                 X nc
                                                                              τ̂ = τ̂N O -DP +               wc .
                                                                                                         n
                                                                                                 c∈C


                                                                                           17
                   Improving the Variance of Differentially Private Randomized Experiments through Clustering




         2                                                                    2.5
                                                                                                               uniform-prior(unstratified)
        1.8                                                                                                    uniform-prior(stratified)
                                                                               2                               cluster DP
                                                                                                               cluster-free DP
        1.6
                                                                              1.5
        1.4
                                       uniform-prior(unstratified)
                                                                               1
        1.2                            uniform-prior(stratified)
                                       cluster DP
                                       cluster-free DP
         1                                                                    0.5


        0.8                                                                    0
              0        0.2      0.4         0.6        0.8           1              0         0.5             1            1.5               2

                                 (a)                                                                    (b)
                                                                              1.4
                                                                                                                    cluster DP
          1                                                                   1.2                                   no-cluster DP
                                                                                                                    non-private stratified
         0.9                                                                   1

                                                                              0.8
         0.8
                                                                              0.6
         0.7
                                                                              0.4
         0.6                                                                  0.2

         0.5                                                                   0
               0        1        2           3          4            5              1   1.5         2         2.5      3         3.5         4

                                 (c)                                                                    (d)

Figure 8: (a) Variances of each mechanism as we vary the truncation level γ ∈ [0.1/K, 1/K] in Experiment 1. The privacy
loss is fixed at ε = 0.2 and δ = 10−4 . (b) Privacy-variance trade-off of each mechanism under the setting of Experiment
1. We fix the DP failure probability to δ = 10−4 , and optimize the choice of σ and γ in the sets σ ∈ {10, 20, ∞} and
γ ∈ {0.01/K , 0.1/K , 1/K }. (c) Ratio of the variance of the estimators under the CLUSTER -DP and CLUSTER FREE -DP
mechanisms in Experiment 2. The benefit of CLUSTER -DP mechanism is stronger at larger β and smaller value of λ. (d)
Privacy-variance trade-off of the C LUSTER -DP and C LUSTER FREE -DP stratified estimators for the YouTube dataset in
Experiment 3. The dotted line represents the variance of the non-private stratified estimator.




                                                                         18
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

Since wc are drawn independently from each other and also independent from the assignments zi , we have
                                                                               X  n c 2
                                   VarDP,z [τ̂ ] = VarDP,z [τ̂N O -DP ] +                     Var[wc ]
                                                                                   n
                                                                               c∈C
                                                                                  X             2
                                                                                        n c ∆c
                                                     = VarDP,z [τ̂N O -DP ] + 2                        ,
                                                                                        n ε
                                                                                  c∈C


where the last step holds because wc ∼ Laplace(ηc ) with ηc = ∆c/ε.
We next proceed with proving Proposition A.3. Its privacy guarantee follows easily from the fact that p̂a (y|c) has sensitivity
1/na,c (histogram queries) and therefore adding independent draws from Laplace((n            −1
                                                                                      a,c ε)    ) to the frequency of each value
will make the histogram ε-DP. To prove the claim on its variance, we note that the non-private Horvitz-Thompson estimator
can be written as
                                                                                      
                                               X nc X                    X
                                   τ̂N O -DP =            y p̂1 (y|c) −    y p̂0 (y|c) .
                                                  n
                                                    c∈C         y∈Y               y∈Y


Therefore, we can write the noisy Histogram estimator (6) as
                                          X nc X
                                   τ̂ =                   y(p̂1 (y|c) + w1,c,y − p0 (y|c) − w0,c,y )
                                                n
                                          c∈C       y∈Y
                                                      X nc X
                                     = τ̂N O -DP +                    y(w1,c,y − w0,c,y ) .
                                                            n
                                                      c∈C       y∈Y


Since wa,c,y are independent from each other and wa,c,y ∼ Laplace(ηa,c ), we get
                                                            X X  n c 2
                      VarDP,z [τ̂ ] = VarDP,z [τ̂N O -DP ] +            y (Var[w1,c,y ] + Var[w0,c,y ])
                                                                      n
                                                            c∈C y∈Y
                                                                    
                                                              X        X  n c 2
                                   = VarDP,z [τ̂N O -DP ] +      y2                2
                                                                                  (2η1,c       2
                                                                                         + 2η0,c  )
                                                                           n
                                                              y∈Y      c∈C
                                                                                                    !
                                                             2  X 2  X  n c 2        1         1
                                   = VarDP,z [τ̂N O -DP ] + 2        y                        + 2       .
                                                            ε                   n       n21,c    n0,c
                                                                        y∈Y       c∈C


This completes the proof of Proposition A.3.

A.12. Proof of Theorem A.5
Because the U NIFORM -P RIOR DP mechanism is a special case of the C LUSTER -DP mechanism, we follow the proof of
Theorem 3.5, which is detailed below and which the reader might prefer reading first. In this special case, we can obtain an
exact form for the variance gap. Hence, we continue from (26), which in the case that there is no Laplace noise added, reads
as
                                                                                   X
                             VarDP (u0,c |z, P) = n0,c yT Q−1 diag(Qp̂)Q−T y −          yi2 (0) .                       (10)
                                                                                              i∈O0,c


Note that we are using the lightened notation p̂ to indicate the empirical distribution of outcomes of the controlled units in
cluster c.
In the mechanism described by Algorithm 2, q̃ is data-dependent and so correlated to p̂. In that case, we analyzed the first
term via the decomposition diag(Qp̂) = diag(Qq̃) + diag(Q(p̂ − q̃)) and bounding ∥q̃ − p̂∥1 . In the current case that q̃
is the uniform distribution, this approach is not tight as ∥q̃ − p̂∥1 would be large. However, since q̃ (and therefore Q) is

                                                                      19
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

data-independent we can directly analyze the first term as follows:

                 yT Q−1 diag(Qp̂)Q−T y
                                                                                
                         1      T        λ T                        λ            λ T
                  =           y     I −    11   diag   (1 − λ) p̂ +   1    I −    11   y
                     (1 − λ)2           K                           K           K
                       n 1                       λ                    2λ               λ2        o
                  = yT            diag(p̂) +          2
                                                        diag(1) −            1p̂T − 2       2
                                                                                              11T y
                         (1 − λ)             K(1 − λ)               K(1 − λ)       K (1 − λ)
                          2
                         y0,c    λy 2       2λȳ            λ2 ȳ 2
                  =           +         −         y 0,c −
                       (1 − λ) (1 − λ)2   (1 − λ)         (1 − λ)2
                          2
                         y0,c    λy 2 − λ2 ȳ 2     2λȳ
                  =            +          2
                                                −         y0,c ,                                                                         (11)
                       (1 − λ)    (1 − λ)         (1 − λ)

where we use the shorthand
                                     2 =       1 X 2                                 1 X
                                    y0,c           yi (0) ,                y0,c =        yi (0) .
                                              n0,c                                  n0,c
                                                       i∈O0,c                              i∈O0,c

Using (11) in (10), we arrive at
                                                       "                                    #
                                                      2
                                                     y0,c     λy 2 − λ2 ȳ 2     2λȳ                 2
                       VarDP (u0,c |z, P) = n0,c            +                −          y0,c − n0,c ⃗y0,c
                                                   (1 − λ)     (1 − λ)2        (1 − λ)
                                                 "                                            #
                                                     λ     2    λy 2 − λ2 ȳ 2     2λȳ
                                          = n0,c          y +                  −          y0,c .
                                                   1 − λ 0,c      (1 − λ)2       (1 − λ)

Invoking (22), the above characterization yields the following:
                                                       "               !                          #
                                          X n2              2
                                                          y0,c     2
                                                                  y1,c
                                                                                    
                                                   cλ                         2λȳ    y0,c   y1,c
                       VarDP (τ̂ |z, P) =                       +        −                 +
                                                  n2
                                                  1 − λ n0,c      n1,c     (1 − λ) n0,c      n1,c
                                          c∈C
                                            X n2   
                                                      1       1
                                                                 
                                                                   λy 2 − λ2 ȳ 2
                                                c
                                          +     2
                                                          +                       .                                                      (12)
                                              n      n0,c   n1,c     (1 − λ)2
                                              c∈C

                                                                                                                           na,c
We next compute Ez [VarDP (τ̂ |z, P)]. Since we are fixing na,c for each cluster, we have P(zi = a) =                       nc for i ∈ Oc and
a ∈ {0, 1}. We therefore have
                                              "                       #
                                                   1 X                   1 X
                            Ez [ya,c ] = Ez            I(zi = a)yi (a) =     yi (a) = ⃗yc (a) .
                                                  na,c                   nc
                                                        i∈Oc                                i∈Oc


                          yc2 (a). Using this identities in (12), we obtain
                      2 ]=⃗
Likewise we have Ez [ya,c
                                                    "                  !                                                   !#
                                         X n2    λ    y 2 (0)  y 2 (1)         2λȳ                       yc (0) yc(1)
                                            c           c
               Ez [VarDP (τ̂ |z, P)] =                        + c        −                                      +
                                           n2 1 − λ    n0,c     n1,c        (1 − λ)                        n0,c   n1,c
                                       c∈C
                                         X n2  1          1   λy − λ2 ȳ 2
                                                               2
                                               c
                                       +              +                      .
                                              n2 n0,c    n1,c   (1 − λ)2
                                              c∈C


We next recall (21):

                                                           X n2  S 2 (⃗yc (1))         S 2 (⃗yc (0)) S 2 (⃗τc )
                                                                                                                   
                                                                  c
                           Varz [EDP (τ̂ |z, P)] =                                  +                −                 ,
                                                                 n2    n1,c                 n0,c        nc
                                                           c∈C


                                                                      20
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

which is the variance of the typical estimator with no-differential-privacy and so was written as Varz [τ̂N O -DP ]. Finally, from
the law of total variance, we have:
                Var(τ̂ |n0 , n1 , P) = Ez [VarDP (τ̂ |z, n0 , n1 , P)] + Varz [EDP (τ̂ |z, n0 , n1 , P)]
                                   = Ez [VarDP (τ̂ |z, P)] + Varz [EDP (τ̂ |z, P)]
                                                         X n2  1          1     λy − λ2 ȳ 2
                                                                                2
                                                                c
                                   = Varz [τ̂N O -DP ] +        2
                                                                        +
                                                              n    n0,c   n1,c    (1 − λ)2
                                                         c∈C
                                             "                            !                           !#
                                     X n2          λ      yc2 (0) yc2 (1)        2λȳ   yc (0) yc (1)
                                           c
                                   +                              +         −                 +          .
                                         n2 1 − λ          n0,c      n1,c      (1 − λ)   n0,c   n1,c
                                      c∈C


A.13. Proof of Theorem 3.1
The C LUSTER -DP mechanism randomizes the labels using the empirical probability of units with the same treatment status
(treated or controlled) within the same cluster, so we can focus on the controlled units within one cluster, and drop the index
a, c from our notation, unless needed for clarification. With slight abuse of notation, suppose that there are n controlled
units in the cluster and denote by M the mechanism described in Algorithm 2.
We can think of M as composition of two mechanisms M1 and M2 with M (D) = M2 (D, M1 (D)), where M1 (D)
represents the mechanism that returns the noisy cluster label distribution q̃, and M2 (D, q̃) represents the mechanism
which uses q̃ to re-sample the labels and use them to form the average treatment effect estimator τ̂ . By composition
theorem for (ε, δ)-DP (see e.g. (Dwork et al. (2014), Theorem B.1), if M1 is (ε1 , δ1 )-DP and M2 is (ε2 , δ2 )-DP, then M is
(ε1 + ε2 , δ1 + δ2 )-DP.
After adding noise terms wy,c to empirical distributions p̂0,D (y|c) and p̂1,D (y|c), the dataset D is not accessed anymore.
Furthermore, the empirical distributions have sensitivity 1/nc and the Laplace noise used in M1 is of scale σ/nc , which
imply that M1 is (1/σ, 0)-DP (see e.g. (Dwork et al. (2014), Theorem 3.6) for an argument).
For mechanism M2 , note that it is a randomization per label mechanism (using perturbed distribution q̃), followed by
post-processing (computing average treatment effect estimator). We next show that M2 is (ε̃, δ)-DP. Note that for all y ∈ Y,
we have
                          P(ỹi = y|yi = y) = 1 − λ + λq̃(y), P(ỹi = y|yi ̸= y) = λq̃(y) .
Since P(ỹi = y|yi ̸= y) is independent of yi and P(ỹi = y|yi ̸= y) < P(ỹi = y|yi = y), the only condition we need to
verify is the following:
                                     P(ỹi = y|yi = y) ≤ eε̃ P(ỹi = y|yi ̸= y) + δ .
By substituting for the events probabilities, the above condition becomes
                                                1 − λ + λq̃(y) ≤ λq̃(y)eε̃ + δ .
By rearranging the terms, it can be rewritten as
                                                  1 − λ + λq̃(y)(1 − eε̃ ) ≤ δ .
Now recall that δ := max(0, 1 − λ + λγ(1 − eε̃ )). Hence, it is sufficient to show that
                                       1 − λ + λq̃(y)(1 − eε̃ ) ≤ 1 − λ + λγ(1 − eε̃ ) ,
which by rearranging the terms reads as
                                                   0 ≤ λ(γ − q̃(y))(1 − eε̃ ) ,
which holds since ε̃ > 0 and γ ≤ q̃(y). To summarize, by applying composition theorem for (ε, δ)-DP, we obtain that M is
(ε′ , δ)-label DP, with ε′ = 1/σ + ε̃.
We next show that M is (ε′′ , δ)-label DP, with ε′′ = 2/γ + σ, which along with the previous result gives the claim of
Theorem 3.1. Let Y1:n be the random vector denoting the labels of the units. We need to show that for any two neighboring
                                        ′
data sets D = (y1:n , x1:n ) and D′ = (y1:n                           ′
                                            , x1:n ) (where y1:n and y1:n differ only in one entry) we have
                                                                 ′′
                                                                    ′
                                        P(M (y1:n ) ∈ O) ≤ eε P(M (y1:n ) ∈ O) + δ ,                                         (13)

                                                                 21
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

for any set O ∈ Y n . Proof of this part requires more effort. Let W1:K be the random vector representing the noise values
added to the set of possible labels in the data set. We then have
                                  X
             P(M (y1:n ) ∈ O) =          P(M (y1:n ) ∈ O)|Y1:n = y1:n , W1:K = w1:K ) P(W1:K = w1:K ) ,
                                  w1:K
                                  X                                                                                      (14)
                   ′                           ′                  ′
             P(M (y1:n ) ∈ O) =          P(M (y1:n ) ∈ O)|Y1:n = y1:n , W1:K = w1:K ) P(W1:K = w1:K ) .
                                  w1:K



It suffices to show that for any value of w1:K , we have

                       P(M (y1:n ) ∈ O)|Y1:n = y1:n , W1:K = w1:K )                                                      (15)
                                                 ε′′         ′                  ′
                                            ≤e         P(M (y1:n ) ∈ O)|Y1:n = y1:n , W1:K = w1:K ) + δ .


P multiplying both sides of the above equation with P(W1:K = w1:K ), and summing over w1:K , and using that
By
  w1:K P(W1:K = w1:K ) = 1, we get the desired bound in (13).

Let q̃ and q̃ ′ be the empirical distributions of the DP mechanism, as defined in Algorithm 2. we continue by establishing a
lemma on ∥q̃ − q̃ ′ ∥∞ , proven in the next section.
Lemma A.7. For all y ∈ Y, |q̃(y) − q̃ ′ (y)| ≤ n2 .

                                                  ′
Define the shorthand R := M (y1:n ) and R′ := M (y1:n ). In order to prove (15), it suffices to show that for all o1:n ∈ Y n ,
we have
                                                                   ′′
                                                                                ′
              P(R = o1:n |Y1:n = y1:n , W1:K = w1:K ) ≤ eε P(R′ = o1:n |Y1:n = y1:n , W1:K = w1:K ) + δ .                (16)


By the definition of the mechanism M we have

                        P(R = o1:n |Y1:n = y1:n , W1:K = w1:K ) = P(R = o1:n |Y1:n = y1:n , q̃(·))
                                                                  Yn
                                                                =    P(Ri = oi |Yi = yi , q̃(·))
                                                                               i=1
                                            ′
                       P(R′ = o1:n |Y1:n = y1:n                                        ′
                                                , W1:K = w1:K ) = P(R = o1:n |Y1:n = y1:n    , q̃ ′ (·))
                                                                  Yn
                                                                =    P(Ri′ = oi |Yi′ = yi′ , q̃ ′ (·))
                                                                               i=1


For ease in presentation, we adopt the shorthand

                           Ai := P(Ri = oi |Yi = yi , q̃(·)),           Bi := P(Ri′ = oi |Yi′ = yi′ , q̃ ′ (·)) ,

for i = 1, . . . , n. Our next lemma bounds the event probability Ai in terms of the event probability Bi . Proof of Lemma A.8
is deferred to Section A.13.
Lemma A.8. Let ε̃ > 0 and define δ := (1 − λ + λγ(1 − eε̃ ))+ < 1. Without loss of generality suppose that the neighboring
                     ′
label sets y1:n and y1:n differs in the first coordinate. We then have
                                                           
                                                        2
                                                       ε̃
                                          A1 ≤ e 1 +        B1 + δ,                                                      (17)
                                                       γn
                                                         
                                                        2
                                          Ai ≤ B i 1 +      , for i = 2, . . . , n.                                      (18)
                                                       γn

                                                                  22
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

We are now ready to prove inequality (16). Using Lemma A.8, we write
                                                    n
                                                                    ( n    )
                                                    Y                 Y
         P(R = o1:n |Y1:n = y1:n , W1:K = w1:K ) =    Ai = A1 min 1,    Ai
                                                              i=1                               i=2
                                                                                   (        n−1 Yn
                                                                                                             )
                                                                ε̃      2                      2
                                                           ≤ e 1+           B1 + δ min 1, 1 +             Bi
                                                                      γn                      γn      i=2
                                                                        n Yn
                                                                      2
                                                           ≤ eε̃ 1 +            Bi + δ
                                                                     γn     i=1
                                                                              n
                                                                              Y
                                                                  ε̃+2/γ
                                                           ≤e                       Bi + δ
                                                                              i=1
                                                                   ′′
                                                                                     ′
                                                           = eε P(R′ = o1:n |Y1:n = y1:n , W1:K = w1:K ) + δ .
where the second equality holds since Ai ≤ 1, for all i.

Proof of Lemma A.7
                                                                                                       ′
Recall the notation of Theorem 3.1. We consider two neighboring datasets D = (y1:n , x1:n ) and D′ = (y1:n , x1:n ), where
          ′
y1:n and y1:n differ only in one entry. Define the function fγ as follows:
                                                                       
                                                                       γ, x ≤ γ
                                                                       
                                     fγ (x) = max{γ, min{1, x}} = x, γ ≤ x ≤ 1
                                                                       
                                                                         1, x > 1
                                                                       


We consider q(y) := fγ (p̂(y) + wy ) and q ′ (y) := fγ (p̂′ (y) + wy ), where p̂ and p̂′ respectively denote the empirical
                          ′
distribution of y1:n and y1:n and wy indicates the component of w1:K corresponding to label y. We wish to bound the
difference between distributions q̃(y) and q̃ ′ (y), defined in Algorithm 2, and recalled below:
                                                      ζy                                                 ζy′
                                q̃(y) = q(y) + P                  ∆,          q̃ ′ (y) = q ′ (y) + P                   ∆′ ,
                                                      y′   ζy ′                                          y′    ζy′ ′

                                  ′              ′                                                       ′
                 P                          P
where ∆ = 1 −      y q(y) and ∆       =1−     y q (y). To achieve this, we will need a bound on |q(y) − q (y)| and on a bound
on |∆ − ∆′ |.

   • Since fγ is 1-Lipschitz, we have for any y ∈ Y
                                                                                                                              1
                         |q(y) − q ′ (y)| = |fγ (p̂(y) + wy ) − fγ (p̂′ (y) + wy )| ≤ |p̂(y) − p̂′ (y)| ≤                       ,
                                                                                                                              n
     where the last inequality holds because the datasets D and D′ differ in only one label.
   • We now show that |∆ − ∆′ | ≤ 1/n. Without loss of generality, we can assume that the neighboring label sets y1:n and
      ′
     y1:n differ in the first coordinate, with y1 = ℓ, y1′ = ℓ′ for ℓ, ℓ′ ∈ Y, such that
                                                                        1                                1
                                              p̂(ℓ) = p̂′ (ℓ) +           ,      p̂(ℓ′ ) = p̂′ (ℓ′ ) −     .
                                                                        n                                n
     It follows that
                         X              X
              ∆′ − ∆ =         q(y) −       q ′ (y)
                           y            y

                       = fγ (p̂(ℓ) + wℓ ) + fγ (p̂(ℓ′ ) + wℓ′ ) − fγ (p̂′ (ℓ) + wℓ ) − fγ (p̂′ (ℓ′ ) + wℓ′ )
                                                                                                   
                                       1                                                  1
                                ′                          ′                     ′ ′
                       = fγ p̂ (ℓ) + + wℓ − fγ (p̂ (ℓ) + wℓ ) + fγ p̂ (ℓ ) − + wℓ′ − fγ (p̂′ (ℓ′ ) + wℓ′ )
                                       n                                                  n
                                               
                                       1                                     1
                       ≤ fγ p̂′ (ℓ) + + wℓ − fγ (p̂′ (ℓ) + wℓ ) ≤ ,
                                       n                                    n

                                                                         23
                  Improving the Variance of Differentially Private Randomized Experiments through Clustering

     where the second to last inequality holds since fγ is a non-decreasing function, and the last step follows from
     1-Lipschitzness of fγ . Likewise, we can show ∆ − ∆′ ≤ 1/n in order to obtain |∆ − ∆′ | ≤ 1/n.

With this, we next bound the difference between distributions q̃(y) and q̃ ′ (y), defined above. Consider three different cases:

   • ∆ > 0, ∆′ < 0. We have

                                                                                ζy                ζy′
                                    |q̃(y) − q̃ ′ (y)| ≤ |q(y) − q ′ (y)| + P              ∆− P                 ∆′
                                                                                y′   ζy′          y′    ζy′ ′
                                                                                            2
                                                     ≤ |q(y) − q ′ (y)| + |∆ − ∆′ | ≤         .
                                                                                            n
     The case of ∆ < 0, ∆′ > 0 can be handled similarly.

   • ∆, ∆′ < 0. We have

                                                                                ∆
                                           q̃(y) = q(y) + (q(y) − γ) P
                                                                         y′   (q(y ′ ) − γ)
                                                                           ∆
                                               = q(y) + (q(y) − γ)
                                                                      1 − ∆ − Kγ
                                                                                            ∆
                                               = γ + (q(y) − γ) + (q(y) − γ)
                                                                                       1 − ∆ − Kγ
                                                                    1 − Kγ
                                               = γ + (q(y) − γ)              .
                                                                  1 − ∆ − Kγ

     Therefore,
                                                    1 − Kγ            1 − Kγ                             1 − Kγ
                   |q̃(y) − q̃ ′ (y)| ≤ (q(y) − γ)               −         ′
                                                                                   + |q ′ (y) − q(y)|
                                                  1 − ∆ − Kγ       1 − ∆ − Kγ                         1 − ∆′ − Kγ
                                                                          ′
                                                        (1 − Kγ)|∆ − ∆ |            1 1 − Kγ
                                   = (q(y) − γ)                                   +
                                                                        ′
                                                 (1 − ∆ − Kγ)(1 − ∆ − Kγ) n 1 − ∆′ − Kγ
                                                       (q(y) − γ)|∆ − ∆′ |
                                                                                
                                         1 − Kγ                                1
                                   =                                         +
                                      1 − ∆′ − Kγ         (1 − ∆ − Kγ)         n
                                                                            
                                   (a) 1    1 − Kγ           q(y) − γ
                                   ≤           ′
                                                                        +1
                                       n 1 − ∆ − Kγ 1 − ∆ − Kγ
                                   (b) 2    1 − Kγ    2
                                   ≤                 ≤ .
                                       n 1 − ∆′ − Kγ  n

     (a) holds since |∆ − ∆′ | ≤ 1/n. (b) follows from the fact that, since q(y) ≥ γ for all y,
                                                                    X
                                      q(y) + (K − 1)γ ≤ q(y) +           q(y ′ ) = 1 − ∆ ,
                                                                         y ′ ̸=y


     such that q(y) − γ ≤ 1 − ∆ − Kγ.

   • ∆, ∆′ > 0. We have

                                                                            ∆
                                              q̃(y) = q(y) + (1 − q(y)) P
                                                                          (1 − q(y ′ ))
                                                                               y′
                                                                                     
                                                                          ∆
                                                     = 1 + (1 − q(y))            −1
                                                                        ∆+K −1
                                                                        1−K
                                                     = 1 + (1 − q(y))         .
                                                                      ∆+K −1

                                                                 24
                  Improving the Variance of Differentially Private Randomized Experiments through Clustering

     Therefore,
                                                      1−K         1−K                         K −1
                     |q̃(y) − q̃ ′ (y)| ≤ (1 − q(y))          − ′        + |q(y) − q ′ (y)| ′
                                                   ∆+K −1 ∆ +K −1                          ∆ +K −1
                                                     |∆′ − ∆|
                                                                 
                                                                1    K −1
                                     ≤ (1 − q(y))             +
                                                    ∆ + K − 1 n ∆′ + K − 1
                                                       1      1   1 K     2
                                     ≤ (1 − q(y))           + ≤         ≤ .
                                                  n(K − 1) n      nK −1   n
     Combining the above three cases together, we obtain our stated lemma.

Proof of Lemma A.8
We start by proving (17). Consider three different cases:

   • o1 ̸= y1 , y1′ : In this case, we have A1 = λq̃(o1 ) , B1 = λq̃ ′ (o1 ). Therefore, we can write

                                                       A1 ≤ λq̃ ′ (o1 ) + λ∥q̃ − q̃ ′ ∥∞
                                                                          2λ
                                                          ≤ λq̃ ′ (o1 ) +
                                                                         n       
                                                                ′               2
                                                          ≤ λq̃ (o1 ) 1 +
                                                                               nγ
                                                                            
                                                                          2
                                                          = B1 1 +
                                                                         nγ
                                                                               
                                                             ε̃              2
                                                          ≤ e B1 1 +              + δ,
                                                                            nγ

     where the second step follows from Lemma A.7, third step holds since γ ≤ q̃ ′ (o1 ), and the last step holds since ε̃, δ > 0.
     So the claim (17) is proved in this case.
   • o1 = y1 : In this case, A1 = 1 − λ + λq̃(o1 ) , B1 = λq̃ ′ (o1 ) . We then have

                                               A1 ≤ 1 − λ + λq̃ ′ (o1 ) + λ∥q̃ − q̃ ′ ∥∞
                                                                            2
                                                  ≤ 1 − λ + λq̃ ′ (o1 ) + λ q̃ ′ (o1 )eε̃ ,                                  (19)
                                                                           nγ
     where we used Lemma A.7 along with the facts that q̃ ′ (o1 ) ≥ γ and ε̃ > 0.
     We next recall the definition δ := (1 − λ + λγ(1 − eε̃ ))+ < 1. By a simple rearrangement of the terms and using that
     q̃ ′ (o1 ) ≥ γ and ε̃ > 0, we can verify the following,

                                                  1 − λ + λq̃ ′ (o1 ) ≤ eε̃ λq̃ ′ (o1 ) + δ .                                (20)

     Therefore, by combining equations (19) and (20), we get
                                                                                               
                                                                 2 ′                          2
                                 A1 ≤ eε̃ λq̃ ′ (o1 ) + δ + λ      q̃ (o1 )eε̃ = eε̃ =    1+      B1 + δ ,
                                                                nγ                           nγ
     which completes the proof of claim (17) in this case.
   • o1 = y1′ : In this case, A1 = λq̃(o1 ), B1 = 1 − λ + λq̃ ′ (o1 ) . The proof of claim (17) in this case follows readily
     from case 1, because A1 is the same as in there, while B1 is larger.

This concludes the proof of Claim 17. We next prove Claim 18. Note that for i = 2, . . . , n, we have yi = yi′ . Consider the
following two cases:

                                          Ai    1−λ+λq̃(oi )
   • oi = yi = yi′ : In this case we have B i
                                              = 1−λ+λq̃ ′ (o ) .
                                                            i



                                                                    25
                 Improving the Variance of Differentially Private Randomized Experiments through Clustering

                                                                        Ai   λq̃(oi )
   • oi ̸= yi : Since yi = yi′ , we also have oi ̸= yi′ . In this case, Bi
                                                                           = λq̃ ′ (o ) .
                                                                                     i



By symmetry, we can assume q̃(oi ) ≤ q̃ ′ (oi ), without loss of generality, and therefore, the maximum value of the ratio
                                                                                ∥q̃−q̃ ′ ∥∞
A1 /B1 is achieved in the second case, for which we have B Ai
                                                            i
                                                              = q̃q̃(o i)
                                                                   ′ (o ) ≤ 1 +
                                                                       i
                                                                                                    2
                                                                                  q̃ ′ (oi ) ≤ 1 + nγ . This completes the proof
of (18).

A.14. Proof of Theorem 3.2
We would like to express the expectation E(τ̂ |n0 , n1 ). Recall that there are three sources of randomness:

   • the differential privacy mechanism DP : determines the Laplace noise w and the λ probability of reporting the true
     outcome.
   • the randomized assignment z: determines which units get assigned to treatment and which units get assigned to control.
   • the super-population P: determines the potential outcomes as well as the cluster assignments.

For a given unit i with (yi (0), yi (1), ci ) ∼ P and zi = a,
                                                                                                     
                       X                                         X X
              EDP           Q−1       ′        ′
                              ci ,zi [y , y˜i ]y zi z, P = EDP
                                                                   I(ỹi = y)Q−1       ′     ′
                                                                                ci ,zi [y , y]y zi z, P
                                                                                                        
                        y ′ ∈Y                                           y ′ ∈Y y∈Y
                                                                                                                       
                                                           (a) X                     X
                                                           =            EDP             I(ỹi = y)Q−1       ′          ′
                                                                                                    ci ,zi [y , y] z, P y zi
                                                               y ′ ∈Y             y∈Y
                                                                                                                            
                                                           (b) X                 X
                                                           =            Ew            Eλ [I(ỹi = y)] Q−1       ′          ′
                                                                                                        ci ,zi [y , y] z, P y zi
                                                               y ′ ∈Y         y∈Y
                                                                                                                        
                                                           (c) X                 X
                                                           =            Ew            Qci ,zi [y, yi ]Q−1       ′          ′
                                                                                                        ci ,zi [y , y] z, P y zi
                                                               y ′ ∈Y            y∈Y
                                                           (d) X
                                                           =            Ew [I(yi = y ′ )|z, P] y ′ zi
                                                               y ′ ∈Y
                                                           (e) X
                                                           =            I(yi = y ′ )y ′ zi = yi (1)zi .
                                                               y ′ ∈Y


(a) holds since assignments zi is independent from {yi (0), yi (1), ci }; (b) holds from the law of iterated expectation and the
fact that there are two sources of randomness in the differential privacy mechanism: (λ, w) with Qc,a independent of the
Bernoulli λ; (c) follows from the definition of Qc,a : Qc,a [y ′ , y] = (1 − λ)I(y ′ = y) + λq̃a (y ′ |c) ; and (d) follows from the
fact that I = Q−1ci Qci therefore, for any a, b ∈ [K],
                                          X
                                               Q−1
                                                 ci [a, y]Qci [y, b] = Ia,b = I(a = b) .
                                               y

Finally, (e) follows from the fact that w is independent from {yi (0), yi (1), ci }. Similarly,
                                                                                
                                         X
                                EDP          Q−1        ′        ′
                                                ci ,zi [y , y˜i ]y (1 − zi ) z, P = yi (0)(1 − zi )
                                                                                 
                                            y ′ ∈Y

As a result, with n0,c (resp. n1,c ) the total number of controlled (resp. treated) units in cluster c and nc := n0,c + n1,c ,
                                                             n                 n
                                                                                                !
                                                  X nc X                zi    X          1 − zi
                                EDP [τ̂ |z, P] =                yi (1)      −     yi (0)
                                                       n i=1           n1,c i=1           n0,c
                                                     c∈C


                                                                        26
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

We recover the standard form of the difference-in-means estimator. From the law of iterated expectations, we have


                                              EDP,z [τ̂ ] = Ez [EDP [τ̂ |z]|n0 , n1 , P] = τ .


A.15. Proof of Theorem 3.5
We would like to express the variance VarDP,z (τ̂ ). We begin by expressing the variance with respect to the first two,
considering the third fixed. From the law of total variance, we have:


                           VarDP,z (τ̂ ) = Ez [VarDP (τ̂ |z, n0 , n1 , P)] + Varz [EDP (τ̂ |z, n0 , n1 , P)]
                                           = Ez [VarDP (τ̂ |z, P)] + Varz [EDP (τ̂ |z, P)]


We bound the term VarDP (τ̂ |z, P) in a separate proposition

Proposition A.9. For the average treatment effect estimator τˆQ given given in Theorem 3.2, we have

                                                    X X n2      1
                                                                           2
                                                                           S (⃗ya,c ) A(na,c )
                                                                                               
                                                         c
                       VarDP (τ̂ |z, P) ≤                              − 1           +           ,
                                                        n2    (1 − λ)2       na,c      na,c
                                                a∈{0,1} c∈C



where ⃗ya,c := {yi (a) : i ∈ Oa,c }, and

                                                    √                             !
                                                  (λ K + 1)2
                                             
                       2             3                           2
                                                                                    h    σ  −γx/σ     −x/σ
                                                                                                            i
        A(x) = 2KB                        + 2   +            ∥y∥   (1 − λ(K − 1)γ)   γ +    e      − e
                                 (1 − λ)2           (1 − λ)2                             x


We now take its expectation with respect to z. We assume that, for each cluster c, there is a fixed number of units (n1,c )
assigned to treatment and a fixed number of units (n0,c ) assigned to control, regardless of the cluster assignment. We
compute the expectation with Ez S 2 (⃗ya,c ) ,


       (na,c − 1)Ez S 2 (⃗ya,c )
                                
                                                            
                               X                         2
                    = Ez          yi (a) − {yi (a)}i∈Oa,c 
                                  i∈Oa,c
                                                           2 
                             X                   1   X
                      = Ez    yi2 (a) − na,c         yi (a) 
                                                               
                                                na,c
                                  i∈Oa,c                        i∈Oa,c
                                                                                      !2 
                           X                                      1   X
                      =           P (zi = a) yi2 (a) − na,c Ez         I(zi = a)yi (a) 
                                                                 na,c
                           i∈Oc                                           i∈Oc
                           X na,c                1 X X
                      =               yi2 (a) −        P (zi = a, zj = a) yi (a)yj (a)
                                   nc           na,c
                           i∈Oc                        i∈Oc j∈Oc
                           X na,c                1 X                       1              X
                      =               yi2 (a) −      P (zi = a) yi2 (a) −                         P (zi = a, zj = a) yi (a)yj (a)
                                   nc           na,c                      na,c
                           i∈Oc                        i∈Oc                             j̸=i∈Oc
                           X na,c                   1 X 2        1          X na,c (na,c − 1)
                      =                 yi2 (a) −      yi (a) −                               yi (a)yj (a) .
                                   nc               nc          na,c           nc (nc − 1)
                           i∈Oc                       i∈Oc                j̸=i∈Oc


                                                                    27
                 Improving the Variance of Differentially Private Randomized Experiments through Clustering

                          a,c n   −1   P        2
Adding and subtracting nc (nc −1)         i∈Oc yi (a), we get:

          (na,c − 1)Ez S 2 (⃗ya,c )
                                  
                                                                                                                                        !2
                          X na,c                   1 X 2        na,c − 1 X 2         na,c − 1                           X
                      =                yi2 (a) −      yi (a) +             yi (a) −                                            yi (a)
                                  nc               nc          nc (nc − 1)          nc (nc − 1)
                          i∈Oc                       i∈Oc                                 i∈Oc                          i∈Oc
                                                            X                                                          !2
                              na,c   1     na,c − 1                           nc                          1 X
                      =            −    +              yi2 (a) − (na,c − 1)                                   yi (a)
                               nc    nc   nc (nc − 1)                       nc − 1                        nc
                                                  i∈Oc                                                       i∈Oc
                                                                               !2
                        na,c − 1 X 2                    nc        1 X
                      =           yi (a) − (na,c − 1)                    yi (a)
                         nc − 1                       nc − 1 nc
                                       i∈Oc                                               i∈Oc
                                         2
                      = (na,c − 1)S (⃗yc (a)).

For the second term, we again make the assumption that the number of treated units is fixed at the cluster level. For the
second term, from the proof of Theorem 3.2, we have:
                                                      n                n
                                                                                        !
                                               X nc X            zi   X          1 − zi
                              EDP [τ̂ |z, P] =           yi (1)     −     yi (0)
                                                 n i=1          n1,c i=1          n0,c
                                                      c∈C


As a result, the second term is given by the usual formula for the variance of the stratified estimator:
                                                   X n2  S 2 (⃗yc (1)) S 2 (⃗yc (0)) S 2 (⃗τc ) 
                                                        c
                           Varz [EDP (τ̂ |z, P)] =                      +              −                                                     (21)
                                                       n2       n1,c          n0,c           nc
                                                            c∈C

                                                          1
                                                             Pn              2             1
                                                                                             Pn
where, for any vector ⃗u of length n, S 2 (u) = n−1             i=1 (ui − ū) and ū = n                            τc = {yi (1) −
                                                                                               i=1 ui . Recall that ⃗
yi (0)}i:ci =c = ⃗yc (1) − ⃗yc (0) . Since this is the variance of the typical estimator with no-differential-privacy, we write this
term:
                                                 Varz [EDP (τ̂ |z, P)] = Varz [τ̂N O -DP ]
As a result, we obtain

              VarDP,z (τ̂ |n0,c , n1,c , P)
                                               X X n2                     1
                                                                                    2
                                                                                    S (⃗yc (a)) A(na,c )
                                                                                                         
                                                             c
                      ≤Varz [τ̂N O -DP ] +                                       −1            +
                                                            n2          (1 − λ)2       na,c      na,c
                                              a∈{0,1} c∈C
                                                               X X 2 2             X X n2 A(na,c )
                                                      1             nc S (⃗yc (a))        c
                      ≤Varz [τ̂N O -DP ] +                2
                                                            − 1       2
                                                                                   +
                                                  (1 − λ)           n    na,c            n2 na,c
                                                                        a∈{0,1} c∈C                     a∈{0,1} c∈C

which we can rewrite as:
                                                                     
                                                                             1
                                                                                       X      X X n2 A(na,c )
                                                                                                    c
            VarDP,z (τ̂ |n0,c , n1,c , P) ≤ Varz [τ̂N O -DP ] +                  2
                                                                                   − 1    ϕa +
                                                                         (1 − λ)                   n2 na,c
                                                                                              a∈{0,1}     a∈{0,1} c∈C


where we have defined
                                                                  X n2 S 2 (⃗yc (a))
                                                                          c
                                                      ϕa :=                                ≥0
                                                                        n2         na,c
                                                                  c∈C


Proof of Proposition A.9
We seek to compute VarDP (τ̂ |z, P). We can rewrite τ̂ as
                                                   X nc                            X ua,c
                                              τ̂ =                                        ,
                                                          n                          na,c
                                                              c∈C             a∈{0,1}


                                                                              28
                 Improving the Variance of Differentially Private Randomized Experiments through Clustering

where Oa,c := {i ∈ [n] : ci = c, zi = a} and ua,c := i∈Oa,c y′ ∈Y Q−1              ′        ′
                                                       P        P
                                                                           ci ,a [y , ỹi ]y . Since (yi (0), yi (1)) are i.i.d across
units, and the DP mechanism is applied to each clusters separately, such that the privatized outcomes y˜i are independent
across clusters, we have that u0,c and u1,c are independent across clusters.
                                                              X n2           X        1
                                                                     c
                                    VarDP (τ̂ |z, P) =                                     VarDP (ua,c |z, P) .                    (22)
                                                                    n2               n2a,c
                                                              c∈C        a∈{0,1}

We proceed by calculating VarDP (u0,c |z, P). The computation for VarDP (u1,c |z, P) is identical.

• C OMPUTING VarDP (u0,c |z, P)
We have
                                    VarDP (u0,c |z, P) = EDP [u20,c |z, P] − EDP [u0,c |z, P]2
We begin by computing EDP [u0,c |z, P]. Fixing cluster c, we lighten the notation by using the shorthand Q = Qc,0 ,
Qa,b = Qc,0 [a, b], Q−1      −1
                     a,b = Qc,0 [a, b], and Q
                                             −T
                                                = (Q−1 )T . Finally, recall that y = (y)y∈Y is the set of possible outcomes
arranged into a vector with the same ordering as the columns of Q, and eℓ ∈ RK×1 is the vector with 1 at the ℓ-th position
and zero everywhere else. Writing in matrix form, we have
                                                          X
                                                  u0,c =        yT Q−1
                                                                     ·,ỹi .
                                                                      i∈O0,c

Let ỹ, y, z, w be the vectors of variables ỹi , yi , zi , (w)y,c respectively. We then have
                                                           X          h                i
                                EDP [u0,c |z, P] =              EDP yT Q−1  ·,ỹi z, P
                                                           i∈O0,c
                                                                               "                                   #
                                                              X                      X
                                                       =             EDP yT                Q−1
                                                                                            ·,ℓ I(l = ỹi ) z, P
                                                           i∈O0,c                    ℓ∈Y
                                                              X              X        h                      i
                                                       =             y   T
                                                                                   EDP Q−1
                                                                                        ·,ℓ I(l = ỹi ) z, P
                                                           i∈O0,c            ℓ∈Y

Following similar steps to the proof of Theorem 3.2, we have
                  h                        i      h                             i      h                 i
            EDP Q−1  ·,ℓ I(l = ỹ i ) z, P   = Ew   Q−1
                                                        E
                                                     ·,ℓ λ [I(l = ỹi )|w] z, P   = Ew   Q−1
                                                                                          ·,ℓ Ql,yi z, P   = Iei .

It follows                                                               X                    X
                                          EDP [u0,c |z, P] =                      yT Iei =            yi (0) .                     (23)
                                                                     i∈O0,c                  i∈O0,c

We next calculate E[u20,c |z, P].
                                           X           h                           i
                 EDP u20,c |z, P =                  EDP yT Q−1      −1 T
                               
                                                            ·,ỹj (Q·,ỹi ) y z, P
                                         i,j∈O0,c
                                                                                                                          
                                           X                        X
                                     =              yT EDP                  Q−1     −1 T                ′
                                                                              ·,l′ (Q·,l ) I(l = ỹi )I(l = ỹj ) z, P y
                                                                                                                      
                                         i,j∈O0,c                 l,l′ ∈Y
                                                                                                                              
                                           X                      X
                                     =              yT Ew               Q−1     −1 T                    ′
                                                                          ·,l′ (Q·,l ) Eλ [I(l = ỹi )I(l = ỹj )|w] z, P y
                                                                                                                         
                                         i,j∈O0,c              l,l′ ∈Y
                                                          "                                           #
                                          X                   X
                                     =            yT Ew             Q−1    −1 T
                                                                     ·,ℓ (Q·,ℓ ) Qℓ,yi z, P y
                                         i∈O0,c               ℓ∈Y
                                                                                                                      
                                                  X                          X
                                           +               yT Ew                  Q−1     −1 T
                                                                                    ·,ℓ′ (Q·,ℓ ) Qℓ,yi Qℓ ,yj z, P y
                                                                                                         ′                        (24)
                                               i̸=j∈O0,c                 ℓ,ℓ′ ∈Y



                                                                             29
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

For the first term, we write
                        X                                X
                                Q−1    −1 T
                                 ·,ℓ (Q·,ℓ ) Qℓ,yi =           Q−1    −1 T
                                                                ·,ℓ (Q·,ℓ ) (Qeyi )ℓ = Q
                                                                                        −1
                                                                                           diag(Qeyi )Q−T ,                        (25)
                          ℓ∈Y                            ℓ∈Y


Let p̂ = [p̂0 (y|c)]y∈Y ∈ RK×1 be the empirical distributions of outcomes of the controlled units in cluster c, arranged into
                                         1
a K-dimensional vector, such that p̂ℓ = n0,c |{i ∈ O0,c : yi = ℓ}|. In vector form,

                                                                   1 X
                                                           p̂ =        eyi .
                                                                  n0,c
                                                                        i∈O0,c


Taking the expectation of both sides in (25) and summing over i ∈ O0,c , we get
                                "                                 #                                                         
                   X                X                                                              X
                          Ew            Q−1    −1 T                  −1 diag Q
                                         ·,ℓ (Q·,ℓ ) Qℓ,yi z, P = Ew Q                                    eyi  Q−T z, P 
                 i∈O0,c          ℓ∈Y                                                             i∈O0,c
                                                                             h                        i
                                                                      = Ew Q−1 diag(n0,c Qp̂)Q−T z, P
                                                                               h                      i
                                                                      = n0,c Ew Q−1 diag(Qp̂)Q−T z, P

We next proceed with the second term on the right-hand side of (24). We have
                                    X                                   X
                                           Q−1    −T
                                            ·,ℓ′ Q·,ℓ Qℓ,yi Qℓ ,yj =
                                                              ′                  Q−1    −T
                                                                                  ·,ℓ′ Q·,ℓ (Qeyj )ℓ (Qeyi )ℓ
                                                                                                    ′

                                 ℓ,ℓ′ ∈Y                               ℓ,ℓ′ ∈Y
                                                                        X
                                                                  =              Q−1                        −T
                                                                                  ·,ℓ′ [(Qeyj )ℓ (Qeyi )ℓ ]Q·,ℓ
                                                                                                ′

                                                                       ℓ,ℓ′ ∈Y
                                                                        X
                                                                  =              Q−1          T   T       −T
                                                                                  ·,ℓ′ (Qeyj eyi Q )ℓ ,ℓ Q·,ℓ
                                                                                                     ′

                                                                       ℓ,ℓ′ ∈Y

                                                                  = Q−1 Qeyj eT   T −T
                                                                              yi Q Q   = eyj eT
                                                                                              yi .

Taking the expectation of both sides of the above equation, we arrive at
                                                                       
                                  X
                         yT Ew         Q−1      −1 T
                                                                                T     T
                                                                                                 
                                          ·,ℓ′ (Q·,ℓ ) Qℓ,yi Qℓ ,yj z, P y = Ew y eyj eyi y z, P
                                                               ′        
                                        ℓ,ℓ′ ∈Y

                                                                                         = yi (0)yj (0) ,

where the second equality holds since i ̸= j ∈ O0,c . Putting these pieces together, we obtain
                                                   h                     i                          X
                     EDP [u20,c |z, P] = n0,c yT Ew Q−1 diag(Qp̂)Q−T z, P y +                                yi (0)yj (0) ,
                                                                                                 i̸=j∈O0,c


which along with (23) gives us

                   VarDP (u0,c |z, P)
                   = EDP [u20,c |z, P] − EDP [u0,c |z, P]2
                                                                                                                        2
                                                                                 X                           X
                   = n0,c yT Ew Q−1 diag(Qp̂)Q−T z, P y +
                                                    
                                                                                        yi (0)yj (0) −              yi (0)
                                                                            i̸=j∈Oo,c                       i∈O0,c
                               h                     i    X
                   = n0,c yT Ew Q−1 diag(Qp̂)Q−T z, P y −   yi2 (0) .                                                              (26)
                                                                            i∈O0,c


                                                                       30
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

• D ECOMPOSING VarDP (u0,c |z, P)
We wish to bound Var(u0,c |z, P). We begin by decomposing it into two distinct terms. Let q̃ = [q̃0 (y|c)]y∈Y ∈ RK×1
be the distribution constructed in the DP mechanism after adding noise to the empirical distribution p̂, truncation, and
normalization. We consider the following decomposition:
                         Q−1 diag(Qp̂)Q−T = Q−1 diag(Qq̃)Q−T + Q−1 diag(Q(p̂ − q̃))Q−T .
Plugging into (26),
         VarDP (u0,c |z, P) =
                                                                                     
                                                                                          X
         n0,c yT Ew Q−1 diag(Qq̃)Q−T |z, P y + yT Ew Q−1 diag(Q(p̂ − q̃))Q−T |z, P y −     yi2 (0).
                                                                                

                                                                                         i∈O
               |              {z             } |                {z                   }
                                                                                                                  0,c
                                 term I                                       term II


• B OUNDING T ERM I
By definition, we can write Q as Q = (1 − λ)I + λq̃1T , with 1 ∈ RK×1 indicating the all-one vector. Furthermore,
1T q̃ = 1 because q̃ is a probability distribution (Esfandiari et al. (2022), Theorem 6). Using the Sherman–Morrison formula,
we obtain
                                                            1            λ
                                                  Q−1 =          I−          q̃1T .                                      (27)
                                                          1−λ          1−λ
Plugging for Q and Q−1 , we have the following chain of identities:
                                                 Qq̃ = (1 − λ)q̃ + λq̃ = q̃ ,
                                                          1                λ
                                       Q−1 diag(Qq̃) =        diag(q̃) −        q̃ q̃ T ,
                                                       1−λ                1−λ
                                                            1                 λ2 − 2λ T
                                   Q−1 diag(Qq̃)Q−T =          2
                                                                 diag(q̃) +               q̃ q̃ .
                                                       (1 − λ)               (1 − λ)2
Using the last identity, we have
                            yT Ew Q−1 diag(Qq̃)Q−T |z, P y
                                                       

                                   1      T                       λ2 − 2λ T
                                                                           y Ew q̃ q̃ T y
                                                                                       
                             =        2
                                        y   Ew [diag(q̃)]   y +          2
                               (1 − λ)                           (1 − λ)
                                                                                        2 
                                                                2
                                   1    X                     λ − 2λ         X
                             =                Ew [q̃y ] y 2 +                       y q̃y  
                                                                                             
                                      2                               2
                                                                        Ew 
                               (1 − λ)                        (1 − λ)
                                            y∈Y                                    y∈Y
                                                                                                  
                                        1           2                     1                  2
                             = Ew            E   [y
                                               q̃ i   (0)] +   1  −               E   [y
                                                                                    q̃ i (0)]   z, P
                                    (1 − λ)2                          (1 − λ)2
                                                                                                   
                                        1    
                                                      2                    2
                                                                             
                                                                                            2
                             = Ew              E   [y
                                                 q̃ i   (0)] − E   [y
                                                                 q̃ i  (0)]    + E   [y
                                                                                  q̃ i  (0)]   z, P   .                            (28)
                                    (1 − λ)2
which can also be written as:
                                                    1                                                  
     yT Ew Q−1 diag(Qq̃)Q−T z, P y =                                2                                 2
                                                                                                          + Eq̃,w [yi (0)|z, P]2
                               
                                                           Eq̃,w [yi  (0)|z, P] − Eq̃,w [yi (0)|z, P]
                                                (1 − λ)2
In the following lemma, we relate the expectation of outcomes with respect to q̃ to their expectation with respect to p̂.
Lemma A.10. If outcomes are bounded by B,
                                                                         1 X
                           Eq̃,w [yi2 (0)]|z, P] ≤ B 2 Ew ∥q̃ − p̂∥1 +              yi (0)2 .
                                                                        n0,c
                                                                             i∈O0,c
                                                                       2
                                                       1 X
                           Eq̃,w [yi (0)|z, P]2 ≥                yi (0) − 2B 2 Ew ∥q̃ − p̂∥1 .
                                                     n0,c
                                                              i∈O0,c


                                                                 31
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

Using the above lemma, we obtain:

                                                               "                                         #
          T
                   −1                  −T
                                                         1       2                 1 X                2
         y Ew Q          diag(Qq̃)Q          z, P y ≤            B Ew ∥q̃ − p̂∥1 +              yi (0)
                                                      (1 − λ)2                     n0,c
                                                                                         i∈O0,c
                                                                                           2                           
                                                                                                                       
                                                            1         
                                                                         1
                                                                                 X
                                                                                                         2
                                                                                                                          
                                                    −          2
                                                                 −  1                 y i (0)   −  2B     Ew ∥ q̃ − p̂∥1   ,
                                                        (1 − λ)        n0,c i∈O0,c
                                                                                                                         
                                                                                                                          



which can be simplified to


                         yT Ew Q−1 diag(Qq̃)Q−T z, P y
                                                   
                                                                           2 
                                     1    1    X                1   X
                               ≤                    yi (0)2 −         yi (0) 
                                                                                
                                 (1 − λ)2 n0,c                  n0,c
                                         
                                                        i∈O0,c                  i∈O0,c
                                               2
                                    1   X                    3        
                                +        yi (0) + B 2            + 2   Ew ∥q̃ − p̂∥1
                                   n0,c                   (1 − λ)2
                                              i∈O0,c

                                     n0,c − 1 S 2 (⃗y0,c )        2
                                                                          2
                                                                                 3        
                                ≤                         + ⃗
                                                            y c (0)   + B              + 2   Ew [∥q̃ − p̂∥1 ] ,                 (29)
                                       n0,c (1 − λ)2                          (1 − λ)2


                    1
where S 2 (⃗u) = |⃗u−1|
                          P               2    ¯= 1         P
                                u (a − ā) and ⃗
                              a∈⃗              u   u|
                                                  |⃗             ua.
                                                               a∈⃗

• B OUNDING T ERM II
We begin with the two inequalities


                                      yT Q−1 diag(Q(p̂ − q̃))Q−T y ≤ ∥Q−T y∥2 ∥Q(p̂ − q̃)∥∞
                                                                        ≤ ∥Q−T y∥2 |Q|∞ ∥p̂ − q̃∥1 ,                            (30)

                                                                                                               P
where |Q|∞ = maxi,j |Qij |. For every ℓ ∈ Y q̃ℓ ≥ γ (Esfandiari et al. (2022), Theorem 6), and                    ℓ∈Y q̃l = 1, which
implies that ∀ℓ ∈ Y, q̃l ≤ 1 − (K − 1)γ. Therefore, by definition of Q, we have


                                        |Q|∞ ≤ 1 − λ + λ(1 − (K − 1)γ) = 1 − λ(K − 1)γ .


The following lemma bounds the maximum singular value of matrix Q.
                                                                                                       √
Lemma A.11. The maximum singular value of label randomization matrix Q−1 is at most λ 1−λ
                                                                                       K+1
                                                                                           .

Using Lemma A.11, we get

                                                                 √
                          T   −1                       −T      (λ K + 1)2
                         y Q       diag(Q(p̂ − q̃))Q        y≤            ∥y∥2 (1 − λ(K − 1)γ)∥p̂ − q̃∥1 .                      (31)
                                                                 (1 − λ)2

                                                                       32
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

• B OUNDING Var(u0,c |c)
Combining (29) and (31) with the expression of Var(u0,c |c, z), we get

        VarDP (u0,c |z, P)
                                                                                      
                                                                                           X
        = n0,c yT Ew Q−1 diag(Qq̃)Q−T |z, P y + yT Ew Q−1 diag(Q(p̂ − q̃))Q−T |z, P y −     yi2 (0)
                                                                                 

                                                                                          i∈O
                 |            {z              } |                {z                   }
                                                                                                                     0,c
                                    term I                                             term II
                         2
                     S (⃗y0,c )                             3                
        ≤ (n0,c − 1)             + n0,c (⃗y0,c )2 + B 2                     + 2 Ew [∥q̃ − p̂∥1 ] +
                     (1 − λ)2                             (1 − λ)         2
              √
            (λ K + 1)2         2
                                                                       X
                          ∥y∥    (1 − λ(K  −   1)γ)E w  ∥p̂ − q̃∥ 1   −   yi2 (0)
              (1 − λ)2
                                                                              i∈O0,c
           n0,c − 1 2                               X
        =          S  (⃗
                       y 0,c ) + n 0,c (⃗
                                        y 0,c )2
                                                 −        yi2 (0) + n0,c A′0,c Ew [∥q̃ − p̂∥1 ]
          (1 − λ)2
                                                   i∈O0,c
                                       
                            1
        = (n0,c − 1)               − 1 S 2 (⃗y0,c ) + n0,c A′0,c Ew [∥q̃ − p̂∥1 ] ,                                        (32)
                       (1 − λ)2

with
                                                                 √
                                                               (λ K + 1)2
                                                           
                                                     3
                             A′0,c := B 2                 +2 +            ∥y∥2 (1 − λ(K − 1)γ) .
                                                 (1 − λ)2        (1 − λ)2

The final step is bounding the term Ew [∥q̃ − p̂∥1 ].
Lemma A.12. Recall the notation q̃ = [q̃0 (y|c)]y∈Y and p̂ = [p̂0 (y|c)]. Then,
                                                       h     σ  −γn0,c /σ            i
                                  Ew [∥q̃ − p̂∥1 ] ≤ 2K γ +      e         − e−n0,c /σ .
                                                            n0,c

By using Lemma A.12 in (32), we obtain
                                                                                
                                                                         1
                        VarDP (u0,c |z, P) ≤ (n0,c − 1)                       − 1  S 2 (⃗yc (0)) + n0,c A(n0,c ) ,         (33)
                                                                     (1 − λ)2

with
                       h     σ  −γx/σ         i
        A(x) = A′0,c 2K γ +     e      − e−x/σ
                             x
                                            √        2
                                                                             !
                              3            (λ   K + 1)                         h    σ  −γx/σ     −x/σ
                                                                                                       i
             = 2K B 2              + 2   +               ∥y∥2
                                                              (1 − λ(K − 1)γ)   γ +    e      − e
                          (1 − λ)2           (1 − λ)2                               x


A similar bound can be derived for Var(u1,c |c), which in conjunction with (22) gives the desired result.

Proof of Lemma A.10
We recall the statement of Lemma A.10 below for convenience.
                                                                                  1 X
                               Eq̃,w [yi2 (0)]|z, P] ≤ B 2 Ew ∥q̃ − p̂∥1 +                   yi (0)2 .                     (34)
                                                                                 n0,c
                                                                                      i∈O0,c
                                                                                2
                                                              1 X
                               Eq̃,w [yi (0)|z, P]2 ≥            yi (0) − 2B 2 Ew ∥q̃ − p̂∥1 .                           (35)
                                                             n0,c
                                                                     i∈O0,c



                                                                       33
               Improving the Variance of Differentially Private Randomized Experiments through Clustering

Proof. Since the outcomes are bounded by B, we have
                                                                                               
                                                                     X
                 Eq̃,w [yi2 (0)|z, P] − Ep̂ [yi2 (0)] = Ew                y 2 (q̃y − p̂y ) z, P 
                                                                     y∈Y
                                                                                                    
                                                                     X
                                                         ≤ Ew             y 2 (q̃y − p̂y )   z, P  ≤ B 2 Ew ∥q̃ − p̂∥1 .
                                                                     y∈Y


Therefore,

                                    Eq̃,w [yi2 (0)]|z, P] ≤ Ep̂ [yi2 (0)|z, P] + B 2 Ew ∥q̃ − p̂∥1 .

We next note that                                                        
                                                   X X I(yi = y)               1 X
                          Ep̂ [yi2 (0)|z, P] = E                y 2 z, P  =      yi (0)2 .
                                                          n0,c                n0,c
                                                    y∈Y i∈O0,c                                       i∈O0,c

This completes the proof of (34). Likewise we have

                     Eq̃,w [yi (0)]2 − Ep̂ [yi (0)]2 = Eq̃,w [yi (0)] − Ep̂ [yi (0)] · Eq̃,w [yi (0)] + Ep̂ [yi (0)]

                                                       ≤ 2B Eq̃,w [yi (0)] − Ep̂ [yi (0)]
                                                       ≤ 2B 2 Ew ∥q̃ − p̂∥1 .

Therefore, we obtain:

                                      Eq̃,w [yi2 (0)|z, P] ≥ Ep̂ [yi (0)]2 − 2B 2 Ew ∥q̃ − p̂∥1 .

We next note that
                                                             2                2
                                               X X I(yi = y)         1   X
                             Ep̂ [yi (0)]2 =                y =         yi (0) .
                                                      n0,c          n0,c
                                                  y∈Y i∈O0,c                                  i∈O0,c




This completes the proof of (35).

Proof of Lemma A.11
                                                                                                              √
Lemma A.11.         The maximum singular value of label randomization matrix Q−1 is at most λ 1−λ
                                                                                               K+1
                                                                                                   .


Proof. For any unit norm vector u we have

                                                                1        λ
                                               uT Q−1 =            uT −     uT q̃1T .
                                                               1−λ      1−λ

Therefore, by triangle inequality
                                                                             √
                                         T   −1       1   λ               1+λ K
                                      ∥u Q        ∥≤    +    ∥q̃∥ · ∥1∥ ≤       ,
                                                     1−λ 1−λ               1−λ

where in the last step we used ∥u∥ = 1 and ∥q̃∥ ≤ ∥q̃∥1 = 1.

                                                                      34
                Improving the Variance of Differentially Private Randomized Experiments through Clustering

Proof of Lemma A.12
Lemma A.12. Recall the notation q̃ = [q̃0 (y|c)]y∈Y and p̂ = [p̂0,D (y|c)], where we dropped the subscript c to lighten
the notation. Then,                              h      σ  −γn0,c /σ               i
                         Ew [∥q̃ − p̂∥1 ] ≤ 2K γ +          e            − e−n0,c /σ .
                                                      n0,c

We follow the proof of (Esfandiari et al. (2022), Lemma 5). By a tighter derivation which carries over in a straightforward
way, we obtain the following bound analogous to Equation (6) therein:
                                        X
                   Ew [∥q̃ − p̂∥1 ] ≤ 2      Ew [max(γ, min(1, |wy,c |))] = 2KE[max(γ, min(1, V ))] ,
                                        y∈Y

where V = |wy,c | ∼ Exp(n0,c /σ), since wy,c ∼ Laplace(σ/n0,c ). For a random variable V ∼ Exp(α), we have
                                                 Z γ                      Z 1                  Z ∞
                                                             −αv                  −αv
                       E[max(γ, min(1, V ))] =         γαe         dv +         vαe     dv +         αe−αv dv
                                                   0                       γ                   1
                                                             γ             1 −αv 1
                                               = −γe−αv          − (v +      )e    − e−αv |∞
                                                                                           1
                                                             0             α     γ
                                                    1
                                               = γ + (e−αγ − e−α ) ,
                                                    α
which after substituting for u = n0,c /σ gives the claim.
You can have as much text here as you want. The main body must be at most 8 pages long. For the final version, one more
page can be added. If you want, you can use an appendix like this one.
The \onecolumn command above can be kept in place if you prefer a one-column appendix, or can be removed if you
prefer a two-column appendix. Apart from this possible change, the style (font size, spacing, margins, page numbering, etc.)
should be kept the same as the main body.




                                                                 35
