In one line. All the weekly returns added up, divided by all the weekly losses added up as positive numbers. A reading of 0.5 means the net gain was half the size of the total losses suffered on the way.
Gain to pain, explained
Add every weekly return, gains and losses together, to get the net result. Separately add up the size of the losing weeks, ignoring the minus signs. Divide the first by the second. The ratio asks how much net result each unit of pain produced. A value of 1 says the net gain equalled the total of the losses; a value below 0 says the losses outweighed the gains.
Unlike the Sharpe ratio, it uses no standard deviation and no risk free rate, and like the Sortino ratio it penalises only losses, but it works with the actual size of every loss and not a squared average. It also depends on the length of history: more years of steady gain push the numerator up while losses accumulate too, so comparisons are fairer between periods of similar length. A weekly version will not give the same number as a monthly one.
A high value can come from a few large gains against many small losses, or from a long run of small gains and almost no losses, and the ratio does not tell which. It is also blind to the order of returns, so it says nothing about a long slump; time under water and drawdown cover that. Used with the share of positive weeks, it shows whether profits came from frequency or from size. The profit factor is a close neighbour that divides gains by losses, not net result by losses.
The formula
Gain to pain = Sum of all weekly returns / Sum of the absolute values of the losing weeks
A worked example
Illustration: eight weekly returns of +2, -1, +1.5, -0.5, +3, -2, +1 and -1 percent. Their sum is 2 - 1 + 1.5 - 0.5 + 3 - 2 + 1 - 1 = +3.0 points. The losing weeks are -1, -0.5, -2 and -1, which add up to 4.5 in size. Gain to pain = 3.0 / 4.5 = 0.67. The gross gains were 7.5 points, so the 4.5 points of pain absorbed 60 percent of them, and what remained was 3.0. The numbers are invented to show the steps.
Common misreadings
- Gain to pain is the Sharpe ratio under another name: it uses the size of losses and the sum of returns, with no standard deviation.
- Gain to pain shows the worst loss: it adds up all losing weeks, and the worst fall is a separate figure.
In the RupeeCase app
Strategy page and portfolio page, Returns tab, Return figures card. Shown in Advanced, or pin it to Basic.
How the app works it out. Sum of every weekly return over the sum of the absolute losing weeks.
Watch: Advanced risk figures, Return figures.