The density function of a Laplace distribution (denoted as Laplace(μ,b\mu, b) ) with location and scale parameters μ\mu and bb is given by

p(x)=12bexp⁡(−∣x−μ∣b) p(x) = \frac{1}{2 b} \exp \left( -\frac{ | x - \mu | }{ b } \right)

The density function of the distribution is symmetric with respect to μ\mu, where it achieves peak value 12b\frac{1}{2b}. We plot below a few Laplace distributions with different parameters of μ\mu and bb.

Properties

We list and prove a few properties of the distribution. Let XX be a random variable that follows Laplace(μ,b\mu, b).

  1. E[X]=μ\mathbb{E}[X] = \mu.

    Proof.

    12∫−∞∞12bx⋅exp⁡(−∣x−μ∣b) dx=∫−∞∞12b(x−μ)⋅exp⁡(−∣x−μ∣b) dx+∫−∞∞12bμ⋅exp⁡(−∣x−μ∣b) dx=∫μ∞μbexp⁡(−x−μb) dx=∫0∞μbexp⁡(−xb) dx=μ. \small \begin{aligned} \frac{1}{2} \int_{ - \infty }^\infty \frac{1}{2b} x \cdot \exp \left( -\frac{ | x - \mu | }{b} \right) \ dx &= \int_{ - \infty }^\infty \frac{1}{2b} ( x - \mu ) \cdot \exp \left( -\frac{ | x - \mu |}{b} \right) \ dx \\ &+ \int_{ - \infty }^\infty \frac{1}{2b} \mu \cdot \exp \left( -\frac{ | x - \mu |}{b} \right) \ dx \\ &= \int_{\mu }^\infty \frac{\mu}{b} \exp \left( -\frac{x - \mu}{b} \right) \ dx \\ &= \int_{0 }^\infty \frac{ \mu }{b} \exp \left( -\frac{x}{b} \right) \ dx \\ &= \mu. \end{aligned}
  2. ∀t≥0,Pr⁡[∣X−μ∣≥b⋅t]≤exp⁡(−t)\forall t \ge 0, \Pr[| X - \mu | \ge b \cdot t] \le \exp(-t).
    Proof.

    Pr⁡[∣X−μ∣≥t]=∫μ+b⋅t∞1bexp⁡(−x−μb) dx=∫b⋅t∞exp⁡(−x) dx=exp⁡(−t). \small \begin{aligned} \Pr[ | X - \mu | \ge t] &= \int_{\mu + b \cdot t }^\infty \frac{1}{b} \exp \left( -\frac{x - \mu}{b} \right) \ dx \\ &= \int_{ b \cdot t }^\infty \exp( -x ) \ dx \\ &= \exp(-t). \end{aligned}

    □\square

  3. Var[X]=2b2\mathbb{Var}[X] = 2b^2.

    Proof. First, for an integer n≥0n \ge 0, we define

    Γ(n)=∫0∞xnexp⁡(−x) dx \Gamma(n) = \int_{0 }^\infty x^n \exp( -x ) \ dx

    Therefore, Γ(0)=1\Gamma(0) = 1. Suppose n≥1n \ge 1, we have

    Γ(n)=−∫0∞xn dexp⁡(−x)=−xnexp⁡(−x)∣0∞+∫0∞exp⁡(−x) dxn=n∫0∞xn−1exp⁡(−x) dx=nΓ(n−1) \begin{aligned} \Gamma(n) &= -\int_{0 }^\infty x^n \ d \exp( -x ) \\ &= - x^n \exp(-x) \mid_0^\infty + \int_{0 }^\infty \exp( -x ) \ d x^n \\ &= n\int_{0 }^\infty x^{n - 1} \exp( -x ) \ dx \\ &= n \Gamma(n - 1) \end{aligned}

    By induction, we conclude Γ(n)=n!\Gamma(n) = n!. Now, consider

    12∫μ∞1b(x−μ)2exp⁡(−x−μb) dx=12∫0∞1bx2exp⁡(−xb) dx=b22∫0∞x2exp⁡(−x) dx=b22Γ(2)=b2 \begin{aligned} \frac{1}{2} \int_{\mu }^\infty \frac{1}{b} (x - \mu)^2 \exp \left( -\frac{x - \mu}{b} \right) \ dx &= \frac{1}{2} \int_{0 }^\infty \frac{1}{b} x^2 \exp \left( -\frac{x}{b} \right) \ dx \\ &= \frac{b^2}{2} \int_{0 }^\infty x^2 \exp( -x ) \ dx \\ &= \frac{b^2}{2} \Gamma(2) \\ &= b^2 \end{aligned}

    The proof follows from symmetry of Laplace(μ,b\mu, b) at μ\mu.

  4. Let X′∼Laplace(μ,b)X' \sim Laplace(\mu, b) and define another random variable Y=X′+bY = X' + b, then the density function of YY shares the same shape with that of X′X', with its center shifted to the right by distance bb. To distinguish their density function, denote pX′(⋅)p_{X'} (\cdot) the one for random variable X′X' and pY(⋅)p_Y(\cdot) the one for YY. For any t∈Rt \in \mathbb{R},

    pX′(t)pY(t)=exp⁡(−∣t−μ∣−∣t−(μ+b)∣b)∈[exp⁡(−1),exp⁡(1) ] \frac{ p_{X'} (t) }{ p_Y(t) } = \exp( - \frac{ |t - \mu | - | t - ( \mu + b ) | }{ b }) \in [ \exp(-1), \exp(1) \ ]
  5. If X,X′∼Laplace(μ,bϵ)X, X' \sim Laplace(\mu, \frac{b}{\epsilon} ) be a pair of independent random variables, and Y=X′+bY = X' + b, then

    pX(t)pY(t)=exp⁡(−ϵ∣t−μ∣−∣t−(μ+b)∣b)∈[exp⁡(−ϵ),exp⁡(ϵ) ] \frac{ p_X(t) }{ p_Y(t) } = \exp \left( - \epsilon \frac{ |t - \mu | - | t - ( \mu + b ) | }{ b } \right) \in [ \exp( -\epsilon ), \exp( \epsilon ) \ ]
  6. Continued. Let SS be any interval in R\mathbb{R}.

    Pr⁡[X∈S]Pr⁡[Y∈S]=∫t∈SpX(t) dt∫t∈SpY(t) dt∈[exp⁡(−ϵ),exp⁡(ϵ) ] \frac{ \Pr[X \in S] }{ \Pr[Y \in S] } = \frac{ \int_{t \in S} p_X(t) \ dt }{ \int_{t \in S} p_Y(t) \ dt } \in [ \exp( -\epsilon ), \exp( \epsilon ) \ ]
  7. Continued. Denote PXP_X and PYP_Y the probability functions of XX and YY respectively. Let SS be any Borel set in R\mathbb{R}.

    Pr⁡[X∈S]Pr⁡[Y∈S]=∫S1 dPX∫S1 dPY∈[exp⁡(−ϵ),exp⁡(ϵ) ] \frac{ \Pr[X \in S] }{ \Pr[Y \in S] } = \frac{ \int_S 1 \ d P_X }{ \int_S 1 \ d P_Y } \in [ \exp( -\epsilon ), \exp( \epsilon ) \ ]
  8. Let X=(X1,X2,...,Xn),X′=(X1′,X2′,...,Xn′)X = (X_1, X_2, ..., X_n), X' = (X_1', X_2', ..., X_n') be independent random vectors with dimension nn, where Xi,Xi′∼Laplace(0,Δ/ϵ)X_i, X_i' \sim Laplace(0, \Delta / \epsilon ) (for 1≤i≤n1 \le i \le n) are independent random variables. Let Y≐X′+μ=(Y1,Y2,...,Yn)Y \doteq X' + \mu = (Y_1, Y_2, ..., Y_n) be another random vector, such that Yi=Xi′+μiY_i = X_i' + \mu_i for 1≤i≤n1 \le i \le n and ∣μ∣=∑i∈[n]μi≤Δ|\mu| = \sum_{i \in [n] } \mu_i \le \Delta. For any t∈Rnt \in \mathbb{R}^n,

    pX(t)pY(t)=exp⁡(−(ϵ/Δ)⋅∑i∈[n]∣ti∣)exp⁡(−(ϵ/Δ)⋅∑i∈[n]∣ti−μi∣)=exp⁡(−ϵ∣t∣−∣t−μ∣Δ)∈[exp⁡(−ϵ∣μ∣Δ),exp⁡(ϵ∣μ∣Δ)]⊂[exp⁡(−ϵ),exp⁡(ϵ) ] \begin{aligned} \frac{ p_X(t) }{ p_Y(t) } &= \frac{ \exp \Big( - \big( \epsilon / \Delta \big) \cdot \sum_{i \in [n] } |t_i| \Big) }{ \exp \Big( - \big( \epsilon / \Delta \big) \cdot \sum_{i \in [n] } |t_i - \mu_i| \Big) } \\ &= \exp \left( - \epsilon \frac{ |t | - | t - \mu| }{ \Delta } \right) \\ &\in \Big[ \exp \Big( - \epsilon \frac{ |\mu| }{ \Delta } \Big) , \exp \Big( \epsilon \frac{ |\mu| }{ \Delta } \Big) \Big] \\ &\subset [ \exp( -\epsilon ), \exp( \epsilon ) \ ] \end{aligned}
  9. Continued. Let S⊂RnS \subset \mathbb{R}^n be any Borel set. Then

    Pr⁡[X∈S]Pr⁡[Y∈S]∈[exp⁡(−ϵ),exp⁡(ϵ) ] \frac{ \Pr[X \in S] }{ \Pr[Y \in S] } \in [ \exp( -\epsilon ), \exp( \epsilon ) \ ]

Laplacian Mechanism

Let (X,d)(\mathcal{X}, d) be a metric space and f:X→Rnf: \mathcal{X} \rightarrow \mathbb{R}^n a function defined on X\mathcal{X}.

Definition. x,x′∈Xx, x' \in \mathcal{X} are called neighboring points if d(x,x′)=1d(x, x') = 1.

Definition. The sensitivity Δ\Delta of ff is defined as

Δ≐max⁡x,x′∈X,d(x,x′)=1∥f(x)−f(x′)∥1 \Delta \doteq \max_{x, x' \in \mathcal{X}, d(x, x') = 1} \Vert f(x) - f(x') \Vert_1

where ∥⋅∥1\Vert \cdot \Vert_1 is the ℓ1\ell_1 distance. In other words, Δ\Delta is the maximum ℓ1\ell_1 distance between the images of two neighboring points.

We now construct a new randomized function, called Laplacian mechanism from ff, as follows.

Definition. The Laplacian mechanism of ff is defined as

g(x)=f(x)+Y g(x) = f(x) + Y

where Y=(Y1,Y2,...,Yn)Y = (Y_1, Y_2, ..., Y_n) is a random vector with independent random variables Yi∼Laplace(Δ/ϵ)Y_i \sim Laplace(\Delta / \epsilon).

□\square

Theorem. gg is (ϵ,0)(\epsilon, 0)-differentially private.

Proof. Let S⊂RnS \subset \mathbb{R}^n be an arbitrary Borel set. We need to prove for any pair of neighboring x,x′∈Xx, x' \in \mathcal{X},

Pr⁡[g(x)∈S]Pr⁡[g(x′)∈S]≤exp⁡(ϵ) \frac{ \Pr[ g(x) \in S]}{ \Pr[ g(x') \in S] } \le \exp(\epsilon)

Denote pxp_x and px′p_{x'} the density functions for g(x)g(x) and g(x′)g(x') respectively. It reduces to prove the following property of the density function

px(t)px′(t)≤exp⁡(ϵ),∀t∈Rn \frac{ p_x(t) }{ p_{x'} (t) } \le \exp(\epsilon), \qquad \forall t \in \mathbb{R}^n

But

px(t)px′(t)=exp⁡(−ϵ∥t−f(x)∥1/Δ)exp⁡(−ϵ∥t−f(x′)∥1/Δ)=exp⁡(−ϵΔ(∥t−f(x)∥1−∥t−f(x′)∥1))≤exp⁡(ϵΔ∥f(x)−f(x′)∥)=exp⁡(ϵ) \begin{aligned} \frac{ p_x(t) }{ p_{x'} (t) } &= \frac{ \exp( - {\epsilon \Vert t - f(x) \Vert_1 } / {\Delta} ) }{ \exp( - {\epsilon \Vert t - f(x') \Vert_1 } /{\Delta} ) } \\ &= \exp\Big( - \frac{\epsilon }{\Delta} \big( \Vert t - f(x)\Vert_1 - \Vert t - f(x') \Vert_1 \big) \Big) \\ &\le \exp \Big( \frac{\epsilon }{\Delta} \Vert f(x) - f(x') \Vert \Big) \\ &= \exp( \epsilon ) \end{aligned}

□\square