In the setting of randomized response, there is a coordinator and a set of n n n players each having a secrete bit x i ∈ { 0 , 1 } x_i \in \{0, 1\} x i ∈ { 0 , 1 } . Instead of sending x i x_i x i to the coordinator directly, the player sends a randomly perturbed version X i X_i X i , such that
X i = { x i , with probability 0.5 + ϵ x ˉ i , with probability 0.5 − ϵ
X_i =
\begin{cases}
x_i, \qquad \text{with probability } 0.5 + \epsilon \\
\bar{ x}_i, \qquad \text{with probability } 0.5 - \epsilon \\
\end{cases}
X i = { x i , with probability 0.5 + ϵ x ˉ i , with probability 0.5 − ϵ where ϵ ∈ [ 0 , 0.5 ] \epsilon \in [0, 0.5] ϵ ∈ [ 0 , 0.5 ] and x ˉ i = 1 − x i \bar{x}_i = 1 - x_i x ˉ i = 1 − x i . If ϵ = 0 \epsilon = 0 ϵ = 0 , then the response from play i i i is totally random. On the other hand, if ϵ = 0.5 \epsilon = 0.5 ϵ = 0.5 , there isn't noise in X i X_i X i .
The coordinator would like to estimate the ratio of 1 1 1 's among the x i x_i x i 's. Let
X ˉ = 1 n ∑ i ∈ [ n ] X i .
\bar{X} = \frac{1}{n} \sum_{i \in [n] } X_i.
X ˉ = n 1 i ∈ [ n ] ∑ X i . Denote μ = 1 n ∑ i ∈ [ n ] x i \mu = \frac{1}{n} \sum_{i \in [n] } x_i μ = n 1 ∑ i ∈ [ n ] x i the true ratio. Now
E [ X ˉ ] = 1 n ∑ i ∈ [ n ] E [ X i ] = 1 n ∑ i ∈ [ n ] [ ( 0.5 + ϵ ) x i + ( 0.5 − ϵ ) x ˉ i ] = 1 n ∑ i ∈ [ n ] [ 2 ϵ x i + ( 0.5 − ϵ ) ( x i + x ˉ i ) ] = 1 n ∑ i ∈ [ n ] [ 2 ϵ x i + ( 0.5 − ϵ ) ] = 1 − 2 ϵ 2 n + 2 ϵ μ
\begin{aligned}
\mathbb{E} [ \bar{X} ] &= \frac{1}{n} \sum_{i \in [n] } \mathbb{E}[ X_i ] \\
&= \frac{1}{n} \sum_{i \in [n] } [ (0.5 + \epsilon) x_i + (0.5 - \epsilon )\bar{x}_i ] \\
&= \frac{1}{n} \sum_{i \in [n] } [ 2 \epsilon x_i + (0.5 - \epsilon) (x_i + \bar{x}_i) ] \\
&= \frac{1}{n} \sum_{i \in [n] } [ 2 \epsilon x_i + (0.5 - \epsilon) ] \\
&= \frac{1 - 2\epsilon }{2n} + 2\epsilon \mu
\end{aligned}
E [ X ˉ ] = n 1 i ∈ [ n ] ∑ E [ X i ] = n 1 i ∈ [ n ] ∑ [( 0.5 + ϵ ) x i + ( 0.5 − ϵ ) x ˉ i ] = n 1 i ∈ [ n ] ∑ [ 2 ϵ x i + ( 0.5 − ϵ ) ( x i + x ˉ i )] = n 1 i ∈ [ n ] ∑ [ 2 ϵ x i + ( 0.5 − ϵ )] = 2 n 1 − 2 ϵ + 2 ϵ μ and
V a r [ X ˉ ] = 1 n ∑ i ∈ [ n ] V a r [ X i ] ≤ 1 4 n
\begin{aligned}
\mathbb{Var} [ \bar{X} ] = \frac{1}{n} \sum_{i \in [n] } \mathbb{Var}[ X_i ]
\le \frac{1}{4n}
\end{aligned}
V a r [ X ˉ ] = n 1 i ∈ [ n ] ∑ V a r [ X i ] ≤ 4 n 1 Hence,
μ = E [ 1 2 ϵ ( X ˉ + 2 ϵ − 1 2 n ) ]
\mu = \mathbb{E}[ \frac{1}{2\epsilon} (\bar X + \frac{2\epsilon - 1}{2n}) ]
μ = E [ 2 ϵ 1 ( X ˉ + 2 n 2 ϵ − 1 )] and μ ^ ≐ 1 2 ϵ ( X ˉ + 2 ϵ − 1 2 n ) \hat \mu \doteq \frac{1}{2\epsilon} (\bar X + \frac{2\epsilon - 1}{2n}) μ ^ ≐ 2 ϵ 1 ( X ˉ + 2 n 2 ϵ − 1 ) is an unbiased estimator of μ \mu μ . As
V a r [ μ ^ ] = 1 4 ϵ 2 V a r [ X ˉ ] ≤ 1 16 n ϵ 2
\mathbb{Var}[ \hat \mu ] = \frac{1}{4 \epsilon^2 } \mathbb{Var}[\bar{X} ] \le \frac{1}{16 n \epsilon^2}
V a r [ μ ^ ] = 4 ϵ 2 1 V a r [ X ˉ ] ≤ 16 n ϵ 2 1 By Chebyshev's inequality,
Pr [ ∣ μ ^ − μ ∣ ≥ 2 ⋅ 1 4 ϵ n ] ≤ V a r [ μ ^ ] ( 2 ⋅ 1 4 ϵ n ) 2 = 1 2
\Pr[ |\hat \mu - \mu | \ge \sqrt{2} \cdot \frac{1 }{4\epsilon \sqrt{n} } ] \le \frac{ \mathbb{Var}[ \hat \mu ] }{ ( \sqrt{2} \cdot \frac{1 }{4 \epsilon \sqrt{n} } )^2 } = \frac{1}{2}
Pr [ ∣ μ ^ − μ ∣ ≥ 2 ⋅ 4 ϵ n 1 ] ≤ ( 2 ⋅ 4 ϵ n 1 ) 2 V a r [ μ ^ ] = 2 1 Or we can apply Hoeffding inequality to show that, with probability at least 1 − δ 1 - \delta 1 − δ ,
∣ X ˉ − E [ X ˉ ] ∣ ≤ log 2 δ 2 n
|\bar{X} - \mathbb{E} [ \bar{X} ] | \le \sqrt{ \frac{\log \frac{2}{\delta} }{2n} }
∣ X ˉ − E [ X ˉ ] ∣ ≤ 2 n log δ 2 i.e.,
∣ μ ^ − μ ∣ = 1 2 ϵ ∣ X ˉ − E [ X ˉ ] ∣ ≤ 1 2 ϵ log 2 δ 2 n
|\hat \mu - \mu | = \frac{1}{2 \epsilon} |\bar{X} - \mathbb{E} [ \bar{X} ] | \le \frac{1}{ 2 \epsilon } \sqrt{ \frac{\log \frac{2}{\delta} }{2n} }
∣ μ ^ − μ ∣ = 2 ϵ 1 ∣ X ˉ − E [ X ˉ ] ∣ ≤ 2 ϵ 1 2 n log δ 2 which is much tighter than Chebyshev inequality.
Finally, observe that to get a meaningful estimate μ ^ \hat \mu μ ^ , we require that 1 ϵ n ≤ 1 \frac{ 1 }{\epsilon \sqrt{n} } \le 1 ϵ n 1 ≤ 1 , i.e., n ∈ Ω ( 1 ϵ 2 ) n \in \Omega(\frac{1}{\epsilon^2}) n ∈ Ω ( ϵ 2 1 ) or ϵ ∈ Ω ( 1 n ) \epsilon \in \Omega( \frac{1}{ \sqrt{n} } ) ϵ ∈ Ω ( n 1 ) .
□ \square □
← Back to all notes Back to top ↑