Dataset Viewer
Auto-converted to Parquet Duplicate
id
int32
1
187k
sorting_variable
stringclasses
50 values
exclude_size
float64
0
0.2
exclude_financials
bool
2 classes
exclude_utilities
bool
2 classes
exclude_negative_earnings
bool
2 classes
sorting_variable_lag
stringclasses
3 values
rebalancing
stringclasses
2 values
breakpoints_main
float64
5
10
sorting_method
stringclasses
3 values
breakpoints_secondary
float64
2
5
breakpoints_exchanges
stringclasses
2 values
weighting_scheme
stringclasses
2 values
1
sv_52w
0
true
true
true
3m
monthly
5
univariate
null
NYSE
EW
2
sv_52w
0
true
true
true
3m
monthly
5
univariate
null
NYSE
VW
3
sv_52w
0
true
true
true
3m
monthly
5
univariate
null
AMEX|NASDAQ|NYSE
EW
4
sv_52w
0
true
true
true
3m
monthly
5
univariate
null
AMEX|NASDAQ|NYSE
VW
5
sv_52w
0
true
true
true
3m
monthly
5
bivariate-dependent
2
NYSE
EW
6
sv_52w
0
true
true
true
3m
monthly
5
bivariate-dependent
2
NYSE
VW
7
sv_52w
0
true
true
true
3m
monthly
5
bivariate-dependent
2
AMEX|NASDAQ|NYSE
EW
8
sv_52w
0
true
true
true
3m
monthly
5
bivariate-dependent
2
AMEX|NASDAQ|NYSE
VW
9
sv_52w
0
true
true
true
3m
monthly
5
bivariate-dependent
5
NYSE
EW
10
sv_52w
0
true
true
true
3m
monthly
5
bivariate-dependent
5
NYSE
VW
11
sv_52w
0
true
true
true
3m
monthly
5
bivariate-dependent
5
AMEX|NASDAQ|NYSE
EW
12
sv_52w
0
true
true
true
3m
monthly
5
bivariate-dependent
5
AMEX|NASDAQ|NYSE
VW
13
sv_52w
0
true
true
true
3m
monthly
5
bivariate-independent
2
NYSE
EW
14
sv_52w
0
true
true
true
3m
monthly
5
bivariate-independent
2
NYSE
VW
15
sv_52w
0
true
true
true
3m
monthly
5
bivariate-independent
2
AMEX|NASDAQ|NYSE
EW
16
sv_52w
0
true
true
true
3m
monthly
5
bivariate-independent
2
AMEX|NASDAQ|NYSE
VW
17
sv_52w
0
true
true
true
3m
monthly
5
bivariate-independent
5
NYSE
EW
18
sv_52w
0
true
true
true
3m
monthly
5
bivariate-independent
5
NYSE
VW
19
sv_52w
0
true
true
true
3m
monthly
5
bivariate-independent
5
AMEX|NASDAQ|NYSE
EW
20
sv_52w
0
true
true
true
3m
monthly
5
bivariate-independent
5
AMEX|NASDAQ|NYSE
VW
21
sv_52w
0
true
true
true
3m
monthly
10
univariate
null
NYSE
EW
22
sv_52w
0
true
true
true
3m
monthly
10
univariate
null
NYSE
VW
23
sv_52w
0
true
true
true
3m
monthly
10
univariate
null
AMEX|NASDAQ|NYSE
EW
24
sv_52w
0
true
true
true
3m
monthly
10
univariate
null
AMEX|NASDAQ|NYSE
VW
25
sv_52w
0
true
true
true
3m
monthly
10
bivariate-dependent
2
NYSE
EW
26
sv_52w
0
true
true
true
3m
monthly
10
bivariate-dependent
2
NYSE
VW
27
sv_52w
0
true
true
true
3m
monthly
10
bivariate-dependent
2
AMEX|NASDAQ|NYSE
EW
28
sv_52w
0
true
true
true
3m
monthly
10
bivariate-dependent
2
AMEX|NASDAQ|NYSE
VW
29
sv_52w
0
true
true
true
3m
monthly
10
bivariate-dependent
5
NYSE
EW
30
sv_52w
0
true
true
true
3m
monthly
10
bivariate-dependent
5
NYSE
VW
31
sv_52w
0
true
true
true
3m
monthly
10
bivariate-dependent
5
AMEX|NASDAQ|NYSE
EW
32
sv_52w
0
true
true
true
3m
monthly
10
bivariate-dependent
5
AMEX|NASDAQ|NYSE
VW
33
sv_52w
0
true
true
true
3m
monthly
10
bivariate-independent
2
NYSE
EW
34
sv_52w
0
true
true
true
3m
monthly
10
bivariate-independent
2
NYSE
VW
35
sv_52w
0
true
true
true
3m
monthly
10
bivariate-independent
2
AMEX|NASDAQ|NYSE
EW
36
sv_52w
0
true
true
true
3m
monthly
10
bivariate-independent
2
AMEX|NASDAQ|NYSE
VW
37
sv_52w
0
true
true
true
3m
monthly
10
bivariate-independent
5
NYSE
EW
38
sv_52w
0
true
true
true
3m
monthly
10
bivariate-independent
5
NYSE
VW
39
sv_52w
0
true
true
true
3m
monthly
10
bivariate-independent
5
AMEX|NASDAQ|NYSE
EW
40
sv_52w
0
true
true
true
3m
monthly
10
bivariate-independent
5
AMEX|NASDAQ|NYSE
VW
41
sv_52w
0
true
true
true
3m
annual
5
univariate
null
NYSE
EW
42
sv_52w
0
true
true
true
3m
annual
5
univariate
null
NYSE
VW
43
sv_52w
0
true
true
true
3m
annual
5
univariate
null
AMEX|NASDAQ|NYSE
EW
44
sv_52w
0
true
true
true
3m
annual
5
univariate
null
AMEX|NASDAQ|NYSE
VW
45
sv_52w
0
true
true
true
3m
annual
5
bivariate-dependent
2
NYSE
EW
46
sv_52w
0
true
true
true
3m
annual
5
bivariate-dependent
2
NYSE
VW
47
sv_52w
0
true
true
true
3m
annual
5
bivariate-dependent
2
AMEX|NASDAQ|NYSE
EW
48
sv_52w
0
true
true
true
3m
annual
5
bivariate-dependent
2
AMEX|NASDAQ|NYSE
VW
49
sv_52w
0
true
true
true
3m
annual
5
bivariate-dependent
5
NYSE
EW
50
sv_52w
0
true
true
true
3m
annual
5
bivariate-dependent
5
NYSE
VW
51
sv_52w
0
true
true
true
3m
annual
5
bivariate-dependent
5
AMEX|NASDAQ|NYSE
EW
52
sv_52w
0
true
true
true
3m
annual
5
bivariate-dependent
5
AMEX|NASDAQ|NYSE
VW
53
sv_52w
0
true
true
true
3m
annual
5
bivariate-independent
2
NYSE
EW
54
sv_52w
0
true
true
true
3m
annual
5
bivariate-independent
2
NYSE
VW
55
sv_52w
0
true
true
true
3m
annual
5
bivariate-independent
2
AMEX|NASDAQ|NYSE
EW
56
sv_52w
0
true
true
true
3m
annual
5
bivariate-independent
2
AMEX|NASDAQ|NYSE
VW
57
sv_52w
0
true
true
true
3m
annual
5
bivariate-independent
5
NYSE
EW
58
sv_52w
0
true
true
true
3m
annual
5
bivariate-independent
5
NYSE
VW
59
sv_52w
0
true
true
true
3m
annual
5
bivariate-independent
5
AMEX|NASDAQ|NYSE
EW
60
sv_52w
0
true
true
true
3m
annual
5
bivariate-independent
5
AMEX|NASDAQ|NYSE
VW
61
sv_52w
0
true
true
true
3m
annual
10
univariate
null
NYSE
EW
62
sv_52w
0
true
true
true
3m
annual
10
univariate
null
NYSE
VW
63
sv_52w
0
true
true
true
3m
annual
10
univariate
null
AMEX|NASDAQ|NYSE
EW
64
sv_52w
0
true
true
true
3m
annual
10
univariate
null
AMEX|NASDAQ|NYSE
VW
65
sv_52w
0
true
true
true
3m
annual
10
bivariate-dependent
2
NYSE
EW
66
sv_52w
0
true
true
true
3m
annual
10
bivariate-dependent
2
NYSE
VW
67
sv_52w
0
true
true
true
3m
annual
10
bivariate-dependent
2
AMEX|NASDAQ|NYSE
EW
68
sv_52w
0
true
true
true
3m
annual
10
bivariate-dependent
2
AMEX|NASDAQ|NYSE
VW
69
sv_52w
0
true
true
true
3m
annual
10
bivariate-dependent
5
NYSE
EW
70
sv_52w
0
true
true
true
3m
annual
10
bivariate-dependent
5
NYSE
VW
71
sv_52w
0
true
true
true
3m
annual
10
bivariate-dependent
5
AMEX|NASDAQ|NYSE
EW
72
sv_52w
0
true
true
true
3m
annual
10
bivariate-dependent
5
AMEX|NASDAQ|NYSE
VW
73
sv_52w
0
true
true
true
3m
annual
10
bivariate-independent
2
NYSE
EW
74
sv_52w
0
true
true
true
3m
annual
10
bivariate-independent
2
NYSE
VW
75
sv_52w
0
true
true
true
3m
annual
10
bivariate-independent
2
AMEX|NASDAQ|NYSE
EW
76
sv_52w
0
true
true
true
3m
annual
10
bivariate-independent
2
AMEX|NASDAQ|NYSE
VW
77
sv_52w
0
true
true
true
3m
annual
10
bivariate-independent
5
NYSE
EW
78
sv_52w
0
true
true
true
3m
annual
10
bivariate-independent
5
NYSE
VW
79
sv_52w
0
true
true
true
3m
annual
10
bivariate-independent
5
AMEX|NASDAQ|NYSE
EW
80
sv_52w
0
true
true
true
3m
annual
10
bivariate-independent
5
AMEX|NASDAQ|NYSE
VW
81
sv_52w
0
true
true
false
3m
monthly
5
univariate
null
NYSE
EW
82
sv_52w
0
true
true
false
3m
monthly
5
univariate
null
NYSE
VW
83
sv_52w
0
true
true
false
3m
monthly
5
univariate
null
AMEX|NASDAQ|NYSE
EW
84
sv_52w
0
true
true
false
3m
monthly
5
univariate
null
AMEX|NASDAQ|NYSE
VW
85
sv_52w
0
true
true
false
3m
monthly
5
bivariate-dependent
2
NYSE
EW
86
sv_52w
0
true
true
false
3m
monthly
5
bivariate-dependent
2
NYSE
VW
87
sv_52w
0
true
true
false
3m
monthly
5
bivariate-dependent
2
AMEX|NASDAQ|NYSE
EW
88
sv_52w
0
true
true
false
3m
monthly
5
bivariate-dependent
2
AMEX|NASDAQ|NYSE
VW
89
sv_52w
0
true
true
false
3m
monthly
5
bivariate-dependent
5
NYSE
EW
90
sv_52w
0
true
true
false
3m
monthly
5
bivariate-dependent
5
NYSE
VW
91
sv_52w
0
true
true
false
3m
monthly
5
bivariate-dependent
5
AMEX|NASDAQ|NYSE
EW
92
sv_52w
0
true
true
false
3m
monthly
5
bivariate-dependent
5
AMEX|NASDAQ|NYSE
VW
93
sv_52w
0
true
true
false
3m
monthly
5
bivariate-independent
2
NYSE
EW
94
sv_52w
0
true
true
false
3m
monthly
5
bivariate-independent
2
NYSE
VW
95
sv_52w
0
true
true
false
3m
monthly
5
bivariate-independent
2
AMEX|NASDAQ|NYSE
EW
96
sv_52w
0
true
true
false
3m
monthly
5
bivariate-independent
2
AMEX|NASDAQ|NYSE
VW
97
sv_52w
0
true
true
false
3m
monthly
5
bivariate-independent
5
NYSE
EW
98
sv_52w
0
true
true
false
3m
monthly
5
bivariate-independent
5
NYSE
VW
99
sv_52w
0
true
true
false
3m
monthly
5
bivariate-independent
5
AMEX|NASDAQ|NYSE
EW
100
sv_52w
0
true
true
false
3m
monthly
5
bivariate-independent
5
AMEX|NASDAQ|NYSE
VW
End of preview. Expand in Data Studio

Tidy Finance Factor Library: Specification Grid

Lookup table mapping specification IDs to portfolio sorting configurations. Use this dataset together with the Portfolio Returns dataset to identify the methodological choices behind each factor return series.

Dataset Details

Dataset Description

The dataset contains approximately 180,000 unique specification paths for constructing long-short portfolio returns. Each row defines a complete set of preprocessing and sorting choices (sample exclusions, lagging convention, breakpoint definition, weighting scheme, rebalancing frequency). The id column links to the corresponding return series in the Portfolio Returns dataset.

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

Dataset Sources

Uses

Direct Use

  • Joining with the Portfolio Returns dataset to filter or group factor returns by specific methodological choices.
  • Robustness and sensitivity analysis: selecting subsets of specifications to study how preprocessing decisions affect factor premia.
  • Replication: documenting the exact configuration behind a reported result.

Out-of-Scope Use

  • Standalone analysis. The grid contains no return data and must be joined with the Portfolio Returns dataset via the id column.

Dataset Structure

The dataset consists of a single Parquet file with 13 columns and approximately 180,000 rows.

Column Type Description
id int32 Unique specification identifier, foreign key to the Portfolio Returns dataset
sorting_variable string Sorting characteristic (e.g., sv_ag for asset growth, sv_bm for book-to-market)
exclude_size double Size exclusion threshold: 0 (none) or 0.2 (bottom 20th NYSE percentile)
exclude_financials bool Whether financial firms (SIC 6000-6799) are excluded
exclude_utilities bool Whether utility firms (SIC 4900-4999) are excluded
exclude_negative_earnings bool Whether firms with negative earnings are excluded
sorting_variable_lag string Lagging convention: 3m, 6m, or ff (Fama-French)
rebalancing string Rebalancing frequency: monthly or annual (July)
breakpoints_main double Number of quantile portfolios for the primary sort: 5 or 10
sorting_method string Sorting method: univariate, bivariate-dependent, or bivariate-independent
breakpoints_secondary double Number of quantile portfolios for the secondary sort (size): 2, 5, or NA for univariate sorts
breakpoints_exchanges string Exchanges used for breakpoint computation: NYSE or AMEX|NASDAQ|NYSE
weighting_scheme string Portfolio weighting: EW (equal-weighted) or VW (value-weighted)

Dataset Creation

Curation Rationale

Factor construction involves many subjective methodological choices. Rather than committing to a single specification, we enumerate all valid combinations to enable systematic robustness analysis and transparent reporting.

Source Data

Data Collection and Processing

The grid is generated programmatically from the full factorial combination of preprocessing choices, with invalid configurations removed (e.g., univariate sorts have no secondary breakpoints; market equity is excluded from bivariate sorts where size is the secondary variable; earnings-to-market excludes configurations that allow negative earnings). See code/01_define_portfolio_sorts_grid.R in the companion repository for the exact generation logic.

Who are the source data producers?

The grid is a methodological artifact created by the dataset authors. No external data sources are involved.

Personal and Sensitive Information

The dataset contains no personal or sensitive information. All columns describe portfolio sorting configurations.

Bias, Risks, and Limitations

  • The grid reflects the authors' choice of specification dimensions and does not cover all possible methodological variations (e.g., alternative industry classifications, different minimum listing requirements, or alternative risk-free rate definitions).
  • Some specifications may produce portfolios with very few stocks in certain months, particularly for smaller sorting variables or restrictive exclusion criteria.

Recommendations

Always join with the Portfolio Returns dataset via the id column. When reporting results, cite the specific id or the full set of column values to ensure reproducibility.

Citation

BibTeX:

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

Dataset Card Authors
Christoph Frey, Christoph Scheuch, Stefan Voigt, Patrick Weiss

Dataset Card Contact
Stefan Voigt (stefan.voigt@econ.ku.dk), Patrick Weiss (patrickw@ru.is)
Downloads last month
99