Case Study: Backtesting a Pairs Trade on Indian Banking Stocks
A hands-on, end-to-end case study for aspiring quant analysts, prop desk applicants and traders who want to systematise a market-neutral idea. You will take the classic pairs trade, going long one bank and short another when their price relationship stretches too far, and turn it into a working Python backtest on Nifty Bank constituents. Along the way you will learn why correlation is the wrong test and cointegration is the right one, how to estimate a hedge ratio and the half-life of the spread, how to build a z-score signal engine in pandas, and how the two-leg cost stack in India, including STT, SLB borrowing fees and stock futures rollovers, changes the answer. The course ends with a verdict on whether the chosen pair actually paid, and a checklist of what to test before risking a rupee.