Git Product home page Git Product logo

portfolio-optimization--ftse-100-stocks's Introduction

Portfolio Optimization - FTSE 100 Stocks

Comparison of different portfolio allocation strategies and estimation of Value-at-Risk (VaR) and Conditional Value-at-Risk (CVaR) using Parametric, Historical Simulation and Monte Carlo Simulation methods.

Requirement

pandas
numpy
scipy
datetime
matplotlib
seaborn
yfinance
pypfopt

Structure

  1. Importing libraries
  2. Loading the data and Pre-processing
  3. Descriptive analysis of simple and cumulative returns
    • Daily Returns
    • Daily Cummulative Returns
    • Risk-Return profile
    • Correlation and Covariance matrices
  4. Portfolio Optimization
  5. Analysis of optimized Portfolios' Performance
    • Rolling Standard Deviation
    • Rolling Beta
    • Exponentially Weighted Average
    • Rolling Sharpe Ratio
  6. Tail Risk Analysis
    • Historical Drawdown
    • VaR and CVaR
      • Historical (Non-Parametric) Method
      • Variance-Covariance (Parametric) Method
      • Monte Carlo Simulation

Data

Investiment universe consists of the 10 largest companies listed on the London Stock Exchange (LSE) acording to its market value: 1. Shell (SHEL.L), 2. AstraZeneca (AZN.L), 3. HSBC Holdings (HSBA.L), 4. Unilever Group (ULVR.L), 5. BP (BP.L), 6. Diageo (DGE.L), 7. Rio Tinto Group (RIO.L), 8. Glencore (GLEN.L), 9. British American Tobacoo (BATS.L) and 10. GlaxoSmithKline (GSK.L).

Close prices from January 31, 2012 to January 31, 2023 were pulled with Yahoo Finance API (yfinance library).

Portfolio Strategies

  1. Market Cap-Weighted (MCAP)
  2. Naïve Equally-Weighted (EW)
  3. Global Minimum Variance (GMV)
  4. Tangency - Maximum Sharpe Ratio (MSR)

portfolio-optimization--ftse-100-stocks's People

Contributors

flopes045 avatar

Stargazers

 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.