
Unit of privacy: how many records one entity contributes
Source:R/dp_native2.R
morie_dp_unit_definition.RdDifferential privacy protects a UNIT, and the unit is a choice. Sensitivity computed per row protects a row; if one person supplies twenty rows, their protection is twenty times weaker than the stated epsilon suggests.
Details
This function counts contributions per unit and reports the multiplier the sensitivity must carry – or, equivalently, the cap that must be imposed on contributions before the query is run.
Examples
morie_dp_unit_definition(c(1, 1, 2, 3, 3, 3))$sensitivity_multiplier
#> [1] 3