Session Ready
Exercise

Parallel Composition 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. Remember, you've already assigned the privacy budget and global sensitivity of mean values to eps and gs.mean, respectively.

From the previous exercise, you know that the mean age of participants with an abnormal diagnosis is 0.71 and a normal diagnosis is 0.66.

Instructions
100 XP
  • Apply the Laplace mechanism using the rdoublex() function to the mean age of participants with:
    • an abnormal diagnosis
    • a normal diagnosis