We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebef55b commit cb69e1dCopy full SHA for cb69e1d
multi_freq_ldpy/pure_frequency_oracles/Variance_PURE.py
@@ -1,5 +1,16 @@
1
2
+# [1] Wang et al (2017) "Locally differentially private protocols for frequency estimation" (USENIX Security 17).
3
4
def VAR_Pure(p, q, n=1, f=0):
5
6
+ """
7
+ Variance value of 'pure' frequency oracles from [1]
8
+
9
+ :param p: probability of being 'honest';
10
+ :param q: probability of randomizing value/bit;
11
+ :param n: number of users (if known in advance);
12
+ :param f: real frequency of value (if known in advance - not realistic in locally differentially private scenario);
13
+ :return: variance value.
14
15
16
return q * (1 - q) / (n * (p - q)**2) + f * (1 - p - q) / (n * (p - q))
0 commit comments