Session Ready
Exercise

Post-processing and Laplace mechanism

Now that you've set epsilon and calculated the global sensitivity of your queries, you can apply the Laplace mechanism to them. You already assigned the privacy budget and global sensitivity values to eps and gs.count, respectively. Also, 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 be whole numbers.

Instructions
100 XP
  • Apply the Laplace mechanism using the rdoublex() function to the number of participants who were evaluated in the winter, spring, and summer.
  • Calculate the number of participants who were evaluated in the fall based on post-processing of the previous queries.