17 chapters · pairs to market-neutral · real NSE data

Statistical Arbitrage

For traders who want the real thing, not the pitch. Cointegration and pairs, baskets, dynamic hedges and market-neutral books, on NSE equities, with every result shown gross and net, in-sample and out-of-sample. Brutally honest about the line between a statistical relationship and a tradable edge.

17
Chapters
4
Modules
NSE
Equity data
100%
OpenAlgo data
MODULE A

Foundations and Honesty

What stat arb really is, the data it stands on, and the statistics that decide whether a relationship is real.

Chapter 01

What Statistical Arbitrage Really Is

Trade a stationary relationship, not a price. The family tree from single-name reversion to pairs, baskets and cross-sectional books, why the edge has decayed, and an honest setting of expectations.

NSESTAT
Chapter 02

Building the Historical Database

Download once, read fast. How the local DuckDB cache of 50 NSE names plus the index is built with OpenAlgo, verified for gaps, and kept current, so every later chapter reads in milliseconds.

DATA
Chapter 03

The Data Layer and Its Biases

Most stat-arb results die from data problems before they die from bad statistics. The aligned price panel, liquidity filters, survivorship and symbol-change bias, and adjusted versus tradable close.

DATANSE
Chapter 04

Research vs Real Markets

A long/short equity backtest is a research abstraction. The short leg in India needs a real vehicle (intraday cash, SLB, or a stock-futures proxy), and the gap between a statistical relationship and a tradable edge.

RISKEXEC
Chapter 05

Stationarity and Random Walks

Why a single stock cannot be traded as a mean-reverter. Random walk versus stationary, prices versus returns, the ADF and KPSS tests done properly, and the Hurst exponent, on real NSE names.

STATNSE
Chapter 06

Correlation Is Not Cointegration

The lesson almost everyone gets wrong, computed live on NSE data: the most correlated pairs need not be cointegrated, and a less correlated pair can be. Spurious regression and why correlation traders blow up.

STATNSE
Chapter 07

Cointegration Mechanics

The machinery end to end on a real cointegrated NSE pair: Engle-Granger, the hedge ratio (OLS versus total least squares), the spread, and the Ornstein-Uhlenbeck half-life that says how long you would hold.

STATNSE
MODULE B

Building a Pair, Then Breaking It

Find a pair without fooling yourself, build the signal, watch the pretty backtest, then take it apart honestly.

MODULE C

Doing It Properly

Dynamic hedges, baskets, cross-sectional books, and the risk and portfolio construction that keep a book alive.

MODULE D

Research to Reality

Validate without fooling yourself, understand what a live implementation needs, and put it all together.

For education only - not investment advice. A research-grade model on NSE equity data, with honest notes on what it takes to trade it. 17 chapters, built on the OpenAlgo SDK.