Session Ready
Exercise

Applying the Laplace sanitizer

After setting epsilon and calculating the global sensitivity for your queries, you will apply the Laplace sanitizer. From the previous exercise, you know that the counts for each of the seasons is as follows: winter = 28, spring = 37, summer = 4, and fall = 31. Remember the answers should not be negative.

Instructions
100 XP
  • Set the seed to 42.
  • Apply the Laplace mechanism to the number of participants who were evaluated in each season: winter, spring, summer, and fall. No post-processing.