1. Datasset Source: Adult dataset
To find how many adult whos income are <= 50k
and education number > 13
Use graph to show the difference between Laplace Mechanism and Randomized Response.
In normal case, the Laplace
result will be better than Randomized Respose
result.
python exercise1/exercise_1.py
N = 1000
, Epsilon = 0.5
, BETA = 0.05
. As you can see, the the spots inLaplace
are closer with each others spot than Randomized Respose
.
- Exponatial Mechnism
- Report One-sided Noisy Arg-max algorithm
- Randomized Response
- Laplace Mechanism
python exercise2/exercise_2.py
N = 1000
, Epsilon = 0.5
, BETA = 0.1
with Exponatial Mechanism