Many scientific questions come down to asking whether two curves have the same shape, whatever their overall scale. Two groups of patients might produce brain-tract profiles that differ only in how many people were measured. Two particle decays might produce energy spectra that differ only in how many events were recorded. When those curves must be released under differential privacy (a guarantee that the output barely changes if any one person's data is removed), two things go wrong at once. First, the released curve carries added random noise that ordinary tests mistake for real variation. Second, comparing shapes means dividing each curve by its own total count. That count is also noisy, and dividing by a noisy number gives estimates with heavy tails and no stable mean.
We propose borrowing a trick from collider physics. There, "double-tag" measurements get rid of an unknown normalizer by building quantities in which it cancels, so it never has to be estimated. We apply the same idea to curves released by the Gaussian-process mechanism, which adds a random smooth curve rather than independent noise at each point. The result is a shape test that never divides by a noisy count. It stays exactly unbiased under the null hypothesis, and its null distribution is calibrated with the known privacy noise included. Because the whole curve is released once, the analyst can choose how finely to test after release without spending more privacy budget.
Core Claim
Suppose group $j \in \{1,2\}$ releases a private smoothed count curve $\tilde f_j(t) = N_j p_j(t) + Z_j(t)$ and a private count $\tilde N_j = N_j + e_j$. Here $N_j$ is the true number of records, $p_j$ is the shape (a density that integrates to one), $Z_j$ is Gaussian-process privacy noise with known covariance kernel, and $e_j$ is scalar privacy noise. We test $H_0: p_1 = p_2$ using the cross-multiplied curve
$$D(t) = \tilde N_2 \, \tilde f_1(t) - \tilde N_1 \, \tilde f_2(t).$$
Under $H_0$, $D$ has mean exactly zero for any $N_1, N_2$, because all noise terms are independent with mean zero. The statistic is bilinear in the noise, so every moment is finite; there is no Cauchy-like behaviour from a denominator near zero.
The double-tag branching-fraction formula in Absolute Measurement of Hadronic Branching Fractions of the D_s^+ Meson cancels luminosity by taking a ratio. We keep the cancellation and drop the division. Statisticians will recognize this as Fieller's classical device for ratios, carried over to function spaces.
The claim is specific. With (i) this statistic, (ii) a covariance estimate built only from released quantities, and (iii) projection onto the leading directions of that covariance, we get shape tests on privately released curves with nominal Type I error. Against smooth alternatives, these tests should be more powerful than binned noise-aware chi-square tests at the same privacy budget.
Where this sits
The functional-privacy literature supplies the release mechanism but stops at estimation. Differential Privacy for Functions and Functional Data shows that adding Gaussian-process noise, calibrated to a sensitivity measured in the norm of a reproducing kernel Hilbert space (a space of smooth functions with a built-in notion of size), privatizes kernel density estimates at the minimax rate. Formal Privacy for Functional Data with Gaussian Perturbations extends this to mean curves in Banach spaces and selects the smoothing parameter while accounting for the privacy noise. Benefits and Pitfalls of the Exponential Mechanism with Applications to Hilbert Spaces and Functional PCA and Differentially private learners for heterogeneous treatment effects release principal components and treatment-effect curves. None of these papers builds a test statistic, a critical value, or a confidence band. We reuse their mechanism unchanged and add the missing inference layer.
The Banach-space paper also constrains our design. It proves that privacy requires the injected noise to be rougher than the released summary. That roughness is exactly what would ruin a test that inverts the full noise covariance, because the high-frequency directions would dominate. This forces a truncated test rather than a full whitening of the covariance.
The noise-aware testing literature supplies the calibration logic but only in finite dimensions. Differentially Private Chi-Squared Hypothesis Testing: Goodness of Fit and Independence Testing and Local Private Hypothesis Testing: Chi-Square Tests build the mechanism's covariance into chi-square statistics. Differentially Private Ordinary Least Squares splits variance into sampling and privacy parts. Differentially Private Linear Regression and Synthetic Data Generation with Statistical Guarantees restores nominal 95% coverage with a debiased estimator but notes that its binning degrades with dimension. We borrow the variance split and simulation calibration, and apply them to a function-valued statistic.
Improved Differentially Private Analysis of Variance motivates our choice not to subtract noise variance. It shows that subtracting known noise variance produces negative variance estimates in small samples. Our statistic needs no subtraction to be centred; subtraction enters only in the variance estimate, which we clip and then check by simulation.
Research Program
The release. Each group's smoothed count curve is released once with the Gaussian-process mechanism of Hall et al. Its per-record sensitivity is bounded by the kernel's feature norm, so no bound on the data values is needed beyond the kernel choice. The group count is released with a scalar Gaussian mechanism. The budget is split between the two releases, and the split is itself something we study.
The covariance, estimated without extra budget. $D$ has two sources of covariance: the known privacy covariance, scaled by the released counts, and the sampling covariance. For count-type data, the sampling covariance of a smoothed histogram is determined by the underlying shape, because Poisson or multinomial variance equals the mean smoothed by the kernel. This lets us plug in the released curves themselves, so estimating the covariance costs no additional privacy. This property holds naturally for event spectra and for any curve built from counts, and it is the main reason we restrict to count-type curves. For averaged curves such as tract profiles, the sampling covariance must itself be released privately, which costs budget. We treat that as a second, harder regime.
The test. We compute the leading eigenfunctions of the estimated total covariance of $D$ and form
$$T_k = \sum_{i=1}^{k} \frac{\langle D, \phi_i \rangle^2}{\lambda_i}.$$
Here $\phi_i$ and $\lambda_i$ are the $i$-th eigenfunction and eigenvalue, and $\langle \cdot,\cdot \rangle$ is the $L^2$ inner product. Asymptotically, $T_k$ follows a chi-square distribution with $k$ degrees of freedom.
The roughness requirement means the privacy eigenvalues decay more slowly than the signal eigenvalues. We therefore expect a best truncation $k^*(n,\varepsilon)$ beyond which each added direction contributes mostly privacy noise. We will derive its scaling by comparing the signal's eigenvalue decay with the noise kernel's. Since the curve is released once, $k$ can be chosen after release. To keep that choice honest, the headline test is $\max_k$ of standardized $T_k$, with the null distribution simulated by drawing from the mechanism with the estimated covariance.
Theory. We will prove three things: exact null centring of $D$; consistency of the plug-in covariance at rate $n^{-1/2}$ in operator norm, following the usual rate for empirical covariance; and a power bound showing the test detects smooth alternatives whose separation, measured in the leading $k^*$ directions, exceeds $\sqrt{k^*}$ times the combined noise level.
Baselines
The naive reference is the classical functional two-sample test applied to $\tilde f_1/\tilde N_1$ and $\tilde f_2/\tilde N_2$ as though they were noiseless. Its expected failure is Type I inflation, as documented for chi-square tests by Differentially Private Chi-Squared Hypothesis Testing: Goodness of Fit and Independence Testing. We run it on the same releases.
The strongest existing competitor is the binned noise-aware chi-square test. It bins each group's data into $B$ bins, releases the counts with the Gaussian mechanism, and tests homogeneity with the privacy covariance included, as in Differentially Private Chi-Squared Hypothesis Testing: Goodness of Fit and Independence Testing and Privacy Aware Experimentation over Sensitive Groups: A General Chi Square Approach. It is a serious threat. Histogram counts have small sensitivity (one record moves one bin), so the "sensitivity explosion" argument against discretization does not apply to it. It will receive the same total budget and the same data, with $B$ tuned over the same grid of values that our method uses for $k$, selected on held-out simulations. The file contains no reported power or size figures for this test on any of our tasks. For BinAgg, Differentially Private Linear Regression and Synthetic Data Generation with Statistical Guarantees reports coverage "close to the nominal 95% level", which sets our size target. We beat this baseline if our size stays between 4% and 6% at $\alpha = 5\%$ while power against smooth alternatives is higher at matched budget, across at least the strict-privacy half of the budget grid.
Two ablations isolate our ingredients. The ratio ablation uses the same projection test on the divided curves $\tilde f_j/\tilde N_j$, with delta-method variance. It isolates the cross-multiplication and should fail when counts are small and privacy is strict. The prespecified-basis ablation releases $k$ fixed basis coefficients per group with a vector Gaussian mechanism and tests them. It isolates whatever the functional release adds beyond a finite projection chosen in advance.
Why not just…?
Why not just bin the data and use the existing noise-aware chi-square? For coarse bins and strongly non-smooth alternatives, it may do as well as our test, and we will report this. Our expected edge comes from degrees of freedom. A $B$-bin test spreads power over $B-1$ directions. The projection test concentrates it in the $k^*$ smooth directions where signal lives, and it avoids the need to divide the curves when counts are private. The matched-budget power curves settle the question. If the tuned binned test matches ours, the contribution shrinks to the ratio-free construction, which transfers directly to bins.
Why not just divide by the noisy count and correct the variance analytically? Division by a mean-zero-perturbed count has undefined moments when counts are small. Analytic corrections produce negative variances in exactly this regime (Improved Differentially Private Analysis of Variance). The ratio ablation measures this directly. We expect the gap to disappear when counts are large, and we will say where that crossover occurs.
Why not just release $k$ basis coefficients chosen in advance? If $k$ is known in advance, this is nearly equivalent to our test and is a real threat. The functional release gains only when $k$ or the basis is chosen after seeing the data, which the one-shot release supports without extra budget, as in Differential Privacy for Functions and Functional Data. The prespecified-basis ablation, run with a correctly guessed $k$ and with a misspecified $k$, shows how much that flexibility is worth. If the gain is small, we will frame the method's value accordingly.
Why not just calibrate any statistic by simulation? We do use simulation, but only for the max-over-$k$ step. Simulation cannot rescue a statistic whose null distribution depends on unknown true counts, and a divided statistic does. The cross-multiplied curve's null mean does not depend on them.
Proposed Experiments
The first testbed is a simulated double-tag semileptonic spectrum. We will generate spectra in the momentum transfer $q^2$ from a series-expansion form factor, following the analysis setup of Improved measurements of D^0 to K^- ell^+ nu_ell and D^+ to K_bar^0 ell^+ nu_ell. The hypothesis is that the neutral and charged $D$ channels share a shape, while their tag counts differ and are private. Alternatives perturb the form-factor slope by controlled amounts.
This setting is chosen because ground truth is known and the normalizer structure is real. We do not claim collider data needs privacy. What the physics contributes is the hard unknown normalizer and a well-understood shape hypothesis. Yields will be scanned from a few hundred to tens of thousands of events per channel, spanning the low-efficiency regime the double-tag papers describe.
The second testbed is the diffusion-tensor-imaging tract profiles (382 subjects, 93 locations) from the refund package used in Formal Privacy for Functional Data with Gaussian Perturbations. We will split subjects into two groups by a covariate in the package. Size will be measured by random relabeling under the null, and power by injecting smooth shifts. This exercises the harder regime in which the sampling covariance must be released privately.
Metrics are empirical size at $\alpha = 5\%$ over at least 2,000 replications, power curves against effect size, and the selected $k$ compared with the predicted $k^*(n,\varepsilon)$. All are reported across a grid of privacy budgets and budget splits.
Three checks decide the proposal. First, size must be nominal for our test while the ratio ablation's size degrades as counts fall. If both stay nominal, cross-multiplication is unnecessary. Second, at matched budget, our test must beat the tuned binned chi-square on smooth alternatives. If it does not, the functional machinery is not earning its place. Third, the empirically best truncation must track the predicted scaling, which tests whether the roughness tension is the right account of where power is lost.
References
- Absolute Measurement of Hadronic Branching Fractions of the<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:msubsup><mml:mi>D</mml:mi><mml:mi>s</mml:mi><mml:mo>+</mml:mo></mml:msubsup></mml:math>Meson
- Differential privacy for functions and functional data
- Formal Privacy for Functional Data with Gaussian Perturbations
- Benefits and Pitfalls of the Exponential Mechanism with Applications to Hilbert Spaces and Functional PCA
- Differentially private learners for heterogeneous treatment effects
- Differentially Private Chi-Squared Hypothesis Testing: Goodness of Fit and Independence Testing
- Local Private Hypothesis Testing: Chi-Square Tests
- Differentially Private Ordinary Least Squares
- Differentially Private Linear Regression and Synthetic Data Generation with Statistical Guarantees
- Improved Differentially Private Analysis of Variance
- Privacy Aware Experimentation over Sensitive Groups: A General Chi Square Approach
- Improved measurements of <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:msup><mml:mi>D</mml:mi><mml:mn>0</mml:mn></mml:msup><mml:mo stretchy="false">→</mml:mo><mml:msup><mml:mi>K</mml:mi><mml:mo>−</mml:mo></mml:msup><mml:msup><mml:mo>ℓ</mml:mo><mml:mo>+</mml:mo></mml:msup><mml:msub><mml:mi>ν</mml:mi><mml:mo>ℓ</mml:mo></mml:msub></mml:math> and <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:msup><mml:mi>D</mml:mi><mml:mo>+</mml:mo></mml:msup><mml:mo stretchy="false">→</mml:mo><mml:msup><mml:mover accent="true"><mml:mi>K</mml:mi><mml:mo stretchy="false">¯</mml:mo></mml:mover><mml:mn>0</mml:mn></mml:msup><mml:msup><mml:mo>ℓ</mml:mo><mml:mo>+</mml:mo></mml:msup><mml:msub><mml:mi>ν</mml:mi><mml:mo>ℓ</mml:mo></mml:msub></mml:math>