Mimicking Finance: Predicting Mutual Fund Manager Behavior Using Deep Learning
Lauren Cohen et al. (3 authors), 2026 · NBER Working Paper 34849
What the paper asks for.
Per-manager LSTMs trained on historical 13F holdings can identify "predictable" stocks; cross-sectionally rank stocks by average prediction accuracy and go long the most-predictable quintile / short the least predictable, equal-weighted, rebalanced quarterly.
- Type
- hybrid
- Implementation
- pandas
- Rebalance
- quarterly
- Long-short
- yes
- Data
- One-command fetcher for WRDS-sourced task data
- Operational scope
- The paper-defined methodological core is retained; the fixed instruction instantiates only the data mappings, interfaces, and evaluation conventions needed for execution.
- 01 Data loading
- 02 Feature engineering
- 03 Model fitting
- 04 Signal generation
- 05 Portfolio construction
- 06 Execution
20 properties · 80 attempts.
Each row is one requirement the strategy must satisfy. The bar reports the share of observed checker verdicts that pass; missing checker output is not converted into a property verdict.
- A1no backfill73/74
- A2no global normalize74/74
- A3no future data access74/74
- A4causal consistency74/74
- A5no survivorship bias68/74
- A6train test temporal order74/74
- A7data frequency alignment68/74
- A8transaction timing43/74
- A9signal delay test74/74
- A10e2e metric consistency2/74
- B1n quintile portfolios§Table XIII / §5 “stocks are ranked by the average prediction accuracy of all funds holding that stock and sorted into five equal-weighted portfolios.”provenance · paper-explicitstage · signal gen65/74
- B2long q1 short q5 direction§§5 “stocks in which the behavior of fund managers are least predictable (Q1) strongly outperform stocks in which the behavior of fund managers are most predictable (Q5) in the coming quarter.”provenance · paper-explicitstage · signal gen50/74
- B3label classification dead band§§3.2 “Δsh_{i,t} = sh_{i,t+1} - sh_{i,t} / sh_{i,t} + 1 ... Y_{i,t} = -1 if Δsh ≤ -0.01, +1 if Δsh ≥ +0.01, 0 if |Δsh| < 0.01. ... A ±1% band around zero counts as 'no change'.”provenance · paper-explicitstage · feature eng65/74
- B4single layer lstm architecture§§3.3 “We estimate a single-layer LSTM network on these sequences.”provenance · paper-explicitstage · model fit4/74
- B5manager filter seven years ten securities§§3.1 “Funds must span at least seven calendar years and hold at least 10 securities per quarter; otherwise they are excluded.”provenance · paper-explicitstage · data loading67/74
- B6lstm sequence length eight quarters§§3.3 “From each window, we generate fixed-length sequences of eight consecutive quarters. Each sample is initially represented as a three-dimensional tensor X ∈ R^{T×N×F}, where the sequence length is T = 8.”provenance · paper-explicitstage · model fit12/74
- B7rolling 28q window with 20 8 chronological split§§3.3 “For each eligible fund, we form overlapping windows of 28 quarters. ... Each 28-quarter window is then split chronologically into training and test subsamples, with the first 20 quarters reserved for training and the final eight quarters for testing. ... No random shuffling is employed, thereby preserving the time-series ordering of the data.”provenance · paper-explicitstage · model fit15/74
- B8weighted categorical cross entropy default unit weights§§3.3 “Our estimation objective is a weighted categorical cross-entropy loss: L = -Σ w_c y_c log p_c ... By default, w_c = 1 for all classes. To enhance robustness to class imbalance and to emphasize hard-to-classify observations, we also implement an optional focal variant in which the loss is multiplied by (1-p_c)^γ, with γ=1.”provenance · paper-explicitstage · model fit61/74
- B9min managers per stock filterprovenance · benchmark-specifiedstage · signal gen72/74
- B10out of sample predictions only for signal§§3.3 “We then compute model precisions for both the naive and LSTM-based predictors. We adjust our precision metrics by restricting attention to feasible cases. Specifically, we restrict attention to test outputs where the feasibility mask permits a sell decision.”provenance · paper-explicitstage · signal gen26/74
The lowest-passing observed requirement is e2e metric consistency: 2 of 74 observed checker verdicts pass. The full property list above shows whether errors concentrate in domain-level validity or the paper-specific strategy logic.