Information Discreteness
Calculate the Information Discreteness of each ticker: whether its momentum return of the last year came in many small daily moves (continuous information) or in a few large ones (discrete information), the “frog in the pan” measure of momentum quality of Da, Gurun and Warachka (2014).
Investors pay less attention to a series of small changes than to a few dramatic ones, like the frog that does not notice the water heating slowly, so they underreact to information that arrives continuously. In the paper, among stocks with the same past return, momentum earned 5.94% over six months for those with continuous information and -2.07% for those with discrete information, and the profits of continuous information lasted longer.
The formula is as follows:
\[\text{PRET} = \prod_{i=1}^{W} (1 + \text{Return}_{i}) - 1\] \[\text{Information Discreteness} = \operatorname{sign}\left(\text{PRET}\right) \cdot (\text{Negative Share} - \text{Positive Share})\]Where the product runs over the W daily returns of the formation period, the 252 trading days up to the date without the most recent 21 (the past 12 months without the last month, as for momentum), and the Negative Share and Positive Share are the shares of its daily returns below and above zero. A negative value means continuous information: a past winner that rose on most of its days, or a past loser that fell on most of them. Each period shows the value of its last trading day.
Also known as: information discreteness, ID, frog in the pan, FIP, momentum quality, continuous information.
Example · AAPL, TSLA, KO · 2024 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_information_discreteness:
from financetoolkit import Toolkit
toolkit = Toolkit(
["AAPL", "TSLA", "KO"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2024-01-01",
end_date="2025-06-30",
)
toolkit.performance.get_information_discreteness()
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
Did the momentum of Apple, Tesla and Coca-Cola over the past year come in many small daily moves or a few large ones, at the end of each month in the first half of 2025, by the frog-in-the-pan measure?
Which returns:
| Date | AAPL | TSLA | KO |
|---|---|---|---|
| 2025-01 | -0.1732 | -0.0390 | -0.0563 |
| 2025-02 | -0.1732 | -0.0043 | -0.0823 |
| 2025-03 | -0.1905 | 0.0216 | -0.0909 |
| 2025-04 | -0.1905 | 0.0043 | -0.0866 |
| 2025-05 | -0.1732 | -0.0043 | -0.0606 |
| 2025-06 | 0.1126 | -0.0303 | -0.0563 |
6 rows
Parameters
get_information_discreteness accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
period | str | The period whose last trading day is shown. Options are: “daily”, “weekly”, “monthly”, “quarterly”, “yearly”. Defaults to “monthly”. | "weekly" |
window | int | The number of trading days back the formation period starts. Defaults to 252. | 20 |
skip | int | The number of most recent trading days left out of the formation period, at least 0 and below window. Defaults to 21. | 21 |
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 values. 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 |
References
- Paper Da, Z., Gurun, U.G. and Warachka, M. (2014). “Frog in the Pan: Continuous Information and Momentum.” The Review of Financial Studies, 27(7), 2171-2218.