
The traditional mean-variance portfolio optimization models in practice have suffered from complexity and heavy computation loads in the process of selecting the best assets for constructing a portfolio. If not, they are considerably departed from the theoretically optimized values. In this work, we develop the optimized portfolio investment strategy in which only one asset substitution occurs when re-balancing a portfolio. To do this, we briefly look into a quadratically constrained quadratic programming (QCQP), which has been well-studied for the non-negative solution. Based on the quadratic programming, an efficient scheme is presented for solving the large-scale inverse problem. We more precisely update the rank of an inverse matrix, so that the optimal solution can be easily and quickly obtained by our proposed scheme.
Various numerical and practical experiments are presented to demonstrate the validity and reliability of our scheme. Our empirical application to the U.S. and South Korea stock markets is tested and highlighted. Moreover, comparisons of a random allocation strategy and our proposed scheme reveal the better performance in the lower risks and higher expected returns obtained by our scheme.
Citation: Yunjae Nam, Dongsun Lee. Efficient one asset replacement scheme for an optimized portfolio[J]. AIMS Mathematics, 2022, 7(9): 15881-15903. doi: 10.3934/math.2022869
[1] | Doong Toong Lim, Khang Wen Goh, Lam Hong Lee . A new class of Shariah-compliant portfolio optimization model: diversification analysis. AIMS Mathematics, 2023, 8(9): 20933-20965. doi: 10.3934/math.20231066 |
[2] | Liyuan Zhang, Limian Ci, Yonghong Wu, Benchawan Wiwatanapataphee . Blockchain asset portfolio optimization with proportional and fixed transaction fees. AIMS Mathematics, 2025, 10(3): 6694-6718. doi: 10.3934/math.2025306 |
[3] | Dennis Llemit, Jose Maria Escaner IV . Value functions in a regime switching jump diffusion with delay market model. AIMS Mathematics, 2021, 6(10): 11595-11609. doi: 10.3934/math.2021673 |
[4] | Jiuchao Ban, Yiran Wang, Bingjie Liu, Hongjun Li . Optimization of venture portfolio based on LSTM and dynamic programming. AIMS Mathematics, 2023, 8(3): 5462-5483. doi: 10.3934/math.2023275 |
[5] | Fei Yu . Multiperiod distributionally robust portfolio selection with regime-switching under CVaR risk measures. AIMS Mathematics, 2025, 10(4): 9974-10001. doi: 10.3934/math.2025456 |
[6] | Chenyang Hu, Yuelin Gao, Eryang Guo . Fractional portfolio optimization based on different risk measures in fuzzy environment. AIMS Mathematics, 2025, 10(4): 8331-8363. doi: 10.3934/math.2025384 |
[7] | Jun Zhao, Peibiao Zhao . Quantile hedging for contingent claims in an uncertain financial environment. AIMS Mathematics, 2023, 8(7): 15651-15669. doi: 10.3934/math.2023799 |
[8] | Kuo-Shing Chen, Wei-Chen Ong . Dynamic correlations between Bitcoin, carbon emission, oil and gold markets: New implications for portfolio management. AIMS Mathematics, 2024, 9(1): 1403-1433. doi: 10.3934/math.2024069 |
[9] | Sunil Kumar Sharma . A Bhattacharyya Triangular intuitionistic fuzzy sets with a Owa operator-based decision making for optimal portfolio selection in Saudi exchange. AIMS Mathematics, 2024, 9(10): 27247-27271. doi: 10.3934/math.20241324 |
[10] | Doong Toong Lim, Khang Wen Goh, Yee Wai Sim . A review on portfolio optimization models for Islamic finance. AIMS Mathematics, 2023, 8(5): 10329-10356. doi: 10.3934/math.2023523 |
The traditional mean-variance portfolio optimization models in practice have suffered from complexity and heavy computation loads in the process of selecting the best assets for constructing a portfolio. If not, they are considerably departed from the theoretically optimized values. In this work, we develop the optimized portfolio investment strategy in which only one asset substitution occurs when re-balancing a portfolio. To do this, we briefly look into a quadratically constrained quadratic programming (QCQP), which has been well-studied for the non-negative solution. Based on the quadratic programming, an efficient scheme is presented for solving the large-scale inverse problem. We more precisely update the rank of an inverse matrix, so that the optimal solution can be easily and quickly obtained by our proposed scheme.
Various numerical and practical experiments are presented to demonstrate the validity and reliability of our scheme. Our empirical application to the U.S. and South Korea stock markets is tested and highlighted. Moreover, comparisons of a random allocation strategy and our proposed scheme reveal the better performance in the lower risks and higher expected returns obtained by our scheme.
Modern portfolio theory is about determining how to distribute capital among available assets such that risk-averse investors can construct portfolios to relatively lower risk for a given expected return. In the work of Markowitz in 1952, variance was used as a measure of risk, which gave rise to the mean-variance portfolio optimization model. Although other mean-risk models have been proposed and studied in the finance literature, the mean-variance model continues to be the core of modern portfolio theory and it is still popular in finance [1,2,3,4].
Portfolio optimization has been widely used in the problem of portfolio selection. There is a large literature of numerical methods or algorithms for solving the portfolio selection problem to maximize profitability of a portfolio. The efficient model selection strategy to forecast stock returns is developed in [7], and using mean variance portfolio selection models in [8]. Still, portfolio optimization faces daunting challenges. The efficient portfolio where a fully diversified set of assets has the least possible risk for a given expected return can be hardly obtained since it often contains certain extreme positive or negative weights [9]. In many practical cases mixed integer linear programming is required to weight portfolio allocation [10], as well as tree-based genetic algorithm and optimized solution discussed in [11]. The stochastic volatility market models are often used for finding the optimal portfolio selection [12], and the authors in [13] argued on optimal portfolio choice.
Most existing investment strategies are far more sophisticated than simply choosing weights. In our model, we assume that short-selling is prohibited in the stock market, i.e., the market does not allow for unrestricted short-selling. This implies that some weights of assets cannot be negative. However, finding the optimal weights from the market assets is extremely hard with weights' non-negativity and unity constraints. Since our interesting in this paper is to develop a numerical scheme rather than numerical solvability, we simply normalize the investor's sum of portfolio weights to be 1 that involving the non-negativity constraint [5,6] and reference therein.
The static Markowitz portfolio optimization that gives asset allocation under the desired expected return with minimum variance. Indeed, market data changes frequently as time marches on. However, the static Markowitz portfolio optimization is no longer to account for the dynamic market changes. Thus, the static Markowitz portfolio optimization is needed to maintain its property: low-risk and high-return by updating covariance matrix Σ. Our contribution of this work is to efficiently update covariance matrix Σ for finding the optimal portfolio weights daily subject to the nonnegative constraint, x≥0. We assume that a portfolio consists of fixed assets, i.e. merely one asset replacement occurs to find the best portfolio under the given low-risk and high-return conditions.
An investment portfolio is a set of well-diversified assets owned by an institution or individual. Optimized portfolios can be constructed by applying mathematical programming to weight each portfolio asset. We assume that an institution or individual needs to know how to efficiently determine asset allocation.
The aim of this paper is to develop an efficient numerical scheme for finding a solution when one asset is replaced by new one among the rest of assets. Our main concern is to consider the symmetric rank-two update for solving the inverse problem. The rank-two update is based on the Sherman–Morrison formulas [14] for rank-one modified matrix. The two steps of Sherman-Morrison formulas relate the inverse of a matrix after a small rank-two perturbation to the inverse of covariance matrix when one asset is substituted in the portfolio. Together with our proposed scheme, we can have the optimal portfolio weight where the optimized portfolios are constrained to have the non-negative weights and sum equals one.
In general, our proposed scheme for updating Σ is applicable to the all type of time series data. Our dynamic portfolio optimization allows for minutely, hourly, daily, weekly or monthly asset allocation maintenance, but we only consider daily stock closing prices in light of limits on available market data. As time goes by, we update the covariance matrix Σ, in other words, we replace one asset in a portfolio with one of the reference set, which induces the rank-two modification M to Σ, i.e., ¨Σ=Σ+M. The main purpose of this work is not to consider the temporal derivative of Markowitz portfolio formulation, but to present the efficient way for updating covariance matrix Σ in more practical settings because financial dataset is dynamic.
The rest of the paper is organized as follows. We begin our discussion to consider the non-negative quadratic programming in Section 2. Section 3 is devoted to reformulating the inverse quadratic programming problem. We develop a symmetric rank-two update scheme for non-negative quadratic programming. We detail our proposed scheme in Section 5. Last, numerical tests are performed to validate the efficiency of the proposed algorithm in Section 6. Conclusion and discussion of this work are presented in Section 7.
The main purpose in portfolio theory is to produce the lowest possible risk for any given level of expected return. More specifically, we look for a collection of the weights. Let us consider that one portfolio comprises n risky assets. Let xi be the proportion of a portfolio in asset i such that 1−∑nixi=0. We denote the weight vector by x=(x1⋯xn)T. The return on the portfolio with no risk-free asset, rp is then defined by rp=xTr, where r=(r1⋯rn)T is an n×1 vector of returns on the n risky assets. Here, we define μ=E(r), and Σ:=var(r) is an n×n non-singular variance-covariance matrix of r. Since the return on the risky assets is uncertain, so is the return on the portfolio, and it could be evaluated by the expected value E(rp)=xTE(r)=xTμ, and its variance is calculated by var(rp)=σ2p=xTΣx. The matrix Σ is assumed to be positive definite, and it has n positive eigenvalues 0<λ1≤…≤λn. We use the notation Symn(R) to denote the set of symmetric n×n and positive definite matrices. With given the return r, let us find x to minimize the portfolio's risk.
We consider the inequality constrained quadratic programming problem. The objective of minimizing the variance of a portfolio is given as
argminxxTΣxsubject to xTμ=E(rp),‖x‖1=1,and0≤xi,for i=1,…,n. |
The formation requires the weight x that minimizes variance subject to the inequality of expected return E(rp) and non-negativity constraint. Each weight value ˆxi=xi/‖x‖1 is then normalized so as to comply with the budget constraint Σni=1ˆxi=1. Minimizing ˆxTΣˆx with inequality and equality constraints can be handled by
argminˆx12ˆxTΣˆxsubject to ˆx≥0andˆxTμ=E(rp). |
For sake of simplicity throughout the paper, we deal with a quadratically constrained quadratic problem (QCQP). We refer to [16,17] for more details. The quadratic Lagrangian is given by
L(x,y,z)=12xTΣx+yT(Px−b)−zTx, | (2.1) |
where b=(rp1)T∈R2×1 and
P=(r1)=(r1r2⋯rn−1rn11⋯11)∈R2×n. |
Here, the two parameters y∈R2×1,z∈Rn×1 control the relation between the minimization xTΣx and constraints x≥0. Let us state the KKT conditions for (2.1) as follows
−Σx+PTy+z=0,Px=b,andXZ1=(1/ρ)⋅1, |
where 1=(1⋯1)T∈Rn×1, b=(rp1)T∈R2×1, X=diag(x)∈Rn×n,Z=diag(z)∈Rn×n,
P=(r1)=(r1r2⋯rn−1rn11⋯11)∈R2×n, |
and the parameter 1/ρ is set to a small positive number. As ρ→∞, i.e a small positive value 1/ρ, x converges toward the optimal solution of the QCQP. A penalty parameter ρ approximately enforces complementary slackness, which prevents x from becoming negative. Linear equations for the Newton-Raphson method give that
(ΣPT−In×nP02×202×nZ0n×2X)(xsyszs)=(−Σx−PTy+zb−Px(1/ρ)⋅1−XZ1), | (2.2) |
where In×n is the n×n identity matrix whose elements along the diagonal are all 1s, and 0m×n∈Rm×n is a null matrix all of whose entries are zero. Let us define the (n+2)×(n+2) matrix
X0:=(02×202×n0n×2X), |
and we set L=(PZ)T and U=(PT−In×n). With block matrices X0,L,U, the matrix A can be expressed by
A=(ΣPT−In×nP02×202×nZ0n×2X)=(ΣULX0). |
Since the submatrix X0 is singular when x has zero weighted assets, we use a non-singular submatrix Σ to find M−1. Thus, the inversion of block matrices can be calculated by
A−1=(ΣULX0)−1=(Σ−1+Σ−1U(X0−LΣ−1U)−1LΣ−1−Σ−1U(X0−LΣ−1U)−1−(X0−LΣ−1U)−1LΣ−1(X0−LΣ−1U)−1). |
The Newton-Raphson method then proceeds iteratively from an initial point xs(0),ys(0),zs(0) through a sequence of points determined from the search directions described above the solution of linear equations (2.2):
xk+1=xk+αxs,yk+1=yk+αys,zk+1=zk+αzs. |
We investigate the effect of one asset replacement for our portfolio, which is a set of n financial assets. For the asset index 1≤i≤n and the number of total unit times l, e.g. n assets and l days, let us first define the following l×1 vectors Ri=(r1,i,…,rk,i,…,rl,i)T containing unit time's the asset returns, where rk,i represents the return of i-th asset on k-th day. The i-th asset's mean return in the portfolio is also defined as μRi:=E(Ri). Next, we construct the variance–covariance (or covariance) matrix Σ. (We refer to Appendix for constructing the variance–covariance Σ.) Given Σ with n assets, we now assume that i-th asset is replaced with another asset. This induces that Ri is replaced with Ri∗. The variance-covariance matrix ¨Σ by the replacement of i-th asset in Σ can be expressed by matrix addition of the rank two matrix M=σ1uuT+σ2vvT, so we can write that
¨Σ=Σ+M=Σ+(m1,i⋮m1,i⋯mi,i⋯mn,i⋮mn,i)=Σ+σ1uuT+σ2vvT. |
Here, σ1, σ2 are eigenvalues of M and u,v are corresponding eigenvectors of M. The elements of matrix M are computed by mj,i=cov(Rj,Ri∗)−cov(Rj,Ri). That is, we obtain mj,i by
mj,i=1l−1l∑k=1(rk,j−μRj)[(rk,i∗−rk,i)−(μRi∗−μRi)]. |
Indeed, the symmetric matrix M has a rank of 2, and it has one positive eigenvalue σ1>0 and one negative eigenvalue σ2<0. To see that, we solve the below system by elimination:
(M−λI)w=(−λm1,i−λ⋮m1,i⋯mi,i−λ⋯mn,i⋮−λmn,i−λ)(w1⋮wi⋮wn)=0. |
This readily leads to the quadratic equation
λ2−mi,iλ−(n∑j=1m2j,i−m2i,i)=0. |
It implies that M has two different eigenvalues σ1≠σ2 and σ1σ2<0. Furthermore, we can express the eigenvalues explicitly as
σ{1,2}=12(mi,i±√4n∑j=1m2j,i−3m2i,i)=12(mi,i)±Ri, | (3.1) |
where we define the distance Ri from the center mi,i/2 to the eigenvalues σ{1,2} by
Ri=12√4n∑j=1m2j,i−3m2i,i. |
Since mi,i<2Ri, we know that σ1>0, σ2<0. Letting wi=σ1 or wi=σ2 and normalizing by
β1:=(m21,i+⋯+m2i−1,i+σ21+m2i+1,i⋯+m2n,i)1/2,β2:=(m21,i+⋯+m2i−1,i+σ22+m2i+1,i⋯+m2n,i)1/2, |
we have the corresponding eigenvectors for σ1 and σ2:
uj={σ1/β1if j=imj,i/β1otherwise, andvj={σ2/β2if j=imj,i/β2otherwise. |
Moreover, we set the i-th column of matrix M by m:=(m1,i,…,mn,i)T and α:=‖m‖∞. From (3.1), the two eigenvalues σ1 and σ2 follow that
σ2<12mi,i<σ1≤α2[1+(4n−3)1/2]. |
As for the two eigenvalues, the difference and sum of σ1 and σ2 are respectively given by
|σ1−σ2|≤(4n−3)1/2αandσ1+σ2=mi,i. |
In addition, we denote the eigenvector corresponding to the smallest eigenvalues of Σ by w. Then, the relation between two eigenvectors u,v and w has
σ1(wTu)2≥−σ2(wTv)2, |
due to the condition of semi-positive definite matrix ¨Σ. It also implies that |wTu|≥|wTv| and |σ2|>|σ1| if mi,i<0.
Let us define ˙Σ:=Σ+σ1uuT, ¨Σ:=˙Σ+σ2vvT. Suppose that we have a linear system ¨Σx=b, where ¨Σ∈Rn×n is nonsingular and nonzero b∈Rn. The solution x∈Rn of the linear system ¨Σx=b is calculated as follows. We set ξ=vTx, so that ¨Σx=˙Σx+(σ2ξ)v. With ˙Σ, n×n identity matrix I, and ξ, we rewrite the linear system as lower and upper triangular submatrices:
(˙Σσ2vvT−1)(xξ)=(I0vT˙Σ−11)(˙Σσ2v0T−1−σ2vT˙Σ−1v)(xξ)=(b0). |
Since each triangular submatrix is nonsingular, this amounts to solve the linear system
x=˙Σ−1(b−σ2ξv)andξ=vT˙Σ−1b1+σ2vT˙Σ−1v. |
It implies that
¨Σ−1b=x=˙Σ−1(I−σ2vvT˙Σ−11+σ2vT˙Σ−1v)b. |
Hence, the inverse of symmetric rank one and two updates respectively can be written by
˙Σ−1=Σ−1−σ1Σ−1uuTΣ−11+σ1uTΣ−1u,and¨Σ−1=˙Σ−1−σ2˙Σ−1vvT˙Σ−11+σ2vT˙Σ−1v. | (4.1) |
To find the solution x in the system (Σ+σ1uuT+σ2vvT)x=b, we multiply each of the above equations (4.1) by the vectors b and v:
¨Σ−1b=˙Σ−1b−σ2˙Σ−1vvT˙Σ−1b1+σ2vT˙Σ−1v,˙Σ−1v=Σ−1v−σ1Σ−1uuTΣ−1v1+σ1uTΣ−1uand˙Σ−1b=Σ−1b−σ1Σ−1uuTΣ−1b1+σ1uTΣ−1u. |
If we respectively denote Σ−1u and ˙Σ−1v by p and q, it simply follows that
¨Σ−1b=Σ−1b−σ1ppTb1+σ1uTp−σ2qqTb1+σ2vTq. | (4.2) |
Next, we observe the characterization of rank two perturbation for Σ. The distance of the two matrices are computed by the operator norm, which is defined by
‖A‖op=max‖x‖2=1‖Ax‖2forA∈Symn(R). |
We write the operator norm of ˙Σ, and give the following estimation:
‖˙Σ−1‖op=‖[In×n−σ11+σ1uTΣ−1u(Σ−1uuT)]Σ−1‖op≤‖[In×n−σ1(Σ−1uuT)]Σ−1‖op≤1λ1Cσ1,λ1, |
where Cσ1,λ1 is defined by
Cσ1,λ1={1−σ1λ1if σ1≤λ1σ1λ1−1otherwise. |
From p=Σ−1u and q=˙Σ−1v and Cσ1,λ1, we also write the operator norm of two matrices, as follows
‖ppT‖op=‖Σ−1uuTΣ−1‖op≤λ−21and‖qqT‖op=‖˙Σ−1vvT˙Σ−1‖op≤C2σ1,λ1. |
Therefore, the difference between two matrices ¨Σ−1 and Σ−1 can be measured by
‖¨Σ−1−Σ−1‖op=‖σ1ppT1+σ1uTp+σ2qqT1+σ2vTq‖op≤(σ11+σ1uTp)‖ppT‖op+|σ21+σ2vTq|‖qqT‖op≤(σ11+σ1/λn)‖ppT‖op+|σ21+σ2/(λn+σ1)|‖qqT‖op≤(σ11+σ1/λn)λ−21+|σ21+σ2/(λn+σ1)|Cσ1,λ1. |
Note that the second inequality follows from ‖˙Σ‖op≤λn+σ1.
We now assume that an investor daily renews portfolio proportions as weights by replacing the poorest performing one asset with a new asset. Mathematically, short selling helps the market to find the fair value of stocks, however we constrain all the weights in the portfolio to be non-negative as mentioned in Section 2. Our scheme allows only portfolio weight vector x≥0 that minimizes variance subject to meeting the target return rp. Note that even our portfolio weight vector x obtained from our scheme meets the target return rp, it does not guarantee the optimal solution or it is possible to have another weight vector that achieves rp due to the non-negativity constraint. In this work, we aim to focus on the efficient computation by using the rank two update. Meanwhile, note that the unique global solvability of optimal problem is beyond the scope of this paper.
Our work mainly concerns about how to develop an efficient scheme when replacing a low-performing asset to improve overall portfolio's performance. Based on the classical quadratic programming, we can create a non-negative portfolio weight vector x≥0. Furthermore, our proposed scheme finds the lowest performance asset and then replaces it with the new one for improving portfolio's performance.
The data we use in this paper is stock prices of KOSPI and NASDAQ from 2020 to 2021. Let SD denote the historical return data for D unit times. A unit time length can be a second, a minute, an hour, or a day. In these simulations, we select the total D days of historical return data to create a covariance matrix Σ. Also, we let PS be a set of selected assets and a set of reference assets PR. The framework for our proposed portfolio optimization is given specifically as follows:
Investment strategy by replacing an existing portfolio's asset for one period of performance evaluation.
1: Input: historical data SD, selected assets PS and reference assets PR, target return rp
2: Define : D: = total days, ns: = number of selected assets, nr: = number of reference assets
3: For d=1 to D
Rp←set of initial selected assets for D days
Σ←covariance matrix of Rp
μp←expected values of Rp
4: Do Algorithm 2
Input: covariance matrix Σ, target return rp, expected values of initial selected assets μp
Output: non-negative weight vector x1≥0
risk1 ←xT1Σx1
5: For i=1 to nr
R∗i ← return of i-th reference asset
μ∗i←E(R∗i)
6: For j=1 to ns j-th selected asset
μ∗p←μp
μ∗p(j)←μ∗i
7: Do Algorithm 3
Input: inverse of covariance matrix Σ−1, return of initial selected assets Rp, return of an asset to be replaced R∗i, return of j-th selected asset Rj
Output: inverse of rank two update matrix ¨Σ−1, rank two update matrix ¨Σ
8: Do Algorithm 2
Input: rank two update matrix ¨Σ, inverse of rank two update matrix ¨Σ−1, target return rp, expected values of selected assets μ∗p
Output: non-negative weight vector x2≥0
risk2 ←xT2¨Σx2
9: If risk2 < risk1
risk1 ← risk2
record ←(i,j)
10: End if
11: End for
12: End for
Rp← Portfolio with asset j replaced by asset i in Rp
13: End for
14: Output : optimal portfolio with non-negative weight vector x∗≥0
Together with a vector v∈Rn, the operator diag(v) gives us an n×n square diagonal matrix with the elements of vector v on the main diagonal. The optimal non-negative weight vector in the given assets
1: Input: Non-singular covariance matrix Σ, inverse of covariance matrix Σ−1, target return rp, expected values of n-selected assets μ={μ1,μ2,…,μn}
2: Define: n: = number of selected assets, nt : = number of iterations, η:=0.95
3: Initialize: P←(μ1μ2⋯μn11⋯1), b←(rp1)T, x←1n×1, y←(11)T, z←1n×1, U←(PT−In×n)
4: For i=1 to nt do
X←diag(x), Z←diag(z), L←(PZ)
X0←(02×202×n0n×2X)
Minv←(X0−LΣ−1U)−1
M1←Σ−1+Σ−1UMinvLΣ−1, M2←−Σ−1UMinv,
M3←−MinvLΣ−1, M4←Minv
Ainv←(M1M2M3M4)
(xsyszs)←Ainv(−Σx−PTy+zb−Px−XZ1n×1)
5: x1←x, z1←z
6: For i=1 to n do
7: If x(i,1)<0
x(i,1)←0
8: End if
9: If z(i,1)<0
z(i,1)←0
10: End if
11: If xs(i,1)>0)
xN(i,1)←−103, x1(i,1)←1
12: Else
xN(i,1)←x(i,1)
13: End if
14: If zs(i,1)>0)
zN(i,1)←−103, z1(i,1)←1
15: Else
zN(i,1)←z
16: End if
αx←min{x1(1,1)/xN(1,1), … x1(n,1)/xN(n,1)}
αz←min{z1(1,1)/zN(1,1), … z1(n,1)/zN(n,1)}
π←xTz/n, πs←(x+αxxs)T(z+αzzs)/n, τ←(π/πs)3
(dxdydz)←Ainv(−Σx−PTy+zb−Px−XZ1n×1+diag(xs)diag(zs)1n×1+τπ1n×1)
α←min{1,ηαx,ηαz}, x←x+αdx,y←y+αdy,z←z+αdz
17: End for
18: Output : non-negative weight vector x≥0
Rank two update for the inverse of covariance matrix
1: Input: inverse of covariance matrix Σ−1, return of j-selected assets Rj, return of an asset to be replaced R∗i, return of i-th selected asset Ri
2: Define : n:= number of selected assets
3: For j=1 to n do
mj,i←cov(Rj,R∗i)−cov(Rj,Ri)
Σ(j,i)←cov(Rj,R∗i), Σ(i,j)←cov(Rj,R∗i)
4: End for
¨Σ←Σ
σ1←12(mi,i+√4∑nj=1m2j,i−3m2i,i), σ2←12(mi,i−√4∑nj=1m2j,i−3m2i,i)
β1←(m21,i+⋯+m2i−1,i+σ21+m2i+1,i⋯+m2n,i)1/2
β2←(m21,i+⋯+m2i−1,i+σ22+m2i+1,i⋯+m2n,i)1/2
5: For j=1 to n do
6: If j=i
u(j,1)←σ1/β1, v(j,1)←σ2/β2
7: Else
u(j,1)←mj,i/β1, v(j,1)←mj,i/β2
8: End if
9: End for
˙Σ−1←Σ−1−(σ1Σ−1uuTΣ−1)/(1+σ1uTΣ−1u)
¨Σ−1←˙Σ−1−(σ2˙Σ−1vvT˙Σ−1)/(1+σ2vT˙Σ−1v)
10: Output : inverse of rank two update matrix ¨Σ−1, rank two update matrix ¨Σ
In this section, we present the validity of the proposed method by evaluating the two different data sets, which are Monte-Carlo sampling data and real data. First, the simulation generates the stock prices denoted by Si(t) for 1≤i≤n and 0≤t, where Si(t) is the i-th index at time t. The stock price process is being driven by the geometric Brownian motion. We compare with volatilities and returns measured by our proposed investment scheme and random investment scheme. Second, the numerical simulations are also performed with real data from the KOSPI and NASDAQ. To apply our proposed model, we have used data related to both bullish and bearish markets in KOSPI and NASDAQ.
The portfolio's return profits by the proposed method overall outperform the top 30% best performing results of portfolios which are randomly selected. In the both setting of Monte-Carlo simulations and real data tests, our proposed model shows that consistently low risk and tends to have higher return. Each test by Monte-Carlo sampling is different with varying levels of risks. We increase the number of samples and volatilities as well in these simulations. Next, we demonstrate our proposed model's volatilities and returns on real data to see the robustness of our model. Remark that we use the historical volatilities, but implied volatilities can be used as in [15].
We generate the random path of i-th stock price Si using geometric Brownian motion dSi=rSidt+σiSidWi, so that Ito calculus gives us
Si(t)=Si(0)exp((r−12σ2i)t+σiWi(t)) |
in which each Wi(t) is normally distributed with zero mean and variance at t [18]. In this subsection, we generate 200 random assets using the geometric Brownian motion process, and present the validity of the proposed method using these random assets.
Figure 1 represents the 10 random paths generated by the standard Brownian motion process. Figures 1(a), (b), and (c) each shows its paths when σi is 0.05,0.35 and 0.5 with Si(0)=1. In this way, we increase the number of random paths 200 and 500 for large scale simulations.
As we stated above, our proposed scheme can produce the optimal solution more efficiently and easier. Large scale empirical studies on the total 200 and 500 assets are performed to see the robustness of our scheme. We construct one portfolio, which consists of a set of 30, 50, and 75 assets, then the rest of assets is called the reference assets. Daily updating the portfolio by replacing one asset with one of the other assets, i.e., reference assets. Each asset class follows random walk generated by geometric Brownian motion. Also, the target return is set to 0.02 when the optimal volatility portfolio is constructed using QCQP method. Figure 2 represents the risk measured by σp2. The risk σp2 is calculated day by day, and the graph of σp2 is plotted. Figures 2(a), (b), and (c), the first row, are the results of 200 paths simulations generated by the Brownian motion process when σ is given 0.35. Figures 2(d), (e), and (f), the second row, are the results of 500 paths simulations by the Brownian motion process when σ is given 0.35. The third row, (g), (h), and (i) are the results of 200 paths simulations by the Brownian motion process when σ is given 0.5, and the fourth row (j), (k), and (l) are the results of 500 paths simulations by the Brownian motion process when σ is given 0.5. Also, the first column of Figure 2 shows the results of simulations with 30 assets. Likewise the second column of Figure 2 is the results of one portfolio having 50 selected assets. The last column Figure 2 is the results of simulations having of 75 selected assets.
We provide a comparison of 'daily risk by our proposed daily-one asset replacement scheme' and 'daily plot by randomly selecting assets scheme'. Each test is compared using 100 random stock prices artificially generated using the geometric Brownian motion. The number of selected assets is 30. In our daily-one asset replacement method, we randomly select 30 of 100 assets to form an initial portfolio allocation, and then each one asset is replaced by one of the reference 70 assets to improve the portfolio's performance with a minimum risk. i.e., update the portfolio weight daily for finding optimal volatility. In the comparison, 'portfolio by randomly selecting one asset scheme' in which initially 30 assets are randomly selected from 100 assets, and then everyday the portfolio weight is updated to be minimum risk using QCQP method. The random simulation was repeatedly performed 10,000 times, and the results of 'portfolio by randomly selecting one asset scheme' in Figure 3 were the top 30% highest return portfolio, which is the 3,000 portfolios of total 10,000 portfolios.
The first row of Figures 3 (a), (b), and (c) are the comparisons when the target return rp is 0.03, and the second and third rows are the comparisons when the target return rp are 0.05 and 0.07, respectively. Also, the results of first column (a), (d), and (g) were simulated with 100 random paths with a given constant σ=0.5, and the second and third columns' results were simulated with 100 random paths and given σ=1.0,1.5.
We present a variety of practical examples for reporting proposed portfolio performance. The results imply that our proposed optimization scheme has the robustness and stability. In the following, we use real data which are KOSPI and NASDAQ in 2020 and 2021 to compute the optimal portfolio weights. Two different scenarios, bearish and bullish markets are illustrated to describe how the proposed portfolio better perform with respect to risk and return.
One of the major events in 2020 is the stock market crash caused by the COVID-19. It was a sudden global event that the corona-virus pandemic strongly affected South Korea in June, as well. The fear of the corona-virus diseases caused KOSPI to drop below 2000. Rapidly increased volatility in the stock market also influenced in our tests. However, the crash caused a short-lived bear market and does last only a short time.
Figure 4 represents the volatility or risk measured by σp2. Data of σ2p are based on the daily returns from February 28, 2020 to February 19th and 2021. The first 6 month data were evaluated, and proceed the evaluation on every previous 6 months. As a result, from August 24th, 2020 to February 19th, 2021, the risk was calculated by replacing one asset every day. The risk σp2 of 'proposed portfolio volatility' is calculated and updated day by day. Meanwhile, the risk comparison of 'random portfolio volatility' is the average of the top 30% of 100 tests on random portfolios. In this simulation, 100 KOSPI stock assets in the bearish market 2020 was used. The first row of Figures 4, (a), (b), and (c) show a risk comparison when the target return is 0.03, and the second, third and fourth rows are risk comparisons for a given target returns 0.05, 0.07, 0.15, respectively. Also, the first column (a), (d), (g), and (j) are risk comparisons of simulations, corresponding to the portfolio consisted of 5 assets, and the second and third columns are risk comparisons of simulations when the number of portfolio assets are 30 and 50, respectively. Even though the risk σp2 from random simulations is the result of the top 30% performance, the volatility of the proposed portfolio generated by our daily-one asset replacement method is much lower. Thus, our scheme gave more stable investments.
Remark that tests illustrated in (b), (c), and (e) contain a sudden surge of stock prices, and it happens during a pandemic due to the panic. The portfolios' profits by the proposed scheme overall outperform in risk and return, i.e., it produces the lower risks and higher returns.
Previously, we have seen that the risk of our portfolios is always lower when we use the data of 2020. Likewise, we also verify that the risk of our portfolio is not only lower but also returns by our scheme are relatively higher. Throughout simulations, each test was conducted with daily return data in 2020, and the expected return was calculated over the past 6 months.
Figure 5 represents the cumulative returns measured by rc. The cumulative return rc of our proposed portfolio is calculated and updated day by day. For a comparative study, cumulative return of random portfolios is calculated as the average of top 30 percent of total 100 tests. The first to fourth rows show the evolutions of cumulative return over 6 months in the second half of 2020. The graph of target returns rp={3%,5%,7%,15%}, are drawn in upper and lower rows. The first to third columns are the 5, 30, and 50 number of assets, respectively. The data of 100 KOSPI assets are daily returns from February 28th, 2020 to February 19th, 2021. Each the daily return from August 24th, 2020 to February 19th, 2021 was calculated, and then the cumulative return was plotted.
As the number of assets in the portfolio increased, the gap between 'return of random portfolio' and 'return of proposed portfolio' tended to decrease, and the gap in two graphs increases with 5 assets portfolio. When we applied our method to constructing one portfolio, which has a size of 5, i.e., it showed the greatest difference. Also, 'return of random portfolio' and 'return of proposed portfolio' followed the similar tendency to each other, but in general, it was verified that cumulative return of 'proposed portfolio' was superior.
In the simulation of Figure 4, we used stock market's return data in 2020. The risk of proposed portfolio was lower than the top 30% of risk of random portfolios. The same risk comparison but different market condition was considered. Stock market return data of 2021 is assumed to be bullish market for simulations. In the same way as in the previous simulations, the volatility was evaluated based on every past 6 months, and then the risk was estimated by replacing the poorest performing one asset on everyday from December 22nd, 2020 to June 25th, 2021.
Figure 6 represents the risk measured by σp2. The risk σp2 of 'proposed portfolio volatility' is calculated and updated day by day. The risk comparison of 'random portfolio volatility' is the average of the top 30% of 100 tests on the random portfolio's weights. In this simulation, 100 KOSPI stock assets in the bullish market 2021 were used. The first row of Figures 6, (a), (b), and (c) show a risk comparison when the target return is 0.03, and the second, third and fourth rows are risk comparisons for a given target returns 0.05, 0.07, 0.15. Also, the first column (a), (d), (g), and (j) are illustrated for the risk comparison. The simulations are conducted for the portfolio consisted of 5 assets, and the second and third columns are risk comparisons when the portfolio assets are 30 and 50, respectively. Even though random simulation is the result of the top 30%, the volatility of the proposed portfolio generated by our daily-one asset replacement method is lower.
The difference between 'random portfolio volatility' and 'proposed portfolio volatility' was significantly different in first column than in third column. Thus, the smaller the number of portfolio's assets, the gap between proposed and 30% random portfolios is greater. In addition, although the tendency of two portfolio risks tends to be similar, the 'proposed portfolio volatility' is always low as seen in the risk simulation of Figure 4.
In the previous Figure 5, we examined how the cumulative return was different when target return and portfolio size were fixed differently. We now observe the changes of 'return of random portfolios' and 'return of proposed portfolios' using 2021 KOSPI. KOSPI assets' return data for one year from June 25th, 2020 to June 25th, 2021 were used. The cumulative returns from December 22nd, 2020 to June 25th, 2021 were shown. They are evaluated on each day based on the previous 6 months of one year of data.
Figure 7 represents the cumulative return measured by rc. The cumulative return of proposed portfolios rc is updated by replacing one asset in portfolio with one of the reference asset set. For a comparison of proposed portfolio's return, the cumulative return is calculated by the average of the best of top 30% of 100 random portfolios cumulative returns. The first column are graphs of portfolios consisted of 5 assets, the second and third columns are graphs of portfolios of 30 and 50 assets. Also, the first row are graphs of the optimal portfolio when the target return is fixed at 0.03, and the second, third, and fourth rows are graphs of the optimal portfolio calculated by fixing the target return at 0.05, 0.07, and 0.15, respectively.
Although we confirmed that the cumulative return of proposed portfolio as seen in Figure 5 would be high, the performance with 2021 KOSPI data did not show us significant differences between two portfolio schemes. However, comparing with the average over 30% top-performing random portfolios in Figure 7, we see that the cumulative return of portfolio by our scheme maintains consistency in return. In other words, the portfolio by our scheme is applicable to make a profit more safely.
In the following simulation, we consider a 5-asset portfolio. A set of the total assets contains 100 KOSPI assets and 100 NASDAQ assets, i.e., we consider 200 assets in this simulation, and the each asset is denoted by {k1, …, k100, n1, …, n100}. The initial portfolio set consists of 5 assets: {p1,p2,p3,p4,p5}, which are 5 KOSPI assets, and we replace one asset in portfolio with one of the reference assets daily. Everyday a portfolio is updated to a new portfolio that optimizes risk by replacing one asset. From March 20th 2020 to March 9th 2021, over the 230 days held in the market were calculated and evaluated in units of 115 days, forming one portfolio with the optimal risk every day for a total of 115 days.
This simulation, which includes the KOSPI market and the NASDAQ market, has daily returns from March 20th, 2020 to March 9th, 2021. In both the first and second rows, data for one year was calculated in units of 6 months, and represents the risk variations and cumulative return from September 14th and 2020 to March 20th and 2020, respectively. Figure 8 represents the risk and cumulative return measured by σ2p,rc. The cumulative return rc is daily calculated on each business day. In the above simulations, when the target return is 0.05, the assets and weights of portfolio on the last day measured by P115 and x115 are:
P115={n69,k99,k56,k30,k100},x115=(0.5014,0.1850,0.1281,0,0.1855)T. |
When the target return is given by rp=0.1, P and x are as follows.
P115={k99,k5,n69,k54,n38},x115=(0.1638,0.0841,0.5396,0.0821,0.1304)T. |
Also, P and x are composed as follows for a given target return rp=0.15.
P115={n69,k67,k100,k99,n142},x115=(0.5513,0.0935,0.1704,0.1847,0)T. |
Thus, a risk averse investor with a target return of 0.05, an investor with a target return of 0.1, and a risk tolerance with a target return of 0.15 all started with portfolio of {k1,k2,k3,k4,k5}. However, As an asset in portfolio changes daily, investors have different portfolios depending on their investment propensity.
A risk averse investor chooses to preserve capital over the potential for a higher than average return. Modern portfolio theory assumes that investors are risk averse, meaning that they prefer the minimum volatility portfolio for a given target return. In this simulation, the minimum risks for each target return given in the KOSPI market, NASDAQ market, and the combined market are shown. The graph as seen in Figure 9 is known as the efficient frontier. In the efficient frontier, portfolio corresponding to each point in the curve is called the minimum variation portfolio. It is possible to create different portfolio in the area above the efficient frontier. However, the risk of the other portfolios is greater than the risk of the minimum variance portfolio for the same target return, so no one invests in portfolio, which belongs to the area above the efficient frontier.
Figure 9 represents the efficient frontiers of portfolios, which consist of randomly chosen assets and proposed portfolios by using our method. The graph shows the risk of efficient portfolio σp2 for target return rp, we can confirm that the risk of portfolio made through our method is always lower than the risk of portfolio made from top 30% random portfolio. Figure 9(a) shows the effective frontier using the KOSPI market data of 2020, also Figure 9(b) implies the effective frontier using the KOSPI market data of 2021, and last Figure 9(c) shows the effective frontier analyzed by the KOSPI market and the NASDAQ market data from 2020 to 2021.
In the previous simulations, it was confirmed that the risk of daily update portfolio was lower than that of the randomly constructed portfolio. In this simulation, we observe how to affect the returns when unexpected, "Black Swan", event occurs. We compare the daily updated portfolio and portfolio that has not been updated. Noting not updated portfolio implies that all asset weights are fixed and portfolio maintenance is not available in an unexpected occasion.
There is no doubt that COVID-19 was a "Black Swan" in financial markets. One of the first countries to be affected by COVID-19 was Republic of Korea, where the first confirmed case was reported on January 20th, 2020, detected at Incheon International Airport. After fears of the COVID-19 caused the KOSPI to fall below more than 1000 points for the first time in ten years. As shown in Figure 10, unexpected event lowers the most of portfolio's returns. Even though COVID-19 confirmed cases increased as return by proposed scheme fell, our returns overrun the graph of no update scheme's return.
Portfolio optimization is a cornerstone of financial theory and practice. However, it is still not easy to allocate assets in a portfolio. Furthermore, we do not allow any negative weight value on the allocations. i.e., the optimized portfolio weights are to be found without short positions. The optimized weights should be re-balanced due to the stock fluctuations. In this paper, we developed the efficiently updating scheme for the optimized portfolio. Given the difficulties of re-calculating a large-scale covariance matrix, our proposed scheme simply performed rank-2 modification of the matrix.
Based on Markowiz's portfolio theory, we assume that investors are risk averse. In other words, investors choose the portfolio with the lowest risk when portfolios with the same expected return are provided. Also, there is a trade-off between expected return and risk, and investors take different risks according to their investment propensity. Therefore, in this paper, we have dealt with various the target returns, and all simulation results have shown that the risks of our proposed portfolio are always low.
The year 2020 indeed, has turned out to be quite impressive for most stock markets. All major economic indices have declined, and reached their lowest levels in recent periods. The lowest indicators were caused by economic effects of the COVID‐19 pandemic crisis, however, most simulation results by our proposed scheme outperformed the average of the top 30% of tests on random portfolios, in both KOSPI and NASDAQ markets. On the other hand, the year 2021 has had the upward tendency, due to the Bank of Korea's quantitative easing, and economic revival by COVID-19 vaccination, and so on. These economic boosts put the KOSPI and NASDAQ indices in bullish market.
The main contribution of this work is to build and update (or maintain) the optimal portfolio weights daily subject to the nonnegative constraint, x≥0. We assume that portfolio consists of fixed assets, i.e. merely asset replacement occurs to find the best portfolio under the given low-risk and high-return conditions. Our dynamic portfolio optimization allows for minutely, hourly, daily, weekly or monthly maintenance, but we only consider daily stock closing prices in light of limits on available market data. Furthermore, we obtain a profitable portfolio by adjusting one of assets and renewing the portfolio as time goes by. Therefore, we plan on efficiently solving the dynamic portfolio selection problem.
Numerical tests have shown to have high validity for the portfolio optimization using Monte-Carlo simulation and empirical application on the stock prices of KOSPI and NASDAQ. We also demonstrated the robustness of our proposed scheme with a large number of assets. We applied our proposed scheme to KOSPI and NASDAQ markets, and considered the returns and risks in bearish and bullish periods. These finding illustrated the validity of our proposed portfolio scheme.
This work was supported by Incheon National University Research Grant in 2020-0464.
The authors declare no conflict of interest.
We assume that n financial assets are available. For the asset index 1≤i≤n and the number of total unit times l, e.g. n assets and l days, let us first define the following l×1 vectors Ri=(r1,i,…,rk,i,…,rl,i)T containing unit time's the asset returns, where rk,i represents the return of i-th asset on k-th day. The i-th asset's mean return in the portfolio is also defined as μRi:=E(Ri). Together with with R1,R2,…,Rn, we build the variance–covariance (or covariance) matrix Σ:
Σ=(var(R1)cov(R1,R2)⋯cov(R1,Rn)cov(R2,R1)var(R2)⋯cov(R2,Rn)⋮⋮⋱⋮cov(Rn,R1)cov(Rn,R2)⋯var(Rn)). |
The two vectors u,v in section 3 are orthogonal and it is readily confirmed as follows:
uTv=1β1β2(m21,i+⋯+m2i−1,i+σ1σ2+m2i+1,i⋯+m2n,i)=1β1β2[m21,i+⋯+m2i−1,i+14(m2i,i−4n∑j=1m2j,i+3m2i,i)+m2i+1,i⋯+m2n,i]=0. |
[1] |
R. O. Michaud, The Markowitz Optimization Enigma: Is 'Optimized' Optimal? Financ. Anal. J., 45 (1989), 31–42. https://doi.org/10.2469/faj.v45.n1.31 doi: 10.2469/faj.v45.n1.31
![]() |
[2] |
L. Jiang, S. Wang, Robust multi-period and multi-objective portfolio selection, J. Ind. Manag. Optim., 17 (2021), 695–709. https://doi.org/10.3934/jimo.2019130 doi: 10.3934/jimo.2019130
![]() |
[3] |
L. Lao, Portfolio selection based on uncertain fractional differential equation, AIMS Math., 7 (2022), 4304–4314. https://doi.org/10.3934/math.2022238 doi: 10.3934/math.2022238
![]() |
[4] |
H. Huang, Z. Zhang, An intrinsic robust rank-one-approximation approach for currency portfolio optimization, AIMS QFE., 2 (2018), 160–189. https://10.3934/QFE.2018.1.160 doi: 10.3934/QFE.2018.1.160
![]() |
[5] |
L. Wu, Y. Yang, H. Liu, Non-negative-lasso and application in index tracking, Comput. Stat. Data Anal., 70 (2014), 116–126. https://doi.org/10.1016/j.csda.2013.08.012 doi: 10.1016/j.csda.2013.08.012
![]() |
[6] |
Y. M. Yen, T. J. Yen, Solving norm constrained portfolio optimization via coordinate-wise descent algorithms, Comput. Stat. Data Anal., 76 (2014), 737–759. https://doi.org/10.1016/j.csda.2013.07.010 doi: 10.1016/j.csda.2013.07.010
![]() |
[7] |
Z. Dai, J. Kang, F. Wen, Predicting stock returns: a risk measurement perspective, Int. Rev. Financ. Anal., 74 (2021), 101676. https://doi.org/10.1016/j.irfa.2021.101676 doi: 10.1016/j.irfa.2021.101676
![]() |
[8] |
Z. Dai, J. Kang, Some new efficient mean variance portfolio selection models, International J. Financ. Econ., 74 (2021), 1–13. https://doi.org/10.1002/ijfe.2400 doi: 10.1002/ijfe.2400
![]() |
[9] |
R. C. Green, B. Hollifield, When will mean-variance efficient portfolios be well diversified?, J. Finance, 47 (1992), 1785–1809. https://doi.org/10.2307/2328996 doi: 10.2307/2328996
![]() |
[10] |
R. Mansini, W. Ogryczak, M. G. Speranza, Twenty years of linear programming based portfolio optimization, Eur. J. Oper. Res., 234 (2014), 518–535. https://doi.org/10.1016/j.ejor.2013.08.035 doi: 10.1016/j.ejor.2013.08.035
![]() |
[11] |
C. Aranha, H. Iba, The Memetic Tree-based genetic algorithm and its application to Portfolio Optimization, Menet. Comput., 1 (2009), 139–151. https://doi.org/10.1007/s12293-009-0010-2 doi: 10.1007/s12293-009-0010-2
![]() |
[12] |
X. Zeng, A stochastic volatility model and optimal portfolio selection, Quant. Financ., 13 (2013), 1547–1558. https://doi.org/10.1080/14697688.2012.740568 doi: 10.1080/14697688.2012.740568
![]() |
[13] |
A. Buraschi, P. Porchia, F. Trojani, Correlation risk and optimal portfolio choice, J. Financ., 65 (2010), 393–420. http://dx.doi.org/10.2139/ssrn.908664 doi: 10.2139/ssrn.908664
![]() |
[14] | W. Sun, Y. X. Yuan, Optimization Theory and Methods: Nonlinear Programming, Springer, 2006. |
[15] |
X. Lin, M. Wang, C. H. Lai, A modification term for Black-Scholes model based on discrepancy calibrated with real market data, AIMS DSFE., 1 (2021), 313–326. https://10.3934/DSFE.2021017 doi: 10.3934/DSFE.2021017
![]() |
[16] | S. Boyd, Convex optimization, Cambridge University Press, 2004. |
[17] | R. H. Kwon, Introduction to Linear Optimization and Extensions with MATLAB, CRC Press, 2014. |
[18] | D. J. Higham, An Introduction to Financial Option Valuation, Cambridge University Press, 2004. |