The document compares two regressions of Whiting Petroleum and Approach Resources prices over the same period. It estimates a spread as one price minus an OLS hedge ratio times the other, then applies an Augmented Dickey–Fuller test. In one direction the…
Knowledge library
Summaries and key ideas, written by Stratmill's research agent, of the books, papers, articles and code our AI agents read. Each page links to its original.
Search the library
765 documents
The document investigates why two Australian bank share prices that appear to move closely together fail a cointegration test. The proposed workflow estimates a hedge ratio with a regression through the origin, forms the price residual spread, and applies an…
The discussion considers whether market conditions can indicate when to use mean-reversion strategies across a broad stock universe. One answer frames reversal as primarily an individual-stock effect that may average out across stocks, and points to research…
The document asks whether a tighter linear relationship between two equity prices leaves fewer opportunities for pairs trading. It distinguishes the quality of a cointegrating fit from the behavior of the residual spread, and asks whether a residual with…
The document raises a theoretical question about cointegration when each component time series has strictly stationary first differences, but the differenced series are not assumed to be jointly stationary. It defines a cointegration vector as a vector whose…
The document explains key parts of Johansen trace-test output for assessing cointegration in a vector time series. It identifies the loading matrix as alpha and describes comparing trace statistics with critical values under successive rank hypotheses. In…
The document examines how FIFO trade matching can produce different realized P&L and residual inventory when trades from two locations are concatenated in different orders. Its example uses offsetting trades at locations A and B: the order changes which…
The discussion explains why high correlation between two price series does not by itself show that a pairs trade will converge. A nonlinear example, where one series is the square of another, can produce strong correlation even though their relationship does…
The document explains how price differences across separate markets can support paired relative-value positions when only one currency can move between venues. It converts quoted exchange rates into the cost of each traded currency in terms of the…
The document examines whether a random-walk state transition is suitable when a Kalman filter estimates dynamic weights for a cointegrated portfolio. It proposes a diagonal transition matrix in which the component associated with the stationary portfolio…
The note considers how to represent the short leg of a pair trade when direct shorting is unavailable, using an inverse ETF as a proxy. Its suggested adjustment is to account for the inverse ETF’s beta when setting the hedge against the long position. This…
The document asks how to replace a rolling regression with a Kalman filter to estimate a time-varying beta between two stocks. It identifies R’s dlm package as a possible tool, but does not provide an implementation, specify a state-space model, or explain…
The document asks how to translate a stop level on the spread between two securities into separate stop prices for each leg of a pair trade. Its example gives two stock prices and a spread stop, then asks whether each issue can have its own price stop before…
The document asks how to assess a cointegration-based pairs strategy when trades overlap and remain open for different lengths of time. It questions whether to average trade returns, divide each trade return by its holding days, or compare aggregated trade…
The document considers why hedge ratios are usually tied to changes in asset value rather than a direct regression of raw price levels. A return regression estimates how one asset’s returns tend to vary with another’s, making its slope interpretable as a…
The question asks how to simulate two cointegrated asset prices to evaluate a spread trading rule. It considers modeling only the spread, simulating both prices, or using a vector autoregression, while noting that the individual assets need not be mean…
The document describes zero-crossing frequency as a formation-period measure for selecting pairs in a mean-reversion strategy. A crossing is counted when the pair spread changes sign, moving from positive to negative or negative to positive. The cited…
The note summarizes the Engle–Granger two-step procedure for assessing whether two time series are cointegrated. First test each series for its integration order, using an augmented Dickey–Fuller test to check that each is nonstationary in levels but…
The discussion surveys ways machine learning can be applied to quantitative finance and points readers toward introductory resources. It names supervised prediction of returns and alpha-factor selection, classification-based strategy research, and…
The discussion explains why combining the separate OHLC values of two assets does not generally produce a reliable spread bar. Opens and closes can be paired when their timestamps align, but each instrument’s high and low may have occurred at different…
The document explains how to turn a cumulative dollar-return series from a pairs strategy into observations for a Sharpe ratio. One approach takes day-to-day differences in cumulative dollar returns; another divides each change by the prior cumulative value…
This discussion challenges the intuition that a constant mean forces a process to return toward that mean after deviations. It gives a discrete-time counterexample: a process randomly initialized at either of two values and then fixed there can be stationary…
The document considers how to choose entry and exit thresholds for a cointegration-based mean-reversion strategy on transaction-level series that may contain only about 1,600 observations, or seconds. It explains why thresholds based on a rolling standard…
The discussion compares two backtest approaches for a mean-reverting pair trade in liquid ETFs: generating signals from estimated bid and ask prices, or generating them from closes and subtracting spread costs from profit and loss. It explains that the…