| title | emoji | sdk | sdk_version | app_file | pinned | license |
|---|---|---|---|---|---|---|
CapiPort |
🤗 |
streamlit |
1.32.0 |
main.py |
false |
mit |
Welcome to our project on portfolio management for Indian equity markets! This project aims to help individuals efficiently allocate their money between different equities, optimizing returns while managing risk.
- Dynamic Allocation: Our technique dynamically allocates funds among various equities based on a robust methodology.
- Risk Management: The project incorporates risk management strategies to enhance overall portfolio stability.
- User-Friendly Interface: Access the tool through our user-friendly web interface here.
Follow these steps to get started with the project:
-
Clone the repository:
git clone https://github.com/bhanuprasanna527/CapiPort/
-
Install dependencies:
pip install -r requirements.txt
-
Run the project:
python main.py
Overview
Mean-Variance Portfolio Optimization is a widely used method in finance for constructing an investment portfolio that maximizes expected return for a given level of risk, or equivalently minimizes risk for a given level of expected return. This approach was pioneered by Harry Markowitz and forms the foundation of Modern Portfolio Theory (MPT). Methodology
-
Basic Concepts
Expected Return: The anticipated gain or loss from an investment, based on historical data or other factors.
Risk (Variance): A measure of the dispersion of returns. In portfolio optimization, we seek to minimize the variance of the portfolio returns.
-
Optimization Algorithm
Our implementation utilizes the following steps:
Input Data: Historical returns for each asset in the portfolio.
Objective Function: Construct an objective function that combines the expected return and variance.
Optimization Algorithm: We employ a mean-variance optimization algorithm that iteratively adjusts the weights to find the optimal combination.
Convergence Criteria: The algorithm iterates over a specified number of iterations (e.g., 5000) or until convergence is achieved.
-
Implementation
In our project, we have implemented the Mean-Variance Portfolio Optimization method with 5000 iterations. The process involves:
Input: Historical return data for each equity in the Indian market.
Objective: Maximize expected return while minimizing portfolio variance.
Optimization: Utilize an iterative approach, adjusting weights to find the optimal allocation.
Output: The final set of weights that represent the optimal portfolio allocation.
We welcome contributions! If you have any ideas for improvements, open an issue or submit a pull request. License
This project is licensed under the MIT License.