Portfolio optimization: Difference between revisions

From Cornell University Computational Optimization Open Textbook - Optimization Wiki
Jump to navigation Jump to search
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
Authors: Ainsely Li, Kevin Pan, Qizeng Sun, Hanshen Li, Eric Luo, SYSEN 5800 Fall 2021
Authors: Fanghan Li, Kevin Pan, Qizeng Sun, Hanshen Li, Eric Luo, SYSEN 5800 Fall 2021


== Introduction ==
== Introduction ==
[[File:Figure 1- Efficient Frontier Graph.jpg|thumb|333x333px|Figure 1: Efficient Frontier Graph|alt=]]
[[File:Figure 1- Efficient Frontier Graph.jpg|thumb|382x382px|Figure 1: Efficient Frontier Graph |alt=]]
Portfolio optimization is a way to maximize net gains in a portfolio while minimizing risk. A portfolio is a set of selected stocks chosen by the investor. Risk is defined by the potential associated lost of some or all the original investment. Returns are the associated gains when the price of the stocks increases beyond the original investment.  By applying probability statistics, linear algebra, optimization and other methods to redistribute the investment portfolio under the established target returns and risk limits to achieve the goal of reducing risks or obtaining higher benefits under the same risk conditions. [1]
Portfolio optimization is a way to maximize net gains in a portfolio while minimizing risk. A portfolio is a set of selected stocks chosen by the investor. Risk is defined by the potential associated lost of some or all the original investment. Returns are the associated gains when the price of the stocks increases beyond the original investment.  By applying probability statistics, linear algebra, optimization and other methods to redistribute the investment portfolio under the established target returns and risk limits to achieve the goal of reducing risks or obtaining higher benefits under the same risk conditions.<ref>Vanderbei, R. J. (2000). ''Linear programming: Foundations and extensions''. Boston: Kluwer. </ref>


Risk is a major factor in choosing stocks in a portfolio. In order to mitigate these risks, investors typically use an efficient frontier graph as shown in figure 1.
Risk is a major factor in choosing stocks in a portfolio. In order to mitigate these risks, investors typically use an efficient frontier graph as shown in figure 1.


The x- axis represents the standard deviation of the data, which is also known as the risk tolerance. On the y- axis is the expected percent return. The points near the solid line are optimal, which is also known as the frontier line. Any points that fall below the curve are considered to be nonoptimal. This is due to the fact that with the same risk tolerance there are better expected returns. This method has its limitations as it relies on past data. [2]
The x- axis represents the standard deviation of the data, which is also known as the risk tolerance. On the y- axis is the expected percent return. The points near the solid line are optimal, which is also known as the frontier line. Any points that fall below the curve are considered to be nonoptimal. This is due to the fact that with the same risk tolerance there are better expected returns. This method has its limitations as it relies on past data.<ref>Best, M. J. (2010). ''Champman & Hall/CRC Finance: Portfolio Optimization.'' Ontario: Canada.</ref>
== Theory ==
== Theory ==
Modern Portfolio Theory (MPT) or mean variance analysis is a mathematical framework introduced by the economist Harry Markowitz. MPT is used to combine a portfolio of assets in order to maximize the expected return under a given level of risk. Its main point is that investors can choose the best combination of asset risk and return based on the assessment of individual risk tolerance, so as to obtain the most ideal results.  
[[File:Nomenclature.jpg|thumb|Table 1:Nomenclature|387x387px]]
[[File:Nomenclature.jpg|thumb|Table 1:Nomenclature]]
Modern Portfolio Theory (MPT) or mean variance analysis is a mathematical framework introduced by the economist Harry Markowitz. MPT is used to combine a portfolio of assets in order to maximize the expected return under a given level of risk. Its main point is that investors can choose the best combination of asset risk and return based on the assessment of individual risk tolerance, so as to obtain the most ideal results.<ref>“Harry Markowitz's Modern Portfolio Theory [the Efficient Frontier].” ''Guided Choice'', 14 Feb. 2020, <nowiki>https://www.guidedchoice.com/video/dr-harry-markowitz-father-of-modern-portfolio-theory/</nowiki>. “Constraints: Portfolio Probe: Generate </ref>
 
The mitigation of risk can be characterized as follows. Let '''<math>
The mitigation of risk can be characterized as follows. Let '''<math>
A</math>''' be a matrix '''<math>
A</math>''' be a matrix '''<math>
Line 23: Line 24:
Er</math>''' represents the expected returns of the stock which is the average of the individual column of '''<math>
Er</math>''' represents the expected returns of the stock which is the average of the individual column of '''<math>
m
m
</math>'''. '''σ''' is the standard deviation of the individual the data set of an individual stock, where '''σ<math>^2</math>''' is the variance. [3]    
</math>'''. <math>\sigma_p </math> is the standard deviation of the individual the data set of an individual stock, where '''<math>\sigma_p^2
</math>''' is the variance.<ref>Andre F. “Large-Scale Portfolio Optimization.” ''Management Science'', vol. 30, no. 10, 1984, pp. 1143–1160., <nowiki>https://doi.org/10.1287/mnsc.30.10.1143</nowiki>.</ref>    


<math>X = A - Er</math>
<math>X = A - Er</math>


X represents the daily return subtracted by the expected returns of each respective stock. The variance and covariance table is a vital tool as it allows the user to estimate volatility of the overall portfolio.
X represents the daily return subtracted by the expected returns of each respective stock. The variance and covariance table is a vital tool as it allows the user to estimate volatility of the overall portfolio.


<math>\Sigma = (X^T*X)/(n-1) </math>
<math>\Sigma = (X^T*X)/(n-1) </math>


This table will span the size of the number of stocks chosen '''<math>
This table will span the size of the number of stocks chosen '''<math>
mxm</math>'''.
mxm</math>'''.


<math>E(r_p) = w* Er </math>
<math>E(r_p) = w* Er </math>


<math>E(r_p) </math> is the expected return of the portfolio, where '''<math>
<math>E(r_p) </math> is the expected return of the portfolio, where '''<math>
w
w


</math>''' is the percent of the initial capital being allocated into each stock. [4]
</math>''' is the percent of the initial capital being allocated into each stock.<ref name=":0">Random Portfolios. Fund Management Software by Burns Statistics.” ''Portfolio Probe | Investment Technology for the 21st Century'', 19 Apr. 2012, <nowiki>https://www.portfolioprobe.com/features/constraints/</nowiki>.</ref>
 




<math>\sigma_p = \surd(w*\Sigma*w^T)</math>
<math>\sigma_p = \surd(w*\Sigma*w^T)</math>


<math>\sigma_p </math> represents the standard deviation of the portfolio.<ref>Disatnik, David, and Saggi Katz. ''“Portfolio Optimization Using a Block Structure for the Covariance Matrix.” Journal of Business Finance & Accounting, 2012,'' <nowiki>https://doi.org/10.1111/j.1468-5957.2012.02279.x</nowiki>.</ref>


σ<math>_p</math> represents the standard deviation of the portfolio. [5]




Line 56: Line 60:


== Methodology ==
== Methodology ==
Portfolio optimization could be solved and analyzed by Linear Programming and statistics. Cut the relevant information and conditions in the portfolio optimization, as well as the final requirements into the relevant variables, constraints and linear functions of the linear programming problem.
Portfolio optimization could be solved and analyzed by Linear Programming and statistics. When figuring out the maximum return under the fixed risks investment projects it can be seen as follows:  
 
When figuring out the maximum return under the fixed risks investment projects:
{| class="wikitable"
{| class="wikitable"
|+
!Function
!Function
!Max <math>\Sigma</math>ri*Xi
!Max <math>\Sigma</math>ri*Xi
Line 73: Line 74:
|The limit requirements
|The limit requirements
|}
|}
Constraints:
Table 2: Fixed Risk Table


The constraints of portfolio optimization are various, include[4]:
The constraints of portfolio optimization are various, include<ref name=":0" />:
{| class="wikitable"
{| class="wikitable"
|+
!Constraints
!Monetary value constraints
!Explanation
!Turnover constraint
|-
|Long- only constraint
|Maximum weight constraints
|-
|-
|Asset trade constraints
|Monetary Value Constraints
|Risk fraction constraints
|Control the amount of money in the portfolio
|-
|-
|Number of Assets Held Constraint
|Maximum Weight Constraints
|Number of Assets trade Constraint
|Limit the proportion of assets in the portfolio.
|-
|-
|Trade Universe Constraint
|Risk Fraction Constraints
|Threshold Constraints
|Control the number of variances that each asset may have.
|-
|-
|Forced Trade Constraints
|Number of Assets Held/ Traded Constraints
|Linear Constraints
|Limit the number of assets held/traded in the portfolio.
|-
|-
|Count Constraints
|Count Constraints
|Tracking Error Constraints
|Limit the number of assets that show in each category of a category variable
|-
|-
|Volatility constraints
|Cost Constraints
|Expected return constraints
|Limit the transaction cost
|-
|-
|Distance constraints
|Expected Return Constraints
|Sum of largest weights constraints
|Control the predicted expected return of the portfolio
|-
|-
|Cost constraint
|Volatility Constraints
|Number of closing positions constraint
|Constrain the predicted volatility of the portfolio(Calculate by predicted variance matrix)
|-
|-
|Quadratic constraints
|Forced Trade Constraints
|Round Lot constraints
|Trade with assets of at lease a certain size
|}
|}
In one portfolio optimization analysis, several types of constraints will be selected to formulate the final return. The difference of constraints depends on the differences in investment projects, and related policy requirements, etc.
Table 3: Constraints
 
Several types of constraints will be selected to formulate the final return. The difference of constraints depends on the differences in investment projects, and related policy requirements, etc.<ref>Ahmed, Shabbir. ''Isye 6669: Deterministic Optimization ... - Isye Home | Isye''. 2002, <nowiki>https://www2.isye.gatech.edu/~sahmed/isye6669/notes/portfolio</nowiki>.</ref>


== Numerical Example ==
== Numerical Example ==
'''Example 1:'''
[[File:Table1 .jpg|thumb|394x394px|Table 4: Annual Returns of Sample Portfolio]]'''Example 1:'''
[[File:Table1 .jpg|thumb|394x394px|Table 2: Annual Returns of Sample Portfolio]]  


Now the investor is looking for investment opportunities for $200000, and the financial analyst identified seven investment opportunities and projected their annual rates of return. The investor is required to figure out a portfolio that could receive maximum returns.
Now the investor is looking for investment opportunities for $200000, and the financial analyst identified seven investment opportunities and projected their annual rates of return. The investor is required to figure out a portfolio that could receive maximum returns.
The following are the investment guidelines:
# The investment in growth stocks cannot be more than 50 percent of the total investment.
# The investment in value stocks cannot be more than 50 percent of the total investment.
# 20 percent of value stocks should be invested into bonds.
# To diversify the portfolio, 60 percent of the $100,000  should be invested into one of the higher annual return investments.
Solution[5]:


Defining the following decision variables:
Defining the following decision variables:
Line 142: Line 127:
  </math>: dollars invested in GOOGL
  </math>: dollars invested in GOOGL


<math>x4
Objective: Maximizing return
</math>: dollars invested in BRK.A


<math>x5
<math>Max: 0.06*x1 + 0.14*x2 +0.15*x3</math>
</math>: dollars invested in KR


<math>x6
</math>: dollars invested in MSCI


<math>x7 </math>: dollars invested in VBMFX
Define the constraints:


<math>x1 +x2 + x3 = 200000 </math> (amount invested)


Objective: Maximizing return
<math>x1 + x2 <= 100000</math>


<math>Max: 0.055*x1 + 0.1374*x2 +0.1489*x3 + 0.0168*x4 + 0.0077*x5 +0.093*x6 - 0.02*x7</math>
<math>x3 <= 100000</math>


<math>x1,x2,x3 >= 0</math>


Define the constraints:


<math>x1 +x2 + x3 + x4 +x5 +x6 = 200000 </math> (amount invested)
The simplex table can be derived as the following:


<math>x1 + x2 + x3 <= 100000</math> (half into growth stocks)
[[File:Step 1.jpg|820x820px]]


<math>x4 + x5 + x6 <= 100000 </math> (half into value stocks)
The least coefficient is found to be row 2, where the constant is divided by <math>x1</math>. Once the pivot is found then the row reduction can begin.


<math>0.2*(x4 + x5 + x6) <= x7 </math> (20% of the value stocks are invested into bonds)
[[File:Step2.jpg|820x820px]]


<math>0.6*(x1+x2+x3) >= x3</math> (diversify value stock)
There are 3 negative terms in the last row, row reduction will occur for column <math>x1</math>.


<math>x1,x2,x3,x4,x5,x6,x7 >=0</math>
[[File:Step 3.jpg]]


There are 2 negative terms in the last row, row reduction will occur for column <math>x3</math>.


[[File:Ste p4.jpg]]


Solution:
There is now 1 negative terms in the last row, row reduction will occur for column <math>x2</math>


<math>x1, x4,x5 = 0 </math>
[[File:Ste p5.jpg]]


<math>x2 = 40,000 </math>
There is no need to conduct further calculations as all values in the last row are now positive. Therefore, the optimal solution is achieved:


<math>x3 = 60,000 </math>
<math>x1 = 0 </math>


<math>x6 = 100,000 </math>
<math>x2 = 100,000 </math>


<math>x7 = 20,000 </math>
<math>x3 = 100,000 </math>




<math>Z = 29,000 </math> '''(optimal solution)'''


'''Z = 23,330 (optimal solution)'''
Conclusion: Therefore, if the portfolio is $100,000in MSFT, $100,000 in GOOGL, $0 in AAPL,  


Conclusion: Therefore, if the portfolio is $40000 in MSFT, $60,000 in GOOGL, $ 100,000 in MSCI, $ 20,000 in VBMFX, $0 in AAPL, BRK.A, and KR, the investor could receive the maximum return $23,330(optimal solution).




Line 197: Line 181:


Using the same 7 stocks as the first example, matrix A represents the daily closing value of each stock collected. It is a matrix the size of 7x251 where 251 is the number of available trading days in the year 2018.
Using the same 7 stocks as the first example, matrix A represents the daily closing value of each stock collected. It is a matrix the size of 7x251 where 251 is the number of available trading days in the year 2018.
[[File:Varcovar.jpg|thumb|Table 5:Variance - Covariance Table|489x489px]]




<math>X = A - Er</math>
<math>X = A - Er</math>
[[File:Varcovar.jpg|thumb|Table 3:Variance - Covariance Table|489x489px]]
 
Where X is a matrix that contains the daily percent return. Er is the estimated return. With that being said the variance and covariance can then be calculated as shown.
Where X is a matrix that contains the daily percent return. Er is the estimated return. With that being said the variance and covariance can then be calculated as shown.




Define the dolling decision variables:
 
Defining the following decision variables:


<math>x1 </math>: dollars invested in AAPL
<math>x1 </math>: dollars invested in AAPL
Line 235: Line 221:
With the following constraints:  
With the following constraints:  


<math>E(r_p) = w* Er </math>
<math>E(r_p) = w* Er </math>[[File:Frontier.jpg|thumb|434x434px|Figure 2: Efficient frontier graph of the 7 stocks from January 2018 to January 2019]]<math>\sigma_p = \surd(w*\Sigma*w^T)</math>
 
<math>\sigma_p = \surd(w*\Sigma*w^T)</math>


x1 + x2 + x3 + x4 + x5 + x6 +x7 = 1 (percentage needs to add up to 100)
<math>x1 + x2 + x3 + x4 + x5 + x6 +x7 = 1</math> (percentage needs to add up to 100)


x1,x2,x3,x4,x5,x6 <= 0.05 (at least 5% weight on each stock)
<math>x1,x2,x3,x4,x5,x6 <= 0.05</math> (at least 5% weight on each stock)


Solution:  
Solution:  


x1,x2,x3 = 5%
<math>x1,x2,x3 = 5%</math>
[[File:Frontier.jpg|thumb|381x381px|Figure 2: Efficient frontier graph of the 7 stocks from January 2018 to January 2019]]
 
X4,x5 = 40%  
<math>x4,x5 = 40%</math>


X6 = 1.48%
<math>x6 = 1.48%</math>


X7 = 17%
<math>x7 = 17%</math>


'''Optimal solution: sharpe ratio = 0.05087 [unitless]'''  
'''Optimal solution: Sharpe ratio = 0.05087 [unitless]'''  




Line 259: Line 243:


== Applications ==
== Applications ==
Portfolio optimization can be used to screen investment projects that meet investors, rationally allocate investment amounts, etc. The operation of this model gives investors the opportunity to avoid risks as much as possible while obtaining the maximum relevant benefits. At the same time, after entering the relevant conditions, the model will give reasonable investment allocation suggestions and related optimal returns.  
Portfolio optimization is often used for investment screening and investment amount allocation. The operation of this model gives investors the opportunity to avoid risks as much as possible while obtaining the maximum relevant benefits. At the same time, after entering the constraints, the model will give reasonable investment allocation suggestions and related optimal returns. <ref>DeMiguel, Victor, et al. “A Generalized Approach to Portfolio Optimization: Improving Performance by Constraining Portfolio Norms.” ''Management Science'', vol. 55, no. 5, 2009, pp. 798–812., <nowiki>https://doi.org/10.1287/mnsc.1080.0986</nowiki>.</ref> 
 
Retirement fund investment portfolio is one of the specific applications of investment portfolio optimization in modern times. Retirement planning needs to determine the source of income, estimate expenses, implement savings plans, and manage assets and risks. In the field of asset management and risk, modern financial theory advocates focusing on the total return of retirement-oriented investment portfolios rather than income. When the investment portfolio needs to be allocated, investors can choose between different asset classes and adjust their investment shares. <ref>Armstrong, Frank. “How to Create a Retirement Portfolio Strategy.” ''Investopedia'', Investopedia, 22 Aug. 2021, <nowiki>https://www.investopedia.com/articles/retirement/11/implement-effective-retirement-income-strategy.asp#toc-a-balanced-portfolio</nowiki>.</ref>


== Conclusion ==
== Conclusion ==
Linear programming is an applicable tool in the optimization of stock portfolios. In parallel with the sharpe ratio the tools yield returns with less risks associated with choosing stocks as it optimizes the percent allocation. Linear programming has been around since the 1940’s and has such a wide base of applications. It will continue to be utilized in the future for new stock portfolios to maximize returns with tolerable risks. [8]
Linear programming is an applicable tool in the optimization of stock portfolios. With the sharpe ratio, the tools yield returns with less risks associated as the method selects stocks and allocates investments accordingly. The optimization method  will assist with new stock portfolios. It maximizes returns with the incorporation of the users risk tolerance.<ref>Overton, M. L. (1997). ''Linear Programming''</ref>


== Reference ==
== Reference ==
[1] Vanderbei, R. J. (2000). ''Linear programming: Foundations and extensions''. Boston: Kluwer.
<references />
 
[2] Best, M. J. (2010). ''Champman & Hall/CRC Finance: Portfolio Optimization.'' Ontario: Canada.
 
[3] Perold, Andre F. “Large-Scale Portfolio Optimization.” ''Management Science'', vol. 30, no. 10, 1984, pp. 1143–1160., <nowiki>https://doi.org/10.1287/mnsc.30.10.1143</nowiki>.
 
[4] “Constraints: Portfolio Probe: Generate Random Portfolios. Fund Management Software by Burns Statistics.” ''Portfolio Probe | Investment Technology for the 21st Century'', 19 Apr. 2012, <nowiki>https://www.portfolioprobe.com/features/constraints/</nowiki>.
 
[5] Disatnik, David, and Saggi Katz. ''“Portfolio Optimization Using a Block Structure for the Covariance Matrix.” Journal of Business Finance & Accounting, 2012,'' <nowiki>https://doi.org/10.1111/j.1468-5957.2012.02279.x</nowiki>.
 
[6] Ahmed, Shabbir. ''Isye 6669: Deterministic Optimization ... - Isye Home | Isye''. 2002, <nowiki>https://www2.isye.gatech.edu/~sahmed/isye6669/notes/portfolio</nowiki>.
 
[7] DeMiguel, Victor, et al. “A Generalized Approach to Portfolio Optimization: Improving Performance by Constraining Portfolio Norms.” ''Management Science'', vol. 55, no. 5, 2009, pp. 798–812., <nowiki>https://doi.org/10.1287/mnsc.1080.0986</nowiki>.
 
[8] Overton, M. L. (1997). ''Linear Programming''

Latest revision as of 19:55, 17 December 2021

Authors: Fanghan Li, Kevin Pan, Qizeng Sun, Hanshen Li, Eric Luo, SYSEN 5800 Fall 2021

Introduction

Figure 1: Efficient Frontier Graph

Portfolio optimization is a way to maximize net gains in a portfolio while minimizing risk. A portfolio is a set of selected stocks chosen by the investor. Risk is defined by the potential associated lost of some or all the original investment. Returns are the associated gains when the price of the stocks increases beyond the original investment. By applying probability statistics, linear algebra, optimization and other methods to redistribute the investment portfolio under the established target returns and risk limits to achieve the goal of reducing risks or obtaining higher benefits under the same risk conditions.[1]

Risk is a major factor in choosing stocks in a portfolio. In order to mitigate these risks, investors typically use an efficient frontier graph as shown in figure 1.

The x- axis represents the standard deviation of the data, which is also known as the risk tolerance. On the y- axis is the expected percent return. The points near the solid line are optimal, which is also known as the frontier line. Any points that fall below the curve are considered to be nonoptimal. This is due to the fact that with the same risk tolerance there are better expected returns. This method has its limitations as it relies on past data.[2]

Theory

Table 1:Nomenclature

Modern Portfolio Theory (MPT) or mean variance analysis is a mathematical framework introduced by the economist Harry Markowitz. MPT is used to combine a portfolio of assets in order to maximize the expected return under a given level of risk. Its main point is that investors can choose the best combination of asset risk and return based on the assessment of individual risk tolerance, so as to obtain the most ideal results.[3]

The mitigation of risk can be characterized as follows. Let be a matrix of the daily returns, where is the number of stocks and is the number of days that are being analyzed.

represents the expected returns of the stock which is the average of the individual column of . is the standard deviation of the individual the data set of an individual stock, where is the variance.[4]

X represents the daily return subtracted by the expected returns of each respective stock. The variance and covariance table is a vital tool as it allows the user to estimate volatility of the overall portfolio.



This table will span the size of the number of stocks chosen .


is the expected return of the portfolio, where is the percent of the initial capital being allocated into each stock.[5]


 represents the standard deviation of the portfolio.[6]



is the sharpe ratio of the portfolio. The sharpe ratio is a risk to return ratio that allows the investor to identify if the investment is worth the risk.

Methodology

Portfolio optimization could be solved and analyzed by Linear Programming and statistics. When figuring out the maximum return under the fixed risks investment projects it can be seen as follows:

Function Max ri*Xi
Factor: Xi The amount of investment project i should invest
Coefficient: ri The risk of investment project i
Constants The limit requirements

Table 2: Fixed Risk Table

The constraints of portfolio optimization are various, include[5]:

Constraints Explanation
Monetary Value Constraints Control the amount of money in the portfolio
Maximum Weight Constraints Limit the proportion of assets in the portfolio.
Risk Fraction Constraints Control the number of variances that each asset may have.
Number of Assets Held/ Traded Constraints Limit the number of assets held/traded in the portfolio.
Count Constraints Limit the number of assets that show in each category of a category variable
Cost Constraints Limit the transaction cost
Expected Return Constraints Control the predicted expected return of the portfolio
Volatility Constraints Constrain the predicted volatility of the portfolio(Calculate by predicted variance matrix)
Forced Trade Constraints Trade with assets of at lease a certain size

Table 3: Constraints

Several types of constraints will be selected to formulate the final return. The difference of constraints depends on the differences in investment projects, and related policy requirements, etc.[7]

Numerical Example

Table 4: Annual Returns of Sample Portfolio

Example 1:

Now the investor is looking for investment opportunities for $200000, and the financial analyst identified seven investment opportunities and projected their annual rates of return. The investor is required to figure out a portfolio that could receive maximum returns.

Defining the following decision variables:

: dollars invested in AAPL

: dollars invested in MSFT

: dollars invested in GOOGL

Objective: Maximizing return


Define the constraints:

(amount invested)


The simplex table can be derived as the following:

The least coefficient is found to be row 2, where the constant is divided by . Once the pivot is found then the row reduction can begin.

There are 3 negative terms in the last row, row reduction will occur for column .

There are 2 negative terms in the last row, row reduction will occur for column .

There is now 1 negative terms in the last row, row reduction will occur for column

There is no need to conduct further calculations as all values in the last row are now positive. Therefore, the optimal solution is achieved:


(optimal solution)

Conclusion: Therefore, if the portfolio is $100,000in MSFT, $100,000 in GOOGL, $0 in AAPL,


Example 2:

Using the same 7 stocks as the first example, matrix A represents the daily closing value of each stock collected. It is a matrix the size of 7x251 where 251 is the number of available trading days in the year 2018.

Table 5:Variance - Covariance Table


Where X is a matrix that contains the daily percent return. Er is the estimated return. With that being said the variance and covariance can then be calculated as shown.


Defining the following decision variables:

: dollars invested in AAPL

: dollars invested in MSFT

: dollars invested in GOOGL

: dollars invested in BRK.A

: dollars invested in KR

: dollars invested in MSCI

: dollars invested in VBMFX


Objective: Maximizing the SR value for optimal risk to returns ratio


With the following constraints:

Figure 2: Efficient frontier graph of the 7 stocks from January 2018 to January 2019

(percentage needs to add up to 100)

(at least 5% weight on each stock)

Solution:

Optimal solution: Sharpe ratio = 0.05087 [unitless]


The scatter plot represents the first 10,000 random weight stocks. The optimal regions are on and near the line. It shows that larger gains come with larger risks. The graph allows the characterization of the performance of different weighted stocks in a portfolio.

Applications

Portfolio optimization is often used for investment screening and investment amount allocation. The operation of this model gives investors the opportunity to avoid risks as much as possible while obtaining the maximum relevant benefits. At the same time, after entering the constraints, the model will give reasonable investment allocation suggestions and related optimal returns. [8]

Retirement fund investment portfolio is one of the specific applications of investment portfolio optimization in modern times. Retirement planning needs to determine the source of income, estimate expenses, implement savings plans, and manage assets and risks. In the field of asset management and risk, modern financial theory advocates focusing on the total return of retirement-oriented investment portfolios rather than income. When the investment portfolio needs to be allocated, investors can choose between different asset classes and adjust their investment shares. [9]

Conclusion

Linear programming is an applicable tool in the optimization of stock portfolios. With the sharpe ratio, the tools yield returns with less risks associated as the method selects stocks and allocates investments accordingly. The optimization method will assist with new stock portfolios. It maximizes returns with the incorporation of the users risk tolerance.[10]

Reference

  1. Vanderbei, R. J. (2000). Linear programming: Foundations and extensions. Boston: Kluwer.
  2. Best, M. J. (2010). Champman & Hall/CRC Finance: Portfolio Optimization. Ontario: Canada.
  3. “Harry Markowitz's Modern Portfolio Theory [the Efficient Frontier].” Guided Choice, 14 Feb. 2020, https://www.guidedchoice.com/video/dr-harry-markowitz-father-of-modern-portfolio-theory/. “Constraints: Portfolio Probe: Generate
  4. Andre F. “Large-Scale Portfolio Optimization.” Management Science, vol. 30, no. 10, 1984, pp. 1143–1160., https://doi.org/10.1287/mnsc.30.10.1143.
  5. 5.0 5.1 Random Portfolios. Fund Management Software by Burns Statistics.” Portfolio Probe | Investment Technology for the 21st Century, 19 Apr. 2012, https://www.portfolioprobe.com/features/constraints/.
  6. Disatnik, David, and Saggi Katz. “Portfolio Optimization Using a Block Structure for the Covariance Matrix.” Journal of Business Finance & Accounting, 2012, https://doi.org/10.1111/j.1468-5957.2012.02279.x.
  7. Ahmed, Shabbir. Isye 6669: Deterministic Optimization ... - Isye Home | Isye. 2002, https://www2.isye.gatech.edu/~sahmed/isye6669/notes/portfolio.
  8. DeMiguel, Victor, et al. “A Generalized Approach to Portfolio Optimization: Improving Performance by Constraining Portfolio Norms.” Management Science, vol. 55, no. 5, 2009, pp. 798–812., https://doi.org/10.1287/mnsc.1080.0986.
  9. Armstrong, Frank. “How to Create a Retirement Portfolio Strategy.” Investopedia, Investopedia, 22 Aug. 2021, https://www.investopedia.com/articles/retirement/11/implement-effective-retirement-income-strategy.asp#toc-a-balanced-portfolio.
  10. Overton, M. L. (1997). Linear Programming