Coder Social home page Coder Social logo

pfnaibert / lw-sr-var Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 2.91 MB

This Repository contains functions to replicate Ledoit and Wolf (2008), Ledoit and Wolf (2011), and Ledoit and Wolf (2018).

R 100.00%
hypothesis-testing bootstrap statistics sharpe-ratio variance r

lw-sr-var's Introduction

Replication of Ledoit and Wolf (2008, 2011, 2018) Functions

Paulo Ferreira Naibert

Original: 2019 October 13.

Current: 05, agosto, 2020

Overview

This Repository contains functions to replicate Oliver Ledoit and Wolf (2008), Oliver Ledoit and Wolf (2011), and Olivier Ledoit and Wolf (2018).

Michael Wolf provides R codes for those two papers on his webpage, in the publications section.

What is found here is merely an edit of those codes.

If you find any bug, or technical error, please contact me.

PAPERS and GOALS of the code

On Oliver Ledoit and Wolf (2008), Oliver Ledoit and Wolf (2011), and Olivier Ledoit and Wolf (2018), the authors provide methods to test the hypothesis of difference in the Sharpe Ratio and the Variance of two investment strategies. The papers can be found in the following links:

SR Paper, SR WP, Variance Paper, Variance WP, Generalized WP.

Also, I made a summary of those papers here

Functions

The functions can be found here. They are edits of the Sharpe.RData and Var.RData files that can be found in Michael Wolf's website with some additions and modifications.

I didn't have enought time to modify the block.size.calibrate() functions.

Data

For the data, I simpy saved the returns data of Sharpe.RData as a .RDS file. Loading rets.RDS should result in a list object on the R Software (R Core Team 2019) .

USAGE

See DEMO files.

TODO

  • Document Functions (R and html nb)

DISCLAIMER

I own NONE of the rights to the codes. I simply edited the already existing codes in Michael Wolf's Webpage. I also offer NO support for the functions. They are presented "AS IS".

ACKNOWLEDGEMENTS

I would like to thank Michael Wolf for providing the original functions on his webstite.

REFERENCES

Ledoit, Oliver, and Michael Wolf. 2008. “Robust performance hypothesis testing with the Sharpe ratio.” Journal of Empirical Finance 15 (5): 850–59.

———. 2011. “Robust performance hypothesis testing with the Variance.” Wilmott Magazine, no. 55 (September): 86–89.

Ledoit, Olivier, and Michael Wolf. 2018. “Robust Performance Hypothesis Testing with Smooth Functions of Population Moments.” Working Paper Series 305. Department of Economics, University of Zurich.

R Core Team. 2019. R: A Language and Environment for Statistical Computing. Vienna, Austria: R Foundation for Statistical Computing. https://www.R-project.org/.

lw-sr-var's People

Contributors

pfnaibert avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

allisterh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.