एसेट प्राइसिंग के लिए Chen-Pelger-Zhu फ़र्म गुण
सारांश
यह दस्तावेज़ Chen, Pelger और Zhu के एसेट-प्राइसिंग प्रतिकृति संग्रह से लिए गए पुनरुत्पादनीय US इक्विटी बेंचमार्क का वर्णन करता है। इसमें 1967 से 2016 तक के लगभग 1.2 मिलियन मासिक स्टॉक अवलोकन हैं, जिनमें 46 फ़र्म गुण, मैक्रोइकॉनॉमिक संकेतक, फ़ॉरवर्ड रिटर्न और पहले से तय प्रशिक्षण, सत्यापन तथा परीक्षण विभाजन शामिल हैं। फ़र्म पहचानकर्ता गुमनाम हैं और हर जारी टेंसर के भीतर स्थायी रहते हैं, लेकिन अलग पहचानकर्ता नेमस्पेस के कारण अलग-अलग टेंसरों की फ़र्म को आपस में जोड़ना संभव नहीं है।
यह डेटासेट एसेट प्राइसिंग के मशीन-लर्निंग अध्ययन में काम आता है, जहाँ अलग-अलग प्रतिभूतियों की व्याख्या से अधिक महत्त्व एकसमान बेंचमार्क का है। प्रकाशित कालानुक्रमिक विभाजन 1967–1986 को प्रशिक्षण, 1987–1991 को सत्यापन और 1992–2016 को परीक्षण के लिए निर्धारित करते हैं। दस्तावेज़ डाउनलोड करने, लेखकों की टेंसर फ़ाइलों को Parquet में बदलने और मैक्रो डेटा शामिल करने के विकल्प सहित पूरा पैनल या अलग-अलग विभाजन लोड करने की जानकारी देता है। यह अनुभवजन्य परिणाम के बजाय डेटासेट का विवरण है: प्रदर्शन लागू किए गए मॉडलों और मूल्यांकन विधियों पर निर्भर करता है, और गुमनाम पहचानें अलग-अलग विभाजनों में फ़र्म स्तर के विश्लेषण को सीमित करती हैं।
मुख्य विचार
- बेंचमार्क में 1967 से 2016 तक मासिक स्टॉक अवलोकन, फ़र्म गुण, मैक्रो संकेतक और फ़ॉरवर्ड रिटर्न हैं।
- इसके पहले से तय कालानुक्रमिक विभाजन प्रशिक्षण, सत्यापन और परीक्षण अवधियों को अलग करते हैं।
- गुमनाम फ़र्म पहचानकर्ता हर टेंसर में स्थायी रहते हैं, लेकिन अलग टेंसर नेमस्पेस में उन्हें जोड़ा नहीं जा सकता।
- इस डेटासेट का उपयोग पुनरुत्पादनीय रैखिक और गैर-रैखिक एसेट-प्राइसिंग प्रयोगों के लिए होता है।
- बदली गई Parquet फ़ाइलें मूल टेंसर डेटा से प्राप्त पहचानकर्ता बनाए रखती हैं।
टैग
पूरा पाठ
# Firm Characteristics (Chen-Pelger-Zhu 2020)
# Firm Characteristics (Chen-Pelger-Zhu 2020)
Anonymized panel of ~1.2M stock-month observations with 46 firm
characteristics and forward returns, spanning 1967-2016. Built from the
replication archive of Chen, Pelger, and Zhu (2020), *Deep Learning in
Asset Pricing*. Used throughout the book for ML-based asset-pricing
examples where a standard, reproducible benchmark matters more than
symbol-level interpretation.
## Dataset
- **Source**: GitHub replication repo
(https://github.com/jasonzy121/Deep_Learning_Asset_Pricing), which
itself ships the published dataset via Google Drive
- **Coverage**: 1967-01 to 2016-12, monthly observations, ~1.2M rows
- **Features**: 46 firm characteristics (accounting ratios, price-based
measures, momentum variants), 178 macro indicators, forward returns
- **Size on disk**: ~1.1 GB raw CSV; converted to ~500 MB parquet
- **Access**: Public, no API key required
- **Canonical schema**: `symbol` (anonymous integer id), `timestamp`
(monthly Date), 46 characteristic columns, `ret`, `split`
- **Identity scope**: `symbol` is persistent within each tensor released by
the authors. Separate numeric namespaces prevent accidental linking across
tensors because the archive does not publish a cross-split map.
## Pre-defined Splits
The dataset ships with deterministic train/valid/test splits aligned to
the authors' released tensors:
| Split | Period |
| ----- | --------- |
| train | 1967-1986 |
| valid | 1987-1991 |
| test | 1992-2016 |
## Download
This is the largest free dataset in the book: ~1.5 GB pulled from the
authors' Google Drive folder (RetChar.csv alone is ~1.1 GB), followed by
a tensor-to-Parquet conversion. The tensor conversion recovers persistent
anonymous firm identifiers that the flattened CSV omits. How long it takes
depends on your bandwidth and disk speed. Per-file progress is printed as it
runs. A single command downloads and converts; no separate `--convert` pass
is needed.
```bash
# Download the ~1.5 GB folder and convert to parquet in one step
uv run python data/equities/firm_characteristics/download.py
# Verify what's already on disk, do not refetch
uv run python data/equities/firm_characteristics/download.py --check
# Force a re-download even if files exist
uv run python data/equities/firm_characteristics/download.py --force
# Re-run only the tensor-to-Parquet conversion (files already downloaded)
uv run python data/equities/firm_characteristics/download.py --convert
```
It is also fetched automatically as part of `data/download_all.py`. To
skip it there (e.g. on a metered or space-constrained connection), pass
`--skip-firm-characteristics`.
Output layout under `$ML4T_DATA_PATH/equities/firm_characteristics/`:
```
firm_characteristics_all.parquet # full panel
firm_characteristics_train.parquet # 1967-1986
firm_characteristics_valid.parquet # 1987-1991
firm_characteristics_test.parquet # 1992-2016
dl_asset_pricing/ # raw CSV + NPZ staging
RetChar.csv
Macro.csv
char/Char_{train,valid,test}.npz
macro/macro_{train,valid,test}.npz
RF/RF_{train,valid,test}_normalized_task_1.npz
```
The staging directory is kept so experiments that need the pre-split
NPZ arrays (the original Chen-Pelger-Zhu format) can read them
directly.
## Loading
```python
from data import load_firm_characteristics
df = load_firm_characteristics() # full panel
df = load_firm_characteristics(split="train")
df = load_firm_characteristics(split="test", include_macro=True)
```
If the canonical parquets are missing, the loader raises
`DataNotFoundError` pointing at the download command.
## Consumers
- Chapters 10-16 - standard benchmark for linear and nonlinear
asset-pricing models.
- `case_studies/us_firm_characteristics/` - Chen-Pelger-Zhu replication
pipeline (CV, GBM, latent factor, deep models).स्रोत के लाइसेंस के तहत श्रेय सहित पूरा पाठ दिखाया गया है। लाइसेंस: MIT
यह सारांश मूल स्रोत के आधार पर Stratmill के शोध एजेंट ने लिखा है; यह स्रोत की प्रति नहीं है।