The geometric mechanism and the discrete Laplace distribution #
The two-sided geometric distribution with ratio α ∈ [0, 1) gives each integer z the mass
(1 - α) / (1 + α) · α ^ |z| (twoSidedGeometric). Adding it to the value of a count query is
the α-geometric mechanism [GhoshRoughgardenSundararajan2012, Example 2.1]. The masses of
neighboring integers differ by a factor of at most α⁻¹, so adding this noise to an
integer-valued query q of sensitivity Δ (Sensitivity Adj (fun x => (q x : ℝ)) Δ) is
(Δ · ln α⁻¹, 0)-differentially private (differentiallyPrivate_addNoise_twoSidedGeometric).
With α = exp (-1 / t) it is the discrete Laplace distribution with scale t
(discreteLaplace, discreteLaplace_apply) [CanonneKamathSteinke2020, Definition 28]. Adding
discrete Laplace noise of scale Δ / ε to an integer-valued query of sensitivity Δ is
(ε, 0)-private (differentiallyPrivate_addNoise_discreteLaplace)
[CanonneKamathSteinke2020, Lemma 29], and for Y with scale 1 / ε the tails are
Pr[Y ≥ m] = Pr[Y ≤ -m] = exp (-ε (m - 1)) / (exp ε + 1) for every natural m
(discreteLaplace_toOuterMeasure_Ici, discreteLaplace_toOuterMeasure_Iic)
[CanonneKamathSteinke2020, Lemma 30]. For the ratio form, twoSidedGeometric_toOuterMeasure_Ici
and twoSidedGeometric_toOuterMeasure_Iic give α ^ m / (1 + α), and for m ≠ 0,
twoSidedGeometric_toOuterMeasure_le_natAbs gives the two-sided accuracy bound
Pr[|Y| ≥ m] = 2 α ^ m / (1 + α).
These distributions have infinite support, so they are ideal laws (PMF ℤ), not programs over
finitely many fair coins; the mechanisms are stated at the level of their output distributions.
The cost of sampling them exactly is not modelled here.
Main definitions #
Cslib.Privacy.twoSidedGeometric: the two-sided geometric distribution onℤ.Cslib.Privacy.discreteLaplace: the discrete Laplace distribution with scalet.Cslib.Privacy.addNoise: an integer-valued query plus independent integer noise.
Main results #
Cslib.Privacy.DifferentiallyPrivate.addNoise: noise whose masses change by a factor of at mostexp εunder shifts of size at mostΔmakes a query of sensitivityΔ(ε, 0)-private.Cslib.Privacy.differentiallyPrivate_addNoise_twoSidedGeometric: the geometric mechanism.Cslib.Privacy.differentiallyPrivate_addNoise_discreteLaplace: the discrete Laplace mechanism.Cslib.Privacy.twoSidedGeometric_toOuterMeasure_le_natAbs,Cslib.Privacy.discreteLaplace_toOuterMeasure_Ici: exact tails.
References #
The mass of z under the two-sided geometric distribution.
The two-sided geometric distribution is symmetric.
Upper tail of the two-sided geometric distribution: Pr[Y ≥ m] = α ^ m / (1 + α) for every
natural m.
Lower tail of the two-sided geometric distribution: Pr[Y ≤ -m] = α ^ m / (1 + α) for every
natural m.
Two-sided tail of the two-sided geometric distribution: Pr[|Y| ≥ m] = 2 α ^ m / (1 + α)
for every positive natural m.
If shifting the noise by at most Δ changes each mass by a factor of at most exp ε, then
adding it to a query of sensitivity Δ is (ε, 0)-differentially private.
Shifting the two-sided geometric distribution by at most Δ changes each mass by a factor of
at most α⁻¹ ^ Δ.
The α-geometric mechanism [GhoshRoughgardenSundararajan2012, Example 2.1]: adding
two-sided geometric noise with ratio α ∈ (0, 1) to an integer-valued query of sensitivity Δ
is (Δ · ln α⁻¹, 0)-differentially private. For a count query (Δ = 1) this is the source's
α-differential privacy.
The discrete Laplace distribution gives z the mass
(exp (1 / t) - 1) / (exp (1 / t) + 1) · exp (-|z| / t) [CanonneKamathSteinke2020,
Definition 28].
Adding discrete Laplace noise of scale Δ / ε to an integer-valued query of sensitivity
Δ > 0 is (ε, 0)-differentially private [CanonneKamathSteinke2020, Lemma 29].
Upper tail of the discrete Laplace distribution with scale 1 / ε:
Pr[Y ≥ m] = exp (-ε (m - 1)) / (exp ε + 1) for every natural m
[CanonneKamathSteinke2020, Lemma 30].
Lower tail of the discrete Laplace distribution with scale 1 / ε:
Pr[Y ≤ -m] = exp (-ε (m - 1)) / (exp ε + 1) for every natural m
[CanonneKamathSteinke2020, Lemma 30].
Two-sided tail of the discrete Laplace distribution with scale t:
Pr[|Y| ≥ m] = 2 exp (-m / t) / (1 + exp (-1 / t)) for every positive natural m.
The discrete Laplace distribution with scale t exceeds a ≥ 0 in absolute value with
probability at most 2 exp (-a / t).