Skip to content

Faheem12005/MPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š Modern Portfolio Theory (MPT)

This is an interactive web app built with Streamlit that simulates Modern Portfolio Theory. The app uses Monte Carlo simulation to generate thousands of portfolios and highlights the optimal one based on the Sharpe Ratio.


πŸ“₯ Installation

  1. Clone the repository:
git clone https://github.com/yourusername/mpt-portfolio-optimizer.git
cd mpt-portfolio-optimizer
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the app:
streamlit run app.py

πŸ›  How It Works

  1. Select:

    • Timeframe to analyze expected returns
    • Investing period for cumulative return comparison
    • Start date (restricted to valid range)
    • Tickers to include in the portfolio
    • Number of random portfolios to simulate
  2. Click Compute to run the simulation:

    • Calculates expected returns using CAPM
    • Simulates thousands of portfolios
    • Finds the one with the highest Sharpe Ratio (Tangent Portfolio)

About

Implementation of Modern Portfolio Theory

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published