This repository contains Jupyter notebooks for the ESTP course on Differential Privacy, with a focus on practical tools and hands-on exercises.
The material introduces how to apply differential privacy using open-source libraries.
- Clone this repository:
git clone https://github.com/dscc-admin-ch/ESTP_DP_Course.git cd ESTP_DP_Course - Install global dependencies
pip install -r requirements.txt
- Launch Jupyter: Open a notebook and follow the instructions!
The repository is organized around three main libraries for differential privacy:
- SmartNoise SQL
- Apply differential privacy to SQL queries.
- Diffprivlib
- IBMβs library for differentially private machine learning and statistics.
- OpenDP
- The OpenDP projectβs core library for building custom DP transformations and working with polars tables.
For each library, you will find:
- Exercise notebook β practical problems to solve.
- Correction notebook β worked-out solutions.
ESTP_DP_Course/
β
βββ smartnoise-sql/
β βββ Smartnoise-SQL-Exercises.ipynb
β βββ Smartnoise-SQL-Corrections.ipynb
β
βββ diffprivlib/
β βββ DiffPrivLib-Exercises.ipynb
β βββ DiffPrivLib-Corrections.ipynb
β
βββ opendp_polars/
β βββ OpenDP_Polars_Exercises.ipynb
β βββ OpenDP_Polars_Corrections.ipynb
β
βββ README.md
- Exercises are designed for practice during the course.
- Corrections provide detailed solutions β use them for self-study or after attempting the exercises.
- Make sure you install the correct version of each library.
Happy learning! π