Probabilistic Momentum
Calculate the Probabilistic Momentum of Varadi (2014): the confidence that an asset outperforms the benchmark, the probability under Student’s t distribution that the mean of the differences between their returns is above 0.
The formula is as follows:
\[\text{Information Ratio} = \frac{\operatorname{Mean}(\text{Asset Return} - \text{Benchmark Return})}{\text{Standard Deviation}(\text{Asset Return} - \text{Benchmark Return})}\] \[\text{Probabilistic Momentum} = T(\text{Information Ratio} \cdot \sqrt{N},\; N - 1)\]Where N is the number of return differences and T the cumulative Student’s t distribution with N - 1 degrees of freedom. It is computed from the daily returns within each period, or with rolling from the returns of period over every rolling window of that many periods (e.g. daily returns and a rolling window of 60 for Varadi’s 60-day lookback). A value above 0.5 means the asset did better than the benchmark, and the more returns and the steadier the difference, the closer it gets to 1. Varadi switches between two assets only when the confidence passes a threshold such as 0.6, rather than on the sign of the return difference alone, which cuts the number of trades a momentum strategy makes on noise.
Also known as: probabilistic momentum, momentum confidence.
Example · AAPL, MSFT, KO · 2021 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_probabilistic_momentum:
from financetoolkit import Toolkit
toolkit = Toolkit(
["AAPL", "MSFT", "KO"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2021-01-01",
end_date="2025-12-31",
)
toolkit.performance.get_probabilistic_momentum()
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
How confident could you be that Apple, Microsoft and Coca-Cola outperformed the S&P 500 in each year from 2021 to 2025?
Which returns:
| Date | AAPL | MSFT | KO |
|---|---|---|---|
| 2021 | 0.6635 | 0.9006 | 0.2077 |
| 2022 | 0.3459 | 0.2999 | 0.9270 |
| 2023 | 0.8956 | 0.8939 | 0.0311 |
| 2024 | 0.6292 | 0.2550 | 0.2170 |
| 2025 | 0.4214 | 0.4813 | 0.4662 |
5 rows
Parameters
get_probabilistic_momentum accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
period | str | The period to use for the calculation. Options are: “daily”, “weekly”, “monthly”, “quarterly”, “yearly”. Defaults to “quarterly” if the Toolkit is initialised with quarterly=True, otherwise “yearly”. | "weekly" |
rolling | int | None | The number of periods in each rolling window. At least 2. Defaults to None, which uses the daily returns within each period. | 4 |
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 ratios. 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 |
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 |
References
- Paper Varadi, D. (2014). “Are Simple Momentum Strategies Too Dumb? Introducing Probabilistic Momentum.” CSS Analytics, 28 January 2014.
- Library Referenced against ffn’s calc_prob_mom
- Library Shares similar logic as PerformanceAnalytics (R)’s InformationRatio
- Library Shares similar logic as quantstats’ information_ratio
- Library Shares similar logic as ffn’s calc_information_ratio