Adds Laplace-distributed noise to a numeric value or vector for differential privacy. The Laplace mechanism is typically used for queries with sensitivity based on the maximum absolute difference a single record can make.
add_laplace_noise(x, sensitivity, epsilon)Numeric value or vector with Laplace noise added
Numeric value or vector to add noise to
The sensitivity of the query (maximum change from one record)
Privacy parameter (smaller = more privacy, more noise)