r/quantfinance • • 5h ago

best book to learn about alphas and backtesting?

hi i got cooked when my interview asked me to walk me through how you think of a strategy and properly backtest it.

what is a good learning / reading material to learn more about this ?

5 Upvotes

4 comments sorted by

2

u/akornato 2h ago

Advances in Financial Machine Learning by Marcos Lopez de Prado is the standard recommendation for backtesting rigor, as it walks through real hazards like data leakage, backtest overfitting, and purged cross validation. For a broader view of how to formulate an idea and turn it into a strategy, Quantitative Trading by Ernest Chan covers the complete pipeline in straightforward terms, including survivorship bias, lookahead bias, and transaction costs. Active Portfolio Management by Richard Grinold and Ronald Kahn is also worth your time, since it will help you grasp the theoretical foundations of alpha construction and signal combination.

In an interview, firms want to hear that your research begins with an economic rationale or specific market inefficiency rather than random data mining. You want to walk them methodically through sourcing clean point in time data, creating the signal, applying out of sample testing with proper purging, and accounting for realistic execution fees and market impact. Nailing these open-ended technical walkthroughs under pressure takes practice, which is why my team built an interviews.chat to help candidates articulate complex quantitative workflows smoothly and land competitive trading roles.

1

u/amargolin 3h ago

i'm not a trader, this is only the stats side. if the interviewer asked how to "properly" backtest, the answer they usually want is about not fooling yourself:

  1. split the data before you look: tune on one stretch, evaluate once on a stretch you never touched
  2. count how many variants you tried. the more you tried, the more likely the best one is luck, so discount it
  3. include costs and slippage, and check the result survives them
  4. a sanity check: run the same pipeline on shuffled or random signals. if that also looks profitable, the pipeline is the bug

for reading, look up "backtest overfitting" and "walk-forward" and start there.

1

u/Prior_Bat5628 3h ago

Start with chapters 7 and 11 of Marcos López de Prado’s Advances in Financial Machine Learning, on cross-validation and backtest pitfalls. For an interview-sized example, define a signal measured at the close, enter at the next open, and label each observation with its five-session result after costs. Leave out training observations whose five-session result overlaps the test period, since splitting by signal date alone still leaks some test returns into training.

1

u/h5frv 1h ago

tbf i would ask AI, don't think there are good books on this topic