Git Product home page Git Product logo

dynamic-investment-portfolio-optimization's Introduction

Brief Description

First, it is important to understand that a portfolio is no more than just a collection of stock investments held by an investor. Optimizing a financial portfolio requires selecting the best possible portfolio out of a set of all portfolios being considered according to an objective.

According to modern portfolio theory, one possible way to optimize a portfolio is to aim for an efficient frontier. The efficient frontier is a investment portfolio that lies on the most efficient(ideal) coordinates of the risk-return graph(spectrum). There is a formal definition that is used by many experts in this field, "Efficient frontier is the set of portfolios which satisfy the condition that no other portfolio exists with a higher expected return but with the same standard deviation of return.

Now we know the aim is to achieve one of the efficient frontier portfolios. However, we can even go one step further than the overall portfolio. We can identify the best possible proportion of the stocks to use in any given portfolio. This is possible by using the sharpe ratio.

The sharpe ratio was developed by William Sharpe in 1966. The sharpe ratio describes how much excess return of money one recieves for the extra volatile time he/she holds onto the investment. Basically, it measures how much extra capital money one can recieve by waiting and holding onto a risky stock investment. The sharpe ratio can be calculated by taking the difference between the returns of the investment and the risk-free return, divided by the standard deviation of the investment.

Usually experts define four categories for the result of the sharpe ratio:

Sharpe Ratio Category

  • ratio < 1.0 sub-optimal
  • ratio > 1.0 good
  • ratio > 2.0 very good
  • ratio > 3.0 excellent

After considering the efficient frontier theory, as well as the sharpe ratio, it is time to start the code to optimize a sample financial portfolio.

๐Ÿ›  Tech stuck

  • Pypfopt
  • Ploty
  • PyPortfolioOpt
  • Pandas
  • Matplotlib
  • Numpy

dynamic-investment-portfolio-optimization's People

Contributors

salim-benhamadi avatar

Stargazers

 avatar Maroutis avatar  avatar  avatar Karim Omrane avatar

Watchers

 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.