OpenMined / PyDP

The Python Differential Privacy Library. Built on top of: https://github.com/google/differential-privacy
Apache License 2.0
497 stars 136 forks source link

Delta parameter used in algorithms based on the Laplace mechanism #412

Closed vdasu closed 2 years ago

vdasu commented 2 years ago

Question

Why are the algorithms based on the Laplace mechanism using a delta parameter?

Further Information

If I understand correctly, the Laplace mechanism offers ε-differential privacy. However, the algorithms based on the Laplace mechanism expect the delta parameter as well (E.g. Max, BoundedMean). Issues #410 and #409 are caused because we need to pass delta to the Laplace mechanism algorithms.

chinmayshah99 commented 2 years ago

Hi @vdasu, This is fixed now.

Also, The library internally passes a default value as 0 so using named arguments also resolves this. Just to add on PyDP uses epsilon-delta privacy.