Omega, Sortino, and Kappa: How to Calculate in One Line
Kaplan and Knowles, extending the original work of Shadwick and Keating as well as that of Kazemi, Schneeweis, and Gupta, describe a generalized downside risk-adjusted measure Kappa. By design, the Omega and Sortino measures are special cases of the Kappa measure, and, as such, the Kappa function is capable of calculating both easily.
So that this very helpful function can be used by those in the community who are having difficulty with the original works, I am publishing a single-line Kappa function for Matlab.
% D : return series vector
% r : return threshold
% n : Kappa order
function k = kappa(D, r, n)
k = (mean(D) - r) ./ nthroot(mean((D < r) .* (r-D).^n), n);
To calculate the Omega measure, put n=1 and add 1 to the result, i.e. kappa(D, r, 1) + 1.
To calculate the Sortino ratio, put n=2, i.e. kappa(D,r,2).
- Michael J Bommarito II's blog
- Add new comment
- 3523 reads
Recent comments
14 weeks 3 days ago
19 weeks 2 days ago
23 weeks 1 day ago
28 weeks 6 days ago
33 weeks 2 days ago
43 weeks 1 day ago
44 weeks 2 days ago
1 year 11 hours ago
1 year 6 weeks ago
1 year 24 weeks ago