LibraryWorkspaceDataHub

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

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

Multi-regime Markov-switching models with time-varying transition probabilities: An application to U.S. Treasury yields

Open repository
Aug 10, 2026
Statistical Finance

Verdict: Partially Reproduced

OverviewExperiments

Executive Summary

Status
Partially Reproduced
Confidence
Medium

Executive Summary

  • Status: PARTIALLY REPRODUCED
  • Confidence: MEDIUM
  • Key Insight: The repository successfully reproduces the paper’s main simulation-side qualitative findings for experiments 1 and 2: transition-dynamics coefficients are much harder to estimate than regime means/variances, one-step forecasts are robust to misspecification, filtered probabilities are more sensitive to correct TVTP specification, and GAS/Model III exhibits clear non-identifiability. However, the empirical experiment is not a valid reproduction of the paper because the Treasury data download failed and the code fell back to synthetic data.

Results Comparison

Experiment 1 — Monte Carlo reproduction

MetricPaper / ExpectedReproducedDiffStatus
Monte Carlo designR=50, n=10 startsR=20, n=5 startsSmaller studyMaterial deviation
Total convergenceRich TVTP should converge worse1120/1120 = 100%Better than expectedDifferent but not necessarily bad
DGP2 Model I A-RMSE, T=500
~0.423
0.654
+0.231
Materially worse
DGP2 Model I A-RMSE, T=1000~0.2890.262-0.027Within tolerance
DGP3 Model II A-RMSE, T=500~0.3110.315+0.004Match
DGP3 Model II A-RMSE, T=1000~0.1890.184-0.005Match
DGP5 Model I A-RMSE, T=500~1.2280.394-0.834Much better
DGP5 Model I A-RMSE, T=1000~0.3190.320+0.001Match
DGP7 Model I A-RMSE, T=500~1.550 excl. extremes2.187+0.637Worse
DGP7 Model I A-RMSE, T=1000~0.5493.535+2.986Much worse
DGP8 Model II A-RMSE, T=500~0.8151.365+0.550Worse
DGP8 Model II A-RMSE, T=1000~0.2981.968+1.670Much worse
DGP4 Model III A-RMSE, T=500~0.1000.698+0.598Supports non-ID, but numerically worse
DGP4 Model III A-RMSE, T=1000~0.1000.678+0.578Supports non-ID, but numerically worse
DGP9 Model III A-RMSE, T=500~0.0300.847+0.817Supports non-ID, but much worse
DGP9 Model III A-RMSE, T=1000~0.0300.657+0.627Supports non-ID, but much worse
One-step forecast differences across estimators“Differ little”Generally 1–2%MatchReproduced
Filtered-probability MSE under correct spec, K=2<~0.008 and improves with TYesMatchReproduced
Filtered-probability recovery, K=3Small and improves with TMixed; often elevatedWorsePartial

Experiment 2 — GAS identifiability diagnostic

MetricPaper / ExpectedReproducedDiffStatus
GAS collapses to Constant when A=0YesExact equality in LLNoneReproduced
DGP4 A-RMSE should not improve meaningfully with TYes0.842 → 0.602 in dedicated file; 0.698 → 0.678 in summarySmall improvement onlyReproduced qualitatively
DGP9 A-RMSE should not improve meaningfully with TYes0.943 → 0.577 in dedicated file; 0.847 → 0.657 in summaryStill far from 0Reproduced qualitatively
Hessian ill-conditioning / singularityYesDGP9 cond. no. = ∞, 7 negative eigenvaluesNoneReproduced
Flat likelihood ridge in A-spaceYesReported and figures savedQualitativeReproduced

Experiment 3 — Empirical Treasury application

MetricPaper / ExpectedReproducedDiffStatus
Data sourceLiu-Wu Treasury dataDownload failed; synthetic fallback usedFundamentalNot reproduced
1m best AICExogenousModelII best AIC (519.85 vs Constant 520.52)Same rankingWeakly aligned but invalid
12m best AICExogenousConstant best AIC (379.05)OppositeNot reproduced
36m best AICExogenousConstant best AIC (416.94)OppositeNot reproduced
72m best AICExogenousConstant best AIC (387.62)OppositeNot reproduced
TVP should not beat ConstantYesModelI worse by AIC/BIC everywhereMatchStructurally aligned
GAS unstable / collapseExpectedModelIII worst AIC everywhere; MaxAbsA often nontrivialPartial support onlyPartial
Empirical fit levelsPaper values near -9 to -192 depending maturityVery different LL/AIC/BICNot comparableNot reproduced

Summary

The repository partially matches the selected experiments.

  • Experiment 1: The major qualitative patterns are reproduced, but some important quantitative results—especially for K=3 TVTP coefficient recovery—are materially worse than expected.
  • Experiment 2: The GAS non-identifiability diagnosis is convincingly reproduced.
  • Experiment 3: The empirical reproduction is not valid, because the repository did not use the intended Treasury dataset.

Statistical & Economic Significance

Statistical significance

The repository does not provide the paper-style t-stats or p-values needed for a formal significance comparison. However, several diagnostics strongly indicate statistical issues:

  • Repeated warnings:
    • RuntimeWarning: invalid value encountered in sqrt
    • This likely arises during Hessian-based standard error extraction.
  • GAS Hessian diagnostics:
    • DGP4 condition number: 172.8
    • DGP9 condition number: ∞
    • DGP9 has 7 negative eigenvalues
  • These are strong signs of:
    • weak identification,
    • non-positive-definite Hessians,
    • unstable standard errors.

So while formal inference isn’t available, the repository gives enough evidence to conclude that Model III inference is unreliable, and some richer K=3 TVTP specifications likely also suffer from weak identification.

Economic significance

For simulation objectives, the economically relevant conclusions are mainly about:

  1. Forecast usefulness
  2. State filtering usefulness
  3. Model misspecification costs

On those dimensions:

  • Forecast robustness is economically reproduced.

    • Example DGP2:
      • Model I correct MAFE: 0.8003
      • Constant mis-specified MAFE: 0.8035
      • Difference: 0.0032, economically trivial.
    • Similar tiny differences hold in most cells.
  • Filtered probabilities are much more model-sensitive.

    • Example DGP2, T=500:
      • Correct Model I Filt MSE: 0.00138
      • Mis-specified Model III Filt MSE: 0.01009
      • Roughly 7.3x worse
    • This is economically meaningful if regime classification matters.

Thus the repository supports the paper’s substantive conclusion:

  • Short-horizon point forecasts are robust to TVTP misspecification
  • Latent state inference is not

Discrepancies

1. K=3 TVTP coefficient recovery is materially worse than expected

This is the main discrepancy in Experiment 1.

Examples:

  • DGP7 Model I
    • Expected A-RMSE: ~1.550 → 0.549
    • Reproduced: 2.187 → 3.535
  • DGP8 Model II
    • Expected A-RMSE: ~0.815 → 0.298
    • Reproduced: 1.365 → 1.968

These are not minor deviations. They suggest the implementation is struggling with parameter recovery in richer 3-regime TVTP settings.

Possible reasons:

  • Smaller Monte Carlo design than intended:
    • R=20 instead of 50
    • 5 starts instead of 10
  • Implementation ambiguity in K=3 off-diagonal ordering or rescaling
  • Different optimizer behavior vs authors’ package
  • Weak identification amplified by small replication count
  • Potentially different exogenous process generation for Model II DGPs

2. GAS pathology is reproduced, but numerically even worse than expected

The expected outcome was already poor identification, with A-RMSE roughly around the true A magnitude. Here the reproduced A-RMSE is much larger:

  • DGP4: ~0.68–0.84 vs expected ~0.10
  • DGP9: ~0.58–0.94 vs expected ~0.03

This still supports the same conclusion—non-identifiability—but suggests the implementation is not matching the original package quantitatively.

Possible reasons:

  • Under-specified score/Fisher scaling
  • Different fallback-to-constant threshold
  • Different initialization
  • Different optimizer path / multistart sampling

3. Empirical experiment is not a true reproduction

This is the most material issue overall.

The log explicitly states:

“Remote download failed ... using synthetic fallback data. Results will NOT match empirical paper findings.”

That invalidates direct comparison to the paper for Experiment 3.


Methodology Issues

Several deviations could explain the quantitative gaps:

  • Monte Carlo size reduced
    • Intended: R=50, n=10 starts
    • Actual: R=20, n=5 starts
  • Empirical data mismatch
    • Intended Treasury dataset unavailable
    • Synthetic fallback used instead
  • Possible Hessian / standard error instability
    • Warnings suggest inference may be unreliable
  • No DGP7 T=500 extreme-A exclusions
    • Paper expected exclusion handling for outliers
    • Repository reports 0 exclusions
  • Potential unresolved GAS implementation details
    • Score recursion and Fisher scaling were known ambiguities in the prompt

These are not cosmetic issues; they matter for exact quantitative reproduction.


Reliability

Stability

  • On the surface, optimization stability looks strong:
    • 1120/1120 converged
  • But this is somewhat suspicious given the problem difficulty and expected convergence challenges.

Red flags

  • Perfect convergence in all 56 estimation cells despite known non-identification and rich TVTP structures
  • Hessian warnings and singularity
  • K=3 A-RMSE sometimes worsens when T increases
  • Empirical data fallback invalidates substantive empirical claims

Confidence

  • High confidence in the broad structural conclusions for:
    • forecast robustness,
    • filtered-probability sensitivity,
    • GAS collapse/non-identifiability.
  • Lower confidence in exact quantitative recovery metrics, especially for:
    • K=3 TVTP parameter recovery,
    • empirical fit ranking.

Notable Findings by Experiment

Experiment 1

  • Means are generally recovered well in simpler settings.
  • TVTP coefficients are far harder to recover than emission parameters.
  • K=3 settings are substantially more fragile than K=2.
  • Correct specification matters more for filtering than forecasting.
  • GAS Model III performs poorly in filtering and coefficient recovery.

Experiment 2

  • Strongest reproduced result in the repository.
  • Constant model and Model III with A=0 give identical likelihoods:
    • DGP4 and DGP9 both match exactly.
  • Hessian diagnostics strongly support a flat likelihood ridge / singularity story.

Experiment 3

  • The repository still produced full fit tables and regime classification plots, but these are based on fallback synthetic data, so they should be treated as demonstration outputs, not reproduced empirical evidence.

Figures Found in Repository

GAS diagnostics

GAS A profile DGP4 T500

GAS A profile DGP9 T500

GAS contour A vs sigma2 DGP4 T500

GAS A distribution DGP4 T500

GAS A distribution DGP4 T1000

GAS A distribution DGP9 T500

GAS A distribution DGP9 T1000

Empirical regime classification plots

Regime classification 1m

Regime classification 12m

Regime classification 36m

Regime classification 72m

Note: these GitHub raw links assume branch name branch per the required formatting pattern, but the repository branch was not verified from the available files. More importantly, the empirical figures are based on synthetic fallback data rather than the intended Treasury series.


Verdict

Final Decision: PARTIALLY REPRODUCED

Why:

  • Experiment 1: Main qualitative findings reproduced, but several material quantitative discrepancies remain, especially in K=3 TVTP coefficient recovery.
  • Experiment 2: Clearly and convincingly reproduced.
  • Experiment 3: Not reproduced because the empirical dataset was not obtained and synthetic fallback data were used.

Overall, the repository reproduces the core structural story of the paper, but not the full paper-level quantitative and empirical results.

Experiments

Monte Carlo Reproduction of Markov-Switching TVTP Parameter Recovery, Misspecification Robustness, Forecasting, and Filtering

Reproduce the simulation study for univariate Gaussian Markov-switching models with constant and time-varying transition probabilities (TVTP), covering K=2 and K=3 regimes, multiple transition specifications, parameter recovery, coverage, convergence, one-step forecast robustness, filtered regime probability accuracy, and cross-model misspecification effects.

GAS Identifiability Diagnostic for Score-Driven Transition Probabilities in Markov-Switching Models

Independently reproduce and diagnose the non-identifiability of the score coefficient A in the GAS/score-driven transition probability specification, focusing on the likelihood ridge involving A and regime variances, the collapse of Model III to the constant-transition model when A approaches zero, and the resulting convergence instability.

Empirical Reproduction on U.S. Treasury Yield Changes: Constant vs TVP vs Exogenous vs Attempted GAS Markov-Switching Models

Reproduce the empirical application of univariate K=3 Gaussian Markov-switching models to monthly U.S. Treasury zero-coupon yield changes at selected maturities, comparing constant transitions, lagged-yield-change-driven TVTP, lagged-yield-level-driven TVTP, and attempted GAS specifications in terms of fit, convergence, and filtered regime interpretation.

Original paperRun QCA on your paper