Key Insight: The repository successfully reproduces the paper’s core computational behaviors for filtering and dynamic-programming convergence, with especially strong evidence for stable filter implementation and rapid value-iteration convergence. However, the economic geometry in Experiments 3–4 appears materially flatter than the paper’s stated comparative statics, with exercise regions and optimal trade sizes largely invariant to belief and intensity settings.
Convergence below 1e-4 by iteration 5; 3.23e-8 by 13
Faster than paper
Acceptable but notable
Exp 2: final iterations stable by N=20
Yes
δ20=8.24×10−12
Strong stability
Reproduced
Exp 3: exercise region should vary materially with belief/intensities
Yes
Exercise fraction = 80% in all 9 cases
Little/no variation
Material discrepancy
Exp 3: symmetry under regime swap
Yes
Symmetry error = 0.0 in all cases
Exact
Reproduced
Exp 4: optimal size should vary with belief/intensities
Yes
Mean/max ξ∗ identical across all three intensity settings for fixed c
Missing state dependence
Material discrepancy
Exp 4: stronger impact should reduce order size
Yes
Mean ξ∗: 0.2586 at c=0.7 vs 0.6034 at c=1.0
Match to implemented interpretation
Reproduced qualitatively
Summary
The repository reproduces the mechanical and numerical aspects of the study better than the economic cross-sectional patterns. Experiment 1 and Experiment 2 are broadly successful. Experiment 3 and Experiment 4 reproduce symmetry and impact sensitivity, but do not reproduce the paper’s stronger claim that belief and intensity conditions materially reshape exercise regions and optimal order sizes.
Detailed Experiment-by-Experiment Analysis
Experiment 1 — Simulation and Filtering of Hidden-Liquidity Regime
Reported results
From results/exp1_metrics.csv:
Prior
(κ¹⁺, κ¹⁻)
Events
Final π(1)
MAP Accuracy
0.9
(5,1)
59
0.5010
62.3%
0.9
(3,3)
65
0.5001
40.3%
0.9
(1,5)
58
0.5001
56.7%
0.5
(5,1)
58
0.5004
60.0%
0.5
(3,3)
52
0.5000
40.7%
0.5
(1,5)
56
0.4995
41.4%
0.1
(5,1)
46
0.5006
37.5%
0.1
(3,3)
52
0.4999
9.3%
0.1
(1,5)
62
0.5003
89.1%
Interpretation
This is a credible qualitative replication of the filtering experiment:
Posterior normalization is preserved.
Final posteriors near 0.5 are consistent with the symmetric two-state CTMC and long-run ergodicity over T=20.
Asymmetric intensity settings create informative flow and allow good regime tracking in some cases.
Balanced (3,3) intensities are appropriately uninformative on average.
The strongest result is:
Prior 0.1, (1,5) gives 89.1% MAP accuracy, which strongly supports the paper’s claim that the latent regime can be inferred from order-flow imbalance.
But there is also instability:
Prior 0.1, (3,3) gives only 9.3%, much worse than random classification. Since the setting is symmetric and weakly informative, one would expect near 50%, not near-zero, unless the path realization happened to be strongly anti-aligned or label-persistent. That is a mild red flag for single-path sensitivity rather than a likely implementation error, especially because other runs look sensible.
Against expected outcomes
Posterior reacts correctly to order flow imbalance: yes
MAP estimate broadly aligns with hidden regime: yes, but not uniformly
Symmetric setting should reduce informational content: yes
Different priors should matter transiently but wash out over time: yes
Verdict for Exp 1
Partially to strongly reproduced, with good qualitative behavior but notable path dependence in some scenarios.
Images
Experiment 2 — Convergence of the DP Approximation WN
Reported results
From results/exp2_convergence.csv and results/exp2_summary.json:
δ1=8.3333
δ2=0.01438
δ5=4.14×10−4
δ10=1.12×10−6
δ13=3.23×10−8
δ20=8.24×10−12
is_monotone = true
converge_iter = 5
Interpretation
This is the cleanest reproduction in the repository.
The sequence is:
Pointwise nondecreasing
Very rapidly convergent
Numerically stable
Essentially converged by N=20
Compared with the paper:
The paper reportedly observed practical convergence around 13 iterations
This implementation reaches the 1e-4 threshold by iteration 5, and by 13 is already effectively numerically exact.
This is a difference, but not a failure. Faster convergence is plausible under:
coarser grid,
fixed d rather than full state dependence,
symmetric parameterization,
interpolation and quadrature choices,
a possibly simpler numerical state slice than the original paper’s full setup.
The main finding—the recursive approximation converges quickly and monotonically—is clearly reproduced.
Against expected outcomes
Monotone nondecreasing behavior: yes
Declining max-grid differences: yes
Practical convergence in low teens: somewhat faster, but same qualitative conclusion
N=20 stable enough for figures: yes, decisively
Verdict for Exp 2
Fully reproduced in substance.
Image
Experiment 3 — Exercise and Continuation Region Geometry
Reported results
From results/exp3_summary.json:
Exercise fraction = 0.8 for all 9 combinations of:
(5,1),(3,3),(1,5)
priors 0.9,0.5,0.1
Symmetry error = 0.0 in all cases
Repository summary states:
Exercise threshold is essentially driven by inventory only
Boundary around x≈2.22
Belief and intensity effects are “numerically small at this grid resolution”
Interpretation
This is where the reproduction becomes only partial.
What is reproduced:
A stable exercise/continuation partition
Exact symmetry under regime swapping
What is not reproduced:
The paper’s central economic claim for this experiment was that the geometry should change materially with belief and intensity imbalance.
Here, the exercise region fraction is identical in every case.
The repository explicitly concludes that the boundary is dominated by inventory cost/revenue trade-off and that belief/intensity dependence is weak.
That is a material discrepancy relative to the paper’s expected figure geometry.
This may still be understandable if:
the reduced solver fixed d,
the grid is too coarse,
g0 is largely independent of (κ,μ),
the chosen horizon / zeta / interpolation suppress state dependence,
the reduced scheme omits some channels emphasized in the paper.
But from a reproduction standpoint, the intended comparative statics are not really recovered.
Against expected outcomes
Region should flip symmetrically under regime reversal: yes
High adverse belief/intensity should enlarge exercise region: not materially observed
Neutral beliefs should behave differently from extreme beliefs: not observed
Contour geometry should resemble figures 3–4: likely not, given invariance
Verdict for Exp 3
Not fully reproduced; only the symmetry structure and coarse threshold behavior are captured.
Images
Experiment 4 — Optimal Order Size Dependence
Reported results
From results/exp4_summary.json:
For each intensity setting:
At c = 1.0
mean ξ∗ = 0.6034
max ξ∗ = 2.4138
At c = 0.7
mean ξ∗ = 0.2586
max ξ∗ = 1.5517
And these values are identical across:
(5,1)
(3,3)
(1,5)
Impact comparison:
c0.7_smaller_than_c1.0 = true for all settings
Interpretation
This reproduces only one part of the intended result.
What matches:
Order size decreases under the stronger-impact interpretation used here
The effect is substantial:
mean order size falls by 0.3448
roughly a 57% reduction from 0.6034 to 0.2586
So the market-impact comparative static is clearly present.
What does not match:
The paper’s experiment expects ξ∗ to vary with:
inventory,
belief,
intensity configuration.
In these results, for a fixed impact parameter c, the summary is exactly identical across all intensity settings.
The reported mono_frac = 0.0 also suggests no clean monotone relationship in the specific summary statistic used.
This indicates the implementation captures impact sensitivity, but not the richer hidden-liquidity / belief-conditioned policy geometry.
Against expected outcomes
Stronger impact → smaller trade size: yes
Larger inventory increases ξ∗ then saturates: likely partly true from max values/plots, but not numerically documented in summary
Belief and intensity should alter optimal trade size materially: not evidenced
Figure-6 style state dependence: not convincingly reproduced from the summary
Verdict for Exp 4
Partially reproduced.
Images
Statistical & Economic Significance
Statistical significance
This repository mostly reports:
deterministic DP convergence metrics,
single-path filtering diagnostics,
region fractions and policy summaries.
It does not report:
t-stats,
p-values,
confidence intervals,
repeated Monte Carlo averages.
So formal statistical significance cannot be established in the paper-style sense.
For Experiment 1 especially, this matters:
MAP accuracy varies from 9.3% to 89.1% across runs.
Without replication over many simulated seeds, it is hard to know whether the poor runs are noise, prior sensitivity, label mismatch, or genuine instability.
Economic significance
Experiment 1: economically meaningful insofar as the filter can infer regime from order flow in informative cases.
Experiment 2: economically indirect but computationally important; strong result.
Experiment 3: weak economic reproduction because the expected policy dependence on belief/intensity is mostly absent.
Experiment 4: impact sensitivity is economically meaningful, but policy surfaces seem too flat in hidden-state dimensions.
Overall, the economically most distinctive paper claims—belief/intensity-driven changes in liquidation policy—are only weakly supported here.
Discrepancies
Exercise and policy surfaces are too invariant across (κ,μ):
The paper expects meaningful geometry changes; reproduced results show nearly pure inventory-threshold behavior. This likely reflects dimensional reduction, coarse grids, fixed d, or insufficient sensitivity in the numerical setup.
Convergence is much faster than the paper’s ~13-iteration benchmark:
Not necessarily a problem. Likely due to smaller/coarser state space, symmetric assumptions, and simplified reduced-form implementation.
Filtering quality is uneven across scenarios:
Strong in some informative asymmetric runs, weak or even anti-aligned in one symmetric run. This suggests high single-path sensitivity and the need for Monte Carlo replication.
No formal statistical inference:
Since there are no repeated trials with error bars, conclusions are qualitative and numerical rather than inferential.
Methodology Issues
The repository appears methodologically coherent, but a few deviations likely matter:
Researcher-chosen parameters omitted by the paper
T=20, ζ=2.0, dfixed=1.5
These can materially affect sensitivity and policy geometry.
Reduced state representation in Exp 2–4
d is fixed rather than fully gridded.
This can suppress the richness of continuation/exercise behavior.
Coarse grid
Grid is only 6×8×6×6×7 for the DP core.
Enough for convergence demonstration, but likely too coarse to recover subtle figure geometry.
Single-seed filtering evaluation
Seed fixed at 42.
Good for reproducibility, not enough for robust performance assessment.
These are plausible explanations for why the repository reproduces broad mechanisms but not all detailed comparative statics.
Reliability
Strengths
148/148 tests passing
Internal consistency across summaries
Monotone convergence verified
Exact symmetry checks passed
Output artifacts exist for all four experiments
Red flags
Exp 3 and Exp 4 results are almost too uniform across belief/intensity settings
Exp 1 filtering metrics show large path-to-path variability
Lack of Monte Carlo aggregation limits confidence in robustness
Overall confidence
High that the code implements a stable, coherent numerical version of the model.
Medium that it reproduces the paper’s main economic conclusions in full.
Verdict
Final Decision: PARTIALLY REPRODUCED
Why:
The repository clearly reproduces the simulation/filtering mechanism and the dynamic-programming convergence claim, which are major parts of the paper. However, the more distinctive economic policy-shape results—exercise-region geometry and belief/intensity-dependent optimal trade sizes—are only weakly reproduced, with results showing much less dependence on hidden-state information than the paper suggests.
Experiments
Simulation and filtering of a hidden-liquidity Markov-modulated marked Hawkes order-flow model
Implement and validate the synthetic path-generation and filtering components of the paper in a two-state hidden-liquidity setting. The experiment tests whether the latent liquidity regime can be tracked from observed marked buy/sell order flow using a finite-dimensional marked point-process filter, and whether the simulated sample paths qualitatively reproduce the paper’s filtering figure and stated regime-tracking behavior.
Convergence of the impulse-control dynamic-programming approximation W_N for optimal liquidation
Implement the paper’s recursive dynamic-programming approximation for the finite-horizon impulse-control liquidation problem under incomplete information, and verify the numerical convergence behavior of the approximation sequence W_N (or the reduced-dimensional counterpart g_N). This experiment focuses on the control approximation claim that the recursive sequence converges to the value function and that practical convergence is observed in roughly 13 iterations, with the paper displaying results at N=20.
Exercise and continuation region geometry under belief and intensity variation
Compute and visualize the liquidation exercise/continuation regions implied by the dynamic-programming solution, focusing on how optimal liquidation timing depends on filtered regime belief and candidate buy/sell intensities. This experiment reproduces the paper’s contour-style numerical figures showing the state dependence of the optimal liquidation region and validates the economic claim that selling becomes more aggressive under beliefs and intensities associated with adverse price dynamics.
Optimal order size dependence on inventory, belief, and nonlinear market impact
Study how the optimal sell impulse size varies across inventory levels, filtered regime beliefs, and the nonlinear market-impact parameter c. This experiment reproduces the paper’s numerical policy results for optimal block size and market-impact sensitivity, including the claim that stronger impact leads to smaller optimal trades and that optimal size initially scales with inventory and then saturates.