Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strengthen integration tests of DP with statistical test on noise distribution #3325

Open
divergentdave opened this issue Jul 23, 2024 · 1 comment

Comments

@divergentdave
Copy link
Collaborator

Currently, the integration tests exercising DP just confirm that any noise was added to the aggregate result. We could strengthen this by performing a statistical test to evaluate whether the observed noise is a likely output of sampling the desired distribution, and failing if they are too different. As an example, libprio-rs currently uses a chi-squared test on a histogram produced from the discrete Gaussian sampler. (there may be other appropriate tests as well)

@divergentdave
Copy link
Collaborator Author

I looked at the distribution of $Lap_\mathbb{Z}(t)+Lap_\mathbb{Z}(t)$ a couple ways, and I wind up with either an infinite sum or an integral that seems hard to put in closed form. It should be possible to use numerical approximations to the PDF or CDF instead, and that'll be good enough for test purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant