Learn R Programming

DPpack (version 0.2.0)

meanDataAccess: Differentially Private Mean Data Access Function

Description

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 Kifer2011DPpack according to the theoretical values Liu2019bDPpack. For the mean, the sensitivities based on bounded and unbounded differential privacy are identical, so only one value is returned.

Usage

meanDataAccess(x, lower.bound, upper.bound)

Value

List of the true mean and the sensitivity calculated based on theoretical values.

Arguments

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.

References

Liu2019bDPpack

Kifer2011DPpack

Examples

Run this code
meanDataAccess(c(1,4,3,2), 0, 5)

Run the code above in your browser using DataLab