LibraryWorkspaceDataHub

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

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

skfolio: Portfolio Optimization in Python

Open repository
Apr 22, 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 workflow structure and qualitative behavior of all three selected experiments using bundled skfolio datasets and documented constraints. However, because the paper targets here are largely qualitative and no published benchmark table is available in-repo, the reproduction is strongest on methodological fidelity and directional findings, not exact metric matching.

Results Comparison

Experiment 1 — Minimum-Variance Efficient Frontier Reproduction on Bundled S&P 500 Prices

MetricPaper / ExpectedReproducedDiffStatus
Bundled dataset usedYesYes0Match
Chronological 80/20 splitYesYes0Match
Frontier size1001000
Match
AAPL max weight20%6.87% max observedWithin capMatch
L2 regularization0.010.010Match
Full-investment constraintRequiredSum weights = 1.0000000Match
Long-only behaviorDefault expectedAll weights non-negative0Match
Train frontier dominates test frontier qualitativelyExpected mainly via in-sample optimism / out-of-sample deteriorationRisk deterioration reproduced; return/Sharpe dominance not reproducedMixedPartial match
Train annualized mean rangeNot numerically specified18.20% to 20.03%N/AInformative only
Test annualized mean rangeNot numerically specified19.10% to 20.30%N/AInformative only
Train annualized std rangeNot numerically specified18.52% to 19.42%N/AInformative only
Test annualized std rangeNot numerically specified18.85% to 19.66%N/AInformative only
Avg annualized SharpeNot numerically specifiedTrain 1.0088, Test 1.0241N/AInformative only

Summary:
Experiment 1 is a successful qualitative reproduction. The implementation follows the requested setup exactly: bundled S&P 500 data, prices_to_returns, chronological split, 100-portfolio frontier, AAPL cap, and L2 penalty. The core paper message—out-of-sample deterioration due to overfitting—is reproduced via higher test volatility for the same fitted portfolios. What does not reproduce is a broad in-sample dominance in mean return or Sharpe; test-period returns are actually slightly stronger, likely due to the favorable 2016–2022 evaluation regime.


Experiment 2 — Factor-Model Prior Integration within MeanRisk

MetricPaper / ExpectedReproducedDiffStatus
Bundled asset + factor datasets usedYesYes0Match
Date alignment between assets and factorsRequiredYes0Match
Chronological 80/20 splitYesYes0Match
Factor prior typeFactorModelFactorModel0Match
Loading estimatorLoadingMatrixRegression(Ridge(alpha=0.1))Yes0Match
MeanRisk with variance riskYesYes0Match
AAPL max weight20%4.91%Within capMatch
L2 regularization0.010.010Match
Successful fitExpectedYes0Match
Loading matrix shapeExpected asset × factor20 × 50Match
Positive-definite prior covarianceExpected coherent priorDeterminant sign +10Match
Train annualized meanNot specified16.28%N/AInformative only
Test annualized meanNot specified17.09%N/AInformative only
Train annualized stdNot specified17.88%N/AInformative only
Test annualized stdNot specified16.66%N/AInformative only
Train annualized SharpeNot specified0.910N/AInformative only
Test annualized SharpeNot specified1.026N/AInformative only

Summary:
Experiment 2 appears fully reproduced at the workflow level. The main claim here is not a published performance uplift but that a factor-model prior can be modularly integrated into a scikit-learn-style MeanRisk optimization workflow. The repository demonstrates exactly that, with correct Ridge loading estimation, valid prior diagnostics, successful optimization, and all constraints satisfied.


Experiment 3 — Walk-Forward Stacking Optimization versus Equal Weight Benchmark

MetricPaper / ExpectedReproducedDiffStatus
Base estimatorsInverseVolatility, MeanRisk(CVaR), HRPYes0Match
Final estimatorMeanRisk(CVaR)Yes0Match
BenchmarkEqualWeightedYes0Match
WalkForward train size2522520Match
WalkForward test size60600Match
Time ordering / no leakageRequiredValidated0Match
Number of foldsAt least one / realistic walk-forward23N/AMatch
Stacking vs EW comparative summaryExpectedProduced0Match
Annualized meanNot specifiedStacking 11.38%, EW 19.43%N/AInformative only
Annualized stdNot specifiedStacking 17.71%, EW 20.42%N/AInformative only
Annualized SharpeNot specifiedStacking 0.642, EW 0.952N/AInformative only
Max drawdownNot specifiedStacking 29.91%, EW 34.70%N/AInformative only
CVaR 95%Not specifiedStacking 2.69%, EW 3.10%N/AInformative only

Summary:
Experiment 3 is also methodologically reproduced, but the resulting performance pattern is mixed. The stacking model delivers lower volatility, lower CVaR, and lower max drawdown than equal weight, consistent with a risk-control interpretation. But it underperforms materially on return and Sharpe in the tested bull-market window. Since the paper’s expected outcome emphasizes feasibility of walk-forward ensemble evaluation rather than a specific outperformance target, this still counts as a successful execution with only partial support for any implied superiority of stacking.


Statistical & Economic Significance

Statistical significance

  • The repository does not report t-stats, p-values, confidence intervals, or hypothesis tests for the main comparisons.
  • Therefore, strict statistical replication versus the paper is not possible from the stored results alone.
  • This is especially important for:
    • Exp. 1 train-vs-test frontier comparison
    • Exp. 3 stacking-vs-equal-weight comparison

Assessment:

  • Statistical significance: Inconclusive
  • Any claims should remain descriptive, not inferential.

Economic significance

Despite the lack of hypothesis tests, the effect sizes are economically meaningful:

Experiment 1

  • Test frontier volatility exceeds train frontier volatility by about 0.33% to 0.24% annualized across range endpoints.
  • That is directionally meaningful for a minimum-variance study because the core claim concerns risk underestimation out of sample.

Experiment 2

  • Sharpe improves from 0.910 to 1.026 out of sample, with volatility dropping from 17.88% to 16.66%.
  • Economically, this indicates the fitted factor-prior solution is at least coherent and not obviously unstable.
  • But without a no-prior benchmark in the stored outputs, it does not prove incremental economic value from the prior.

Experiment 3

Relative to equal weight, stacking shows:

  • -8.05 percentage points annualized mean return
  • -2.71 percentage points annualized volatility
  • -4.79 percentage points max drawdown
  • -0.41 percentage points CVaR(95)

This is an economically meaningful tradeoff:

  • better tail/risk control,
  • worse raw return and worse Sharpe.

So the ensemble is not economically dominant in this sample; it is only attractive for a risk-sensitive investor.


Discrepancies

1. Experiment 1 did not show full train frontier dominance

  • Expected qualitative behavior was that train frontier generally dominates test frontier.
  • Actual result:
    • Risk dominance reproduced: test volatility is higher.
    • Mean and Sharpe dominance not reproduced: test means and average Sharpe are slightly higher.

Explanation:
The test window begins around 2016-05-20 and runs through 2022-12-28, which contains a strong bull-market component. That regime can lift realized returns enough to offset some of the expected out-of-sample degradation. This is a market-regime effect, not a methodology failure.


2. Experiment 3 stacking underperformed equal weight on return and Sharpe

  • If one loosely expected stacking to outperform, that did not occur here.
  • Stacking’s annualized Sharpe (0.642) is materially below equal weight (0.952), a gap of 0.31, which exceeds the prompt’s ±0.2 Sharpe tolerance if this had been a direct paper metric target.

Explanation:
Likely drivers:

  • Bull-market sample bias favors equal weight’s equity beta.
  • The stacking architecture uses CVaR-oriented components, which may sacrifice upside for downside control.
  • The experiment used X_test from the 80/20 split as the walk-forward sample, which the repository itself flags as an ambiguity in the paper blueprint. This methodological interpretation could materially influence results.

3. No published benchmark table available for exact numerical comparison

  • The repository stores reproduced outputs, but not an explicit table of original paper metrics for these experiments.
  • As a result, the analysis can only compare against:
    • stated expected outcomes,
    • methodology,
    • qualitative claims.

Explanation:
This limits verdict certainty. The reproduction is strong on structure, weaker on exact numerical validation.


Methodology Issues

Experiment 1

No major methodology issue found.

  • Bundled data used exactly
  • return conversion preserved
  • chronological 80/20 split
  • 100 portfolios generated
  • constraints validated

Experiment 2

No major methodology issue found.

  • Asset and factor alignment documented
  • correct factor prior configuration used
  • fit(X, y) workflow executed as intended
  • diagnostics support a valid prior

Experiment 3

One relevant ambiguity:

  • The sample used is explicitly “X_test (80/20 split test portion)”
  • The user’s experiment note says the paper may be ambiguous on whether walk-forward should use the full return matrix or a holdout subset.

This is not necessarily incorrect, but it is a nontrivial interpretation choice that could affect performance. It slightly reduces confidence in direct comparability.


Reliability

Strengths

  • Results are well documented in results/RESULTS.md and structured machine-readable files.
  • Constraint checks are explicit.
  • Dataset metadata are recorded.
  • No missing-data red flags appear.
  • Environment is frozen enough to note:
    • Python 3.12.13
    • skfolio 0.6.0
    • CLARABEL solver
    • 87/87 tests passed

Red flags / limitations

  • No inferential statistics.
  • No exact paper benchmark table included.
  • Exp. 3 contains a sample-selection ambiguity.
  • Exp. 1 and Exp. 3 results are sensitive to evaluation regime.

Stability assessment

  • Exp. 1: stable enough for qualitative conclusion.
  • Exp. 2: highly reliable as an operational reproduction.
  • Exp. 3: reliable as an execution demo, less reliable as a performance claim.

Verdict

Final Decision: PARTIALLY REPRODUCED

Why:
The repository convincingly reproduces the implementation, constraints, data workflow, and qualitative claims of the selected experiments. Experiment 2 is essentially fully reproduced operationally; Experiment 1 reproduces the key overfitting/risk-deterioration message; Experiment 3 reproduces the walk-forward stacking setup but not any broad performance superiority over equal weight. Because the paper-comparison layer lacks exact published benchmark metrics and statistical tests, the overall verdict is PARTIALLY REPRODUCED rather than fully reproduced.


Notable Figures

Experiment 1 efficient frontier

Experiment 2 factor-model weights

Experiment 3 cumulative returns

Experiments

Minimum-Variance Efficient Frontier Reproduction on Bundled S&P 500 Prices

Reproduce the paper’s minimum-variance efficient frontier demonstration using the library’s bundled S&P 500 price dataset, converting prices to returns, applying a chronological 80/20 train/test split, fitting a MeanRisk optimizer with variance risk, 100 frontier portfolios, an AAPL maximum weight of 20%, and L2 regularization of 0.01, then comparing in-sample and out-of-sample frontier behavior.

Factor-Model Prior Integration within MeanRisk Using Bundled Asset and Factor Prices

Reproduce the paper’s factor-model prior integration demonstration by loading bundled S&P 500 asset prices and bundled factor prices, converting aligned prices to returns, applying a chronological 80/20 split, constructing a FactorModel prior with loading matrix estimated via Ridge regression with alpha 0.1, embedding that prior inside a MeanRisk variance-minimization optimizer with an AAPL 20% cap and L2 regularization of 0.01, and fitting the combined workflow. For robust reproduction, also evaluate the fitted model on train and test, even though the paper explicitly emphasizes fitting more than performance reporting.

Walk-Forward Stacking Optimization versus Equal Weight Benchmark

Reproduce the paper’s walk-forward portfolio evaluation demonstration by constructing a stacking ensemble with three base portfolio estimators—Inverse Volatility, MeanRisk with CVaR, and Hierarchical Risk Parity—using a final estimator of MeanRisk with CVaR, and comparing its walk-forward out-of-sample predictions against an EqualWeighted benchmark under a WalkForward cross-validator with train size 252 and test size 60.

Run QCA on your paper