Smart Sortino Ratio

The Smart Sortino Ratio of quantstats divides the Sortino Ratio by the autocorrelation penalty that also gives the Smart Sharpe Ratio, so that serially correlated returns no longer flatter it. Positively autocorrelated returns, as for the smoothed prices of illiquid assets, make the risk of one return understate that of holding the asset over several periods.

The formula for the Smart Sortino Ratio is as follows:

\[\text{Smart Sortino Ratio} = \frac{\text{Sortino Ratio}}{\sqrt{1 + 2 \cdot \sum_{k=1}^{n - 1} \frac{n - k}{n} \cdot \left\lvert \rho\right\rvert^{k}}}\]

Where n is the number of excess returns and rho their first-order autocorrelation, so the autocorrelation at lag k is taken as rho to the power k. Without autocorrelation the penalty is 1 and the Smart Sortino Ratio equals the Sortino Ratio; the stronger the autocorrelation, the lower it is.

Investors do not mind returns that are higher than expected, yet the standard deviation in the Sharpe ratio counts them as risk just as much as losses. Sortino and van der Meer (1991) argued that risk is the chance of falling short of a target, the minimum acceptable return, and measured it with the downside deviation, which only counts the returns below that target. Dividing the excess return by the downside deviation gives a risk-adjusted return that rewards an asset whose volatility lies mostly on the upside. Here the target is the risk free rate, so the returns below it are the negative excess returns. The variants correct the ratio for serially correlated returns, scale it to compare with the Sharpe ratio, or turn it into the probability that it is above zero.

See definition: Sortino ratio (Wikipedia)

Also known as: smart Sortino, autocorrelation-penalized Sortino ratio.

In the Finance Toolkit this is get_sortino_ratio with method="smart", the same function as Sortino Ratio.

Example · V, MA, AXP · 2021 to 2025

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

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["V", "MA", "AXP"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.performance.get_sortino_ratio(method="smart")

Which returns:

References

  • Paper Lo, A.W. (2002). “The Statistics of Sharpe Ratios.” Financial Analysts Journal, 58(4), 36-52.
  • Library Referenced against quantstats’ smart_sortino (Smart Sortino Ratio)
  • Library Referenced against quantstats’ autocorr_penalty (Smart Sortino Ratio)
Share