LibraryWorkspaceDataHub

© 2026 QCA · by Lime Fintech · About QCA · Market data from Massive

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

A Finite Bid--Ask Spread from Replenishment Displaced from the Quote

Open repository
Oct 7, 2026
Trading and Market Microstructure

Verdict: Partially Reproduced

OverviewExperiments

Executive Summary

Status
Partially Reproduced
Confidence
Medium

Executive Summary

  • Status: PARTIALLY REPRODUCED
  • Confidence: MEDIUM-HIGH
  • Key Insight: Experiments 1, 2, and 4 are reproduced strongly and quantitatively, with very small errors on the paper’s main stationary-spread and displaced-kernel predictions. Experiment 3 reproduces the qualitative square-root capacity law and linear-response regime, but the reported exact-capacity comparison appears internally inconsistent, so that part is only partially validated.

Repository Results Overview

The repository contains a dedicated results/ folder with tabulated outputs and figures for all four selected experiments. The main summary file reports:

  • custom two-field reaction-diffusion PDE model
  • operator-split Crank–Nicolson diffusion + explicit reaction/source solver
  • 103 pytest tests passing

The available figures can be embedded directly:

Experiment 1 figures

Experiment 1 baseline profiles Experiment 1 convergence Experiment 1 epsilon sweep Experiment 1 sigma sweep Experiment 1 source sweep

Experiment 1 symmetry test

Experiment 2 figures

Experiment 2 attenuation Experiment 2 kernel distinction Experiment 2 kernel shapes Experiment 2 peak lag sweep Experiment 2 two-kernel decomposition

Experiment 3 figures

Experiment 3 horizon sweep Experiment 3 J0 sweep Experiment 3 sqrt scaling

Experiment 4 figures

Experiment 4 clock mapping Experiment 4 geometry sweep Experiment 4 imbalance benchmark Experiment 4 impact sweep Experiment 4 pending volume Experiment 4 symmetry midpoint Experiment 4 two-kernel vs net current


Results Comparison

Because this is a theory/PDE reproduction rather than an empirical asset-pricing paper, the comparison is against the expected analytic outcomes of the paper rather than returns/Sharpe/alpha.

MetricPaper / ExpectedReproducedDiffStatus
Exp1 baseline spread law s≈Σ−dA∗−dB∗s \approx \Sigma-d_A^*-d_B^*s≈Σ−dA∗​−dB∗​0.454990.45343-0.00156 (-0.34%)Match
Exp1 baseline penetration depth dBd_BdB​0.272510.27328+0.00078Match
Exp1 baseline penetration depth dAd_AdA​0.272510.27328+0.00078Match
Exp1 midpoint vs reaction price under symmetrym=xϕm=x_\phim=xϕ​both ~0negligibleMatch
Exp1 Σ\SigmaΣ-sweep spread lawclose agreementerrors mostly 0.17%–0.34%; one 7.9% case at Σ=0.6\Sigma=0.6Σ=0.6small except boundary caseMostly match
Exp1 threshold sensitivity ∂s/∂ln⁡ϵi=ℓν,i\partial s/\partial \ln\epsilon_i = \ell_{\nu,i}∂s/∂lnϵi​=ℓν,i​total slope 0.2 for symmetric change0.1997–0.2004<0.3%
Exp1 source-amplitude comparative staticslower edge density widens spreadobserved monotonicallyqualitative matchMatch
Exp1 imbalance-only width differs from observed spreaddistinct objectssϕs_\phisϕ​ diverges at large Σ\SigmaΣ, spread finitelarge separationStrong match
Exp2 peak-lag formulaτi∗(d)\tau_i^*(d)τi∗​(d) exactmax abs error < 2.3×10−42.3\times10^{-4}2.3×10−
Exp2 attenuation ratioexp⁡(−d/ℓν)\exp(-d/\ell_\nu)exp(−d/ℓν​)close; exact at natural di∗d_i^*di∗​: 0.1667 vs 0.1667
Exp2 two-kernel decompositionPDE response reproduced by 2 convolutionscorr = 0.963, MAE = 0.00430good but not perfectMatch
Exp2 kernel vs first-passage distinctiondistinct peak lagshdh^dhd peaks 31%–61% earlierstrong differenceMatch
Exp3 exact finite-window capacity formulaLi(T)=ℓi0T/Ii(T)L_i(T)=\ell_i^0 T/I_i(T)Li​(T)=ℓi0​T/I
Exp3 short-horizon T\sqrt{T}T​ scalingyeslog-log slope near 0.50 vs TTT, i.e. T\sqrt{T} law
Exp3 linearity in J0J_0J0​capacity independent of amplitudeLnum=0.0921L_{num}=0.0921Lnum​=0.0921 to 0.0928 across 20x range<1% driftMatch
Exp4 geometry-only spread formationspread controlled by Σ\SigmaΣstrong monotone increase, close to spreds_{pred}spred​errors <1% except low-Σ\SigmaΣ edge caseMatch
Exp4 pending-volume standoffQΣ↑⇒Σ↑⇒s↑Q_\Sigma\uparrow \Rightarrow \Sigma\uparrow \Rightarrow s\uparrowQΣ​↑⇒Σ↑⇒s↑observed exactlystrongMatch
Exp4 impact at fixed Σ\SigmaΣcurrents move quotes without same stationary spread mechanismδpa\delta p_aδpa​ rises with J0J_0J0​, fixed
Exp4 naive net-current reduction failsshould fail when kernels differmax deviation from naive = 6.31 for d>0d>0d>0largeStrong match
Exp4 clock mappingsame operational response, different calendar lagspeak calendar time 0.195 vs 0.447 for same u≈0.39u\approx0.39u≈0.39strongMatch

Summary

The main findings and patterns are reproduced for Experiments 1, 2, and 4 with high quantitative fidelity. Experiment 3 reproduces the qualitative expected behavior—square-root scaling, linear regime, and density-to-quote displacement consistency—but the repository’s tabulated L_num versus L_exact values show a material unresolved discrepancy, preventing a full reproduction verdict.


Experiment-by-Experiment Analysis

Experiment 1 — Stationary spread geometry and penetration-depth validation

Baseline

Baseline metrics are very strong:

  • Σ=1.0\Sigma = 1.0Σ=1.0
  • snum=0.453431s_{num} = 0.453431snum​=0.453431
  • spred=0.454988s_{pred} = 0.454988spred​=0.454988
  • relative spread error = -0.34%
  • dBnum=dAnum=0.273284d_B^{num}=d_A^{num}=0.273284dBnum​=dAnum​
  • dB∗=dA∗=0.272506d_B^*=d_A^*=0.272506dB∗​=dA∗​=0.272506
  • depth error = +0.000779
  • m≈xϕ≈0m \approx x_\phi \approx 0m≈xϕ​≈0

This is comfortably within any reasonable tolerance.

Comparative statics

  1. Sigma sweep

    • For Σ≥0.8\Sigma \ge 0.8Σ≥0.8, relative spread errors are around 0.17%–0.34%
    • At Σ=0.6\Sigma = 0.6Σ=0.6, error rises to 7.9%, still inside the user’s broad return-style tolerance, but materially larger than the rest
    • This is consistent with the experiment design: low Σ\SigmaΣ is closer to the regime boundary where separation/weak-overlap approximations degrade
  2. Threshold sweep

    • Numerical derivative ds_dlneps_num is about 0.1997–0.2004
    • Theory says total symmetric slope should be 0.2
    • This is essentially exact
  3. Source amplitude sweep

    • As amplitude rises from 1 to 8, edge density rises from 0.2543 to 2.0343
    • Spread narrows from 0.6737 to 0.2582
    • Exactly the expected monotone comparative static
  4. Symmetry/midpoint test

    • Equal thresholds: midpoint and reaction price coincide
    • Unequal thresholds: midpoint shifts by -0.0255, +0.0235, +0.0551, etc.
    • This directly reproduces the paper’s symmetry condition

Interpretation

Experiment 1 is a strong reproduction. The core stationary-spread mechanism appears numerically validated, and the contrast with the imbalance-only width is especially convincing.


Experiment 2 — Displaced replenishment response kernel

Peak-lag validation

The peak-lag sweep is excellent:

  • max absolute error across distances = 2.28e-4
  • errors are tiny and sign-balanced

That is much tighter than the tolerance requested.

Attenuation ratio

The attenuation table shows:

  • monotone decay in AnumA_{num}Anum​
  • close agreement with Ath=e−d/ℓνA_{th} = e^{-d/\ell_\nu}Ath​=e−d/ℓν​
  • small residuals around 4–5% at small d, decaying as distance rises
  • at the key natural displacement d=di∗d=d_i^*d=di∗​, measured attenuation equals theory:
    • 0.1667 vs 0.1667

This strongly supports the kernel formula.

Two-kernel decomposition

  • max absolute error = 0.00845
  • mean absolute error = 0.00430
  • correlation = 0.963

That is not exact, but it is good evidence that the PDE dynamics are well captured by the two-kernel structure.

Distinction from first-passage

For d=0.05,0.15,0.25d = 0.05, 0.15, 0.25d=0.05,0.15,0.25:

  • hdh^dhd peaks much earlier than GdG^dGd
  • peak ratio ranges from 0.392 to 0.691

This clearly validates the paper’s conceptual claim that the density-response kernel is not a first-passage object.

Interpretation

Experiment 2 is successfully reproduced with strong quantitative support.


Experiment 3 — Finite-window quote capacity and short-horizon square-root scaling

This is the one experiment with mixed evidence.

What matches

  1. Linearity in amplitude

    • LnumL_{num}Lnum​ moves from 0.0921 to 0.0928 as J0J_0J0​ changes from 0.001 to 0.02
    • very stable, indicating linear-response validity
  2. Short-horizon scaling

    • exp3_sqrt_scaling.csv shows log-log slopes near 0.50 when plotting against TTT
    • this is exactly what T\sqrt{T}T​ implies
  3. Density-based quote-motion linearization

    • delta_p_num and delta_p_linear are very close
    • e.g. at T=0.1T=0.1T=0.1: 0.004756 vs 0.004770
    • so the local linearization itself seems to work

What does not match cleanly

The reported capacity comparison shows:

  • at T=0.005T=0.005T=0.005: Lnum=0.0799L_{num}=0.0799Lnum​=0.0799 vs Lexact=0.00916L_{exact}=0.00916Lexact​=0.00916
  • at T=0.1T=0.1T=0.1: Lnum=0.1051L_{num}=0.1051Lnum​=0.1051 vs Lexact=0.0436L_{exact}=0.0436L
  • at T=0.3T=0.3T=0.3: Lnum=0.1545L_{num}=0.1545Lnum​=0.1545 vs Lexact=0.0850L_{exact}=0.0850L

These are material discrepancies, not minor numerical noise.

The summary text says:

"When using ℓ₀_numeric, L_exact scales correctly."

But the CSV already includes L_exact_numeric_ell0, and the mismatch remains large. So either:

  • the formula is implemented with a different normalization than described,
  • L_num is defined differently from the theoretical Li(T)L_i(T)Li​(T),
  • units/operational-time scaling are inconsistent,
  • or the summary overstates the agreement.

Interpretation

Experiment 3 is partially reproduced:

  • the qualitative law and linear regime are supported,
  • the exact finite-window formula is not convincingly matched by the reported tables.

Experiment 4 — Distinct spread formation vs impact

Geometry-only spread formation

This reproduces Experiment 1’s sigma sweep in a spread-vs-impact framing:

  • spread rises strongly with Σ\SigmaΣ
  • s_pred remains very close
  • s_phi becomes wildly different at large Σ\SigmaΣ
    e.g. Σ=1.6\Sigma=1.6Σ=1.6: spread = 1.0750, sϕ=8.6003s_\phi = 8.6003sϕ​=8.6003

This is powerful evidence that observed spread is not pinned by the imbalance-only benchmark.

Pending-volume mechanism

With QΣQ_\SigmaQΣ​ increasing:

  • Σeff\Sigma_{eff}Σeff​: 1.0 → 2.0
  • spread: 0.4534 → 1.4532

This is a clean validation of the pending-volume standoff mechanism.

Impact-only sweep at fixed geometry

At fixed Σ=1.0\Sigma=1.0Σ=1.0:

  • J0J_0J0​ rises from 0.002 to 0.02
  • δpa\delta p_aδpa​ rises from 0.00109 to 0.01078
  • spread after perturbation rises modestly from 0.4545 to 0.4642

So quote motion responds dynamically to currents, while the stationary geometry is held fixed. This supports the claimed decoupling.

Two-kernel vs naive net-current

For any d>0d>0d>0, reported max deviation from naive is 6.3077. That is large and systematic, strongly supporting the claim that response cannot be reduced to a simple net-current process.

Operational vs calendar time

The same operational peak at u≈0.390u \approx 0.390u≈0.390 maps to:

  • calendar peak t≈0.195t \approx 0.195t≈0.195 under linear_2x
  • calendar peak t≈0.447t \approx 0.447t≈0.447 under piecewise

This is a very clean demonstration of the clock-mapping interpretation.

Interpretation

Experiment 4 is successfully reproduced and economically/conceptually important: spread formation and impact are shown to be distinct mechanisms.


Statistical & Economic Significance

Statistical significance

There are no classical t-stats or p-values reported because these are synthetic numerical/PDE experiments, not stochastic return regressions. So standard statistical significance is not applicable in the usual empirical-finance sense.

Instead, significance should be judged by:

  • numerical error magnitude
  • stability across parameter sweeps
  • convergence checks
  • whether discrepancies are systematic or only boundary-regime effects

On that basis:

  • Exp1: highly significant numerical confirmation
  • Exp2: highly significant numerical confirmation
  • Exp3: mixed; qualitative significance strong, exact formula support weak
  • Exp4: highly significant numerical confirmation

Economic / modeling significance

These results are economically meaningful within the model because they validate the paper’s core mechanism:

  • finite spread emerges from displaced replenishment geometry
  • impact emerges from quote-level response kernels
  • these are distinct and should not be conflated
  • imbalance-only spread proxies can fail dramatically

That is a substantive modeling result, especially the large divergence between observed spread and sϕs_\phisϕ​ at large Σ\SigmaΣ.


Discrepancies

1. Experiment 3 exact capacity mismatch

  • The reported LnumL_{num}Lnum​ is materially above LexactL_{exact}Lexact​ across all horizons
  • This is too large to dismiss as discretization noise
  • Most likely causes:
    • normalization mismatch in Li(T)L_i(T)Li​(T)
    • use of a different effective slope or scaling than the stated formula
    • possible inconsistency between theoretical Ii(T)I_i(T)Ii​(T) and implemented depletion localization
    • operational-time units or quote-extraction conventions differing from the analytic derivation

2. Low-Σ\SigmaΣ edge-case deterioration in Experiment 1

  • At Σ=0.6\Sigma=0.6Σ=0.6, relative spread error is 7.9%, much worse than other cases
  • Likely cause:
    • weaker separation and stronger overlap near the quote
    • violation of the asymptotic regime underpinning s≈Σ−dA∗−dB∗s \approx \Sigma-d_A^*-d_B^*s≈Σ−dA∗​−dB∗​

3. Convergence table not perfectly monotone

  • exp1_convergence.csv shows spread values changing non-monotonically across nx
  • likely due to interpolation / quote-level extraction sensitivity rather than model instability
  • not fatal, but worth noting

Methodology Issues

Only one material methodology concern stands out:

  • Experiment 3 reporting/formula consistency is unclear.
    The repository text claims the exact formula “scales correctly” with numerical slope, but the provided CSV still shows sizable absolute gaps. This suggests either:
    • the wrong columns are being compared,
    • the theoretical benchmark is being interpreted differently,
    • or the implementation/reporting has a mismatch.

Otherwise, the methodology appears aligned with the requested experimental designs:

  • fixed withheld interval
  • stationary extraction of pb,pa,s,m,xϕp_b, p_a, s, m, x_\phipb​,pa​,s,m,xϕ​
  • source-free interior
  • threshold-based quote extraction
  • parameter sweeps for Σ\SigmaΣ, ϵ\epsilonϵ, source amplitude, distance, and J0J_0J0​
  • convergence and symmetry checks
  • separate treatment of displaced replenishment and depletion kernels

Reliability

Strengths

  • broad result coverage across all four selected experiments
  • many direct theory-vs-numerics comparisons
  • consistently tiny errors in Experiments 1 and 2
  • strong qualitative and quantitative support for Experiment 4
  • explicit convergence and sweep tables
  • full result artifacts and figures included
  • 103 tests passing

Red flags

  • Experiment 3 exact-capacity discrepancy is not resolved
  • convergence in Experiment 1 is present but not especially clean/monotone
  • no uncertainty estimates or repeated stochastic runs, though less relevant for deterministic PDE tests

Overall confidence

  • High confidence in the stationary spread and displaced-kernel claims
  • Medium confidence in the finite-window capacity exact-formula claim
  • High confidence in the spread-vs-impact distinction

Verdict

Final Decision: PARTIALLY REPRODUCED

Why:

The repository reproduces the paper’s central mechanisms very well:

  • stationary spread geometry and penetration depths: yes
  • displaced replenishment kernel, lag, attenuation, and two-kernel response: yes
  • spread vs impact distinction, pending-volume standoff, and clock interpretation: yes

However, one selected experiment—finite-window quote capacity—shows a material unresolved mismatch between reported numerical capacity and the stated exact analytic benchmark, even though the square-root scaling and linear-response aspects do reproduce. Because of that, the overall reproduction is best classified as PARTIALLY REPRODUCED, not fully reproduced.

Experiments

Stationary spread geometry and penetration-depth validation on the symmetric equal-coefficient branch

Numerically reproduce the paper’s stationary spread mechanism in a two-field reaction-diffusion order book and validate that a finite observed bid-ask spread emerges because replenishment is placed away from the quotes. This experiment independently tests the quasistationary separated-spread formulas for penetration depths and observed spread, and contrasts them with the imbalance-only implied threshold width.

Displaced replenishment response kernel, peak lag, attenuation, and quote-level linear response

Numerically validate the paper’s dynamic response formulas for local depletion and displaced replenishment at the quote level. This experiment independently tests the displaced density-response kernel, its peak lag, the integrated attenuation ratio, the two-kernel quote response decomposition, and the distinction between density response and first-passage dynamics.

Finite-window quote capacity and short-horizon square-root scaling

Numerically validate the paper’s finite-window quote-capacity formulas and short-window square-root scaling for quote motion under same-location depletion. This experiment independently tests the exact finite-window capacity expression, the short-time asymptotic, and the linearized relation between quote-level density change and quote displacement.

Distinct mechanisms of spread formation versus impact, including operational-time versus calendar-time interpretation

Demonstrate numerically that finite spread and price impact are distinct mechanisms in the model: spread is controlled by placement geometry and inward penetration depths, while impact is controlled by quote-level density response. This experiment also isolates the role of pending-volume-driven standoff, contrasts the full two-kernel response with naive net-current reduction, and optionally studies how operational-time responses map into calendar time through an observation clock u = U(t).

Original paperRun QCA on your paper
Match
4
tiny
Match
near-zero at key point
Match
i​
(
T
)
reported LnumL_{num}Lnum​ far above LexactL_{exact}Lexact​
material gap
Mismatch
T
​
match
Match
Σ\Sigma
Σ
qualitative match
Match
=
0.273284
exact​
=
0.0436
exact​
=
0.0850