Code Monkey home page Code Monkey logo

ledoitwolf's Introduction

Ledoit-Wolf covariance matrix estimator of stock returns

The estimation of the covariance matrix of stock returns is required for portfolio optimization. The standard statistical method is to gather a history of past stock returns and compute their sample covariance matrix. Unfortunately this creates problems when the number of stocks under consideration is large, especially relative to the number of historical return observations available, the sample covariance matrix is estimated with a lot of error. It implies that the most extreme coefficients in the matrix thus estimated tend to take on extreme values not because this is "the truth", but because they contain an extreme amount of error. The mean-variance optimization software will place its biggest bets on those coefficients which are the most extremely unreliable.

This implementation of the covariance matrix estimator use Ledoit-Wolf shrinkage to constant correlation unequal variance target and is based on Honey, I Shrunk the Sample Covariance Matrix and was proposed to solve the problem of unreliable sample covariance.

Why not sklearn?

Ledoit-Wolf Estimator from sklearn use shrinkage to zero correlation equal variance target and implies no systematic risk and equal total risk of all stocks.

Special thanks to:

Evgeny Pogrebnyak

ledoitwolf's People

Contributors

wlm1ke avatar

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.