shyam gupta commited on
Commit
8238e7a
·
unverified ·
1 Parent(s): 8c36b7b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +44 -0
README.md CHANGED
@@ -39,7 +39,51 @@ Follow these steps to get started with the project:
39
  ```bash
40
  python main.py
41
 
 
 
 
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  #### Contributing
44
 
45
  We welcome contributions! If you have any ideas for improvements, open an issue or submit a pull request.
 
39
  ```bash
40
  python main.py
41
 
42
+ ## Technique used (Version 1)
43
+ ### Mean-Variance Portfolio Optimization
44
+ Overview
45
 
46
+ 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).
47
+ Methodology
48
+ 1. Basic Concepts
49
+
50
+ Expected Return (μpμp​): The anticipated gain or loss from an investment, based on historical data or other factors.
51
+ Risk (Variance (σp2σp2​)): A measure of the dispersion of returns. In portfolio optimization, we seek to minimize the variance of the portfolio returns.
52
+
53
+ 2. Mathematical Formulation
54
+
55
+ The basic idea is to find the optimal weights wiwi​ for each asset in the portfolio to maximize the expected portfolio return μpμp​ while minimizing the portfolio variance σp2σp2​. This can be expressed mathematically as:
56
+
57
+ ```bash
58
+ Maximize: μ_p = ∑(w_i * μ_i)
59
+ Subject to: ∑w_i = 1
60
+ Minimize: σ_p^2 = ∑(∑(w_i * w_j * σ_ij))
61
+
62
+
63
+ where:
64
+ NN is the number of assets in the portfolio.
65
+ μiμi​ is the expected return of asset ii.
66
+ σijσij​ is the covariance between the returns of assets ii and jj.
67
+
68
+ 3. Optimization Algorithm
69
+
70
+ Our implementation utilizes the following steps:
71
+
72
+ Input Data: Historical returns for each asset in the portfolio.
73
+ Objective Function: Construct an objective function that combines the expected return and variance.
74
+ Optimization Algorithm: We employ a mean-variance optimization algorithm that iteratively adjusts the weights to find the optimal combination.
75
+ Convergence Criteria: The algorithm iterates over a specified number of iterations (e.g., 5000) or until convergence is achieved.
76
+
77
+ 4. Implementation
78
+
79
+ In our project, we have implemented the Mean-Variance Portfolio Optimization method with 5000 iterations. The process involves:
80
+
81
+ Input: Historical return data for each equity in the Indian market.
82
+ Objective: Maximize expected return while minimizing portfolio variance.
83
+ Optimization: Utilize an iterative approach, adjusting weights to find the optimal allocation.
84
+ Output: The final set of weights that represent the optimal portfolio allocation.
85
+
86
+
87
  #### Contributing
88
 
89
  We welcome contributions! If you have any ideas for improvements, open an issue or submit a pull request.