LibraryWorkspaceDataHub

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

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

Cost-Sensitive Online Window Size Selection for Portfolio Management

Open repository
Sep 25, 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 core qualitative findings of the paper’s framework: the two-level cost-sensitive online aggregation is operational, expert weights adapt across regimes, Fixed Share is slightly better on switching-regret-style objectives, and theoretical regret bounds dominate realized regret. However, the historical numerical results are materially below the paper for DJIA and also below paper magnitudes for S&P 500, with clear data/sample/universe differences documented in the repo.

Repository Results Used

Files containing reported results:

  • results/RESULTS.md
  • results/exp1_summary.txt
  • results/exp2_summary.txt
  • results/exp3_summary.txt
  • results/exp4_summary.txt

Charts found in the repository:

Experiment 1 main synthetic results

Experiment 1 expanded expert-set results

Experiment 1 alternative shift results

Experiment 2 DJIA results

Experiment 3 S&P 500 results

Experiment 4 regret and bound validation


Results Comparison

Experiment 1 — Synthetic regime-shift replication

This is the strongest reproduction in the repository because the goal is mainly qualitative and the paper’s synthetic DGP is underspecified.

MetricPaper / ExpectedReproducedDiffStatus
Pre-shift optimal window6363 favored before shiftMatchOK
Post-shift optimal window55 favored after shiftMatchOK
Faster adaptation of Fixed Share vs HedgeExpectedReported as yesMatchOK
Tracking regret around switchFixed Share more favorableFS regret -9.9726 vs Hedge -9.9036Slight FS advantageOK
Realized regret below boundExpectedYesMatchOK
Main synthetic framework operationalExpectedYesMatchOK

Reproduced metrics

  • Hedge cumulative return: 2191.29%
  • Fixed Share cumulative return: 2045.09%
  • Hedge Sharpe: 5.5642
  • Fixed Share Sharpe: 5.5080
  • Hedge MDD: -39.59%
  • Fixed Share MDD: -44.48%
  • Final tracking regret: Hedge -9.9036, Fixed Share -9.9726

Summary:
This experiment appears successfully reproduced in the sense that the intended regime shift is captured, expert-weight migration occurs, and Fixed Share slightly outperforms Hedge on the switching-regret objective. Since the paper did not uniquely specify the DGP, exact return levels are not the key criterion. The important qualitative pattern is reproduced.


Experiment 2 — Historical DJIA replication

The repository includes an explicit paper comparison. The reproduced numbers are materially lower than the paper’s reported returns and materially worse on drawdown.

MetricPaperReproducedDiffStatus
Hedge cumulative return~41.70%19.03%-22.67 pct ptsMaterial
Fixed Share cumulative return~38.11%16.78%-21.33 pct ptsMaterial
Hedge max drawdown~-12.63%-23.35%-10.72 pct ptsMaterial
Fixed Share max drawdown~-12.93%-23.24%-10.31 pct ptsMaterial
126-day expert cumulative return~157.83%55.83%-102.00 pct ptsMaterial
Qualitative lower DD than many standalone expertsExpectedBroadly yesMatchOK

Additional reproduced DJIA metrics:

  • Hedge Sharpe: 0.3889
  • Fixed Share Sharpe: 0.3566
  • Best standalone expert: j=126, cumulative return 55.83%, Sharpe 0.6678
  • Final tracking regret: Hedge -4.2885, Fixed Share -4.3069

Summary:
The directional story is partly preserved, but the headline historical magnitudes are not reproduced. Both aggregate methods underperform the paper substantially in return and suffer larger drawdowns. Also, the aggregated methods are beaten by several standalone longer-window experts in this replication, especially j=126.


Experiment 3 — Historical S&P 500 replication

This is explicitly documented as a partial replication because the implementation uses a 51-stock subset + BIL rather than the paper’s 481-stock universe, and the sample ends at 2024-12-31 rather than the paper’s future-dated 2026-08-01 endpoint.

MetricPaperReproducedDiffStatus
Hedge cumulative return~578.70%152.74%-425.96 pct ptsMaterial
Fixed Share cumulative return~471.05%115.80%-355.25 pct ptsMaterial
Hedge max drawdown~-56.08%-31.00%+25.08 pct ptsMaterial
Fixed Share max drawdown~-57.81%-32.02%+25.79 pct ptsMaterial
126-day expert cumulative return~1881.75%1289.19%-592.56 pct ptsMaterial but closer qualitatively
Aggregate methods operational at scaleExpectedYes, on subsetPartial match
Longer-window preference / spread weightsExpectedReported qualitativelyMatch

Additional reproduced S&P metrics:

  • Hedge Sharpe: 0.7634
  • Fixed Share Sharpe: 0.6632
  • Best expert: j=126, cumulative return 1289.19%, Sharpe 1.4346
  • Final tracking regret: Hedge -9.4927, Fixed Share -9.6556

Summary:
This is clearly not a numerical reproduction of the paper’s full S&P result table, but it is a credible partial implementation replication. The two-level method runs successfully and preserves some qualitative ordering, yet the experimental design differs too much to claim full reproduction.


Experiment 4 — Regret benchmark and theoretical-bound validation

This experiment is primarily about internal correctness rather than matching a paper table of returns.

MetricPaper / ExpectedReproducedDiffStatus
DP comparator worksExpectedYesMatchOK
Regret monotonic in KExpectedYesMatchOK
Realized regret ≤ theoretical boundExpectedYes for all KMatchOK
Fixed Share slightly better than HedgeExpected under switchingYesMatchOK

Selected reported values:

KHedge RegretFixed Share RegretBound
0-0.4898-0.49047.5578
5-1.1721-1.172738.6786
10-1.6172-1.617851.4515

Summary:
This component appears successfully reproduced. Theoretical inequalities hold, comparator behavior is sensible, and Fixed Share retains a small advantage under switching budgets.


Statistical & Economic Significance

Statistical significance

The repository reports:

  • cumulative return
  • mean daily return
  • standard deviation
  • annualized Sharpe
  • max drawdown
  • regret metrics

But it does not report:

  • t-stats
  • p-values
  • confidence intervals
  • statistical tests comparing Hedge vs Fixed Share or vs experts

So strict statistical significance assessment is limited.

What can still be inferred

  • In Experiment 1, the Hedge vs Fixed Share performance gap in returns is modest, while regret differences are tiny but directionally favorable to Fixed Share. The evidence is more structural/qualitative than statistically demonstrated.
  • In Experiment 2, the Sharpe ratios of Hedge (0.39) and Fixed Share (0.36) are low-to-moderate and inferior to the best longer-window expert (0.67 for j=126). Economically, the aggregated methods are positive but not particularly compelling relative to simply picking the best long-window expert ex post.
  • In Experiment 3, both aggregate methods are economically meaningful with triple-digit cumulative gains, but again the best standalone expert dominates by a large margin. Hedge and Fixed Share are viable, but not return-optimal within the tested set.
  • In Experiment 4, the significance is not statistical but methodological: the DP regret machinery and bound validation appear internally consistent.

Economic significance

  • Synthetic (Exp 1): Very strong economic performance, but synthetic results should not be interpreted as investable evidence.
  • DJIA (Exp 2): Positive but moderate economic value. Aggregates improve drawdowns vs many experts, though not enough to match the paper’s much stronger claims.
  • S&P subset (Exp 3): Economically large gains, but driven less by the aggregation layer than by the long-window experts. The aggregate methods are practical but not dominant.
  • Regret analysis (Exp 4): Economically useful as a diagnostic, not as a direct performance result.

Discrepancies

1. Historical returns are materially below the paper

This is the main discrepancy.

  • DJIA: Hedge 19.03% vs paper ~41.70%; Fixed Share 16.78% vs ~38.11%
  • S&P: Hedge 152.74% vs ~578.70%; Fixed Share 115.80% vs ~471.05%

These gaps are far outside the suggested tolerance for returns.

Likely reasons

  • Data source mismatch: repository uses Yahoo Finance / yfinance; paper likely used cleaner institutional data or a different adjustment convention.
  • Universe mismatch: the S&P experiment uses 51 stocks instead of 481, which is a major deviation.
  • Sample truncation: S&P ends 2024-12-31, while the paper states 2026-08-01.
  • Warm-up/date-boundary differences: documented as possible causes in the repo.
  • Survivorship and ticker-cleaning choices: especially important in fixed-universe equity panels.
  • Potential implementation sensitivity: turnover-penalized mean-variance solutions can change materially with small data differences.

2. Drawdowns differ materially

  • DJIA drawdowns are about 10 percentage points worse than paper.
  • S&P drawdowns are actually much smaller in absolute magnitude than paper.

This mixed discrepancy suggests not just noise but substantially different return paths, likely from differing universe composition and sample periods.

3. Aggregates do not dominate the best experts in historical runs

In both DJIA and S&P subset:

  • the 126-day expert strongly outperforms the aggregate in cumulative return.
  • This is not necessarily inconsistent with the paper’s theory, since aggregation aims at adaptability and robustness, not ex post best-expert matching on raw return every time.
  • But it does weaken any claim that the aggregate methods reproduce the paper’s headline empirical edge.

4. Fixed Share advantage is small in realized historical performance

The paper’s narrative emphasizes faster adaptation under regime changes. In repo results:

  • Fixed Share usually has slightly better regret
  • but lower cumulative return than Hedge in Exp 1–3

So the expected theoretical advantage is visible more in regret metrics than in raw return metrics.


Methodology Issues

Only material issues are noted here.

Experiment 1

Methodology looks aligned with the requested blueprint:

  • synthetic regime shift imposed
  • expert sets correct
  • costs included
  • regret computed
  • robustness variants included
  • theoretical tuning and bounds reported

No major methodological red flag from the reported outputs.

Experiment 2

Mostly aligned, but replication fidelity is limited by:

  • use of yfinance
  • possible ticker-history and adjusted-close inconsistencies
  • no evidence here of baseline algorithm results (UP, EG, PAMR, CWMR, OLMAR) despite being part of the experiment description

This means the historical replication is incomplete relative to the full study design.

Experiment 3

More substantial deviations:

  • 51-stock subset instead of 481 stocks
  • partial sample ending before the paper’s stated end date

This should be treated as a partial reproduction by construction, not a failed exact reproduction.

Experiment 4

Methodology appears strong:

  • DP comparator
  • switch-budget sensitivity
  • bound validation
  • monotonicity checks

This is one of the most convincing components in the repository.


Reliability

Strengths

  • Results are summarized clearly and consistently across experiments.
  • The repo reports tuning quantities AT,CT,η∗,α∗A_T, C_T, \eta^*, \alpha^*AT​,CT​,η∗,α∗, which improves auditability.
  • Internal validation in Exp 4 is strong:
    • regret below theoretical bound
    • monotonicity in K
    • DP comparator behavior sensible
  • Performance metrics are computed in a standard way in src/metrics.py:
    • cumulative return
    • daily mean/std
    • annualized Sharpe
    • max drawdown

Limitations / red flags

  • No t-stats or significance tests.
  • No direct baseline results for UP/EG/PAMR/CWMR/OLMAR are shown in the discovered summaries, despite being part of the planned historical experiments.
  • Historical experiments depend on data-source and universe choices that differ materially from the paper.
  • Negative regret values are possible under the chosen definitions, but they should be interpreted carefully; they mean the aggregate beat the constrained comparator sequence on realized losses, not that theory is violated.

Overall confidence

  • High confidence in the implementation functioning and in the qualitative synthetic/regret conclusions.
  • Medium-to-low confidence in claims of historical numerical reproduction of the paper.

Verdict

Final Decision: PARTIALLY REPRODUCED

Why:

  • Experiment 1 (synthetic): reproduced well qualitatively.
  • Experiment 4 (regret/bounds): reproduced well and internally consistent.
  • Experiment 2 (DJIA): operational but numerically materially different from the paper.
  • Experiment 3 (S&P 500): only a partial replication due to major universe/sample deviations, so exact comparison is not possible.

Overall, the repository reproduces the core mechanism and qualitative findings of the study, but does not fully reproduce the paper’s historical headline numbers.


Experiment-by-Experiment Conclusion

Exp 1 — Synthetic regime shift

Status: FULLY REPRODUCED
Reason: Main adaptation pattern, weight migration, regret behavior, and Fixed Share’s switching advantage are all present.

Exp 2 — DJIA historical

Status: PARTIALLY REPRODUCED
Reason: Framework works and broad qualitative behavior survives, but returns and drawdowns differ materially from the paper.

Exp 3 — S&P 500 historical

Status: PARTIALLY REPRODUCED / INCONCLUSIVE numerically
Reason: Major deviations in universe size and sample endpoint prevent exact replication; implementation success is shown, but not full study reproduction.

Exp 4 — Regret benchmark / theory validation

Status: FULLY REPRODUCED
Reason: Regret DP and bound validation behave exactly as expected.


Concise Bottom Line

The repository is a strong methodological replication and a partial empirical replication. The paper’s central algorithmic story is reproduced; the paper’s historical return magnitudes are not.

Experiments

Synthetic regime-shift replication for cost-sensitive online window-size selection

Replicate the synthetic experiment from “Cost-Sensitive Online Window Size Selection for Portfolio Management” to test whether a two-level online aggregation of rolling-window portfolio experts adapts to a known regime shift, and whether Fixed Share adapts faster than Hedge under transaction costs. This experiment is fully self-contained and includes data generation requirements, optimization, online updates, regret evaluation, and plotting targets.

Historical DJIA replication of the two-level cost-sensitive portfolio framework

Replicate the historical DJIA empirical study from “Cost-Sensitive Online Window Size Selection for Portfolio Management” on a fixed constituent universe plus BIL, implementing daily rolling-window expert portfolios, online aggregation with Hedge and Fixed Share, transaction-cost-aware account updates, and comparative evaluation against standalone experts, benchmark index performance, and standard online portfolio selection baselines.

Historical S&P 500 replication of the two-level cost-sensitive portfolio framework

Replicate the historical S&P 500 empirical study from “Cost-Sensitive Online Window Size Selection for Portfolio Management” on a large fixed-stock universe plus BIL, using daily rolling-window mean-variance experts, transaction-cost-aware online aggregation with Hedge and Fixed Share, and comparative evaluation against standalone experts, benchmark index performance, and standard online portfolio selection baselines.

Regret-benchmark computation and theoretical-bound validation

Implement the custom regret-analysis components required by the paper: cost-sensitive tracking regret against the best expert sequence with at most K switches, stock-sequence regret against the best switching stock sequence, and theoretical bound computation using the paper’s complexity and tuning formulas. This experiment is independent of any single dataset and can be run on synthetic or historical loss panels once expert and aggregate losses are available.

Original paperRun QCA on your paper