Differential Sharpe Ratio for Online Trading Models
Summary
The document explains that the differential Sharpe ratio used in online trading models is a derivative with respect to the decay rate of exponential moving estimates of return moments. It defines a running estimate of the first moment and a running estimate of the second moment, then describes how changes in those estimates contribute to the differential measure. This gives a way to assess the effect of a newly realized return on the evolving Sharpe ratio, rather than differentiating a single asset’s ratio with respect to the asset itself.
A second answer proposes a different interpretation: treating the measure as sensitivity of Sharpe performance over time. The document presents this as an inference from an unclear paper, while the first answer identifies the established online-learning definition. It offers no empirical comparison or validation of the alternative, so that interpretation should be treated as speculative. The discussion is about defining an optimization signal, not evidence that optimizing it improves trading results.
Key ideas
- The differential Sharpe ratio differentiates the Sharpe measure with respect to the decay rate used in updating return moments.
- The method maintains exponentially weighted estimates of both the mean return and squared return.
- A new realized return affects the signal through changes to those running moment estimates.
- An alternative interpretation in the discussion is explicitly inferred from an unclear paper and is not established by evidence.
Tags
Full text
# What’s the derivative of the sharpe ratio for one asset? Trying to optimize on it for a model
# What’s the derivative of the sharpe ratio for one asset? Trying to optimize on it for a model
It seems most Sharpe ratio derivations seem to be for portfolios but I am just tracking a single asset?
$SR = (r_p - r_f) / \sigma_p$ but what would I derive with respect to for an optimization/ automated use case?
I am trying to understand how they use the Sharpe Ratio in this paper:
"Algorithm Trading using Q-Learning and Recurrent Reinforcement Learning", by Xin Du, Jinjian Zhai, Koupin Lv.
## Answer by A. G. (score 7)
https://quant.stackexchange.com/a/38040
I agree that the paper could be much clearer: what it calls the “Sharp ratio derivative” is actually the “differential Sharpe ratio” proposed in a NIPS paper by Moody & Safell.
In Section 2.2 of that (cited) paper, they define the differential Sharpe ratio as a value function that represents the influence of the trading strategy’s return $R_t$ realized at time $t$ on the Sharpe ratio $S_t$. Such a quantity is needed for on-line learning to occur.
For a Sharpe ratio $S_t$, the differential Sharpe ratio $D_t$ is the derivative taken with respect to a first-order exponential moving average decay rate $\eta$ in the first and second moments of the returns:
$D_t = \frac{d S_t}{d \eta} = \frac{B_{t-1} \Delta A_t - \frac{1}{2} A_{t-1} \Delta B_t}{(B_{t-1} - A_{t-1}^2)^\frac{3}{2}}$
where $A_t$ and $B_t$ are exponential moving estimates of the first and second moments of the returns $R_t$, respectively:
$A_t = A_{t-1} + \eta \Delta A_t = A_{t-1} + \eta (R_t - A_{t-1})$
$B_t = B_{t-1} + \eta \Delta B_t = B_{t-1} + \eta (R_t ^2- B_{t-1})$
## Answer by David Addison (score 0)
https://quant.stackexchange.com/a/37971
The paper is not very specific regarding methodology for taking the derivative Sharpe ratio (DSR). Based purely on subtext, I am inferring that the author intends to differentiate the Sharpe ratio with respect to itself.
The closest that the author comes to specifying DSR:
> Economically speaking, the derivative sharp ratio is analogous to the marginal utility in terms of willingness to bear how much risk for one unit increment of sharp ratio.
which makes me think that it might be the change in SR with respect to itself.
In any case, we begin with the definition of a derivative: $$\frac{dS}{d\tau}=\lim_{\tau \to 0}\frac{S[t+\tau]-S[t]}{\tau}$$
The paper further says that rather than find a symbolic solution to the derivative, the gradient would be measured across multiple time steps. Thus, we can discretize $\frac{dS}{S}$ as such:
$$ \frac{\sum_{t}^T (S[\tau]-S[\tau-1])}{\sum_{t-1}^TS[\tau]}$$
...which expands to:
$$ \left(\frac{r_{a(T))}-r_{m(T)}}{\sigma_{a(T)}}-\frac{r_{a(t)}-r_{m(t)}}{\sigma_{a(t)}}\right) * \left(\frac{\bar{r}_a-\bar{r}_m}{\bar{\sigma}_a}\right)^{-1}$$
which gives us something akin to the author's specification for a the marginal utility function of an incremental gain in the SR. In this case, the "derivative Sharpe ratio" (DSR) is not really a performance metric itself, but rather a sensitivity metric to changes in risk adjusted performance.Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.