jax_privacy.experimental.monte_carlo.delta_calculation.delta_from_epsilon_and_samples

jax_privacy.experimental.monte_carlo.delta_calculation.delta_from_epsilon_and_samples#

jax_privacy.experimental.monte_carlo.delta_calculation.delta_from_epsilon_and_samples(epsilon, samples, other_event=None)[source]#

Calculate the delta parameter for a given epsilon and samples.

Parameters:
  • epsilon (float) – The epsilon parameter of the DP guarantee.

  • samples (PrivacyLossSamples) – Samples from the privacy loss distribution.

  • other_event (DpEvent | PLDAccountant | None) – An optional DpEvent or PrivacyAccountant object. If None, we are just computing the delta parameter for the event whose samples are given by samples. If an accountant is given, the method returns the estimate for Monte Carlo accounting of the composition of the event whose samples are given by samples, and other_event. Cannot be combined with importance-weighted samples.

Return type:

float

Returns:

The delta parameter given by Monte Carlo estimation of the hockey-stick divergence.