pooledVarDataAccess {DPpack} | R Documentation |
Differentially Private Pooled Variance Data Access Function
Description
This function performs the data access step in the computation of a
differentially private pooled variance. The true values are computed using
the theoretical formula and var
, while the sensitivities
are calculated based on bounded and unbounded differential privacy
(Kifer and Machanavajjhala 2011) according to the theoretical values
(Liu 2019).
Usage
pooledVarDataAccess(samples, lower.bound, upper.bound, approx.n.max)
Arguments
samples |
List of vectors from which to compute the pooled variance. |
lower.bound |
Real number giving the lower bound of the input data. |
upper.bound |
Real number giving the upper bound of the input data. |
approx.n.max |
Logical indicating whether to approximate n.max, which is defined to be the length of the largest input vector. Approximation is best if n.max is very large. |
Value
List of the true pooled variance and the sensitivities calculated based on bounded and unbounded differential privacy.
References
Liu F (2019). “Statistical Properties of Sanitized Results from Differentially Private Laplace Mechanism with Univariate Bounding Constraints.” Transactions on Data Privacy, 12(3), 169-195. http://www.tdp.cat/issues16/tdp.a316a18.pdf.
Kifer D, Machanavajjhala A (2011). “No Free Lunch in Data Privacy.” In Proceedings of the 2011 ACM SIGMOD International Conference on Management of Data, SIGMOD '11, 193–204. ISBN 9781450306614, doi:10.1145/1989323.1989345.
Examples
pooledVarDataAccess(list(c(1,4,-2,8,-6),c(1,2),c(-5,-7)),-10,10,FALSE)