The white curve is one blended signal: a random process plus a dimmer, delayed copy of itself, as when gravitational lensing makes two images of a quasar that a telescope cannot separate. Drag the trial delay. Wrong guesses rebuild a rough signal; the right one comes out smooth. The roughness curve below finds the echo with no template, no training data and no model of the signal.
Rebuilt signal frec(t) = F(t) − μF(t−Δt) + μ²F(t−2Δt) − …, coloured by local roughness (drawn with μ = 0.7 so the ghosts are visible; detection uses μ = 0.3, and the dips barely depend on μ).
A symmetric pair of dips (besides the trivial one at 0) means an echo; their position is the delay.
40 fresh random systems at the current noise, cadence and span: 20 with an echo (delay 10–100 d, ratio 0.3–0.9), 20 without. Same frozen selection rules for all. Runs in the background, so the page stays responsive.
Illustrative: this demo's noise levels are not calibrated to the papers, so its numbers are not results. Papers: 92% precision / 60% recall at survey-grade noise (autocorrelation: 53% / 40%).
Model. Only the sum is observed:
F(t) = f(t) + μ̂ · f(t − Δt̂) f: unknown random signal, μ̂ ≤ 1, Δt̂: delayDegeneracy. For any trial (μ, Δt) the blend inverts exactly, so every guess fits the data perfectly:
f_rec(t) = Σₙ (−μ)ⁿ F(t − nΔt)The statistic. Score each guess by the roughness of its rebuild, then standardise across guesses:
ε(Δt) = Σᵢ [f_rec(tᵢ₊₁) − f_rec(tᵢ)]² Σ(Δt) = (ε − ⟨ε⟩) / σ_εWhy it works (the proof). With H the difference series of F, ε expands as a power series in μ whose leading term is the autocorrelation of the derivative. Differencing whitens the slowly varying signal, so the echo shows up as sharp dips at ±Δt̂, and the odd higher-order terms deepen them further:
ε(Δt) ≈ ε₀ [1 − 2μ · ACF(H; Δt)] + O(μ²) ε(0) = ε₀ / (1+μ)²Toggle the two autocorrelation overlays above to see it: the derivative ACF tracks Σ, while the raw-blend ACF is swamped by the signal's long memory.
Method: S. Bag, A. Shafieloo, K. Liao & T. Treu, ApJ 927, 191 (2022) · S. Bag, W. Sohn, A. Shafieloo & K. Liao, ApJ 950, 158 (2023). Simulated data, computed live in your browser.