Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 79554 invoked from network); 29 Dec 2009 20:16:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Dec 2009 20:16:01 -0000 Received: (qmail 33302 invoked by uid 500); 29 Dec 2009 20:16:00 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 33177 invoked by uid 500); 29 Dec 2009 20:16:00 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 33167 invoked by uid 99); 29 Dec 2009 20:16:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Dec 2009 20:16:00 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Dec 2009 20:15:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6D3E2234C045 for ; Tue, 29 Dec 2009 12:15:29 -0800 (PST) Message-ID: <537956141.1262117729431.JavaMail.jira@brutus.apache.org> Date: Tue, 29 Dec 2009 20:15:29 +0000 (UTC) From: "Phil Steitz (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (MATH-323) Add Semivariance calculation In-Reply-To: <995643514.1260563538298.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795132#action_12795132 ] Phil Steitz commented on MATH-323: ---------------------------------- It might make sense to introduce another boolean constructor parameter to indicate upper- or lower- semivariance. Assuming that lower semivariance is more common, lower could be the default. Alternatively, this can always just be computed by subtracting the lower value from the unconditioned variance, so it might not be necessary. Could always be added later. > 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.