A new approach to statistical arbitrage: Strategies based on dynamic factor models of prices and their performance
Sergio M. Focardi et al. (3 authors), 2016 · Journal of Banking & Finance
What the paper asks for.
Price-based long-short statistical arbitrage on S&P 500 constituents: extract 15 principal components from log-prices over a rolling 1000-day window, forecast each factor with an independent AR(1), reconstruct forecasted log-prices, and trade the resulting 5-day forecasted-return cross-section by going long the top 10% and short the bottom 10%, rebalancing every 5 days.
- Type
- statistical_arbitrage
- Implementation
- pandas
- Rebalance
- every_5_days
- 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
19 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.
- A2no global normalize56/73
- A3no future data access69/73
- A4causal consistency73/73
- A5no survivorship bias66/73
- A6train test temporal order67/73
- A8transaction timing61/73
- A9signal delay test67/73
- A10e2e metric consistency1/73
- B1log price transformation§§4.2 Factor models based on prices “Suppose there are N stocks and that p_i(t) = log(P_i(t)) is the logprice of the ith stock at time t.”provenance · paper-explicit63/73
- B2number of factors§§7.1 Number of stationary factors “Anticipating the conclusions of Section 7.1, we will adopt models with a total of 15 factors.”provenance · paper-explicit73/73
- B3forecast horizon§§5.1 Long-short strategies “we use ew = 1000 and fh = 5; that is, every five days we estimate our models on those stock processes that existed in the prior 1000 trading days and forecast five days ahead.”provenance · paper-explicit67/73
- B4forecasted return formula§§4.2 Factor models based on prices “Given forecasted logprices, we obtain forecasted returns: R̂_i(t) = exp(p̂_i(t + fh)) − P_i(t) / P_i(t)”provenance · paper-explicit72/73
- B5portfolio percentile threshold§§5.1 Long-short strategies “We use k = 10%; that is, 'PF_LS_10_10' and 'PF_LS_10_10' strategies are investigated in detail.”provenance · paper-explicit73/73
- B6equal weight portfolio§§5.1 Long-short strategies “Those two strategies allocate equal weights among the forecasted winners and among the forecasted losers. We call them naïve strategies.”provenance · paper-explicit73/73
- B7long short normalization§§5.1 Long-short strategies “To this end, we normalize a portfolio's weights so that the sum of the weights of the long portfolio is equal to 1 and the sum of those of the short portfolio is equal to –1.”provenance · paper-explicit73/73
- B8pca method for factor extraction§§4.2 Factor models based on prices “Using the methodology proposed by Stock and Watson (1988), and analyzed by Escribano and Peña (1994) and Harris (1997), we can represent the observed logprices... If we estimate cointegrating relationships using PCA”provenance · paper-explicit71/73
- B9factor reconstruction method§§4.2 Factor models based on prices “Next, we regress prices on factors in-sample and obtain the coefficients a_i1,...,a_iK. Note that these coefficients can also be obtained from the matrix of the eigenvectors of the covariance matrix of logprices. The final step is to forecast logprices as follows: p̂_i(t + fh) = a_i1*F_1(t + fh) + ... + a_iK*F_K(t + fh).”provenance · paper-explicit70/73
- B10mean restoration in reconstruction§Sections 4.2--4.3 “PCA centering and the subsequent log-price reconstruction.”provenance · paper-inferredstage · feature eng68/73
- B11sharpe calc convention§Section 10 “All models were estimated using daily prices. We compute the annualized Sharpe ratio.”provenance · paper-inferred72/73
The lowest-passing observed requirement is e2e metric consistency: 1 of 73 observed checker verdicts pass. The full property list above shows whether errors concentrate in domain-level validity or the paper-specific strategy logic.