Code Monkey home page Code Monkey logo

esg-investing-simulation's Introduction

ESG Investing Simulation

This repository contains Python code to simulate the performance of portfolios using different screening investment strategies. Specifically, it focuses on comparing the performance of traditional investment strategies with those incorporating Environmental, Social, and Governance (ESG) screening.

The code uses historical stock price data and ESG scores to create an investment universe of stocks. Then, it applies various ESG screening investment strategies to this universe, simulates their performance over a specified period, and compares their performance using several key metrics such as cumulative returns, daily volatility, value at risk, conditional value at risk, and drawdown.

Overview The project is structured around two main classes:

stock_universe: This class represents the investment universe of stocks. It includes methods for fetching historical stock price and ESG score data, creating the stock universe, and applying ESG screening to select stocks.

Portfolio_Simulation: This class is used to simulate and analyze the performance of portfolios using different screening investment strategies. It includes methods for computing portfolio metrics, running the simulation, plotting results, and performing statistical tests to compare the performance of different strategies.

The simulation results are plotted using a joyplot for each performance metric. Additionally, the Mann-Whitney U test is performed to statistically compare the performance of different investment strategies.

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.