Package 'Performanceanalytics'

Total Page:16

File Type:pdf, Size:1020Kb

Package 'Performanceanalytics' Package ‘PerformanceAnalytics’ February 6, 2020 Type Package Title Econometric Tools for Performance and Risk Analysis Version 2.0.4 Date 2020-02-05 Description Collection of econometric functions for performance and risk analysis. In addition to standard risk and performance metrics, this package aims to aid practitioners and researchers in utilizing the latest research in analysis of non-normal return streams. In general, it is most tested on return (rather than price) data on a regular scale, but most functions will work with irregular return data as well, and increasing numbers of functions will work with P&L or price data where possible. Imports methods, quadprog, zoo Depends R (>= 3.5.0), xts (>= 0.10.0) Suggests dygraphs, Hmisc, MASS, quantmod, gamlss, gamlss.dist, robustbase, quantreg, tinytest, ggplot2, RColorBrewer, googleVis, plotly, gridExtra, ggpubr, RPESE, R.rsp, RobStatTM VignetteBuilder R.rsp License GPL-2 | GPL-3 Encoding UTF-8 LazyData true URL https://github.com/braverock/PerformanceAnalytics Copyright (c) 2004-2020 RoxygenNote 7.0.2 NeedsCompilation yes Author Brian G. Peterson [cre, aut, cph], Peter Carl [aut, cph], Kris Boudt [ctb, cph], Ross Bennett [ctb], Joshua Ulrich [ctb], Eric Zivot [ctb], Dries Cornilly [ctb], 1 2 R topics documented: Eric Hung [ctb], Matthieu Lestel [ctb], Kyle Balkissoon [ctb], Diethelm Wuertz [ctb], Anthony Alexander Christidis [ctb], R. Douglas Martin [ctb], Zeheng 'Zenith' Zhou [ctb], Justin M. Shea [ctb] Maintainer Brian G. Peterson <[email protected]> Repository CRAN Date/Publication 2020-02-06 12:10:11 UTC R topics documented: PerformanceAnalytics-package . .5 ActiveReturn . 17 AdjustedSharpeRatio . 18 apply.fromstart . 19 apply.rolling . 20 AppraisalRatio . 21 AverageDrawdown . 23 AverageLength . 23 AverageRecovery . 24 BernardoLedoitRatio . 24 BetaCoMoments . 25 BurkeRatio . 27 CalmarRatio . 28 CAPM.alpha . 30 CAPM.beta . 31 CAPM.CML.slope . 33 CAPM.dynamic . 35 CAPM.epsilon . 37 CAPM.jensenAlpha . 38 CDD............................................. 39 chart.ACF . 40 chart.Bar . 41 chart.BarVaR . 42 chart.Boxplot . 45 chart.CaptureRatios . 47 chart.Correlation . 49 chart.CumReturns . 50 chart.Drawdown . 51 chart.ECDF . 52 chart.Events . 54 chart.Histogram . 55 chart.QQPlot . 58 chart.Regression . 62 R topics documented: 3 chart.RelativePerformance . 64 chart.RiskReturnScatter . 65 chart.RollingCorrelation . 68 chart.RollingMean . 69 chart.RollingPerformance . 70 chart.RollingQuantileRegression . 71 chart.Scatter . 73 chart.SnailTrail . 75 chart.StackedBar . 77 chart.TimeSeries . 80 chart.VaRSensitivity . 87 charts.PerformanceSummary . 89 charts.RollingPerformance . 91 checkData . 92 checkSeedValue . 93 clean.boudt . 94 CoMoments . 96 DownsideDeviation . 98 DownsideFrequency . 100 DRatio . 101 DrawdownDeviation . 102 DrawdownPeak . 103 Drawdowns . 103 edhec . 105 ETL............................................. 106 EWMAMoments . 111 FamaBeta . 112 Frequency . 113 HurstIndex . 114 InformationRatio . 115 Kappa . 116 KellyRatio . 117 kurtosis . 118 Level.calculate . 120 lpm ............................................. 121 M2Sortino . 122 managers . 123 MarketTiming . 124 MartinRatio . 126 maxDrawdown . 127 MCA ............................................ 128 mean.geometric . 130 MeanAbsoluteDeviation . 131 MinTrackRecord . 132 Modigliani . 134 MSquared . 135 MSquaredExcess . 136 NetSelectivity . 137 4 R topics documented: Omega............................................ 138 OmegaExcessReturn . 140 OmegaSharpeRatio . 141 PainIndex . 142 PainRatio . 143 portfolio_bacon . 144 prices . ..
Recommended publications
  • The Value-Added of Investable Hedge Fund Indices
    A Service of Leibniz-Informationszentrum econstor Wirtschaft Leibniz Information Centre Make Your Publications Visible. zbw for Economics Heidorn, Thomas; Kaiser, Dieter G.; Voinea, Andre Working Paper The value-added of investable hedge fund indices Frankfurt School - Working Paper Series, No. 141 Provided in Cooperation with: Frankfurt School of Finance and Management Suggested Citation: Heidorn, Thomas; Kaiser, Dieter G.; Voinea, Andre (2010) : The value- added of investable hedge fund indices, Frankfurt School - Working Paper Series, No. 141, Frankfurt School of Finance & Management, Frankfurt a. M. This Version is available at: http://hdl.handle.net/10419/36695 Standard-Nutzungsbedingungen: Terms of use: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Documents in EconStor may be saved and copied for your Zwecken und zum Privatgebrauch gespeichert und kopiert werden. personal and scholarly purposes. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle You are not to copy documents for public or commercial Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich purposes, to exhibit the documents publicly, to make them machen, vertreiben oder anderweitig nutzen. publicly available on the internet, or to distribute or otherwise use the documents in public. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, If the documents have been made available under an Open gelten abweichend von diesen Nutzungsbedingungen die in der dort Content Licence (especially Creative Commons Licences), you genannten Lizenz gewährten Nutzungsrechte. may exercise further usage rights as specified in the indicated licence. www.econstor.eu Frankfurt School – Working Paper Series No. 141 The Value-Added of Investable Hedge Fund Indices by Thomas Heidorn, Dieter G.
    [Show full text]
  • Asset and Risk Allocation Policy
    ____________________________________________________________________________ UNIVERSITY OF CALIFORNIA GENERAL ENDOWMENT POOL ASSET AND RISK ALLOCATION POLICY Approved March 15, 2018 ______________________________________________________________________________ UNIVERSITY OF CALIFORNIA GENERAL ENDOWMENT POOL ASSET AND RISK ALLOCATION POLICY POLICY SUMMARY/BACKGROUND The purpose of this Asset and Risk Allocation Policy (“Policy”) is to define the asset types, strategic asset allocation, risk management, benchmarks, and rebalancing for the University of California General Endowment Pool (“GEP”). The Investments Subcommittee has consent responsibilities over this policy. POLICY TEXT ASSET CLASS TYPES Below is a list of asset class types in which the GEP may invest so long as they do not conflict with the constraints and restrictions described in the GEP Investment Policy Statement. The criteria used to determine which asset classes may be included are: Positive contribution to the investment objective of GEP Widely recognized and accepted among institutional investors Low cross correlations with some or all of the other accepted asset classes Based on the criteria above, the types of assets for building the portfolio allocation are: 1. Public Equity Includes publicly traded common and preferred stock of issuers domiciled in US, Non-US, and Emerging (and Frontier) Markets. The objective of the public equity portfolio is to generate investment returns with adequate liquidity through a globally diversified portfolio of common and preferred stocks. 2. Liquidity (Income) Liquidity includes a variety of income related asset types. The portfolio will invest in interest bearing and income based instruments such as corporate and government bonds, high yield debt, emerging markets debt, inflation linked securities, cash and cash equivalents. The portfolio can hold a mix of traditional (benchmark relative) strategies and unconstrained (benchmark agnostic) strategies.
    [Show full text]
  • Università Degli Studi Di Padova Padua Research Archive
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Archivio istituzionale della ricerca - Università di Padova Università degli Studi di Padova Padua Research Archive - Institutional Repository On the (Ab)use of Omega? Original Citation: Availability: This version is available at: 11577/3255567 since: 2020-01-04T17:03:43Z Publisher: Elsevier B.V. Published version: DOI: 10.1016/j.jempfin.2017.11.007 Terms of use: Open Access This article is made available under terms and conditions applicable to Open Access Guidelines, as described at http://www.unipd.it/download/file/fid/55401 (Italian only) (Article begins on next page) \On the (Ab)Use of Omega?" Massimiliano Caporina,∗, Michele Costolab, Gregory Janninc, Bertrand Mailletd aUniversity of Padova, Department of Statistical Sciences bSAFE, Goethe University Frankfurt cJMC Asset Management LLC dEMLyon Business School and Variances Abstract Several recent finance articles use the Omega measure (Keating and Shadwick, 2002), defined as a ratio of potential gains out of possible losses, for gauging the performance of funds or active strategies, in substitution of the traditional Sharpe ratio, with the arguments that return distributions are not Gaussian and volatility is not always the rel- evant risk metric. Other authors also use Omega for optimizing (non-linear) portfolios with important downside risk. However, we question in this article the relevance of such approaches. First, we show through a basic illustration that the Omega ratio is incon- sistent with the Second-order Stochastic Dominance criterion. Furthermore, we observe that the trade-off between return and risk corresponding to the Omega measure, may be essentially influenced by the mean return.
    [Show full text]
  • Tracking Error
    India Index Services & Products Ltd. Tracking Error TRACKING ERROR An Index Fund is a mutual fund scheme that invests in the securities in the target Index in the same proportion or weightage of the securities as it bears to the target index. The investment objective of an index fund is to achieve returns which are commensurate to that of the target Index. An investment manager attempts to replicate the investment results of the target index by holding all the securities in the Index. Though Index Funds are designed to provide returns that closely track the benchmarked Index, Index Funds carry all the risks associated with the type of asset the fund holds. Indexing merely ensures that the returns of the Index Fund will not stray far from the returns on the Index that the fund mimics. Still there are instances, which are mentioned below, that leads to mismatch of the returns of the index with that of the fund. This mismatch or the difference in the returns of the Index with that of the fund is known as Tracking Error. Tracking Error Tracking error is defined as the annualised standard deviation of the difference in returns between the Index fund and its target Index. In simple terms, it is the difference between returns from the Index fund to that of the Index. An Index fund manager needs to calculate his tracking error on a daily basis especially if it is open-ended fund. Lower the tracking error, closer are the returns of the fund to that of the target Index.
    [Show full text]
  • On the Ω‐Ratio
    On the Ω‐Ratio Robert J. Frey Applied Mathematics and Statistics Stony Brook University 29 January 2009 15 April 2009 (Rev. 05) Applied Mathematics & Statistics [email protected] On the Ω‐Ratio Robert J. Frey Applied Mathematics and Statistics Stony Brook University 29 January 2009 15 April 2009 (Rev. 05) ABSTRACT Despite the fact that the Ω­ratio captures the complete shape of the underlying return distribution, selecting a portfolio by maximizing the value of the Ω­ratio at a given return threshold does not necessarily produce a portfolio that can be considered optimal over a reasonable range of investor preferences. Specifically, this selection criterion tends to select a feasible portfolio that maximizes available leverage (whether explicitly applied by the investor or realized internally by the capital structure of the investment itself) and, therefore, does not trade off risk and reward in a manner that most investors would find acceptable. 2 Table of Contents 1. The Ω­Ratio.................................................................................................................................... 4 1.1 Background ............................................................................................................................................5 1.2 The Ω Leverage Bias............................................................................................................................7 1.3. A Simple Example of the ΩLB ..........................................................................................................8
    [Show full text]
  • TRACKING ERROR: an Essential Tool in Evaluating Index Funds
    JOURNAL OF INVESTMENT CONSULTING TRACKING ERROR: An Essential Tool in Evaluating Index Funds By Chris Tobe, CFA As the dollars being indexed grow and portfolio management becon1es more sophisticated, consultants should demand tighter tracking to the index in question from their index n1anagers. In fact, the key to assessiI1g index fund managers is determining if their performance has tracked their benchmarks within reasonable tolerances. The alltl10r reviews what is known about this aspect of performance evaluation. He also sl1ares 11is experie11ce in detern1ining what factors caused a difference in performance for a $3 billion S&P 500 index fund. This article is based on a study written by the author and should be no attempt to outperform the index or Dr. Ken Miller for Kentucky State Auditor Edward B. bencl1mark. William F Sharpe holds that a passive Hatchett Jr. The study was reported in the July 27, 1998, strategy requires the manager issue of Pensions and Investments. Earlier versions of this ... to hold every security from the market, with each article were presented at two conferences on indexing. represented in the same manner as in the n1arket. Thus, if security X represents 3 percent of the value ver $1 trillion is now being managed of the securities in the market, a passive investor's within index funds. Lipper lists the portfolio will have 3 percent of its value invested in Vanguard 500 Index fund as the second X. Equivalently; a passive manager will hold the same percentage of the total outstanding amount of largest stock fllnd in the world with a each security in the market.
    [Show full text]
  • Monte Carlo As a Hedge Fund Risk Forecasting Tool
    F eat UR E Monte Carlo as a Hedge Fund Risk Forecasting Tool By Kenneth S. Phillips edge funds have gained The notion of uncorrelated, absolute popularity over the past “retur ns encompassing a broad range of asset Hseveral years, especially among institutional investors. Assets allocated classes and distinct strategies has enjoyed to alternative investment strategies, distinct from private equity or venture great acceptance among conservative inves- capital, have grown by several hundred tors seeking more predictable and consistent percent since the dot-com bubble burst in 2000 and now top US$2.5 trillion. retur ns with less volatility. The notion of uncorrelated, absolute returns encompassing a broad range ” of asset classes and distinct strategies has enjoyed great acceptance among conservative investors seeking more level of qualitative due diligence, may management objectives resulted in the predictable and consistent returns with or may not have provided warnings evaporation of nearly US$6.5 billion of less volatility. As a result, the industry and/or given investors adequate time to investor equity, virtually overnight. has begun to mature and investors now redeem their capital. Although the ar- Global Equity Market Neutral range from risk-averse fiduciaries to ag- ticle implicitly considers different forms (GEMN). Since 2003, GEMN had gressive high-net-worth individuals. of investment risk such as leverage managed a globally diversified, equity As the number of hedge funds and and derivatives, it focuses primarily on market neutral hedge fund. Employ- complex strategies has grown, so too quantitative return-based data that was ing various amounts of leverage while have the frequency and severity of publicly available rather than strategy- attracting several billion dollars of negative events—what statisticians refer or security-specific risk.
    [Show full text]
  • Fund of Hedge Funds Portfolio Optimization Using the Omega Ratio
    risk management / compliance LE Fund of Hedge Funds Portfolio IC T R Optimization Using the Omega Ratio A D E ® BY STEVE TOGHER, CAIA , clearly demonstrate how Omega quantitative measure should be an UR AND TambE BARsbaY captures these higher moments. It is end-all solution. an equation that adds to mean and Our objective here is to present a EAT variance, captures all of the higher method of “optimizing” a portfolio F t is interesting to ponder moment information in the return of hedge funds using the Omega how new and radical distribution, incorporates sensitivity ratio. For the purposes of our discus- theories and equations to return levels, and is intuitive and sion we will focus on a portfolio of Iin financial analysis become widely relatively easy to calculate. alternative investment managers accepted. It most likely is a function The body of literature about con- with nonnormal returns but, of of simplicity, elegance of design, structing and optimizing portfolios course, the underlying investments and ease of application. But it is of hedge funds continues to grow can be anything. We put optimizing even more interesting to observe and the alternatives are varied. In in quotes because our analysis is not how, once widely accepted, such most cases a comparison is made the sole input in determining the concepts can be misapplied. Perhaps to MVO, which suffers from similar optimized portfolio. two of the most common examples drawbacks as Sharpe when applied are the application of the Sharpe to hedge fund returns. DeSouza and Understanding the Omega Ratio ratio and mean variance optimiza- Gokcan (2004) defined an approach We believe that using the Omega tion (MVO) to hedge fund portfolio that is modeled on asset allocation ratio for this purpose is a rather intu- analysis.
    [Show full text]
  • Hedge Fund Performance Evaluation
    International Business & Economics Research Journal – May/June 2014 Volume 13, Number 3 Hedge Fund Performance Evaluation Using The Sharpe And Omega Ratios Francois van Dyk, UNISA, South Africa Gary van Vuuren, North-West University, Potchefstroom Campus, South Africa André Heymans, North-West University, Potchefstroom Campus, South Africa ABSTRACT The Sharpe ratio is widely used as a performance evaluation measure for traditional (i.e., long only) investment funds as well as less-conventional funds such as hedge funds. Based on mean- variance theory, the Sharpe ratio only considers the first two moments of return distributions, so hedge funds – characterised by asymmetric, highly-skewed returns with non-negligible higher moments – may be misdiagnosed in terms of performance. The Sharpe ratio is also susceptible to manipulation and estimation error. These drawbacks have demonstrated the need for augmented measures, or, in some cases, replacement fund performance metrics. Over the period January 2000 to December 2011 the monthly returns of 184 international long/short (equity) hedge funds with geographical investment mandates spanning North America, Europe, and Asia were examined. This study compares results obtained using the Sharpe ratio (in which returns are assumed to be serially uncorrelated) with those obtained using a technique which does account for serial return correlation. Standard techniques for annualising Sharpe ratios, based on monthly estimators, do not account for this effect. In addition, this study assesses whether the Omega ratio supplements the Sharpe Ratio in the evaluation of hedge fund risk and thus in the investment decision-making process. The Omega and Sharpe ratios were estimated on a rolling basis to ascertain whether the Omega ratio does indeed provide useful additional information to investors to that provided by the Sharpe ratio alone.
    [Show full text]
  • Hedging Climate Risk Mats Andersson, Patrick Bolton, and Frédéric Samama
    AHEAD OF PRINT Financial Analysts Journal Volume 72 · Number 3 ©2016 CFA Institute PERSPECTIVES Hedging Climate Risk Mats Andersson, Patrick Bolton, and Frédéric Samama We present a simple dynamic investment strategy that allows long-term passive investors to hedge climate risk without sacrificing financial returns. We illustrate how the tracking error can be virtually eliminated even for a low-carbon index with 50% less carbon footprint than its benchmark. By investing in such a decarbonized index, investors in effect are holding a “free option on carbon.” As long as climate change mitigation actions are pending, the low-carbon index obtains the same return as the benchmark index; but once carbon dioxide emissions are priced, or expected to be priced, the low-carbon index should start to outperform the benchmark. hether or not one agrees with the scientific the climate change debate is not yet fully settled and consensus on climate change, both climate that climate change mitigation may not require urgent Wrisk and climate change mitigation policy attention. The third consideration is that although the risk are worth hedging. The evidence on rising global scientific evidence on the link between carbon dioxide average temperatures has been the subject of recent (CO2) emissions and the greenhouse effect is over- debates, especially in light of the apparent slowdown whelming, there is considerable uncertainty regarding in global warming over 1998–2014.1 The perceived the rate of increase in average temperatures over the slowdown has confirmed the beliefs of climate change next 20 or 30 years and the effects on climate change. doubters and fueled a debate on climate science There is also considerable uncertainty regarding the widely covered by the media.
    [Show full text]
  • Tracking Error and the Information Ratio
    It Is More Than]ust Performance: TRACKING ERROR AND THE INFORMATION RATIO By Jay L. Shein, Ph.D., ClMA, CFP ONE OF OUR MOST POPULAR CONTRIBUTORS REVIEWS SOME QUANTITATIVE TECHNIQUES THAT CAN ASSIST THE CONSULTANT IN MANAGER SELECTIONS AND IN ASSET ALLOCATION DESIGN. Introduction properly these statistical measures can be dentifying and selecting the most appropri­ useful tools. ate mutual fund or money manager to use Tracking error was defined by Tobe (1999) as in an investor's portfolio are major aspects the percentage difference in total return between of the investment consultants responsibili­ an index fund and the benchmark index the fund ties. This is true for both active and passive was designed to replicate. This definition of track­ money manager searches and selection. ing error is best used for evaluation of a passive When searching for and selecting money man­ manager such as an index fund. Tracking error agers, consultants and investment advisors typical­ used in the context of active manager evaluation is ly look at both qualitative and quantitative infor­ better defined as active manager risk. For purpos­ mation before making their recommendations. The es of this commentary, tracking error is defined as investment consultant knows that items such as the standard deviation between two return series philosophy, process, people, and strategic business written as: 1 plans are important, if not sometimes more impor­ tant than historical performance. Even though the qualitative side is important, the investment con­ TE= i-I sultant will ultimately use some quantitative mea­ N-l sure such as a ratio, statistic, risk-adjusted measure of performance, and/or absolute performance to Where: validate the qualitative component of money man­ IE = Tracking Error ager search and selection.
    [Show full text]
  • Sectoral Portfolio Optimization by Judicious Selection of Financial
    Sectoral portfolio optimization by judicious selection of financial ratios via PCA Vrinda Dhingra1, Amita Sharma2, Shiv K. Gupta1* Abstract Embedding value investment in portfolio optimization models has always been a challenge. In this paper, we attempt to incorporate it by first employing principal com- ponent analysis sector wise to filter out dominant financial ratios from each sector and thereafter, use the portfolio optimization model incorporating second order stochastic dominance criteria to derive the final optimal investment. We consider a total of 11 well known financial ratios corresponding to each sector representing four categories of ratios, namely Liquidity, Solvency, Profitability, and Valuation. PCA is then ap- plied sector wise over a period of 10 years from April 2004 to March 2014 to extract dominant ratios from each sector in two ways, one from the component solution and other from each category on the basis of their communalities. The two step Sectoral Portfolio Optimization (SPO) model integrating the SSD criteria in constraints is then utilized to build an optimal portfolio. The strategy formed using the former extracted ratios is termed as PCA-SPO(A) and the latter one as PCA-SPO(B). The results obtained from the proposed strategies are compared with the SPO model and one step nominal SSD model, with and without financial ratios for computational study. Empirical performance of proposed strategies is assessed over the period of 6 years from April 2014 to March 2020 using a rolling window scheme with varying out- of-sample time line of 3, 6, 9, 12 and 24 months for S&P BSE 500 market.
    [Show full text]