Prospect Ratio
Calculate the Prospect Ratio of an investment portfolio or asset’s returns, a Sortino-type ratio in which losses weigh more heavily than gains, following the loss aversion of prospect theory: people feel a loss about 2.25 times as strongly as a gain of the same size.
The formula is as follows:
\[\text{Prospect Ratio} = \frac{\frac{1}{N} \cdot \sum(\max(\text{Returns},\; 0) + \lambda \cdot \min(\text{Returns},\; 0)) - \text{MAR}}{\text{Downside Deviation}}\] \[\text{Downside Deviation} = \sqrt{\frac{1}{N} \cdot \sum(\min(\text{Returns} - \text{MAR},\; 0)^{2})}\]Where N is the number of daily returns within the period, MAR the minimum acceptable return per day and \(\lambda\) the loss aversion (2.25, Tversky and Kahneman, 1992). Like the Sortino ratio it is a per-observation ratio, not annualized.
Example · JPM, BAC, WFC · 2021 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_prospect_ratio:
from financetoolkit import Toolkit
toolkit = Toolkit(
["JPM", "BAC", "WFC"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2021-01-01",
end_date="2025-12-31",
)
toolkit.performance.get_prospect_ratio()
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
What was the prospect ratio of JPMorgan Chase, Bank of America and Wells Fargo in each year from 2021 to 2025?
Which returns:
| Date | JPM | BAC | WFC |
|---|---|---|---|
| 2021 | -0.5512 | -0.4938 | -0.4750 |
| 2022 | -0.7413 | -0.7963 | -0.7150 |
| 2023 | -0.4453 | -0.6298 | -0.5457 |
| 2024 | -0.3685 | -0.5124 | -0.4513 |
| 2025 | -0.4087 | -0.4111 | -0.4329 |
5 rows
Parameters
get_prospect_ratio 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" |
within_period | bool | Whether to calculate the ratio from the daily returns within each period or from the period returns of the entirety of all periods, one value per ticker. Defaults to True. | True |
minimum_acceptable_return | float | The minimum acceptable return (MAR) per daily return (per period return with within_period=False). Defaults to 0.0. | 0.001 |
loss_aversion | float | The weight \(\lambda\) of the losses relative to the gains. Defaults to 2.25. | 2.25 |
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 Watanabe, Y. (2006). “Is Sharpe Ratio Still Effective?” Journal of Performance Measurement, 11(1), 55-66.
- Paper Tversky, A., & Kahneman, D. (1992). “Advances in Prospect Theory: Cumulative Representation of Uncertainty.” Journal of Risk and Uncertainty, 5(4), 297-323.
- Paper Bacon, C.R. (2008). “Practical Portfolio Performance Measurement and Attribution.” 2nd edition, John Wiley & Sons, p. 100.
- Library Referenced against PerformanceAnalytics (R)’s ProspectRatio