Session Ready
Exercise

Counting Query

After learning about epsilon and global sensitivity, you are ready to apply the Laplace mechanism.

Remember that the rdoublex() function takes three arguments:

  1. Number of draws,
  2. Statistic you want to make private,
  3. Shaping parameter (global sensitivity divided by epsilon).

The pull() method, used in this exercise, pulls the data from the last column of a dataframe -- in our case, the dataframe that is returned by summarize_at().

Instructions 1/2
undefined XP
  • 1
  • 2
  • Load the dplyr and smoothmest packages.
  • Find the number of participants in the fertility data set who had a surgical intervention and store it in n_surgeries.