Pastor-Stambaugh Liquidity

The Pastor-Stambaugh Liquidity of Pastor and Stambaugh (2003) measures how much of the order flow of a day reverses the next day. In an illiquid asset a day of heavy buying pushes the price above its value and it falls back, so the next day’s return moves against the order flow of the day before. Their market-wide average is the liquidity factor of asset pricing.

The formula for the Pastor-Stambaugh Liquidity starts from the excess return of each day t, the return \(R_{t}\) of the asset over the return \(R_{m , t}\) of the market:

\[\text{Excess R}_{t} = R_{t} - R_{m,t}\]

The next day’s excess return is regressed on the return of the day and on its dollar volume \(\text{DV}_{t}\) (the close times the volume), signed with the sign of the excess return, over the pairs of consecutive trading days within the period, with theta the intercept, phi the coefficient of the return and epsilon(t+1) the error:

\[\text{Excess R}_{t+1} = \theta + \phi \cdot R_{t} + \gamma \cdot \operatorname{sign}\left(\text{Excess R}_{t}\right) \cdot \text{DV}_{t} + \epsilon_{t+1}\]

The liquidity is the coefficient of the signed dollar volume:

\[\text{Pastor Stambaugh Liquidity} = \gamma\]

Gamma is negative for an asset whose order flow reverses, and more so the less liquid the asset; a value close to 0 is a liquid asset. For a single asset over a month the estimate is noisy; Pastor and Stambaugh use the average over many stocks.

Price impact is the move of the price that trading itself causes: buying pushes the price up and selling pushes it down, and the less liquid the market, the larger the move per unit traded. It is the side of liquidity that matters for larger orders, beyond the bid-ask spread a small order pays, and market microstructure theory explains it, from the model of Kyle (1985) onwards, as the protection of market makers against better-informed traders. Without trade and quote data the impact is estimated from daily prices and volume: most measures relate the size of the daily price moves to the amount traded on those days, over the days within a period.

The measures are mostly used to compare assets and periods: a rising price impact is a market that has become thinner. Their level depends on the size of the asset (a large cap trades billions of dollars a day), so compare assets of a similar size or look at the changes over time.

Also known as: Pastor-Stambaugh gamma, return reversal, liquidity factor.

In the Finance Toolkit this is get_price_impact with method="pastor_stambaugh", the same function as Price Impact.

Example · SNAP, ETSY, LYFT · 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_price_impact:

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["SNAP", "ETSY", "LYFT"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2025-01-01",
    end_date="2025-06-30",
)

toolkit.risk.get_price_impact(method="pastor_stambaugh")

Which returns:

References

  • Paper Pastor, L. and Stambaugh, R. F. (2003). “Liquidity Risk and Expected Stock Returns.” Journal of Political Economy, 111(3), 642-685.
Share