This archive contains the python codes used to produce the graphs in the paper https://arxiv.org/abs/2603.27572

1) The directory "notebook" contains a python notebook illustrating the implementation of the staircase mechanism described in Sections 3.1 and 3.2 of the paper. It is sufficient to run the .ipynb notebook.
It shows how to transform the private data into the public data, and performs a MLE analysis.
(the law of the private date and the measure $\nu$ defining the privacy mechanism can be changed in the .py file). 

2) The directory "staircase_mechanism_section3-1_3-2" contains the .py file that generates the figures corresponding to Sections 3.1 and 3.2 of the paper. Again, the model on the private data and the measure $\nu$ could be easily changed in the code.

3) The directory "staircase_mechanism_approx_binomial_Section3-3" contains the .py file that generates the figures corresponding to Section 3.3 of the paper. The code is not intended to allow modification of the model distribution for the private data. 

