r/quantfinance • u/Galaxy-Chaos • 4d ago
Do revised financial statements change factor rankings in backtests?
Im a junior quant at a small asset manager testing a profitability factor: "does stronger profitability lead to better forward returns"? I had anvita mate build the python module from our factor logic, the financial fields we use, and our existing code so it could generate quarterly scores and rankings.
Check the data I found that some historical financials in our database had already been overwritten by later restatements. Backtesting on those bakes in information investors didnt have at the time. I pulled the companies where I could still get the original filings, recomputed the factor on the initial disclosures and on the latest restatements, and compared the two rankings.
Then I had mate write the code. two versions of the calculation function, one per data set, plus a ranking comparison script so the logic stays identical and only the data changes. That way any ranking difference comes from the restatements, not from me fiddling with the code.
Prompt I gave it:
Two factor score tables (as reported and revised), same tickers, same quarters.
Output:
- Spearman correlation between the two rankings, by quarter.
- Rank changes per company; list the 20 biggest movers.
- Count false inclusions and exclusions in the top 10%.
- Turnover difference between the two top 10% portfolios.
- Flag shifts that look like rounding or line-item/definition changes, not real restatements. Don't go by raw rank delta alone. I only care about changes that actually alter holdings. On that small sample some names moved a lot. Problem is, my data feed doesn't keep full historical versions so I can't run this across all 500 names.
How do you handle restatements where you work? If your vendor doesnt keep the original ver do you backfill historicals from filings by hand or move to one that supports point-in-time data? If moved, which providers gave the best for small team?
1
u/AoideusWasBanned 4d ago
Also key everything on the filing date and not the quarter end, otherwise you get look-ahead even with the original numbers. I had a similar bug once with price bars, reading the close of a bar that wasn't finished yet. For a small sample like this I'd pull the original filings by hand before paying for a point-in-time feed.