1. Learn
  2. /
  3. Courses
  4. /
  5. Data Privacy and Anonymization in Python

Connected

Exercise

Using privacy budgets

The diffprivlib package includes statistical functions to explore data, such as the case of mean(). It computes the private average of array elements. Use the functions from the tools module of diffprivlib.

Here, you will use a privacy budget accountant acc to track privacy loss when computing the private mean on the array ages from the Heart Failure Prediction dataset.

The tools module from diffprivlib and the BudgetAccountant class have already been loaded.

Instructions 1/3

undefined XP
    1
    2
    3
  • Initialize the budget accountant with an epsilon value of 1.2, as acc.