Skip to content

dscc-admin-ch/ESTP_DP_Course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

66 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ESTP – Differential Privacy for Official Statistics

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.


βš™οΈ Setup Instructions

  1. Clone this repository:
    git clone https://github.com/dscc-admin-ch/ESTP_DP_Course.git
    cd ESTP_DP_Course
    
  2. Install global dependencies
    pip install -r requirements.txt
    
  3. Launch Jupyter: Open a notebook and follow the instructions!

πŸ“š Repo Structure

The repository is organized around three main libraries for differential privacy:

  1. SmartNoise SQL
    • Apply differential privacy to SQL queries.
  2. Diffprivlib
    • IBM’s library for differentially private machine learning and statistics.
  3. 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.

πŸ“‚ Repository Layout

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

πŸ“ Notes

  • 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.

πŸ“– References


Happy learning! πŸš€

About

Notebooks for ESTP: Differential Privacy for Official Statistics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •