Hasbrouck Lambda
The Hasbrouck Lambda is the price impact that Hasbrouck (2009) estimates from daily data, with the impact growing with the square root of the dollar volume, as the impact of an order grows less than proportionally with its size. López de Prado (2018, section 19.4.3) estimates it from bars with the tick rule.
The formula for the Hasbrouck Lambda starts from the \(\operatorname{sign} b_{t}\) of each day t, which the tick rule takes from its log return \(r_{t}\): a rise is buying and a fall selling, and a day without a change keeps the sign of the day before:
\[b_{t} = \operatorname{sign}\left(r_{t}\right) \quad \text{if } r_{t} \neq 0\] \[b_{t} = b_{t-1} \quad \text{if } r_{t} = 0\]The log return of a day is regressed without an intercept on the square root of its dollar volume \(\text{DV}_{t}\) (the close times the volume), signed with \(b_{t}\), with \(\epsilon_{t}\) the error of the day:
\[r_{t} = \lambda \cdot b_{t} \cdot \sqrt{\text{DV}_{t}} + \epsilon_{t}\]The Hasbrouck Lambda is the least squares slope of that regression over the n days within the period:
\[\text{Hasbrouck Lambda} = \frac{\sum_{t=1}^{n} r_{t} \cdot b_{t} \cdot \sqrt{\text{DV}_{t}}}{\sum_{t=1}^{n} \text{DV}_{t}}\]A high Hasbrouck Lambda is an illiquid asset. The square root makes it less sensitive than the Amihud Lambda to the days with the largest volume.
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: Hasbrouck’s lambda, square-root price impact.
In the Finance Toolkit this is get_price_impact with method="hasbrouck", 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="hasbrouck")
| Parameter | Type | Description | Example |
|---|---|---|---|
period | str | The period each regression runs within. Options are: “weekly”, “monthly”, “quarterly”, “yearly”. Defaults to “monthly”. | "weekly" |
rolling | int | Regress on the days of the last rolling periods together instead of one period (e.g. period=’monthly’ and rolling=3 for a three-month lambda at every month end). At least 2. Defaults to None. | 4 |
method | str | The measure. Options are: “kyle” (Kyle Lambda), “amihud” (Amihud Lambda), “hasbrouck” (Hasbrouck Lambda), “roll” (Roll Impact), “pastor_stambaugh” (Pastor-Stambaugh Liquidity, \(\gamma\)), “amivest” (Amivest Liquidity Ratio, high for a liquid asset), “return_to_turnover” (Return-to-Turnover Ratio), “invariance” (Invariance Illiquidity), “martin” (Martin Liquidity Index), “hui_heubel” (Hui-Heubel Liquidity Ratio, without rolling). Defaults to “kyle”. | "kyle" |
scale | float | None | A multiplier applied to the measure for readability, and for “pastor_stambaugh” the dollar volume unit. Defaults to None, which uses 1,000,000 for “kyle”, “hasbrouck” and “martin”, 1,000,000,000 for “amihud”, “roll” and “pastor_stambaugh” (\(\gamma\) per billion dollars; the paper measures the dollar volume in millions, scale=1,000,000), 0.000001 for “amivest” (millions of dollars) and 1 otherwise. | 1000000000.0 |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise). | 2 |
growth | bool | Whether to calculate the growth of the measure over time. Defaults to False. | True |
lag | int | list[int] | The lag to use for the growth calculation. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
transform | str | list[str] | None | Time series steps applied in order, such as “sma:12” (moving average), “ema:12”, “std:12”, “zscore:60”, “percentile:120”, “yoy”, “pct_change:3,annualize:3”, “log”, “diff”, “cumsum” or “hp_trend” and “hp_cycle” (Hodrick-Prescott), before growth. A window needs that many periods of history, so the first periods can be empty. Defaults to None. | None |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
Which returns:
| Date | SNAP | ETSY | LYFT | Benchmark |
|---|---|---|---|---|
| 2025-01 | 1.7604 | 1.5887 | 1.3560 | 0.0443 |
| 2025-02 | 1.4169 | 1.4800 | 1.6796 | 0.0417 |
| 2025-03 | 1.6818 | 1.5364 | 1.7511 | 0.0560 |
| 2025-04 | 2.6385 | 1.9125 | 3.0928 | 0.1018 |
| 2025-05 | 1.5468 | 1.3470 | 2.3155 | 0.0396 |
| 2025-06 | 1.4662 | 1.2421 | 1.0213 | 0.0265 |
6 rows
References
- Paper Hasbrouck, J. (2009). “Trading Costs and Returns for U.S. Equities: Estimating Effective Costs from Daily Data.” The Journal of Finance, 64(3), 1445-1477.
- Paper López de Prado, M. (2018). “Advances in Financial Machine Learning.” Wiley, sections 19.3.2 and 19.4.