Git Product home page Git Product logo

streamlit_markowitz's Introduction

Streamlit App Python application

Markowitz Portfolio Optimization Streamlit app

This Streamlit app calculates an optimal investment portfolio based on a user-defined minimum required return and selection of funds. The app uses historical returns since 2023 to calculate correlations and volatilities, then employs Markowitz portfolio optimization to calculate and display the optimal portfolio composition.

The app provides visual insights through charts that showcase the risk-return profile, asset weights, historical performance, and projected expected returns and probabilities of negative returns for several horizons.

Users can change underlying assumptions about expected returns, volatilities, and correlations between different funds in the "Data" tab.

Features

  • User Input for Minimum Return: Users can specify their desired minimum return.
  • Fund Selection: Users can select from a pre-defined list of funds to include in the optimization process.
  • Visualization: The app provides a risk-return scatter chart for all components and for the optimal portfolio. It shows portfolio composition, historical returns and projected expected return including probabilities of negative return for each time horizon.
  • Results: The app displays the optimal allocation among the selected funds to achieve the desired return with minimum risk.

How to run

https://markowitz.streamlit.app/

or locally:

>>> streamlit run app.py

How to Use

  1. Navigate to the app's URL.
  2. Input your desired minimum return.
  3. Select the funds you wish to include in your portfolio.
  4. Explore the visualizations to understand your optimal portfolio's risk-return profile.
  5. Play with expected return / volatility and correlation coefficients to see how they affect the results

streamlit_markowitz's People

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

asehmi

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.