[jira] Commented: (MATH-323) Add Semivariance calculation
[ https://issues.apache.org/jira/browse/MATH-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12836607#action_12836607 ] Larry Diamond commented on MATH-323: Thank you! This was a great experience for me and I appreciate your time and effort in making this happen. I was more than happy to contribute and will probably do it again (I've done other quantitative work that I'd like to contribute). I have a better idea on how to format the contribution from the initial proposal so it can be included quicker. Thank you for your time and effort - this was a good learning experience for me. > Add Semivariance calculation > > > Key: MATH-323 > URL: https://issues.apache.org/jira/browse/MATH-323 > Project: Commons Math > Issue Type: New Feature >Affects Versions: 2.1 >Reporter: Larry Diamond >Assignee: Phil Steitz >Priority: Minor > Fix For: 2.1 > > Attachments: patch.txt, patch2.txt, SemiVariance.java, > SemiVariance.java, SemiVariance.java, SemiVarianceTest.java, > SemiVarianceTest.java, SemiVarianceTest.java, StatUtils.java, StatUtils.java, > StatUtilsTest.java, StatUtilsTest.java > > > I've added semivariance calculations to my local build of commons-math and I > would like to contribute them. > Semivariance is described a little bit on > http://en.wikipedia.org/wiki/Semivariance , but a real reason you would use > them is in finance in order to compute the Sortino ratio rather than the > Sharpe ratio. > http://en.wikipedia.org/wiki/Sortino_ratio gives an explanation of the > Sortino ratio and why you would choose to use that rather than the Sharpe > ratio. (There are other ways to measure the performance of your portfolio, > but I wont bore everybody with that stuff) > I've already got the coding completed along with the test cases and building > using mvn site. > The only two files I've modified is > src/main/java/org/apache/commons/stat/StatUtils.java and > src/test/java/org/apache/commons/math/stat/StatUtilsTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (MATH-323) Add Semivariance calculation
[ https://issues.apache.org/jira/browse/MATH-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12828207#action_12828207 ] Larry Diamond commented on MATH-323: No worries. I'm on the apache mailing lists - you've been busy. Sure - I'm on board. How can I help make it happen? > Add Semivariance calculation > > > Key: MATH-323 > URL: https://issues.apache.org/jira/browse/MATH-323 > Project: Commons Math > Issue Type: New Feature >Affects Versions: 2.1 >Reporter: Larry Diamond >Assignee: Phil Steitz >Priority: Minor > Fix For: 2.1 > > Attachments: patch.txt, patch2.txt, SemiVariance.java, > SemiVariance.java, SemiVariance.java, SemiVarianceTest.java, > SemiVarianceTest.java, SemiVarianceTest.java, StatUtils.java, StatUtils.java, > StatUtilsTest.java, StatUtilsTest.java > > > I've added semivariance calculations to my local build of commons-math and I > would like to contribute them. > Semivariance is described a little bit on > http://en.wikipedia.org/wiki/Semivariance , but a real reason you would use > them is in finance in order to compute the Sortino ratio rather than the > Sharpe ratio. > http://en.wikipedia.org/wiki/Sortino_ratio gives an explanation of the > Sortino ratio and why you would choose to use that rather than the Sharpe > ratio. (There are other ways to measure the performance of your portfolio, > but I wont bore everybody with that stuff) > I've already got the coding completed along with the test cases and building > using mvn site. > The only two files I've modified is > src/main/java/org/apache/commons/stat/StatUtils.java and > src/test/java/org/apache/commons/math/stat/StatUtilsTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (MATH-323) Add Semivariance calculation
[ https://issues.apache.org/jira/browse/MATH-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Larry Diamond updated MATH-323: --- Attachment: SemiVariance.java SemiVarianceTest.java Added more documentation for the class and some more test cases. Hopefully, these additions will make the contribution easier to understand. > Add Semivariance calculation > > > Key: MATH-323 > URL: https://issues.apache.org/jira/browse/MATH-323 > Project: Commons Math > Issue Type: New Feature >Affects Versions: 2.1 >Reporter: Larry Diamond >Assignee: Phil Steitz >Priority: Minor > Fix For: 2.1 > > Attachments: patch.txt, patch2.txt, SemiVariance.java, > SemiVariance.java, SemiVariance.java, SemiVarianceTest.java, > SemiVarianceTest.java, SemiVarianceTest.java, StatUtils.java, StatUtils.java, > StatUtilsTest.java, StatUtilsTest.java > > > I've added semivariance calculations to my local build of commons-math and I > would like to contribute them. > Semivariance is described a little bit on > http://en.wikipedia.org/wiki/Semivariance , but a real reason you would use > them is in finance in order to compute the Sortino ratio rather than the > Sharpe ratio. > http://en.wikipedia.org/wiki/Sortino_ratio gives an explanation of the > Sortino ratio and why you would choose to use that rather than the Sharpe > ratio. (There are other ways to measure the performance of your portfolio, > but I wont bore everybody with that stuff) > I've already got the coding completed along with the test cases and building > using mvn site. > The only two files I've modified is > src/main/java/org/apache/commons/stat/StatUtils.java and > src/test/java/org/apache/commons/math/stat/StatUtilsTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (MATH-323) Add Semivariance calculation
[ https://issues.apache.org/jira/browse/MATH-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Larry Diamond updated MATH-323: --- Attachment: SemiVarianceTest.java And now the tests are complete! I'm glad I did all this - the code itself was not difficult, explaining the concept and the documentation for the code and all the "stuff" around it was much more extensive than what I've worked with in the past. Thank you very much - I hope my code makes it into the next release - it certainly was interesting, fun, and "cool" to do from my perspective. Larry Diamond > Add Semivariance calculation > > > Key: MATH-323 > URL: https://issues.apache.org/jira/browse/MATH-323 > Project: Commons Math > Issue Type: New Feature >Affects Versions: 2.1 >Reporter: Larry Diamond >Assignee: Phil Steitz >Priority: Minor > Fix For: 2.1 > > Attachments: patch.txt, patch2.txt, SemiVariance.java, > SemiVariance.java, SemiVarianceTest.java, SemiVarianceTest.java, > StatUtils.java, StatUtils.java, StatUtilsTest.java, StatUtilsTest.java > > > I've added semivariance calculations to my local build of commons-math and I > would like to contribute them. > Semivariance is described a little bit on > http://en.wikipedia.org/wiki/Semivariance , but a real reason you would use > them is in finance in order to compute the Sortino ratio rather than the > Sharpe ratio. > http://en.wikipedia.org/wiki/Sortino_ratio gives an explanation of the > Sortino ratio and why you would choose to use that rather than the Sharpe > ratio. (There are other ways to measure the performance of your portfolio, > but I wont bore everybody with that stuff) > I've already got the coding completed along with the test cases and building > using mvn site. > The only two files I've modified is > src/main/java/org/apache/commons/stat/StatUtils.java and > src/test/java/org/apache/commons/math/stat/StatUtilsTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (MATH-323) Add Semivariance calculation
[ https://issues.apache.org/jira/browse/MATH-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Larry Diamond updated MATH-323: --- Attachment: SemiVariance.java Hi again. The class is now documented, hopefully I have made the concept easier to understand. Most of the work on this class has been documentation, most of the code changes are to ensure the class extends AbstractUnivariateStatistic and fills in any missing methods that AbstractUnivariateStatistic requires. I've broken every last one of my test cases and I need to rework them from scratch now, but I think I'm at a point now where I can post the work for review. > Add Semivariance calculation > > > Key: MATH-323 > URL: https://issues.apache.org/jira/browse/MATH-323 > Project: Commons Math > Issue Type: New Feature >Affects Versions: 2.1 >Reporter: Larry Diamond >Assignee: Phil Steitz >Priority: Minor > Fix For: 2.1 > > Attachments: patch.txt, patch2.txt, SemiVariance.java, > SemiVariance.java, SemiVarianceTest.java, StatUtils.java, StatUtils.java, > StatUtilsTest.java, StatUtilsTest.java > > > I've added semivariance calculations to my local build of commons-math and I > would like to contribute them. > Semivariance is described a little bit on > http://en.wikipedia.org/wiki/Semivariance , but a real reason you would use > them is in finance in order to compute the Sortino ratio rather than the > Sharpe ratio. > http://en.wikipedia.org/wiki/Sortino_ratio gives an explanation of the > Sortino ratio and why you would choose to use that rather than the Sharpe > ratio. (There are other ways to measure the performance of your portfolio, > but I wont bore everybody with that stuff) > I've already got the coding completed along with the test cases and building > using mvn site. > The only two files I've modified is > src/main/java/org/apache/commons/stat/StatUtils.java and > src/test/java/org/apache/commons/math/stat/StatUtilsTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (MATH-323) Add Semivariance calculation
[ https://issues.apache.org/jira/browse/MATH-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795667#action_12795667 ] Larry Diamond commented on MATH-323: Thanks - I'll hopefully get this over the weekend. Those annoying people who pay me a salary have been actually consuming me time recently and I havent gotten done what I hoped. Clearly, step one is those "Documentation Goes Here" bits. Getting those in there would clarify your third point and I see is ***KEY*** to publicly reusable software. I agree with not using AbstractStorelessUnivariateStatistic - I have to read over AbstractUnivariateStatistic to make sure I can use it. I'd like to extend something in the package. I'll look at the UnivariateStatistic to see the constructors. I can see that you'd want to calculate Upward and Downward on the same data (and really the full variance too), although yeah, once you have one you automatically have the other (full - downward = upward). Clearly, those documentation bits would make what I'm talking about much clearer to all readers of this post. Thanks for the note on the not using boolean there. There was just no way that I could have people try to remember which direction was true and which direction was false. That's just silly and cruel. > Add Semivariance calculation > > > Key: MATH-323 > URL: https://issues.apache.org/jira/browse/MATH-323 > Project: Commons Math > Issue Type: New Feature >Affects Versions: 2.1 >Reporter: Larry Diamond >Assignee: Phil Steitz >Priority: Minor > Fix For: 2.1 > > Attachments: patch.txt, patch2.txt, SemiVariance.java, > SemiVarianceTest.java, StatUtils.java, StatUtils.java, StatUtilsTest.java, > StatUtilsTest.java > > > I've added semivariance calculations to my local build of commons-math and I > would like to contribute them. > Semivariance is described a little bit on > http://en.wikipedia.org/wiki/Semivariance , but a real reason you would use > them is in finance in order to compute the Sortino ratio rather than the > Sharpe ratio. > http://en.wikipedia.org/wiki/Sortino_ratio gives an explanation of the > Sortino ratio and why you would choose to use that rather than the Sharpe > ratio. (There are other ways to measure the performance of your portfolio, > but I wont bore everybody with that stuff) > I've already got the coding completed along with the test cases and building > using mvn site. > The only two files I've modified is > src/main/java/org/apache/commons/stat/StatUtils.java and > src/test/java/org/apache/commons/math/stat/StatUtilsTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (MATH-323) Add Semivariance calculation
[ https://issues.apache.org/jira/browse/MATH-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Larry Diamond updated MATH-323: --- Attachment: SemiVarianceTest.java SemiVariance.java Please find attached the new class for SemiVariance and the testing class. I'll get going on the remaining items I listed. Can you please take a look and confirm this is the right direction please? Thank you very much! Larry Diamond (PS - Happy New Year if we dont email before then!) > Add Semivariance calculation > > > Key: MATH-323 > URL: https://issues.apache.org/jira/browse/MATH-323 > Project: Commons Math > Issue Type: New Feature >Affects Versions: 2.1 >Reporter: Larry Diamond >Assignee: Phil Steitz >Priority: Minor > Fix For: 2.1 > > Attachments: patch.txt, patch2.txt, SemiVariance.java, > SemiVarianceTest.java, StatUtils.java, StatUtils.java, StatUtilsTest.java, > StatUtilsTest.java > > > I've added semivariance calculations to my local build of commons-math and I > would like to contribute them. > Semivariance is described a little bit on > http://en.wikipedia.org/wiki/Semivariance , but a real reason you would use > them is in finance in order to compute the Sortino ratio rather than the > Sharpe ratio. > http://en.wikipedia.org/wiki/Sortino_ratio gives an explanation of the > Sortino ratio and why you would choose to use that rather than the Sharpe > ratio. (There are other ways to measure the performance of your portfolio, > but I wont bore everybody with that stuff) > I've already got the coding completed along with the test cases and building > using mvn site. > The only two files I've modified is > src/main/java/org/apache/commons/stat/StatUtils.java and > src/test/java/org/apache/commons/math/stat/StatUtilsTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (MATH-323) Add Semivariance calculation
[ https://issues.apache.org/jira/browse/MATH-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795454#action_12795454 ] Larry Diamond commented on MATH-323: How do the files I'm about to attach look? I believe this is the right direction - I still need to hook this into the class hierarchy, write up the documentation, and possibly put in something into the StatUtils class. I went with an independent class that's a peer of Variance. This code does require Java 5 to build - I hope Math is building that way. > Add Semivariance calculation > > > Key: MATH-323 > URL: https://issues.apache.org/jira/browse/MATH-323 > Project: Commons Math > Issue Type: New Feature >Affects Versions: 2.1 >Reporter: Larry Diamond >Assignee: Phil Steitz >Priority: Minor > Fix For: 2.1 > > Attachments: patch.txt, patch2.txt, StatUtils.java, StatUtils.java, > StatUtilsTest.java, StatUtilsTest.java > > > I've added semivariance calculations to my local build of commons-math and I > would like to contribute them. > Semivariance is described a little bit on > http://en.wikipedia.org/wiki/Semivariance , but a real reason you would use > them is in finance in order to compute the Sortino ratio rather than the > Sharpe ratio. > http://en.wikipedia.org/wiki/Sortino_ratio gives an explanation of the > Sortino ratio and why you would choose to use that rather than the Sharpe > ratio. (There are other ways to measure the performance of your portfolio, > but I wont bore everybody with that stuff) > I've already got the coding completed along with the test cases and building > using mvn site. > The only two files I've modified is > src/main/java/org/apache/commons/stat/StatUtils.java and > src/test/java/org/apache/commons/math/stat/StatUtilsTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (MATH-323) Add Semivariance calculation
[ https://issues.apache.org/jira/browse/MATH-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12794944#action_12794944 ] Larry Diamond commented on MATH-323: I'm working on a SemiVariance.java class and SemiVarianceTest.java class for the second try on this. It's a bit different working on code for public reuse than it is working on code for reuse within the firm or for your own use. As regards to the biased vs unbiased thing, I feel that Variance does it right - start it off bias corrected and allow the caller to change it if it's appropriate for their use. There's also an upside standard deviation which is the same thing except you accept only the data elements above the cutoff value. I should have it ready tomorrow > Add Semivariance calculation > > > Key: MATH-323 > URL: https://issues.apache.org/jira/browse/MATH-323 > Project: Commons Math > Issue Type: New Feature >Affects Versions: 2.1 >Reporter: Larry Diamond >Assignee: Phil Steitz >Priority: Minor > Fix For: 2.1 > > Attachments: patch.txt, patch2.txt, StatUtils.java, StatUtils.java, > StatUtilsTest.java, StatUtilsTest.java > > > I've added semivariance calculations to my local build of commons-math and I > would like to contribute them. > Semivariance is described a little bit on > http://en.wikipedia.org/wiki/Semivariance , but a real reason you would use > them is in finance in order to compute the Sortino ratio rather than the > Sharpe ratio. > http://en.wikipedia.org/wiki/Sortino_ratio gives an explanation of the > Sortino ratio and why you would choose to use that rather than the Sharpe > ratio. (There are other ways to measure the performance of your portfolio, > but I wont bore everybody with that stuff) > I've already got the coding completed along with the test cases and building > using mvn site. > The only two files I've modified is > src/main/java/org/apache/commons/stat/StatUtils.java and > src/test/java/org/apache/commons/math/stat/StatUtilsTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (MATH-323) Add Semivariance calculation
[ https://issues.apache.org/jira/browse/MATH-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12794241#action_12794241 ] Larry Diamond commented on MATH-323: Hi Phil. No worries - its the holiday season and it's an all volunteer project. I find you and Luc to be very responsive all things given. I actually find the process of contributing to the project very straightforward - it's intimidating until you try, but you both have been very easy to work with. Short Answer - we'll be talking about a UnivariateStatistic really soon. Long Answer - Addressing your questions (in no particular order) This link will help somewhat - http://thecuriousinvestor.com/2007/10/03/sortino-ratio/ 1. Some of the tests will occur twice in some of the functions. I copied the four methods for variance to create the semi-variance methods - I'm having second thoughts about that since I really would only call the one that takes the array or possibly the array and the mean. I've never needed to compute semi-variance for a part of an array. I'm very flexible on this - I went for consistency rather than the best performance possible - feel free to make changes as you see fit. 2. The Sortino ratio uses the downward standard deviation, which is the square root of the semivariance. You definitely would want to keep the values above the mean and collapse them rather than exclude them altogether. A simple explanation of the Sortino Ratio is probably in order to explain why. The Sortino Ratio comes from the Sharpe Ratio. The Sharpe Ratio is used to rate how much reward you're getting for the risk you're taking. Standard Deviation is the divisor. Higher is better. One criticism of the Sharpe Ratio is that returns in excess of the mean increase your standard deviation, but you don't getting big rewards from time to time - those periods shouldnt count. An example helps here Here's your monthly returns. -1 0 1 2 2 20 That 20% return is nice (I'd like a 20% monthly return too!) but that 20% makes your standard deviation higher and your Sharpe Ratio lower. But nobody minds an occassional blowout return - that doesnt increase the risk of the fund in the view of people who prefer the Sortino Ratio. Mean = 4, Variance = 52.333, Std Dev = 7.234 But for the semivariance calculation, that 20 becomes a 4 and stays in the set, so semivariance becomes 9.666 and the downward standard deviation becomes 3.109. Dropping out the 20% isn't appropriate because it's part of your return. That's a big difference in how your performance looks - 7.234 / 3.109 = 2.326. Your fund now looks 2.3 times better than it did before! That "other" parameter is often called the "minimum acceptable return". Some people prefer to look at only when you lost money or would fail to meet some regular performance metric. Pension managers get estimates on what they need to make that year and will look for people who have the best chance of making that return. Instead of looking at the mean, they have a minimum return that they want to measure off of. So, from the example above, let's say that the pension manager has a minimum acceptable return of 2%. In that case, the 2% and 20% returns dont add into the semivariance so you get a semivariance of 8.333 This is where that zero initially came from. Okay, now here's the little curveball that initially sounds bad but really turns into something easy: Some years, you lose money. The mean is below zero. In those cases, that minimum acceptable return is "sometimes" the minimum of the mean and zero. Rather than putting in code that automatically checks the mean and replaces the minimum acceptable return, if we have code that takes in the double array and the MAR, I think we're fine. Okay, now that I've made a really long JIRA comment, what's the next step? Should I rewrite as a UnivariateStatistic? Should I just make the semivariance code two methods - one that takes the array and one that takes the array and a MAR? Or has this entry been so long I've made you want to hit the eggnog? > Add Semivariance calculation > > > Key: MATH-323 > URL: https://issues.apache.org/jira/browse/MATH-323 > Project: Commons Math > Issue Type: New Feature >Affects Versions: 2.1 >Reporter: Larry Diamond >Assignee: Phil Steitz >Priority: Minor > Fix For: 2.1 > > Attachments: patch.txt, patch2.txt, StatUtils.java, StatUtils.java, > StatUtilsTest.java, StatUtilsTest.java > > > I've added semivariance calculations to my local build of commons-math and I > would like to contribute them. > Semivariance is described a little bit on > http://en.wikipedia.org/wiki/Semivariance , but a real reason you would use > them is in finance in order to compute the Sortino ratio rat
[jira] Updated: (MATH-323) Add Semivariance calculation
[ https://issues.apache.org/jira/browse/MATH-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Larry Diamond updated MATH-323: --- Attachment: StatUtilsTest.java StatUtils.java patch2.txt Here's an update where the zero adjustment isn't presumed elsewhere. I've also added more test cases. Please feel free to contact me if you have any questions about this submission. Thank you very much for your time and attention. > Add Semivariance calculation > > > Key: MATH-323 > URL: https://issues.apache.org/jira/browse/MATH-323 > Project: Commons Math > Issue Type: New Feature >Affects Versions: 2.1 >Reporter: Larry Diamond >Assignee: Phil Steitz >Priority: Minor > Fix For: 2.1 > > Attachments: patch.txt, patch2.txt, StatUtils.java, StatUtils.java, > StatUtilsTest.java, StatUtilsTest.java > > > I've added semivariance calculations to my local build of commons-math and I > would like to contribute them. > Semivariance is described a little bit on > http://en.wikipedia.org/wiki/Semivariance , but a real reason you would use > them is in finance in order to compute the Sortino ratio rather than the > Sharpe ratio. > http://en.wikipedia.org/wiki/Sortino_ratio gives an explanation of the > Sortino ratio and why you would choose to use that rather than the Sharpe > ratio. (There are other ways to measure the performance of your portfolio, > but I wont bore everybody with that stuff) > I've already got the coding completed along with the test cases and building > using mvn site. > The only two files I've modified is > src/main/java/org/apache/commons/stat/StatUtils.java and > src/test/java/org/apache/commons/math/stat/StatUtilsTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (MATH-323) Add Semivariance calculation
[ https://issues.apache.org/jira/browse/MATH-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791454#action_12791454 ] Larry Diamond commented on MATH-323: Oh my this is embarrassing. You're right Luc. I messed up the algo when copying it from my source. When computing the Sortino ratio, you're eliminating the losses - so the code is correct for the Sortino ratio but is not truly semivariance. For anything below the mean, you should replace the value with the mean for the original distribution. I had zero adjusted the distribution before I called the method. I'll do a rewrite on this code and reattach it to this issue. Thank you for reviewing the code! I am so embarrassed! > Add Semivariance calculation > > > Key: MATH-323 > URL: https://issues.apache.org/jira/browse/MATH-323 > Project: Commons Math > Issue Type: New Feature >Affects Versions: 2.1 >Reporter: Larry Diamond >Assignee: Phil Steitz >Priority: Minor > Fix For: 2.1 > > Attachments: patch.txt, StatUtils.java, StatUtilsTest.java > > > I've added semivariance calculations to my local build of commons-math and I > would like to contribute them. > Semivariance is described a little bit on > http://en.wikipedia.org/wiki/Semivariance , but a real reason you would use > them is in finance in order to compute the Sortino ratio rather than the > Sharpe ratio. > http://en.wikipedia.org/wiki/Sortino_ratio gives an explanation of the > Sortino ratio and why you would choose to use that rather than the Sharpe > ratio. (There are other ways to measure the performance of your portfolio, > but I wont bore everybody with that stuff) > I've already got the coding completed along with the test cases and building > using mvn site. > The only two files I've modified is > src/main/java/org/apache/commons/stat/StatUtils.java and > src/test/java/org/apache/commons/math/stat/StatUtilsTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (MATH-323) Add Semivariance calculation
[ https://issues.apache.org/jira/browse/MATH-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Larry Diamond updated MATH-323: --- Attachment: patch.txt And here's the patch file as per the Math developers contribution guideline > Add Semivariance calculation > > > Key: MATH-323 > URL: https://issues.apache.org/jira/browse/MATH-323 > Project: Commons Math > Issue Type: New Feature >Affects Versions: 2.1 >Reporter: Larry Diamond >Priority: Minor > Fix For: 2.1 > > Attachments: patch.txt, StatUtils.java, StatUtilsTest.java > > > I've added semivariance calculations to my local build of commons-math and I > would like to contribute them. > Semivariance is described a little bit on > http://en.wikipedia.org/wiki/Semivariance , but a real reason you would use > them is in finance in order to compute the Sortino ratio rather than the > Sharpe ratio. > http://en.wikipedia.org/wiki/Sortino_ratio gives an explanation of the > Sortino ratio and why you would choose to use that rather than the Sharpe > ratio. (There are other ways to measure the performance of your portfolio, > but I wont bore everybody with that stuff) > I've already got the coding completed along with the test cases and building > using mvn site. > The only two files I've modified is > src/main/java/org/apache/commons/stat/StatUtils.java and > src/test/java/org/apache/commons/math/stat/StatUtilsTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (MATH-323) Add Semivariance calculation
[ https://issues.apache.org/jira/browse/MATH-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Larry Diamond updated MATH-323: --- Attachment: StatUtilsTest.java StatUtils.java Please find attached the modified StatUtils.java and StatUtilsTest.java classes for semivariance > Add Semivariance calculation > > > Key: MATH-323 > URL: https://issues.apache.org/jira/browse/MATH-323 > Project: Commons Math > Issue Type: New Feature >Affects Versions: 2.1 >Reporter: Larry Diamond >Priority: Minor > Fix For: 2.1 > > Attachments: StatUtils.java, StatUtilsTest.java > > > I've added semivariance calculations to my local build of commons-math and I > would like to contribute them. > Semivariance is described a little bit on > http://en.wikipedia.org/wiki/Semivariance , but a real reason you would use > them is in finance in order to compute the Sortino ratio rather than the > Sharpe ratio. > http://en.wikipedia.org/wiki/Sortino_ratio gives an explanation of the > Sortino ratio and why you would choose to use that rather than the Sharpe > ratio. (There are other ways to measure the performance of your portfolio, > but I wont bore everybody with that stuff) > I've already got the coding completed along with the test cases and building > using mvn site. > The only two files I've modified is > src/main/java/org/apache/commons/stat/StatUtils.java and > src/test/java/org/apache/commons/math/stat/StatUtilsTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Created: (MATH-323) Add Semivariance calculation
Add Semivariance calculation Key: MATH-323 URL: https://issues.apache.org/jira/browse/MATH-323 Project: Commons Math Issue Type: New Feature Affects Versions: 2.1 Reporter: Larry Diamond Priority: Minor Fix For: 2.1 I've added semivariance calculations to my local build of commons-math and I would like to contribute them. Semivariance is described a little bit on http://en.wikipedia.org/wiki/Semivariance , but a real reason you would use them is in finance in order to compute the Sortino ratio rather than the Sharpe ratio. http://en.wikipedia.org/wiki/Sortino_ratio gives an explanation of the Sortino ratio and why you would choose to use that rather than the Sharpe ratio. (There are other ways to measure the performance of your portfolio, but I wont bore everybody with that stuff) I've already got the coding completed along with the test cases and building using mvn site. The only two files I've modified is src/main/java/org/apache/commons/stat/StatUtils.java and src/test/java/org/apache/commons/math/stat/StatUtilsTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.