LibraryWorkspaceDataHub

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

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

Optimal Investment and Consumption in a Stochastic Factor Model

Open repository
Oct 5, 2026
Mathematical Finance+1

Verdict: Partially Reproduced

OverviewExperiments

Executive Summary

Status
Partially Reproduced
Confidence
Medium

Executive Summary

  • Status: PARTIALLY REPRODUCED
  • Confidence: MEDIUM
  • Key Insight: The repository strongly reproduces the paper’s core qualitative and theoretical claims—especially finite-state M-matrix well-posedness, uniqueness/positivity of HJB solutions, fixed-point convergence, first-order grid convergence, and the “mixed-sign/negative myopic rate yet globally well-posed” phenomenon. The main gaps are in the diffusion asymptotic numerics, where some tail targets are only approximate and a few solver residual/convergence flags are inconsistent, most notably for Vasicek.

Results Comparison

Because this is largely a theory/numerics reproduction rather than an empirical asset-pricing backtest, the relevant comparison metrics are solver residuals, positivity, M-matrix tests, convergence rates, domain-stabilization errors, and asymptotic target errors.

MetricPaper / ExpectedReproducedDiffStatus
Exp 1: Well-posed iff Aη,QA_{\eta,Q} is non-singular M-matrix
Aη,Q​
Yes
Yes, in all 3 synthetic cases
0
Match
Exp 1: Unique strictly positive finite-state HJB solution on well-posed casesYesYes; residuals 8.63×10−138.63\times10^{-13}8.63×10−13, multi-init agreement ∼10−11\sim10^{-11}∼10−11negligibleMatch
Exp 1: Mixed-sign ηi\eta_iηi​ can still be globally well-posedYesYes; one ηi<0\eta_i<0ηi​<0, but all M-matrix checks pass and HJB solves0Match
Exp 2: Fixed-point iteration converges for well-posed systemsYesYes across multiple ppp values and initializations0Match
Exp 2: Empirical contraction ratio $\lep$YesYes; e.g. 0.0997 vs 0.1, 0.3000 vs 0.3, 0.5 vs 0.5, 0.7000 vs 0.7
Exp 2: Ill-posed systems fail/divergeYesYes0Match
Exp 3: Diffusion bounded-domain solver valid, positive, stableYesYes; Q valid, Z-matrix true, positive solution, residual 1.41×10−111.41\times10^{-11}1.41×10−11negligibleMatch
Exp 4: Fixed-domain first-order convergence O(h)O(h)O(h)Rate ≈1\approx 1≈10.975, 0.986, 0.993within toleranceMatch
Exp 5: Interior stabilization under domain expansionYesYes; interior differences 5×10−155\times10^{-15}5×10−15–9×10−159\times10^{-15}9×10−15negligibleMatch
Exp 6: Kim-Omberg interior domain stabilizationYesYes; 1.5×10−61.5\times10^{-6}1.5×10−6 then 10−1410^{-14}10−14-levelnegligibleMatch
Exp 6: Kim-Omberg ξh→−2κ~≈−0.4005\xi_h \to -2\tilde\kappa \approx -0.4005ξh​→−2κ~≈−0.4005-0.4005-0.4110 / -0.4215error 2.6% to 5.3%Close
Exp 6: Kim-Omberg u′/u→0u'/u \to 0u′/u→0 in tails00.244 to 0.294 right tailmaterial finite-domain/tail-window gapPartial
Exp 7: Heston Feller conditionTrueTrue0Match
Exp 7: Heston ξh→−κ~≈−0.0664\xi_h \to -\tilde\kappa \approx -0.0664ξh​→−κ~≈−0.0664-0.0664-0.0712 / -0.0737error 7.3% to 11.0%Close
Exp 7: Heston domain stabilizationshrinking interior diffs0.0097 → 0.00445 → 0.00285converging but not tight yetPartial
Exp 7: Heston u′/u→0u'/u \to 0u′/u→000.47 to 0.64material gapPartial
Exp 8: Vasicek remains well-posed despite η<0\eta<0η<0 regionYesYes; η<0\eta<0η<0 on ~49.8% of nodes, positive solution obtained0Match qualitatively
Exp 8: Vasicek left-tail u′/u→q≈0.7752u'/u \to q\approx0.7752u′/u→q≈0.77520.77520.785 / 0.7845+1.2% / +0.9%Match
Exp 8: Vasicek right-tail ξh→−κ=−0.43\xi_h \to -\kappa=-0.43ξh​→−κ=−0.43-0.43-0.474 / -0.558error 10.3% to 29.7%Weak / Partial
Exp 8: Vasicek right-tail hedge near zero01.4×10−51.4\times10^{-5}1.4×10−5 to 2.5×10−52.5\times10^{-5}2.5×10−5negligibleMatch
Exp 9: Diagnostic identities π^=πm+πh\hat\pi=\pi_m+\pi_hπ^=πm​+πh​, u=η+ξhu=\eta+\xi_hu=η+ξh​ExactExact to machine precisionnegligibleMatch

Summary:

The results reproduce the main findings of the paper well at the structural level:

  • finite-state well-posedness equivalence,
  • unique positive HJB solution under M-matrix condition,
  • convergence of the fixed-point scheme,
  • bounded-domain diffusion solver correctness,
  • first-order spatial accuracy,
  • domain-expansion stabilization,
  • and, crucially, global well-posedness despite local/myopic ill-posedness.

However, the tail asymptotic diffusion diagnostics are only partially matched, especially for:

  • Kim-Omberg and Heston u′/u→0u'/u \to 0u′/u→0,
  • Heston domain expansion still not fully settled by the largest domain shown,
  • Vasicek right-tail ξh→−κ\xi_h\to -\kappaξh​→−κ,
  • and some solver metadata show tension between “converged” and residual-based criteria.

Statistical & Economic Significance

This repository is not an empirical return-based study, so statistical significance in the usual sense (Sharpe, alpha, t-stats) is not applicable. The relevant significance here is numerical/theoretical significance and economic interpretability.

Numerical significance

  • Finite-state HJB residuals are extremely small: around 10−1210^{-12}10−12.
  • Diffusion bounded-domain residuals for exp_3 and exp_6/7 are also very small:
    • exp_3: 1.41×10−111.41\times10^{-11}1.41×10−11
    • exp_6: 2.26×10−122.26\times10^{-12}2.26×10−12
    • exp_7: 4.13×10−114.13\times10^{-11}4.13×10−11
  • Exp_4 convergence rates are almost exactly first-order: 0.975, 0.986, 0.993.
  • Identity checks in exp_6–9 are at machine precision:
    • ∥π^−(πm+πh)∥∞=0\|\hat\pi-(\pi_m+\pi_h)\|_\infty = 0∥π^−(πm​+π

These are strong indicators that the implementations are numerically coherent.

Economic significance

The economically important claims are mostly reproduced:

  • Mixed-sign / negative myopic consumption rates do not imply global ill-posedness:
    • finite-state case: reproduced cleanly;
    • Vasicek diffusion case: ~50% of nodes have η<0\eta<0η<0, but a positive HJB solution is still obtained.
  • Portfolio decomposition behaves as expected:
    • exact identity recovery in all diffusion diagnostics;
    • Vasicek hedging demand remains numerically tiny, consistent with near-zero correlation.
  • Asymptotically myopic behavior is directionally supported:
    • u/ηu/\etau/η is generally below but approaching 1 in tails;
    • hedge terms tend to be small in tails;
    • but some derivative-based asymptotics are not yet numerically close enough to zero/target constants to claim full quantitative reproduction.

So economically, the main intuition of the paper survives, but some tail quantitative claims remain only approximate.


Discrepancies

1. Diffusion tail asymptotics are only approximate, especially for u′/u→0u'/u\to 0u′/u→0

This is the main discrepancy.

  • Kim-Omberg
    • right-tail u′/uu'/uu′/u: 0.244 (exp_6) or 0.294 (exp_9), target 0
  • Heston
    • right-tail u′/uu'/uu′/u: 0.4737–0.6432, target 0
  • Vasicek
    • right-tail u′/uu'/uu′/u: 0.0632–0.1118, target 0

These are materially nonzero. The repository itself notes these are consistent with O(1/y)O(1/y)O(1/y) decay and limited tail windows. That explanation is plausible: if the domain is not far enough into the tail, “approaching zero” need not look numerically small.

2. Vasicek right-tail ξh\xi_hξh​ is not very close to target −κ=−0.43-\kappa=-0.43−κ=−0.43

  • exp_8: estimate -0.4743, error 0.0443 (~10%)
  • exp_9: estimate -0.5578, error 0.1278 (~30%)

That second result is materially off. The qualitative sign/direction is correct, but quantitative convergence is weak. This likely reflects:

  • insufficiently large right-tail domain,
  • coarse grid h=0.05h=0.05h=0.05,
  • tail window still contaminated by reflecting boundary effects,
  • or solver stopping before residual-based convergence.

3. Solver convergence flags and residuals are inconsistent in some diffusion runs

Most concerning:

  • Exp 8 final residual = 6.49, with:
    • converged: true
    • converged_log: true
    • converged_res: false

That is a red flag. A residual of 6.49 is far too large to accept as a fully solved HJB system, even if the log-increment criterion passed.
Similarly in exp_9:

  • Heston residual 4.13×10−114.13\times10^{-11}4.13×10−11 but converged_res: false
  • Vasicek residual 2.71×10−42.71\times10^{-4}2.71×10−4 and converged_res: false

This suggests either:

  • convergence thresholds are coded inconsistently,
  • the legacy converged flag is too permissive,
  • or results files mix solver states from different runs/settings.

4. Heston domain stabilization is still incomplete at largest domain reported

Interior differences:

  • 0.00970 → 0.00445 → 0.00285

This is improving, but not yet negligible. So the claim that expanding-domain solutions fully stabilize is only partly validated for Heston at the tested scale.


Methodology Issues

Only material issues:

  1. Tail-window choice appears too close to reflecting boundaries or not far enough into asymptotia

    • This can bias u′/uu'/uu′/u, u/ηu/\etau/η, and ξh\xi_hξh​ estimates.
    • Especially relevant for Heston, where the “right tail” around y≈2y\approx 2y≈2 is not very large.
  2. Grid resolution varies and is coarser than target in several final reproductions

    • User spec often pointed to h=10−4h=10^{-4}h=10−4 as target when feasible.
    • Actual reported grids:
      • Kim-Omberg: h=0.05h=0.05h=0.05
      • Heston: h=0.002h=0.002h
  3. Convergence acceptance may rely too heavily on log-increment instead of residual

    • This is acceptable for warm starts or near-flat transforms only if residual is also small.
    • Exp 8 clearly violates this principle.
  4. Exp 3’s “1 iteration (hot start)” and constant uuu

    • Not a failure, but likely a very easy or preconditioned synthetic case rather than a stringent validation. It demonstrates correctness more than robustness.

Reliability

Strengths

  • Strong internal consistency in finite-state experiments.
  • Multiple equivalent M-matrix criteria agree exactly.
  • Fixed-point uniqueness is well supported via multiple initializations.
  • Contraction-rate validation is particularly clean.
  • First-order convergence evidence is convincing.
  • Decomposition identities are exact up to floating-point precision.

Weaknesses / red flags

  • Some diffusion asymptotic claims are only directionally matched.
  • Heston still shows meaningful domain sensitivity at the largest tested domain.
  • Vasicek has a serious residual/convergence inconsistency.
  • converged, converged_log, and converged_res flags are not always aligned, which lowers confidence in “final” diffusion solves.

Overall confidence

  • High confidence for experiments 1–5
  • Medium confidence for Kim-Omberg
  • Medium-to-low confidence for Heston/Vasicek asymptotic constants as final quantitative reproductions

Embedded Repository Figures

Exp 1 M-matrix diagnostics

Exp 2 convergence

Exp 3 solver output

Exp 4 convergence

Exp 5 domain expansion

Exp 6 diagnostics

Exp 6 Kim-Omberg

Exp 7 diagnostics

Exp 7 Heston

Exp 8 diagnostics

Exp 8 Vasicek

Exp 9 diagnostics Heston

Exp 9 diagnostics Kim-Omberg

Exp 9 diagnostics Vasicek


Experiment-by-Experiment Analysis

Exp 1 — Finite-State Well-Posedness and Matrix HJB

This is the cleanest reproduction.

  • All-positive η\etaη:

    • M-matrix checks all pass.
    • HJB converges in 34 iterations.
    • Residual: 8.63×10−138.63\times10^{-13}8.63×10−13
    • Multi-init max difference: 1.02×10−111.02\times10^{-11}1.02×10−11
  • Mixed-sign η\etaη:

    • η=[−0.01,0.15,0.12]\eta = [-0.01, 0.15, 0.12]η=[−0.01,0.15,0.12]
    • Still M-matrix by all criteria.
    • HJB converges in 37 iterations.
    • Residual: 8.63×10−138.63\times10^{-13}8.63×1
  • Ill-posed case:

    • One eigenvalue real part: -0.3333
    • inverse positivity fails, principal minors fail
    • correctly classified as not M-matrix

Assessment: This fully supports the paper’s finite-state theorem and its novel mixed-sign insight.
Reproduction status: Fully reproduced


Exp 2 — Finite-State Fixed-Point Convergence and Geometric Rate

This is also very strong.

Examples from the well-posed case:

  • p=0.1p=0.1p=0.1: contraction 0.0997 vs bound 0.1
  • p=0.3p=0.3p=0.3: contraction 0.3000 vs bound 0.3
  • p=0.5p=0.5p=0.5: contraction 0.5000
  • p=0.7p=0.7p=0.7: contraction 0.7000

Residuals decay geometrically and multiple initializations converge to the same fixed point with differences around 10−1010^{-10}10−10 to 10−910^{-9}10−9.

Ill-posed systems fail as expected.

Assessment: Excellent algorithmic validation of the theoretical contraction claim.
Reproduction status: Fully reproduced


Exp 3 — Diffusion HJB Solver on Bounded Domains

Key metrics:

  • domain [−2,2][-2,2][−2,2], h=0.01h=0.01h=0.01, 401 nodes
  • R^=1.455\hat R=1.455R^=1.455, p=0.3127p=0.3127p=0.3127
  • Q-matrix valid: True
  • AhA_hAh​ Z-matrix: True
  • positivity: True
  • residual: 1.41×10−111.41\times10^{-11}1.41×10−11

The solution appears essentially constant (umin⁡≈umax⁡≈0.0611111u_{\min}\approx u_{\max}\approx 0.0611111umin​≈umax​≈0.0611111), implying this was a benign validation case.

Assessment: Good proof-of-concept for the numerical pipeline, though not a difficult benchmark.
Reproduction status: Fully reproduced


Exp 4 — Grid-Convergence Test

Errors:

  • 0.5422
  • 0.2759
  • 0.1393
  • 0.0700

Rates:

  • 0.975
  • 0.986
  • 0.993

This is textbook first-order convergence.

Assessment: Strong evidence the upwind Markov-chain discretization achieves the claimed O(h)O(h)O(h) accuracy on fixed domains.
Reproduction status: Fully reproduced


Exp 5 — Domain Expansion

Interior differences under expanding domains are on the order of 10−1510^{-15}10−15.

Assessment: Very strong confirmation of interior stabilization for the tested generic model.
Reproduction status: Fully reproduced


Exp 6 — Kim-Omberg

Strengths:

  • domain stabilization is excellent after m≥5m\ge 5m≥5
  • final residual: 2.26×10−122.26\times10^{-12}2.26×10−12
  • ξh\xi_hξh​ right-tail target matched closely:
    • estimate -0.4110
    • target -0.4005
    • error 2.6%
  • identities exact

Weakness:

  • u′/uu'/uu′/u in tails remains materially nonzero (0.244–0.294), so the asymptotic limit 0 is only directionally visible.

Assessment: Core economic decomposition and asymptotic constant are reproduced fairly well; tail derivative limit is not fully numerically realized.
Reproduction status: Partially reproduced, but close to full.


Exp 7 — Heston

Strengths:

  • Feller condition satisfied
  • positive solution obtained
  • residual small: 4.13×10−114.13\times10^{-11}4.13×10−11
  • ξh\xi_hξh​ tail constant reasonably close:
    • estimate -0.0712 to -0.0737
    • target -0.0664
  • identities exact

Weaknesses:

  • domain stabilization still visibly incomplete
  • right-tail u′/uu'/uu′/u is still large (0.47–0.64)
  • u/ηu/\etau/η remains meaningfully below 1 (0.88–0.91)

Assessment: Qualitative reproduction is there, but quantitative asymptotic reproduction is not yet mature.
Reproduction status: Partially reproduced


Exp 8 — Vasicek

Strengths:

  • important qualitative phenomenon reproduced:
    • η<0\eta<0η<0 on about 49.8% of nodes
    • yet positive HJB solution still found
  • left-tail theory reproduced well:
    • u′/uu'/uu′/u: 0.785 or 0.7845
    • target 0.7752
    • error about 1%
  • hedge term remains tiny as predicted due to near-zero ρ\rhoρ

Weaknesses:

  • right-tail ξh\xi_hξh​ constant only loosely matched
  • final solver residual in exp_8 is 6.49, which is unacceptable as a “solved” HJB state
  • convergence flag inconsistency undermines confidence

Assessment: The headline qualitative result is reproduced; quantitative final-solve quality is questionable.
Reproduction status: Partially reproduced


Exp 9 — Asymptotic Diagnostics

This post-processing experiment confirms:

  • decomposition identities exactly,
  • Kim-Omberg and Heston ξh\xi_hξh​ are reasonably close to targets,
  • Vasicek left-tail derivative target is very accurate.

But it also reveals the same limitations:

  • derivative tails are not yet close to zero for KO/Heston,
  • Vasicek right-tail ξh\xi_hξh​ is materially off.

Assessment: Good consistency check, but it confirms the diffusion asymptotic reproduction remains incomplete.
Reproduction status: Partially reproduced


Verdict

Final Decision: PARTIALLY REPRODUCED

Why:

  • The repository successfully reproduces the paper’s central theoretical and numerical architecture:
    • M-matrix well-posedness criterion,
    • existence/uniqueness of positive finite-state HJB solution,
    • mixed-sign/negative myopic rates with global well-posedness,
    • contraction and uniqueness of the fixed-point solver,
    • first-order grid convergence,
    • and domain-expansion logic.
  • The diffusion model replications capture the right qualitative behavior and many quantitative targets approximately, especially for Kim-Omberg and parts of Heston/Vasicek.
  • But the reproduction is not fully complete quantitatively because:
    • several asymptotic tail limits remain materially off,
    • Heston is not fully stabilized on the tested domains,
    • and at least one key Vasicek solve has a large residual despite being flagged as converged.

If you want, I can also produce a shorter per-experiment scorecard or a strict pass/fail table for exp_1 through exp_9.

Experiments

Finite-State Well-Posedness and Matrix HJB Reproduction

Reproduce the finite-state theoretical results for infinite-horizon CRRA investment-consumption with regime switching by testing the M-matrix well-posedness criterion, existence and uniqueness of the positive HJB solution, and the possibility of overall well-posedness even when some statewise myopic rates are non-positive.

Finite-State Fixed-Point Convergence and Geometric Rate Validation

Independently validate the nonlinear fixed-point algorithm for solving the finite-state matrix HJB equation A x = x^p, focusing on convergence, positivity preservation, dependence on initialization, and empirical confirmation of geometric contraction in the log metric when p is in (-1,1).

Diffusion HJB Solver on Bounded Domains via Upwind Markov-Chain Approximation

Build and validate the deterministic numerical pipeline for one-dimensional diffusion-state stochastic factor models on bounded reflected domains using the constant-correlation distortion transform, upwind discretization, and discrete nonlinear HJB solve.

Fixed-Domain Grid-Convergence Test for the Discrete Diffusion HJB Solver

Test numerical convergence of the bounded-domain upwind discretization for the diffusion HJB problem on a fixed reflected domain, with emphasis on the first-order spatial accuracy claim ||f - x_h||_infty = O(h) for the discrete approximation.

Domain-Expansion Approximation of the Global Diffusion Solution

Test the numerical hypothesis that solving the reflected bounded-domain diffusion HJB on an expanding family of domains approximates the global infinite-domain solution in the interior, and quantify stabilization of the recovered policy functions as the domain grows.

Kim-Omberg Model Reproduction and Economic Decomposition

Reproduce the paper’s numerical diffusion results for the Kim-Omberg model, including bounded-domain solutions, domain-stabilization behavior, asymptotically myopic consumption, and decomposition of the optimal risky allocation into myopic and intertemporal hedging components.

Heston Model Reproduction with Incomplete Infinite-Horizon Consumption

Reproduce the paper’s numerical verification for the Heston stochastic-volatility model with consumption in incomplete markets, emphasizing bounded-domain approximation on [1/m, sqrt(m)], positivity of the HJB solution, asymptotically myopic behavior, and the first full verification claim highlighted by the paper.

Vasicek Model Reproduction with Partially Negative Myopic Consumption Region

Reproduce the paper’s Vasicek numerical example, focusing on the case where the myopic consumption rate can become negative on part of the state space while the full stochastic-factor control problem remains well-posed and the optimal diffusion solution exists numerically.

Asymptotic and Economic-Diagnostics Validation Across Diffusion Models

Run a standalone diagnostics experiment focused on asymptotic behavior and economic decomposition of already solved diffusion policy functions, validating the asymptotically myopic regime and the decomposition into myopic and intertemporal components without depending on a specific model beyond requiring solved policy grids.

Original paperRun QCA on your paper
h
​
)
∥∞​
=
0
  • ∥u−(η+ξh)∥∞≈10−16\|u-(\eta+\xi_h)\|_\infty \approx 10^{-16}∥u−(η+ξh​)∥∞​≈10−16
  • =
    0.002
  • Vasicek: h=0.05h=0.05h=0.05
  • These are reasonable for pilot numerics but may be too coarse for precise asymptotic constants.
  • 0
    −13
  • Multi-init max difference: 7.73×10−127.73\times10^{-12}7.73×10−12