BernardoLedoitRatio | R Documentation |
To calculate Bernardo and Ledoit ratio we take the sum of the subset of returns that are above 0 and we divide it by the opposite of the sum of the subset of returns that are below 0
BernardoLedoitRatio(R)
R |
an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns |
BernardoLedoitRatio(R) = \frac{\frac{1}{n}\sum^{n}_{t=1}{max(R_{t},0)}}{\frac{1}{n}\sum^{n}_{t=1}{max(-R_{t},0)}}
where n
is the number of observations of the entire series
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)
BernardoLedoitRatio(R=assetReturns)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.