View source: R/PerformanceIndex.R
SharpeRatio.annualized | R Documentation |
The Sharpe Ratio is a risk-adjusted measure of return that uses standard deviation to represent risk.
SharpeRatio.annualized(R, Rf = 0, alpha=0.05,scale = NA, geometric = TRUE, FUN = "StdDev")
R |
an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns |
Rf |
risk free rate, in same period as your returns |
alpha |
Tail probability for VaR or ES, default alpha=.05 |
scale |
number of periods in a year (daily scale = 252, monthly scale = 12, quarterly scale = 4) |
geometric |
utilize geometric chaining (TRUE) or simple/arithmetic chaining (FALSE) to aggregate returns,default TRUE |
FUN |
one of "StdDev" or "VaR" or "ES" to use as the denominator, default="StdDev" |
The Sharpe ratio is simply the return per unit of risk (represented by variance). The higher the Sharpe ratio, the better the combined performance of "risk" and return.
This function annualizes the number based on the scale parameter.
\frac{√[n]{prod(1+R_{a})^{scale}}-1}{√{scale}\cdot√{σ}}
Using an annualized Sharpe Ratio is useful for comparison of multiple return streams. The annualized Sharpe ratio is computed by dividing the annualized mean monthly excess return by the annualized monthly standard deviation of excess return.
William Sharpe now recommends Information Ratio preferentially to the original Sharpe Ratio.
Ho Tsung-wu <tsungwu@ntnu.edu.tw>, College of Management, National Taiwan Normal University.
Sharpe, W.F. The Sharpe Ratio,Journal of Portfolio
Management,Fall 1994, 49-58.
See also package PerformanceAnalytics
.
SharpeRatio
InformationRatio
TrackingError
ActivePremium
SortinoRatio
data(assetReturns) R=assetReturns[, -29] SharpeRatio.annualized(R)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.