Learn R Programming

DPpack (version 0.2.2)

quantileDataAccess: Differentially Private Quantile Data Access Function

Description

This function performs the data access step in the computation of a differentially private quantile. The utility vector is computed as in Smith2011a;textualDPpack, while the sensitivities are calculated based on bounded and unbounded differential privacy Kifer2011DPpack according to the theoretical values Gillenwater2021DPpack.

Usage

quantileDataAccess(x, quant, lower.bound, upper.bound)

Value

List of a vector corresponding to the utility function, the sorted and clipped vector of inputs and the sensitivity calculated based on theoretical values.

Arguments

x

Numeric vector.

quant

Real number between 0 and 1 indicating which quantile to return.

lower.bound

Real number giving the lower bound of the input data.

upper.bound

Real number giving the upper bound of the input data.

References

Kifer2011DPpack

Smith2011aDPpack

Gillenwater2021DPpack

Examples

Run this code
quantileDataAccess(c(1,1,-2,8,-6),.25,-10,10)

Run the code above in your browser using DataLab