GENERAL MODELS
Let us generalize the idea of statistical arbitrage. Imagine that there are two price processes (realistic processes will be stochastic), A(t, xt, zz) and B(t, yt, zz). The arguments can be thought of as time (t), a unique factor to A and B (x and y, respectively), and a common factor (z). If you let wA,t and wB,t represent the number of shares invested in each, and these numbers need not be constant, then a statistical arbitrage opportunity exists if there is a zero cost position that never (i.e., for all t) becomes negative.
The initial position, at time zero, is given by wA,0A(0,x0,z0) + wB,0B(0,y0,z0). This must be equal to zero in order to be a zero cost position to establish.
At any time after the position has been established, the value of the position must be greater than or equal to zero, represented by wA,tA(t,xt,zt) + wB,tB(t,yt,zt).
The portfolio positions, wA,t and wB,t, evolve according to the relationship that the strategy is “self-funding,” or “self-financing.” This simply means that when a position is established at time t, the portfolio is adjusted at t + 1 only with the proceeds from having held the portfolio positions from time t. This can be represented by the equation

At the terminal time, T, the portfolio value must be greater than zero to yield a profit, . The reason we use wA,T−1and wB,T−1 in the terminal portfolio value is that the position ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access