histogramDataAccess: Differentially Private Histogram Data Access Function

histogramDataAccessR Documentation

Differentially Private Histogram Data Access Function

Description

This function performs the data access step in the computation of a differentially private histogram. The true values are computed using hist, while the sensitivities are calculated based on bounded and unbounded differential privacy \insertCiteKifer2011DPpack according to the theoretical values \insertCiteLiu2019bDPpack.

Usage

histogramDataAccess(x, breaks, mechanism)

Arguments

x

Numeric vector from which the histogram will be formed..

breaks

Identical to the argument with the same name from hist.

mechanism

String indicating which mechanism to use for differential privacy. If the 'Laplace' mechanism is chosen, l1 sensitivities are returned. If the 'Gaussian' mechanism is chosen, l2 sensitivities are returned.

Value

List of the true histogram and the sensitivities calculated based on bounded and unbounded differential privacy.

References

\insertRef

Liu2019bDPpack

\insertRef

Kifer2011DPpack

Examples

histogramDataAccess(c(1,4,3,2,3), 'Sturges', 'Laplace')


DPpack documentation built on April 8, 2023, 9:09 a.m.