LibraryWorkspaceDataHub

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

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

optimal credit portfolio and consumption with regime switching and default contagion

Open repository
Jul 14, 2026
Mathematical Finance

Verdict: Partially Reproduced

OverviewExperiments

Executive Summary

Status
Partially Reproduced
Confidence
Medium

Executive Summary

  • Status: PARTIALLY REPRODUCED
  • Confidence: MEDIUM
  • Key Insight: The repository provides strong numerical support for the paper’s structural claims in the recursive HJB/ODE construction: positivity, inactive truncation, exact terminal/boundary matching, admissible controls, and small HJB residuals are all reproduced across tested scenarios. However, the Monte Carlo verification experiment does not cleanly confirm the candidate value function or dominance of the computed optimal control at the reported simulation resolution, so the verification-theorem component is only partially reproduced.

Located result contents

The repository’s results are concentrated in results/ and include:

  • structured summaries in results/RESULTS.md
  • tabulated metrics in results/exp1_metrics.csv, results/exp2_metrics.csv
  • per-scenario JSON metrics for Exp 1 and Exp 2
  • PNG figures for Exp 1 solution paths and Exp 2 Monte Carlo convergence

Embedded figures

Experiment 1 phi base scenario

Experiment 1 phi no contagion

Experiment 1 phi no regime

Experiment 2 Monte Carlo convergence


Results Comparison

Because the original paper appears theoretical/model-based and the repository explicitly states that no paper-provided numerical target values exist, comparison must be made against the paper’s expected qualitative and numerical diagnostic claims, not against published return/Sharpe-type benchmarks.

MetricPaper / Expected OutcomeReproducedDiffStatus
Exp 1: positivity of ϕ\phiϕStrict positivity across time/regimes/default statesmin_phi = 1.0 in all scenariosNone materiallyMatched
Exp 1: boundary conditionϕˉ(0,i,h)=1\bar\phi(0,i,h)=1ϕˉ​(0,i,h)=1, equivalently ϕ(T,i,h)=1\phi(T,i,h)=1ϕ(T,i,h)=1max_bc_error = 0.0NoneMatched
Exp 1: truncation inactivityTruncation floor should be inactive on computed solutiontruncation_inactive = True in all scenariosNoneMatched
Exp 1: lower-bound comparisonNumerical lower bound should exceed truncation floorBase: a=0.4767, ε=0.9535; No-regime: a=0.4804, ε=0.9608Large safety margin; expected sign correctMatched
Exp 1: admissible controlsDefaulted assets zeroed, surviving-name weights satisfy πj<1\pi_j<1πj​<1controls_admissible = True in all scenariosNone reportedMatched
Exp 1: HJB residualSmall residuals, ideally shrinking under refinementmax residuals 9.63e-04, 9.50e-04Within stated tolerance <1e-3Matched
Exp 1: scenario robustnessBase, no-contagion, no-regime should all remain solvable/positiveAll three scenarios pass all diagnosticsNone materialMatched
Exp 2: MC verification identityJ^(π∗,c∗)≈Vcand\hat J(\pi^*,c^*) \approx V_{cand}J^(π∗,c∗)≈V, CI should contain zero after sufficient accuracy
Exp 2: optimal control should not be outperformed by benchmarksOptimal should outperform/match admissible alternatives within CIRiskless mean utility -3.2971 vs optimal -3.3804; gap = -0.0833Optimal appears worse than risklessNot matched in reported results
Exp 2: path stability / admissibilityNo failed paths, positive wealth, stable simulation0/200 failed paths for both strategiesNoneMatched
Exp 2: convergence under refinementVerification error should shrink with more paths/smaller dtReport states convergence curve approximately 1/N1/\sqrt N1/N​Qualitatively supportive, but not decisivePartially matched

Summary

  • Experiment 1 is reproduced convincingly.
  • Experiment 2 is only weakly supported: the reported Monte Carlo estimate does not verify the candidate value function within confidence intervals, and the computed “optimal” strategy does not dominate the riskless benchmark in the reported output.

Experiment-by-Experiment Analysis

Experiment 1 — Recursive HJB/ODE Construction and Positivity Verification

Reported metrics

From exp1_metrics.csv and JSON files:

Base

  • min_phi = 1.0
  • max_bc_error = 0.0
  • truncation_inactive = True
  • max_hjb_residual = 9.629158223505296e-04
  • controls_admissible = True
  • truncation_threshold_a = 0.47673347957952084
  • linear_lower_bound_min = 0.9534669591590417

No contagion

  • identical diagnostics to base

No regime

  • min_phi = 1.0
  • max_bc_error = 0.0
  • truncation_inactive = True
  • max_hjb_residual = 9.503741299528023e-04
  • controls_admissible = True
  • truncation_threshold_a = 0.4803947195761961
  • linear_lower_bound_min = 0.9607894391523922

Interpretation against expected outcomes

This experiment is aimed at reproducing structural mathematical properties, not asset-pricing performance metrics. On that basis, the evidence is strong:

  1. Positivity reproduced

    • The minimum reported ϕ\phiϕ is exactly 1.0 in every scenario.
    • This is fully consistent with the expected positivity claim.
    • Since the boundary condition is also 1 at terminal time, this suggests the numerical path remains at or above the boundary floor throughout the backward recursion.
  2. Backward recursion appears well posed

    • All scenarios solved successfully.
    • No instability is reported when moving from all-default to less-defaulted states.
    • This is consistent with the paper’s recursive construction.
  3. Truncation argument numerically validated

    • In all scenarios, the truncation threshold aaa is far below the computed comparison lower bound ε\varepsilonε:
      • Base/no-contagion: a/ε≈0.50a/\varepsilon \approx 0.50a/ε≈0.50
      • No-regime: a/ε≈0.50a/\varepsilon \approx 0.50a/ε≈0.50
    • This gives a substantial numerical buffer, not a knife-edge result.
    • Hence the truncation floor being inactive is not just barely true; it is comfortably inactive.
  4. Recovered controls are admissible

    • Controls are reported admissible in all scenarios.
    • This directly supports the expected claim that defaulted assets are excluded and surviving-name weights remain below the hard cap πj<1\pi_j < 1πj​<1.
  5. HJB residuals are small

    • Residuals are around 9.5×10−49.5\times 10^{-4}9.5×10−4, comfortably below the repository’s stated 10^-3 threshold.
    • For a nonlinear recursive HJB/ODE system solved numerically, this is good accuracy and supports internal consistency.

Economic/statistical significance

  • No p-values or t-stats are relevant here because this is a deterministic numerical PDE/ODE verification.
  • The economically meaningful result is that the control problem is numerically well-defined and the feedback controls are admissible and stable.
  • The differences between scenarios are modest in these scalar diagnostics, but the repository notes that contagion and regime switching materially alter ϕ\phiϕ and π∗\pi^*π∗; the provided plots likely support this qualitatively.

Assessment for Exp 1

Reproduced.
Given the absence of paper target numerics, this experiment should be judged by whether the key theoretical properties hold numerically. They do.


Experiment 2 — Monte Carlo Verification of the Candidate Value Function

Reported metrics

From exp2_metrics.csv / exp2_metrics_base.json:

  • V_cand = -3.275790660866355
  • J_hat = -3.380408601929642
  • verification_error = -0.10461794106328703
  • 95% CI = [-0.1568522141222326, -0.052383668004341466]
  • mean_utility_optimal = -3.380408601929642
  • std_utility_optimal = 0.026650139315788576
  • mean_utility_riskless = -3.2971108389467734
  • std_utility_riskless = 0.0009297135173274224
  • optimality_gap = -0.08329776298286884
  • failed_paths_optimal = 0
  • failed_paths_riskless = 0
  • n_paths = 200
  • dt = 0.05

Interpretation against expected outcomes

1. Verification theorem check

Expected outcome:

  • Monte Carlo expected utility under the derived feedback controls should match the candidate value function within statistical error.

Observed:

  • The error is about -0.1046.
  • The 95% confidence interval is entirely negative: [-0.1569, -0.0524].
  • Therefore, at the reported simulation resolution, the verification identity is not confirmed.

This is the most important negative result in the repository.

2. Benchmark dominance

Expected outcome:

  • Alternative admissible controls should not outperform the derived strategy within confidence intervals.

Observed:

  • Riskless benchmark mean utility: -3.2971
  • “Optimal” strategy mean utility: -3.3804
  • Since utility is negative for γ>1\gamma>1γ>1, the larger value (less negative) is better.
  • Therefore, the riskless strategy appears better by about 0.0833.

This directly conflicts with the stated expected outcome for Exp 2.

3. Stability and feasibility

Positive signs:

  • No failed paths.
  • Wealth positivity maintained.
  • Convergence curve reportedly follows 1/N1/\sqrt N1/N​, which is at least consistent with Monte Carlo noise decay.

So the issue is not path explosion or simulation breakdown; it is that the estimated objective level does not support the verification claim.


Statistical & Economic Significance

Statistical significance

For Exp 1:

  • Not applicable in the inferential-statistics sense.
  • Numerical significance is strong because all diagnostic inequalities are satisfied with clear margins.

For Exp 2:

  • The MC verification discrepancy is statistically significant at the reported setup because the 95% CI excludes zero.
  • The benchmark gap is also economically meaningful relative to the standard errors:
    • gap magnitude 0.0833
    • optimal strategy standard error 0.0267
    • riskless standard error 0.00093
  • Even allowing for simulation noise, this is not a tiny discrepancy.

Economic significance

  • Exp 1 is economically relevant insofar as it validates that the computed feedback controls exist and are numerically admissible.
  • Exp 2 raises a substantive concern:
    • If the candidate value function were correct and the feedbacks truly optimal, one would not expect a simple riskless benchmark to outperform it in the same environment.
    • A gap of 0.0833 in expected utility units is material given the scale of V_cand ≈ -3.28.

Discrepancies

1. Monte Carlo verification error does not center on zero

  • Observed: J_hat - V_cand = -0.1046, CI excludes 0.
  • Why it matters: This is the central diagnostic of the verification theorem.
  • Possible explanations:
    • Coarse time discretization (dt = 0.05) for a jump-diffusion control problem may induce meaningful bias.
    • Controls are precomputed on only a 40-point grid; interpolation/control lag can materially distort utility in nonlinear recursive problems.
    • The simulation uses “Bernoulli default events” per the summary rather than exact competing-jump simulation at every instant, which can bias jump timing and utility accumulation.
    • Utility integration may be inconsistent with the continuous-time objective, especially around jumps and consumption timing.

2. Riskless benchmark appears to outperform the computed optimal control

  • Observed: optimality gap = -0.0833.
  • Why it matters: This contradicts the experiment’s expected outcome.
  • Possible explanations:
    • Sign interpretation may be misstated in RESULTS.md. The repository text claims the negative gap is “consistent” with γ>1\gamma>1γ>1, but mathematically for negative utility values, less negative is better. So this explanation looks questionable.
    • The control recovery may be correct in the HJB system but not faithfully applied in forward simulation.
    • The Monte Carlo simulator may not match the exact controlled wealth dynamics assumed in the reduced HJB derivation.
    • The coarse precomputed control grid may degrade the nominally optimal policy more than it affects the trivial riskless benchmark.

3. Exp 2 evidence is qualitative rather than conclusive

  • The repository says refinement improves the result, but the actual saved metrics only show the coarse run with CI excluding zero.
  • Without additional reported path-count / dt tables, the convergence claim remains suggestive rather than demonstrated.

Methodology Issues

Only material issues are noted.

Exp 1

  • Methodology seems aligned with the user-selected experimental design:
    • recursive state enumeration
    • all-default first
    • backward ODE solving with Radau
    • truncation/inactivity checks
    • control admissibility
    • residual diagnostics

No obvious methodological red flags from the reported metrics.

Exp 2

Potential deviations or weaknesses:

  1. Simulation granularity may be too coarse
    • dt = 0.05 and only 200 paths are light for a nonlinear jump-diffusion verification study.
  2. Precomputed controls on a 40-point grid
    • This can materially reduce policy optimality.
  3. Default simulation description
    • The summary mentions exact regime-jump simulation but “Bernoulli default events,” which is weaker than exact competing-intensity event simulation suggested in the experimental design.
  4. Interpretation error in utility ranking
    • The statement that more negative utility is somehow consistent with better performance under γ>1\gamma>1γ>1 is not convincing and may indicate confusion in evaluating benchmark comparisons.

Reliability

Strengths

  • Results are cleanly organized and reproducible.
  • Exp 1 diagnostics are internally consistent across multiple scenarios.
  • Boundary errors are zero; positivity and truncation checks are unambiguous.
  • All 27 tests pass, suggesting decent implementation discipline.
  • No failed MC paths, so numerical stability is acceptable.

Red flags

  • Exp 2’s primary quantitative validation fails at reported settings.
  • The written interpretation of the benchmark gap appears suspect.
  • Convergence is asserted but not fully tabulated in the textual metrics.

Overall confidence

  • High confidence in Exp 1 structural/numerical reproduction.
  • Medium-to-low confidence in Exp 2 verification claims until finer-resolution Monte Carlo evidence is shown.

Verdict

Final Decision: PARTIALLY REPRODUCED

Why:

  • The repository convincingly reproduces the paper’s core recursive HJB/ODE construction and positivity/truncation/admissibility claims across tested synthetic scenarios.
  • However, the Monte Carlo verification experiment does not successfully validate the candidate value function at the reported settings, and the computed strategy does not outperform the riskless benchmark in the saved metrics.
  • Since one major experiment is successful and the other is not conclusively supportive, the overall result is PARTIALLY REPRODUCED, not fully reproduced.

Detailed experiment summaries

Experiment 1 Summary

Expected: positive recursive solutions, inactive truncation, admissible controls, small residuals, stable across scenarios.
Observed: all checks pass in base, no-contagion, and no-regime settings.
Conclusion: Reproduced.

Experiment 2 Summary

Expected: J(π∗,c∗)J(\pi^*,c^*)J(π∗,c∗) should agree with candidate value; benchmarks should not outperform.
Observed: CI for verification error excludes zero; riskless benchmark outperforms reported “optimal” control.
Conclusion: Not fully reproduced / only partially supported.


Compact metric recap

Exp 1

Scenariomin φBC errorTruncation inactiveMax HJB residualControls admissible
base1.00000.0True9.63e-04True
no_contagion1.00000.0True9.63e-04True
no_regime1.00000.0True9.50e-04True

Exp 2

MetricValue
Candidate value VcandV_{cand}Vcand​-3.2758
MC estimate J^J_{\hat{}}J^​ optimal-3.3804
Verification error-0.1046
95% CI[-0.1569, -0.0524]
Riskless mean utility-3.2971
Optimality gap (opt - riskless)-0.0833
Failed paths0 / 200
dt0.05
paths200

If you want, I can also produce a shorter paper-style referee summary or a more technical discrepancy deep-dive focused only on Experiment 2.

Experiments

Recursive HJB/ODE Construction and Positivity Verification for Regime-Switching Credit Portfolio Control

Construct and numerically solve the paper’s recursive reduced HJB system, indexed by regime and default states, and verify the analytical claims of positivity, well-posed backward recursion across default states, truncation inactivity, and recovery of admissible feedback controls. This experiment is purely model-based and does not use empirical data.

Monte Carlo Verification of the Candidate Value Function and Suboptimality of Alternative Controls

Use forward simulation of the regime-switching, default-contagion wealth process under the computed feedback controls to verify the paper’s verification theorem numerically. Compare Monte Carlo estimates of expected utility under the derived optimal controls to the candidate value function, and test that alternative admissible strategies do not outperform the computed strategy within confidence intervals.

Original paperRun QCA on your paper
cand
​
Verification error = -0.1046; 95% CI = [-0.1569,-0.0524]
CI excludes zero
Not matched at reported resolution