Absorption Ratio

Calculate the Absorption Ratio of the Toolkit’s tickers: the share of their total variance that a few common drivers (the largest eigenvectors) explain, how tightly they move together and so how fragile the market they make up is, with its standardized shift as the early warning signal.

Kritzman, Li, Page and Rigobon (2011) take the eigenvectors (principal components) of the covariance matrix of a set of assets, such as the industries of a stock market. When a few eigenvectors absorb most of the variance, the assets are tightly coupled and a shock spreads quickly and broadly; when the variance is spread over many, the market is more resilient. The level of the ratio matters less than its change: in the paper all of the 1% worst monthly drawdowns of the U.S. stock market followed a rise of the 15-day average of the ratio by more than one standard deviation above its one-year average.

The formula is as follows:

\[\text{Absorption Ratio} = \frac{\sum_{i=1}^{n} \sigma_{E,i}^{2}}{\sum_{j=1}^{N} \sigma_{A,j}^{2}}\] \[n = \max\left(1, \text{Round}(0.2 \cdot N)\right)\] \[\text{Standardized Shift} = \frac{\text{SMA}(\text{AR}, \texttt{short\_window}) - \text{SMA}(\text{AR}, \texttt{long\_window})}{\text{StdDev}(\text{AR}, \texttt{long\_window})}\]

Where \(\sigma_{E , i}^{2}\) is the variance of the i-th eigenvector (its eigenvalue, from the largest down), \(\sigma_{A , j}^{2}\) the variance of ticker j, N the number of tickers, Round the rounding to the nearest whole number and n the number of eigenvectors, about one fifth of the tickers as in the paper. AR is the Absorption Ratio, averaged over the last 15 days (short_window) and the last year of 252 days (long_window). The covariance matrix of every day is estimated from the last 500 daily returns with exponential weights that halve every 250 days into the past, and the standard deviation of the shift is that of the ratio over the last year (with n - 1 in the denominator).

Also known as: absorption ratio, AR, principal components systemic risk, market fragility, AR shift.

Example · XLB, XLE, XLF, XLI, 5 more · 2021 to 2025

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

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["XLB", "XLE", "XLF", "XLI", "XLK", "XLP", "XLU", "XLV", "XLY"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.risk.get_absorption_ratio().loc["2025-04-01":"2025-04-11"]

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

How much of the variance of the nine original Select Sector SPDR ETFs did their main factors absorb on each trading day from 1 to 11 April 2025, and how fast was that share shifting, with data from 2021?

Which returns:

Parameters

get_absorption_ratio accepts the following parameters.

ParameterTypeDescriptionExample
windowintThe number of daily returns of every covariance matrix. Defaults to 500.20
half_lifefloatThe number of days after which the weight of a return has halved. Defaults to 250.250
fractionfloatThe share of the number of tickers that sets the number of eigenvectors, above 0 and at most 1. Defaults to 0.2.0.2
short_windowintThe number of days of the recent average of the shift. Defaults to 15.15
long_windowintThe number of days of the long average and the standard deviation of the shift. Defaults to 252.252
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 values over time. 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 Kritzman, M., Li, Y., Page, S. and Rigobon, R. (2011). “Principal Components as a Measure of Systemic Risk.” The Journal of Portfolio Management, 37(4), 112-126.
Share