Datasets:
name string | description string | array dict | panels list |
|---|---|---|---|
GU2026_1 | Daily return matrices for 255 Chinese A-share stocks over 14 rolling three-year panels, as shipped with the Stockformer benchmark and used in the Wasserstein breadth-constraint study. | {
"file": "<panel>/flow.npz",
"key": "result",
"shape": [
"T",
"N"
],
"units": "decimal simple daily return (0.01 = 1%)",
"dtype": "float64",
"row_order": "chronological, oldest first"
} | [
{
"name": "Stock_CN_2018-03-01_2020-10-29",
"start": "2018-03-01T00:00:00",
"end": "2020-10-29T00:00:00",
"T": 648,
"N": 255,
"sha256": "b0aec862a452794ef64778c6e386e88d63ab4e4ab42f77de9aefa340325c0e1b",
"bytes": 1322186,
"mean_daily_return": 0.000989,
"std_daily_return_pooled": ... |
GU2026_1 — A-share daily return panels
Fourteen overlapping three-year panels of daily simple returns for the same cross-section of 255 Chinese A-share stocks, exactly as consumed by the experiments in the paper "Wasserstein penalisation as an endogenous breadth constraint in penalised mean--variance portfolio selection".
This repository exists so that every number in that paper can be regenerated from public artefacts. The companion code is at https://github.com/ChenJiahaoJNU/GU2026-11.
Files
data/Stock_CN_<start>_<end>/flow.npz 14 files, 1.26 MB each
manifest.json shape, checksum and moments of every panel
flow.npz holds a single array under the key result:
| property | value |
|---|---|
| shape | (T, N) = (648, 255) for every panel |
| dtype | float64 |
| units | decimal simple return (0.01 = 1 %) |
| row order | chronological, oldest first |
| missing values | none (already cleaned by the upstream pipeline) |
manifest.json lists, for each panel, the sha256 of flow.npz, the exact
T/N, the pooled standard deviation and the sample moments. Use it to verify a
download before running anything.
Load one panel
import numpy as np
R = np.load("data/Stock_CN_2019-08-28_2022-05-05/flow.npz")["result"].astype(np.float64)
print(R.shape) # (648, 255)
mu = R.mean(axis=0) # per-stock mean daily return
S = np.cov(R, rowvar=False) # 255 x 255 sample covariance
All experiment scripts in the code repository read the panels through a single environment variable, so pointing them at a local clone is enough:
git clone https://huggingface.co/datasets/Changahou/GU2026_1
export GU2026_DATA="$PWD/GU2026_1/data"
python scripts/qf_revision2.py
How the panels are used in the paper
| role | panels | windows | statistic |
|---|---|---|---|
| Panel A/B tables, breadth-matched and return-matched ex-post comparisons | all 14, lexicographic order | 10 non-overlapping windows per panel (holding period 5 days) | 140 daily out-of-sample paths |
| Dynamic-rule residual decomposition, three scalarisation comparison | first 6 panels | 648-day path per panel | daily rebalancing paths |
The 14 windows are consecutive 648-trading-day slices of a single liquid
cross-section; start/end in each directory name are the first and last
trading day of the slice. Because consecutive panels overlap by roughly two
years, the 14 panels are not independent samples and the paper never treats
them as such — cross-panel inference uses a stationary bootstrap with a
stepdown correction for the family of contrasts within each panel.
Provenance
The return matrices are the flow.npz files distributed with the public
Stockformer benchmark release (Multitask-Stockformer), whose own README
describes flow.npz as the "processed actual input yield rate data"; the
underlying Chinese A-share prices are the ones that benchmark was built from.
No prices, identifiers, volumes or factor values are redistributed here, only the
derived daily return matrix needed to reproduce the portfolio experiments. The
14 slices are byte-identical to the upstream files; manifest.json records their
checksums so this can be verified.
Licence and intended use
Research and reproducibility only, no warranty, not investment advice. See
DATA_LICENSE.md in the code repository. Redistribution of the underlying market
data remains subject to the terms of the upstream benchmark and of the original
data provider.
Citation
@unpublished{chen2026wasserstein,
author = {Chen, Jiahao},
title = {Wasserstein penalisation as an endogenous breadth constraint in
penalised mean--variance portfolio selection},
note = {Working paper, not yet announced; code: \url{https://github.com/ChenJiahaoJNU/GU2026-11}},
year = {2026}
}
- Downloads last month
- 74