Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Labels:
      None

      Description

      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

      1. patch.txt
        12 kB
        Larry Diamond
      2. patch2.txt
        12 kB
        Larry Diamond
      3. SemiVariance.java
        12 kB
        Larry Diamond
      4. SemiVariance.java
        10 kB
        Larry Diamond
      5. SemiVariance.java
        5 kB
        Larry Diamond
      6. SemiVarianceTest.java
        3 kB
        Larry Diamond
      7. SemiVarianceTest.java
        2 kB
        Larry Diamond
      8. SemiVarianceTest.java
        2 kB
        Larry Diamond
      9. StatUtils.java
        33 kB
        Larry Diamond
      10. StatUtils.java
        33 kB
        Larry Diamond
      11. StatUtilsTest.java
        16 kB
        Larry Diamond
      12. StatUtilsTest.java
        16 kB
        Larry Diamond

        Activity

        Larry Diamond created issue -
        Larry Diamond made changes -
        Field Original Value New Value
        Attachment StatUtils.java [ 12427770 ]
        Attachment StatUtilsTest.java [ 12427771 ]
        Larry Diamond made changes -
        Attachment patch.txt [ 12427772 ]
        Phil Steitz made changes -
        Assignee Phil Steitz [ psteitz ]
        Larry Diamond made changes -
        Attachment patch2.txt [ 12428324 ]
        Attachment StatUtils.java [ 12428325 ]
        Attachment StatUtilsTest.java [ 12428326 ]
        Larry Diamond made changes -
        Attachment SemiVariance.java [ 12429176 ]
        Attachment SemiVarianceTest.java [ 12429177 ]
        Larry Diamond made changes -
        Attachment SemiVariance.java [ 12429774 ]
        Larry Diamond made changes -
        Attachment SemiVarianceTest.java [ 12430036 ]
        Larry Diamond made changes -
        Attachment SemiVarianceTest.java [ 12430156 ]
        Attachment SemiVariance.java [ 12430157 ]
        Phil Steitz made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Phil Steitz made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Phil Steitz
            Reporter:
            Larry Diamond
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development