import utils
from pylab import *
from random import shuffle
import matplotlib.pyplot as plt
zero_list = [0] * 3000
one_list = [1] * 1000
counts = zero_list + one_list
shuffle(counts)
noises = []
epsilon = 0.3
for i in range(4000):
    noises.append(counts[i] + utils.laplace(1 / epsilon))
myHist = plt.hist(noises, 10000, normed=True)
plt.show()

55d9da172c02490df4d5f374b62da39ab9fd620f
<mask token>

<mask token>
shuffle(counts)
<mask token>
for i in range(4000):
    noises.append(counts[i] + utils.laplace(1 / epsilon))
<mask token>
plt.show()

<mask token>
zero_list = [0] * 3000
one_list = [1] * 1000
counts = zero_list + one_list
shuffle(counts)
noises = []
epsilon = 0.3
for i in range(4000):
    noises.append(counts[i] + utils.laplace(1 / epsilon))
myHist = plt.hist(noises, 10000, normed=True)
plt.show()

import utils
from pylab import *
from random import shuffle
import matplotlib.pyplot as plt
zero_list = [0] * 3000
one_list = [1] * 1000
counts = zero_list + one_list
shuffle(counts)
noises = []
epsilon = 0.3
for i in range(4000):
    noises.append(counts[i] + utils.laplace(1 / epsilon))
myHist = plt.hist(noises, 10000, normed=True)
plt.show()
