LibraryWorkspaceDataHub

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

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

Dynamic Investment Strategies Through Market Classification and Volatility: A Machine Learning Approach (Li, Xie, Seco))

Open repository
Jun 10, 2026
Portfolio Management

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 data pipeline, volatility-state clustering, static optimization setup, and Bayesian transition-matrix behavior. However, the core downstream portfolio performance results in Experiment 4 differ materially from the paper’s reported outcomes, especially in ranking of strategies, magnitude of returns, and state-to-strategy assignments.

Results Comparison

Experiment 1 — Data Preparation and Market State Classification

MetricPaper / ExpectedReproducedDiffStatus
Asset Set 1 state-labeled days~4,7834,7830Match
Asset Set 2 state-labeled days~2,393 / sequence ~2,371 after warmup2,380smallAcceptable
Asset Set 1 states 1–3 shareMajority, likely >60%65.0%In lineMatch
Asset Set 2 states 1–3 share
Majority, likely >60%
35.8%
Material shortfall
Mismatch
Asset Set 1 centroid range~0.3–0.5% to >2%0.443% to 5.361%High upper tail but directionally rightMatch
Asset Set 2 centroid range~0.3–0.5% to >2%0.425% to 3.625%In lineMatch
High-volatility states sparseYesYes: states 9–10 are 1.5% in Set 1In lineMatch

Summary:
Experiment 1 is mostly reproduced well. Asset Set 1 strongly matches expectations. Asset Set 2 is weaker on the “low-volatility states dominate” criterion: only 35.8% of observations fall in states 1–3, versus the expected majority. That is a meaningful discrepancy for the regime distribution, though the volatility-centroid structure itself looks plausible.


Experiment 2 — Static Portfolio Weight Computation

Asset Set 1

MetricPaper / ExpectedReproducedDiffStatus
EW weights1/11 each0.0909 each0Match
MinVar defensive tiltLikely heavy PG/defensives, low high-vol namesPG 49.5%, LLY 12.0%, UPS 11.1%, NEE 11.1%, JPM 0%In lineMatch
MaxDiv diversifiedBalanced, some zeroes possibleBroadly diversified, LIN 0%In lineMatch
ERC lower weights for high-vol namesExpectedReasonably balanced, lower AMZN/JPMIn lineMatch

Asset Set 2

MetricPaper / ExpectedReproducedDiffStatus
EW weights20% each20% each0Match
MinVar BTC weightNear zero0.00000Match
MaxDiv BTC weightVery low0.0597SmallMatch
ERC BTC weightSmall, perhaps 2–5%0.0570Slightly high but closeAcceptable

Summary:
Experiment 2 appears successfully reproduced. The static portfolios behave economically as expected, especially the near-zero BTC allocation in MinVar and the low BTC allocation in MaxDiv/ERC.


Experiment 3 — Bayesian Markov Transition Matrix

MetricPaper / ExpectedReproducedDiffStatus
SLEM Set 1~0.95840.9563-0.0021Match
SLEM Set 2~0.92770.9263-0.0014Match
Relaxation time Set 1~24.0422.90-1.14Match
Relaxation time Set 2~13.8713.56-0.31Match
Mixing time Set 1~109lower 85.7, upper 145.2109 within boundMatch
Mixing time Set 2~62lower 49.1, upper 82.662 within boundMatch
max R-hat≤1.11.0002BetterMatch

Summary:
Experiment 3 is very well reproduced. The spectral properties and convergence diagnostics are extremely close to the expected results. This is one of the strongest parts of the reproduction.


Experiment 4 — Dynamic Portfolio Construction and Performance

Full-Period Metrics: Asset Set 1

MetricPaperReproducedDiffStatus
EW return37.79723.333-14.464Material
MinVar return53.5278.775-44.752Material
MaxDiv return41.48124.756-16.725Material
ERC return38.91019.464-19.446Material
Dynamic return49.09728.510-20.587Material
EW Sharpe219.361947.45+1728.09Material
MinVar Sharpe240.98854.93+613.95Material
MaxDiv Sharpe237.652141.15+1903.50Material
ERC Sharpe226.771693.79+1467.02Material
Dynamic Sharpe237.902579.39+2341.49Material

Full-Period Metrics: Asset Set 2

MetricPaperReproducedDiffStatus
EW return61.2227.779-53.443Material
MinVar return76.1940.851-75.343Material
MaxDiv return17.9681.743-16.225Material
ERC return65.2442.373-62.871Material
Dynamic return59.9276.544-53.383Material
EW Sharpe44.30687.90+643.60Material
MinVar Sharpe50.10144.81+94.71Material
MaxDiv Sharpe20.37267.55+247.18Material
ERC Sharpe46.39337.78+291.39Material
Dynamic Sharpe47.60609.37+561.77Material

Best Strategy per State Comparison

Asset Set 1

Expected paper pattern:

  • MinVar best in states 1,2,3,6,7
  • EW best in 4,8
  • ERC best in 5,10
  • MaxDiv best in 9

Reproduced:

  • MaxDiv best in 1,2,3,6
  • MinVar best in 4,5,9
  • EW best in 7,8,10

This is a major mismatch because the binary assignment vectors drive the dynamic strategy.

Asset Set 2

Expected paper pattern:

  • EW never best in any state

Reproduced:

  • EW best in states 1–8
  • MinVar best in 9–10

This is an even more severe discrepancy and directly contradicts one of the paper’s key findings.

Summary:
Experiment 4 is not reproduced in its paper-comparison sense. While the repository computes valid outputs, the actual results diverge sharply from the paper on:

  1. total return magnitudes,
  2. strategy ranking,
  3. Sharpe ratio levels,
  4. best-strategy-per-state assignments,
  5. dynamic portfolio composition logic outcomes.

Statistical & Economic Significance

Statistical significance

  • The repository does not appear to report t-stats, p-values, alpha, or drawdown metrics in the results files provided.
  • Therefore, strict statistical replication of the paper’s inference claims is incomplete.
  • For Experiment 3, convergence evidence is strong:
    • max R-hat = 1.0002 for both sets, well below the 1.1 threshold.
    • This gives high confidence in the Bayesian transition matrix estimates.

Economic significance

  • Experiments 1–3 are economically meaningful and coherent:
    • volatility states are sensible,
    • optimized weights are plausible,
    • transition persistence is strong and consistent with volatility clustering.
  • Experiment 4’s economic conclusions are much less aligned with the paper:
    • In Asset Set 1, the reproduced dynamic strategy is strongest by both return and Sharpe, whereas the paper suggests MinVar narrowly leads Sharpe and dynamic is second-best.
    • In Asset Set 2, reproduced returns are far lower than paper values across all strategies.
    • The reproduced Sharpe ratios are implausibly large relative to the paper because they use compound return divided by raw daily volatility, making the metric scale unusually high.

On the Sharpe ratio discrepancy

The repository explicitly uses the paper’s non-standard Sharpe definition: Sharpe=compound returndaily std\text{Sharpe} = \frac{\text{compound return}}{\text{daily std}}Sharpe=daily stdcompound return​ This can generate extremely large numbers over long horizons. Still, the reproduced Sharpe values are not just somewhat different — they are an order of magnitude larger than the paper in many cases. That suggests either:

  • the paper used a somewhat different denominator/sample,
  • the reproduced total returns differ materially,
  • or period alignment and dynamic-series construction differ.

Discrepancies

  • Dynamic strategy and state winner assignments differ materially from the paper.
    Asset Set 1 state winners are substantially different, and Asset Set 2 contradicts the paper’s claim that EW is never best.

  • Full-period compound returns are far below the paper, especially for Asset Set 2.
    Example: Asset Set 2 MinVar is 0.851 reproduced vs 76.194 in the paper, far outside any tolerance.

  • Sharpe ratios are dramatically larger than the paper.
    Since the same non-standard formula was supposedly intended, this likely reflects deeper differences in return construction, scaling, sample alignment, or interpretation of “total return.”

  • Asset Set 2 regime distribution differs from expectation.
    States 1–3 account for only 35.8%, not a majority, which may materially affect the transition matrix and downstream dynamic allocations.


Methodology Issues

A few likely explanations for the mismatches:

  1. Data differences

    • The repository likely uses current Yahoo Finance data via yfinance.
    • The paper may have used a different download date, adjusted price history, or a different treatment of BTC.
    • BTC data are especially sensitive to source handling and inner-join restrictions with equity calendars.
  2. Window alignment / off-by-one timing

    • The state-labeled day count suggests some alignment differences versus expected post-warmup counts.
    • In Experiment 4, the dynamic portfolio uses state sts_tst​ to weight returns on t+1t+1t+1. If the paper used same-day returns or different indexing, results could change materially.
  3. Interpretation of per-state cumulative return

    • The methodology compounds returns over all non-consecutive days belonging to a given state.
    • If the paper instead used average return, geometric mean, or consecutive state episodes, the winning strategy per state could change completely.
  4. Potential mismatch in full-period return definition

    • The expected paper values are extremely large, especially Asset Set 2.
    • If paper values were reported as percentages and interpreted here as decimal multipliers, or vice versa, that would distort comparison.
    • Example: 7619% corresponds to 76.19 in decimal return terms, which is what the experiment description assumed. The reproduced numbers are nowhere near that scale.
  5. Static optimization implementation differences

    • Although weights look economically reasonable, even small covariance-estimation or solver differences can shift long-run outcomes.
    • However, this likely explains only a small part of the gap; the biggest divergence seems downstream.

Reliability

Strengths

  • Results are internally consistent for Experiments 1–3.
  • K-means output looks stable and plausible.
  • Transition matrix diagnostics are excellent.
  • Static portfolio weights are feasible and economically intuitive.

Red flags

  • Experiment 4 diverges too much from the paper to be considered a clean reproduction.
  • The Asset Set 2 result that EW dominates most states is a major contradiction.
  • Reported Sharpe ratios are extremely high, even under the non-standard definition, suggesting careful scrutiny is needed.
  • No t-stats/p-values/alpha/drawdown outputs were found, so the performance evaluation is incomplete relative to a full quantitative replication standard.

Overall confidence

  • High confidence in the implementation of the preprocessing, clustering, and Markov-transition components.
  • Moderate-to-low confidence that the downstream dynamic portfolio exactly matches the paper’s intended construction.

Figures

Asset Set 1 rolling vol by state

Asset Set 1 centroids

Asset Set 2 rolling vol by state

Asset Set 2 centroids

Asset Set 1 transition matrix

Asset Set 2 transition matrix

Asset Set 1 portfolio growth

Asset Set 1 annual Sharpe

Asset Set 2 portfolio growth

Asset Set 2 annual Sharpe


Verdict

Final Decision: PARTIALLY REPRODUCED

Why:

  • Experiments 1–3 are reproduced well: dataset sizes, volatility-state structure, static weights, and Bayesian transition matrix metrics all align closely with expectations.
  • Experiment 4 is materially not reproduced: the central performance tables, state-wise best-strategy assignments, and full-period strategy rankings differ substantially from the paper, far beyond reasonable tolerance.
  • Since the portfolio-performance experiment is the most economically important downstream result, the overall study cannot be called fully reproduced.

Experiments

Data Preparation and Market State Classification via K-Means Clustering of Rolling Volatility

Download, align, and preprocess daily adjusted closing price data for both asset sets. Compute daily simple returns, equal-weighted portfolio returns, and 22-day rolling portfolio volatility. Apply K-means clustering (k=10) to the univariate rolling volatility series to identify 10 discrete market regimes ordered from lowest to highest volatility. This experiment is fully self-contained and produces the state label sequences used by all downstream experiments.

Static Portfolio Weight Computation: Equal Weight, Minimum Variance, Maximum Diversification, and Equal Risk Contribution

Compute the four static portfolio strategies (Equal Weight, Minimum Variance, Maximum Diversification, Equal Risk Contribution) for both asset sets using full-period sample covariance matrices. All weights are computed once using the complete dataset and remain fixed for the entire analysis period. This experiment produces the four sets of static weights and their corresponding daily return series for both asset sets.

Bayesian Markov Transition Matrix Construction with Dirichlet Priors and Gibbs Sampling

Construct the 10x10 Bayesian Markov transition matrix for both asset sets using the state label sequences from K-means clustering. Count observed state-to-state transitions, apply uniform Dirichlet priors (alphaij=1),alpha_ij=1),alphai​j=1), and compute posterior mean transition probabilities. Validate convergence using Gelman-Rubin diagnostics on Gibbs sampling chains. Compute the second-largest eigenvalue modulus (SLEM) and mixing time bounds for both asset sets.

Dynamic Portfolio Construction via Markov-Weighted Strategy Blending and Full Performance Evaluation

Using the state label sequences (exp_1), static strategy returns (exp_2), and Bayesian transition matrices (exp_3), construct the dynamic portfolio by identifying the best-performing static strategy in each market state, building binary assignment vectors, computing total return weights via matrix-vector products, and generating the dynamic portfolio daily return series. Evaluate all five strategies (EW, MinVar, MaxDiv, ERC, Dynamic) on annual and full-period performance metrics using a custom non-standard Sharpe ratio definition. Reproduce all performance tables and charts from the paper.

Original paperRun QCA on your paper