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
- 3498 reads
Recent comments
13 weeks 2 days ago
18 weeks 2 days ago
22 weeks 17 hours ago
27 weeks 6 days ago
32 weeks 1 day ago
42 weeks 23 hours ago
43 weeks 1 day ago
51 weeks 22 hours ago
1 year 5 weeks ago
1 year 23 weeks ago