Dataset Viewer
Auto-converted to Parquet Duplicate
id
int32
1
187k
date
date32
ret_type
stringclasses
2 values
ret
float64
-1.14
2.16
100
1962-04-01
vw
0.017827
100
1962-04-01
ew
0.015619
100
1962-05-01
vw
0.030991
100
1962-05-01
ew
0.028442
100
1962-06-01
vw
0.032721
100
1962-06-01
ew
0.031468
100
1962-07-01
vw
-0.014465
100
1962-07-01
ew
-0.016554
100
1962-08-01
vw
-0.008673
100
1962-08-01
ew
-0.013853
100
1962-09-01
vw
0.029799
100
1962-09-01
ew
0.035361
100
1962-10-01
vw
0.021362
100
1962-10-01
ew
0.023922
100
1962-11-01
vw
-0.052248
100
1962-11-01
ew
-0.05173
100
1962-12-01
vw
0.042655
100
1962-12-01
ew
0.041905
100
1963-01-01
vw
-0.024672
100
1963-01-01
ew
-0.027959
100
1963-02-01
vw
0.017113
100
1963-02-01
ew
0.019725
100
1963-03-01
vw
0.025378
100
1963-03-01
ew
0.018321
100
1963-04-01
vw
0.014214
100
1963-04-01
ew
0.01438
100
1963-05-01
vw
-0.010454
100
1963-05-01
ew
-0.006056
100
1963-06-01
vw
0.007002
100
1963-06-01
ew
0.011972
100
1963-07-01
vw
0.008882
100
1963-07-01
ew
0.006788
100
1963-08-01
vw
0.017931
100
1963-08-01
ew
0.019787
100
1963-09-01
vw
0.00095
100
1963-09-01
ew
-0.001689
100
1963-10-01
vw
-0.000413
100
1963-10-01
ew
-0.003195
100
1963-11-01
vw
-0.007245
100
1963-11-01
ew
-0.0041
100
1963-12-01
vw
0.019596
100
1963-12-01
ew
0.01633
100
1964-01-01
vw
-0.004182
100
1964-01-01
ew
-0.013275
100
1964-02-01
vw
-0.020797
100
1964-02-01
ew
-0.022979
100
1964-03-01
vw
-0.006685
100
1964-03-01
ew
-0.005597
100
1964-04-01
vw
0.005143
100
1964-04-01
ew
0.00466
100
1964-05-01
vw
0.028827
100
1964-05-01
ew
0.029088
100
1964-06-01
vw
0.017962
100
1964-06-01
ew
0.01997
100
1964-07-01
vw
0.002078
100
1964-07-01
ew
-0.007934
100
1964-08-01
vw
0.009187
100
1964-08-01
ew
0.010169
100
1964-09-01
vw
-0.006795
100
1964-09-01
ew
-0.017496
100
1964-10-01
vw
0.02131
100
1964-10-01
ew
0.014609
100
1964-11-01
vw
0.019992
100
1964-11-01
ew
0.011809
100
1964-12-01
vw
0.009234
100
1964-12-01
ew
0.019596
100
1965-01-01
vw
-0.011657
100
1965-01-01
ew
-0.025562
100
1965-02-01
vw
-0.000467
100
1965-02-01
ew
-0.00032
100
1965-03-01
vw
-0.008836
100
1965-03-01
ew
-0.010954
100
1965-04-01
vw
0.002538
100
1965-04-01
ew
-0.003596
100
1965-05-01
vw
0.003033
100
1965-05-01
ew
0.005001
100
1965-06-01
vw
0.016019
100
1965-06-01
ew
0.018063
100
1965-07-01
vw
0.021604
100
1965-07-01
ew
0.014526
100
1965-08-01
vw
0.017074
100
1965-08-01
ew
0.015554
100
1965-09-01
vw
-0.001459
100
1965-09-01
ew
0.001101
100
1965-10-01
vw
-0.02685
100
1965-10-01
ew
-0.024532
100
1965-11-01
vw
-0.002041
100
1965-11-01
ew
0.003934
100
1965-12-01
vw
-0.026639
100
1965-12-01
ew
-0.021982
100
1966-01-01
vw
-0.033441
100
1966-01-01
ew
-0.037108
100
1966-02-01
vw
-0.024983
100
1966-02-01
ew
-0.025539
100
1966-03-01
vw
-0.017078
100
1966-03-01
ew
-0.015519
100
1966-04-01
vw
-0.00485
100
1966-04-01
ew
0.000234
100
1966-05-01
vw
0.008691
100
1966-05-01
ew
0.012665
End of preview. Expand in Data Studio

Tidy Finance Factor Library: Portfolio Returns

Long-short portfolio returns for 50 financial risk factors across a comprehensive grid of methodological specifications. The dataset covers US equities from 1960 to 2024.

Dataset Details

Dataset Description

The dataset contains monthly long-short portfolio returns for 50 sorting variables commonly used in empirical asset pricing. Each sorting variable is evaluated across all valid combinations of preprocessing choices (sample exclusions, lagging conventions, breakpoint definitions, weighting schemes, and rebalancing frequencies), yielding hundreds of specification paths per variable. The selection of sorting variables follows the cross-section of characteristics studied by Jensen, Kelly, and Pedersen (2023).

  • Curated by: Christoph Frey (Lancaster University), Christoph Scheuch (Tidy Intelligence), Stefan Voigt (University of Copenhagen), Patrick Weiss (Reykjavík University)
  • License: MIT

Dataset Sources

Uses

Direct Use

  • Empirical asset pricing research: evaluating factor models, testing anomalies, and benchmarking portfolio strategies.
  • Robustness analysis: comparing factor returns across different methodological specifications.
  • Teaching and replication: reproducing canonical results from the asset pricing literature.
  • Sensitivity analysis: studying how preprocessing choices (breakpoints, weighting, rebalancing) affect factor premia.

Out-of-Scope Use

  • Live trading signals. The dataset reflects historical, backward-looking portfolio returns and does not account for transaction costs, market impact, or real-time data availability.
  • Causal inference about individual firm outcomes.

Dataset Structure

The dataset consists of 150 Parquet files with 6 columns. The id column maps to a separate specification grid that documents all preprocessing choices for each specification (breakpoints, exclusions, rebalancing frequency, etc.).

Column Type Description
id int32 Unique specification identifier linking to the portfolio sort grid
date date32 Month of the portfolio return
ret_type string Return type: vw (value-weighted) or ew (equal-weighted)
ret double Monthly long-short portfolio excess return
sorting_variable string Sorting characteristic (e.g., ag for asset growth, bm for book-to-market)
sorting_variable_lag string Lagging convention: 3m, 6m, or ff (Fama-French)

The sorting_variable partition key identifies the characteristic (e.g., ag for asset growth, bm for book-to-market). The sorting_variable_lag partition key identifies the lagging convention (3m, 6m, or ff for the Fama-French convention). The id column maps to a separate specification grid that documents all preprocessing choices for each specification (breakpoints, exclusions, rebalancing frequency, etc.).

Sorting variables

The 50 sorting variables span seven categories: investment, profitability, valuation, momentum, intangibles, trading frictions, and financing. See the companion paper for the full list and definitions.

Specification grid

Each sorting variable is evaluated across combinations of:

Choice Options
Size exclusion None; bottom 20th NYSE percentile
Exclusion of financials No; Yes
Exclusion of utilities No; Yes
Exclusion of neg. earnings No; Yes
Sorting variable lag 3 months; 6 months; Fama-French
Rebalancing Monthly; Annual (July)
Breakpoint quantiles (main) 5; 10
Double sort Single; Dependent; Independent
Breakpoint quantiles (secondary) 2; 5
Breakpoint exchanges NYSE; All
Weighting Equal-weighted; Value-weighted

Dataset Creation

Curation Rationale

Existing factor libraries (e.g., the French Data Library) provide canonical factor series but without code or detailed workflows, limiting reproducibility and methodological comparison. We constructed this dataset to offer a transparent, fully replicable factor library that covers a comprehensive grid of specification choices.

Source Data

Data Collection and Processing

Raw data comes from CRSP (monthly stock returns, market capitalization, exchange, industry) and Compustat (annual financial statements) via WRDS. The tidyfinance R package handles all data acquisition, cleaning, variable construction, and portfolio aggregation. Preprocessing steps include restricting to common equity of US-incorporated corporate issuers on major exchanges, computing excess returns relative to the Fama-French risk-free rate, and constructing sorting variables with appropriate lagging conventions. See the companion paper and the tidyfinance package documentation for full details.

Who are the source data producers?

  • CRSP (Center for Research in Security Prices) at the University of Chicago
  • Compustat (S&P Global Market Intelligence)

Personal and Sensitive Information

The dataset contains aggregated portfolio-level returns only. No individual-level, personal, or sensitive information is included.

Bias, Risks, and Limitations

  • Survivorship and look-ahead bias: We follow standard academic conventions (e.g., Fama-French lagging) to mitigate look-ahead bias, but the dataset reflects the CRSP/Compustat universe with its known survivorship characteristics.
  • US equities only: The current version covers US-listed stocks. International markets are not included.
  • Historical data: Returns reflect past market conditions and do not predict future performance.
  • Data vendor dependence: Reproducing the dataset from scratch requires WRDS access (CRSP and Compustat subscriptions).

Recommendations

Researchers should consult the companion paper for detailed variable definitions and the specification grid documentation before using the data. When reporting results, specify the exact specification path (identified by id) to ensure reproducibility.

Citation

BibTeX:

@article{Frey.2026,
  title={A Transparent Financial Risk Factor Library},
  author={Frey, Christoph and Scheuch, Christoph and Voigt, Stefan and Weiss, Patrick},
  year={2026},
  journal={Working Paper}
}
Downloads last month
216