Git Product home page Git Product logo

4_risk_return_analysis's Introduction

Fund Portfolio Risk Return Analysis

This Jupyter notebook contains code that automates a quantitative analysis using statistical algorithms to evaluate investment options for inclusion into client portfolios based on key risk-management metrics: the daily returns, standard deviations, Sharpe ratios, and betas. The analysis includes four new investment options (Soros, Tiger Global, Berkshire Hathaway, & Paulson) for inclusion in the client portfolios compared to the S&P 500 Index.

Technologies

Programming Language: Python 3.7.13

Interactive Development Environment: JupyterLab

Libraries:

  • Pandas - A Python library that is used for data manipulation, analysis, and visualization.
  • Pathlib - A Python module that provides an object-oriented interace to working with files & directories.
  • Numpy - A Python library that is used for scientific computing and data analysis and provides a number of mathematical functions that can be applied to large sets of numerical data such as linear algebra operations, Fourier transforms, and random number generation.
  • Matplotlib - A Python for creating static, animated, and interactive visualizations in Python. It provides a wide variety of customizable visualizations, including line plots, scatter plots, bar plots, histograms, heatmaps, and more.

Operating System(s): Any operating system that supports Python, including Windows & macOS.

Installation Guide

To run this analysis, make sure you install the necessary dependencies:

  1. Install Python: https://www.python.org/downloads/
  2. Install and run Jupyter Lab: https://jupyter.org/install
  3. Install the necessary libraries using pip, the package installer for Python:
pip install pandas pathlib numpy matplotlib
  1. Clone the repository: git clone "https://github.com/mikenguyenx/4_risk_return_analysis" using git or download the ZIP file and extract it to a local directory.

Usage

To run the script for the Fund Portfolio Risk Return Analysis:

  1. Open a terminal or command prompt and navigate to the directory with the analysis.
  2. Launch Jupyter Lab: jupyter lab
  3. Open risk_return_analysis.ipynb in Jupyter Lab.
  4. Run the code cells by clicking on the run button or by pressing the Shift + Enter key combination to load and preprocess the data, and generate visualizations
  5. The script uses Pandas to collect CSV data into the Jupyter notebook file for analysis using statistical algorithms and Matplotlib visualizations to analyze fund portfolio performance, risk, volatility, and portfolio returns.

Below are screenshots of examples of results from the analysis:

Daily Returns Analysis

daily_returns_box

Rolling Standard Deviation Analysis

rolling_std

Sharpe Ratio Analysis

sharpe_ratios

Contributors

Mike Nguyen

License

MIT

4_risk_return_analysis's People

Contributors

mikenguyenx 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.