DRatio | R Documentation |
The d ratio is similar to the Bernado Ledoit ratio but inverted and taking into account the frequency of positive and negative returns.
DRatio(R, ...)
R |
an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns |
... |
any other passthru parameters |
It has values between zero and infinity. It can be used to rank the performance of portfolios. The lower the d ratio the better the performance, a value of zero indicating there are no returns less than zero and a value of infinity indicating there are no returns greater than zero.
DRatio(R) = nd*sum (t=1..n)(max(-R(t),0)) / nu*sum(t=1..n)(max(R(t),0))
where n is the number of observations of the entire series, n_{d} is the number of observations less than zero, n_{u} is the number of observations greater than zero
Ho Tsung-wu <tsungwu@ntnu.edu.tw>, College of Management, National Taiwan Normal University.
Carl Bacon, Practical portfolio performance measurement
and attribution, second edition 2008 p.95
See also package PerformanceAnalytics
.
data(assetReturns) R=assetReturns[, -29] DRatio(R)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.