Intermediary Beta

Calculate the Intermediary (Broker-Dealer Leverage) Beta of Adrian, Etula and Muir (2014) per ticker and quarter: how much the ticker’s return moves with the leverage of US securities broker-dealers, the risk appetite of the intermediaries that set asset prices.

Broker-dealers expand their balance sheets when funding is easy and are forced to deleverage when it tightens, when their marginal value of wealth is high. Assets that fall in the quarters in which broker-dealers deleverage (a high beta) are therefore risky and should earn a premium: in the paper a single factor, the leverage factor, prices the size, book-to-market, momentum and bond portfolios with a positive price of risk and small pricing errors.

The formula is as follows:

\[\text{Leverage}_{t} = \frac{\text{Total Financial Assets}_{t}}{\text{Total Financial Assets}_{t} - \text{Total Liabilities}_{t}}\] \[\text{Leverage Factor}_{t} = \Delta\text{Log Leverage}_{t} - \operatorname{mean}\left(\Delta\text{Log Leverage}_{s}\right)\] \[\text{Excess Return}_{t} = c + \beta_{\text{Lev}} \cdot \text{Leverage Factor}_{t} + \epsilon_{t}\] \[\text{Intermediary Beta} = \beta_{\text{Lev}}\]

Where Delta Log Leverage_t is the log change of the leverage and the mean runs over the quarters \(s \leq t\) in the same quarter of the year.

Where the total financial assets and liabilities are those of security brokers and dealers in the Financial Accounts of the United States (Z.1) of the Federal Reserve, the log changes are seasonally adjusted with quarterly dummies estimated on the data up to each quarter (in real time, as in the paper) from 1968, and the regression is ordinary least squares on the quarterly excess returns of the 40 quarters up to and including the quarter shown, with at least 20 of them.

Also known as: broker-dealer leverage beta, leverage factor beta, AEM beta, BetaBDLeverage, intermediary leverage beta.

Example · AAPL, MSFT, KO · 2010 to 2025

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

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["AAPL", "MSFT", "KO"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2010-01-01",
    end_date="2025-12-31",
)

toolkit.performance.get_intermediary_beta().loc["2024Q1":]

Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:

How much did the returns of Apple, Microsoft and Coca-Cola move with the leverage of US broker-dealers in each quarter of 2024 and 2025, with data from 2010?

Which returns:

Parameters

get_intermediary_beta accepts the following parameters.

ParameterTypeDescriptionExample
windowintThe number of quarters of each regression; it needs half of them (20 of the default 40). At least 6. Defaults to 40.20
roundingint | NoneThe number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise).2
growthboolWhether to calculate the growth of the Intermediary Beta. Defaults to False.True
lagint | list[int]The lag to use for the growth calculation. Defaults to 1.4
standardizeboolWhether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False.True
transformstr | list[str] | NoneTime 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_columnsstr | list[str] | NoneThe 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

References

  • Paper Adrian, T., Etula, E. and Muir, T. (2014). “Financial Intermediaries and the Cross-Section of Asset Returns.” Journal of Finance, 69(6), 2557-2596.
  • Library Shares similar logic as statsmodels’ RollingOLS
Share