Statistics & probability

Analytic Gaussian mechanism noise calibration calculator

This calculator accepts a strictly positive global L2 sensitivity, epsilon from 0.0001 through twenty, and delta from one trillionth through 0.1.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

This calculator accepts a strictly positive global L2 sensitivity, epsilon from 0.0001 through twenty, and delta from one trillionth through 0.1. Sensitivity is an externally established bound on how far the deterministic query output can move between neighboring datasets. The neighboring-dataset relation, such as adding one person or replacing one person, must be specified before the numeric bound has a privacy meaning.

THE FORMULAδ(σ)=Φ(Δ/(2σ)−εσ/Δ)−e^εΦ(−Δ/(2σ)−εσ/Δ). Solve δ(σ)=δ_target for the smallest positive σ; variance=σ².

A worked example

Sensitivity1,epsilon1,delta1e−5 gives sigma3.730631635 and variance13.917612395.

Good to know

Sensitivity>0, epsilon 0.0001–20, delta 1e-12–0.1. Stable log-tail subtraction and bracketed monotone root; report SD, variance and residual. One Gaussian release with externally established global sensitivity; no subsampling, composition accountant, data access or privacy guarantee when sensitivity is wrong. Adjacency relation and global L2 sensitivity are user-specified assumptions; no automatic clipping, empirical sensitivity estimation or claim that arbitrary data analysis is private. The tool computes a numeric parameter for one release only, not the private release itself.

Calibrate noise for a defined query and adjacency

This calculator accepts a strictly positive global L2 sensitivity, epsilon from 0.0001 through twenty, and delta from one trillionth through 0.1. Sensitivity is an externally established bound on how far the deterministic query output can move between neighboring datasets. The neighboring-dataset relation, such as adding one person or replacing one person, must be specified before the numeric bound has a privacy meaning.

The page computes a Gaussian noise standard deviation; it does not access a dataset or release a private answer. A sensitivity measured only on the current dataset is not generally a global sensitivity bound. Clipping, contribution limits, and the query definition belong in a separate privacy design. Entering a convenient small number cannot make an arbitrary data analysis private.

The profile crossing calibrates the noiseAnalytic Gaussian privacy profileδ target = 10⁻⁵σ ≈ 3.730632Noise standard deviation σ; vertical scale log₁₀δ
Scroll across to see the full diagram.
For sensitivity1 and epsilon1, the monotone profile reaches delta10⁻⁵ at sigma≈3.730632.

Compare this with the Normal distribution probability calculator. Inverts the analytic Gaussian privacy-loss condition to find required noise SD from epsilon, delta and L2 sensitivity. Existing normal CDF calculator neither calibrates the mechanism nor handles the privacy-loss tail difference.

Use the exact Gaussian privacy profile

For one isotropic Gaussian release with sensitivity Delta and noise standard deviation sigma, the analytic privacy condition uses Phi(Delta/(2sigma)-epsilon sigma/Delta) minus exp(epsilon) times Phi(-Delta/(2sigma)-epsilon sigma/Delta), bounded above by delta. Phi is the standard normal cumulative distribution function. The smallest positive sigma meeting the condition calibrates the stated analytic Gaussian mechanism.

This expression accounts for both relevant Gaussian tails, unlike a sufficient bound obtained by applying a looser tail inequality. It applies across the supported epsilon range, including epsilon above one. The result is a numerical calibration conditional on the stated query sensitivity and adjacency. It is not a claim that the rest of a data pipeline, its diagnostics, or its subsequent releases already satisfy differential privacy.

Find the standard deviation with stable tails

For fixed positive sensitivity and epsilon, the privacy profile decreases as sigma increases. A bracketed root solver can expand a positive upper bound until the target delta is enclosed, then refine the bracket. The final residual compares the evaluated privacy profile with the requested delta. Reporting sigma without checking that residual can conceal root or tail-evaluation errors.

The two terms can be extremely small and close together, so direct subtraction of rounded cumulative probabilities is unreliable. Stable normal log-tail evaluation and log-domain subtraction preserve information in difficult cases. The solver must also control its stopping criterion relative to the privacy scale. A tiny absolute residual alone is not enough when delta itself is near the smallest supported input.

A unit-sensitivity example

For global L2 sensitivity one, epsilon one, and delta 0.00001, an independent bracketed solve gives sigma approximately 3.730631635. Squaring gives variance approximately 13.917612395. Substituting the unrounded sigma into the analytic condition returns delta essentially equal to 0.00001 within numerical tolerance. The noise mean is zero, while sigma controls the spread of the added Gaussian perturbation.

If sensitivity doubles with epsilon and delta unchanged, sigma also doubles and variance increases by a factor of four. This follows because the profile depends on the ratio sigma to sensitivity. The scaling identity is a useful implementation check and a practical reminder that tighter contribution bounds can materially reduce noise, provided those bounds are valid parts of the query definition rather than estimates from private outcomes.

Read the privacy-profile crossing

The static figure plots the analytic profile against sigma and marks its crossing with the horizontal delta target. Values to the right satisfy the privacy inequality for this calibration problem; values to the left have insufficient Gaussian spread. The curve is a relationship between privacy parameters and noise, not a graph of released observations or a posterior probability about an individual's presence.

A second way to read sigma is through the Gaussian distribution's measurement scale. For a scalar release, most draws lie within a few sigma of zero, but any particular draw may be larger. The calculator does not promise bounded error or exact preservation of the original query value. In a vector release, independent isotropic coordinates use the same sigma with the global L2 sensitivity controlling the joint guarantee.

One release does not provide composition accounting

Repeated releases can consume more privacy than one calibrated mechanism. Reusing the same epsilon and delta for many queries does not automatically preserve that pair for the entire workflow. Subsampling, adaptive queries, correlated noise, and privacy accounting require separate analysis. This tool supplies no composition accountant and cannot decide how a privacy budget should be divided across outputs.

The guarantee also depends on implementing Gaussian noise correctly and keeping any nonprivate intermediate information from being released unintentionally. Data-dependent bounds, disclosed clipping thresholds derived without protection, or extra unnoised summaries can change the privacy analysis. Those design choices lie beyond numerical calibration. The page's output should therefore be recorded as a parameter for a specified mechanism, with the surrounding assumptions kept explicit.

Compare analytic calibration with a sufficient bound

A familiar classical formula multiplies sensitivity by the square root of twice log(1.25/delta) divided by epsilon under its stated sufficient-condition regime. The analytic method instead solves the exact Gaussian profile, often allowing less noise for the same supported target. A smaller calibrated sigma is justified by the tighter analysis, not by relaxing sensitivity or ignoring the delta term.

Retain adjacency, query definition, the proof or derivation of global sensitivity, epsilon, delta, solver tolerance, sigma, variance, and residual. Review those records when the query or contribution policy changes. The calculator can validate a mathematical input-output relationship, but deployment of a private release still requires the external sensitivity argument, an appropriate random generator, and an accounting decision covering all outputs that will actually be exposed.

A few questions, answered

Does this page release private data?

No. It computes a noise parameter for one specified Gaussian mechanism and has no dataset access or release operation.

Can I use observed sensitivity from my current data?

Not as a substitute for a valid global L2 bound. The neighboring-dataset definition and bound need an external justification.

What happens if sensitivity doubles?

For unchanged epsilon and delta, sigma doubles and the noise variance quadruples.

Does this account for repeated releases?

No. Composition and subsampling accounting require a separate privacy analysis.

Find your calculator

Start typing to explore the library.