meanDataAccess | R Documentation |
This function performs the data access step in the computation of a
differentially private mean. The true values are computed using
mean
, while the sensitivities are calculated based on
bounded and unbounded differential privacy \insertCiteKifer2011DPpack
according to the theoretical values \insertCiteLiu2019bDPpack. For the
mean, the sensitivities based on bounded and unbounded differential privacy
are identical, so only one value is returned.
meanDataAccess(x, lower.bound, upper.bound)
x |
Dataset whose mean is desired. |
lower.bound |
Scalar representing the global or public lower bound on values of x. |
upper.bound |
Scalar representing the global or public upper bound on values of x. |
List of the true mean and the sensitivity calculated based on theoretical values.
Liu2019bDPpack
\insertRefKifer2011DPpack
meanDataAccess(c(1,4,3,2), 0, 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.