key: cord-0047474-dan5v8k4 authors: Wu, Xinzheng; Zhou, Tianwei; Qiu, Zishan title: Bacterial Foraging Optimization Based on Levy Flight for Fuzzy Portfolio Optimization date: 2020-06-22 journal: Advances in Swarm Intelligence DOI: 10.1007/978-3-030-53956-6_26 sha: 9fa34b7903d0865f2d3cf8382dc4476cefbd4f67 doc_id: 47474 cord_uid: dan5v8k4 In this paper, a new kind of bacterial foraging optimization that combines with levy flight (LBFO) is employed to solve a novel portfolio optimization (PO) problem with fuzzy variables and modified mean-semivariance model which includes the transaction fee (including the purchase fee and sell fee), no short sales and the original proportion of the different assets. First of all, a chemotaxis step size using levy distribution takes the place of fixed chemotaxis step size, which makes a good balance between local search and global search through frequent short-distance search and occasional long-distance search. Moreover, fuzzy variables are used to signify the uncertainty of future risks and returns on assets and some constrained conditions are taken into consideration. The results of the simulation show that the model can be solved more reasonably and effectively by LBFO algorithm than the original bacterial foraging optimization (BFO). Portfolio optimization (PO) is a process to decide how to allocate wealth and which assets to invest can gain the maximum returns under the acceptable risk [1] . Markowitz proposed the mean-variance (M-V) model [2] that uses the variance of stock prices to measure the portfolio risk. With the defects of the mean-variance (M-V) model [2] , alternative risk measures have been proposed, such as value-at-risk (VaR) [3] , sparse and robust mean-variance [4] , and vine copula liquidity-adjusted VaR (LVaR) optimization model [5] . To overcome NP-hard problem, swarm intelligence (SI) methodologies are applied to deal with PO, such as particle swarm optimization (PSO) [6] , bacterial foraging optimization (BFO) [7] , moth search algorithm (MSA) [8] , etc. BFO [9] is a good technique to solve optimization problems. It has been succeeded in solving many real-world problems including flexible job-shop scheduling problem [10] , feature selection [11] , and supply chain optimization problem [12] . According to its continuous nature and several successful applications in the continuous optimization domain, BFO is considered as a prospective algorithm in solving the PO problem. Levy flight which simulates the food searching path of numerous animals like deer, bumblebees, and albatross are added to SI algorithms to promote the performance of the algorithms such as PSO [13] , cuckoo search algorithm (CSA) [14] and firefly algorithm (FA) [15] . Fuzzy set theory [16] can deal with decision-making problems since it allows us to describe and treat imprecise and uncertain elements. A growing number of researches show that it is hard to predict the future performance of assets exclusively based on historical data. So fuzzy logic [16] is applied to express uncertain knowledge that is suitable for representing the intrinsic uncertainty of the portfolio optimization problem. In a typical project, the return distributions of assets are usually skewed, which means a low possibility of high profits and a high possibility of low profits [24] . Substituting variance with semivariance can avoid sacrificing too much anticipated return in eliminating both high and low return extremes. In our approach, the uncertainty on returns and semivariance is set to trapezoidal fuzzy numbers. Based on the analysis of the recent literature, the problem about how to improve the ability of original BFO to achieve high-quality solutions to more complicated PO problem attracts our attention. In this paper, we propose a new bacterial foraging optimization based on levy flight (LBFO) to solve a more complicated PO problem. The main contributions of this paper are listed below. First of all, levy distribution replaces the fixed chemotaxis step size to promote the optimization ability and efficiency of BFO through frequent short-distance exploration and occasional long-distance exploration. Next, transaction fee, no short sales and the original proportion of the different assets are used to modify mean-semivariance model. Finally, fuzzy variables are used to simulate the uncertain economic environment. The rest of the paper is organized as follows. Section 2 is the introduction of some definitions. Section 3 gives a review of BFO and a description of LBFO. Section 4 describes the improved portfolio selection model and the detailed design of encoding and constrained boundary control. In Sect. 5, experimental settings and results are given. In the end, Sect. 6 concludes the paper and presents some future directions. In this section, we introduce some definitions that are needed in the following section. The assistance of a membership function μ A (X) → [0, 1] performs the degree of membership of the various elements, which means all elements in the interval between 0 and 1 are mapped. Definition 1 [17] . A fuzzy number A is called trapezoidal with core interval [a, b], left-width α > 0 and right-width β > 0 if its membership function has the following form: and it is usually denoted by the notation A = (a, b, α, β). The family of fuzzy numbers is denoted by F. A fuzzy number A with γ -level set is expressed as for all γ > 0. Definition 2 [18] . The above trapezoidal fuzzy number A is denoted by the notation A = (a, b, α, β) with core interval [a, b], left-width α and right-width β and the γ -level set of A can be computed as: The possibilistic mean value of A is given by the following: The upper and lower possibilistic semivariance of A is given respectively by the following: Assuming two fuzzy numbers A and B, with For all γ ∈ [0,1], the upper and lower possibilistic covariance of A and B are given respectively: Lemma 1 [18] . Assuming that A and B are two fuzzy numbers and let μ and λ be positive numbers. Then, the following conclusions can be drawn by using the extension principle: Theorem 1 [19] . Assuming that A 1 , A 2. ..A n are fuzzy numbers, and λ 1 , λ 2 ,…λ n are real numbers. Then, the following conclusions can be drawn by using the extension principle: BFO, a swarm intelligence algorithm, is based on the biology and physics underlying the foraging behavior of Escherichia coli. Four motile behaviors (chemotaxis, swarming, reproduction, and elimination and dispersal) are included in the bacterial foraging process. For more detailed information, please refer to [9] . This part mainly explains the application of the random walk model of the levy flight strategy in algorithm improvement. The levy flight is a statistical description of motion. It is a kind of non-Gaussian random processes whose step length is drawn from levy stable distribution. This special walk strategy of levy flight is subject to the power-law distribution. There is an exponential relationship between the variance of levy flight and time. where s is the random step size of levy flight and λ is a real number. In an algorithm proposed by Mantegna [20] , the method of generating levy random step size is represented by: where β is a real number. u and v are drawn from normal distributions. That is The improved chemotaxis step size formula is given as follows: In the formula, the scale is the scale factor, Levy (s) is the levy step size as the parameter, the D-dimensional paratactic value of the position of the ith bacteria is set to θ i d (j, k, l), and the D-dimensional paratactic value of the current optimal bacterial position is set to θ * d (j, k, l). p is the dimension of optimization. In order to make the levy chemotaxis step reach the opportune order of magnitude, the scale utilizes the positional relationship between the optimal bacteria and the current bacteria. In this section, a model that considers the transaction fee and no short sales in portfolio optimization presented in [21] is introduced. The model can be described as following and the parameters and definitions of PO model are shown in Table 1 . The function that represents profit and pursuits the maximum value The function that represents risk and pursuits the minimum value where ϕ ∈ [0,1], representing risk aversion factors. When ϕ becomes smaller, inventors are willing to take more risks. The bigger the value of ϕ, the less risks will take. When LBFO is used to find the solutions of PO model, each particle is regarded as a potentially feasible solution. Three types of information, including the proportion of investment, the value of corresponding profit and the value of corresponding risk, are carried by each bacterium [22] . Equation (19) illustrates the coding of the bacteria. As is shown in Eq. (20) , the proportions of all assets are summed up first and then every proportion of asset is divided by the s so that the sum of all asset proportions is equal to 1. Boundary control guarantees that each proportion is a positive number. Bacteria change direction randomly in the process of chemotaxis, which may lead them to exceed the given area. If bacteria are permitted to leave the prescribed area, the border solutions may be infeasible. Otherwise, the border solutions may not be obtained. The boundary control rules are illustrated in Eq. (12, D min and D max are the lower and upper boundaries, separately. And the function rand (·) is used to generate a random number between 0 and 1. In order to verify the performance of LBFO algorithm, the original BFO and PSO are selected for comparison. Both the algorithms shown in this paper were coded in MATLAB language. In the experiments, we assume that there are five assets to invest and the original proportion in every asset X 0 i equals 0.2. Besides, the sum of the initialized ratio of each asset equals 1. Since we suppose that the future returns of the assets are trapezoidal fuzzy numbers, the left and right width and the core interval of the fuzzy numbers are needed to estimate. The estimation method proposed by Vercher et al. [23] is used to calculate the trapezoidal fuzzy return rates of the proposed model. According to Vercher et al., the historical returns are regarded as samples and the core and spreads of the trapezoidal fuzzy returns on the assets are approximated by sample percentiles. So the core of the fuzzy return r is set as the interval [40th, 60th], left-width (40th, 5th] and right-width . We consider the yearly returns over the examined period between January 2010 and December 2019. The probability distribution of returns is shown in Table 2 . In this paper, we assume that investors are risk-averse. Thus, the lower possibility semivariance is used to describe the risk. According to Theorem 1 and Definition 2, the risk of investment is shown as follows: According to Eq. (3) and Eq. (14), the asset's probability means of return that is regarded as the expected yields of assets and the covariance of each asset's return is as follows: Experimental results obtained by three algorithms of different λ and the final portfolio selection results are showed in Tables 3, 4 and 5. Figure 1 shows the convergence curves with various λ generated by BFO, LBFO and PSO. According to the tables and the figures, we can find that: (1) The fitness values grow up with the increase of the risk aversion factor ϕ. The results illustrate that high returns involve increased risk. (2) With the different ϕ, the proportion of the five assets is different. Different investors have different degrees of risk aversion, so they will make different investment decisions when facing the same assets and market conditions. (3) By analyzing the tables and the convergence graphs, it is obvious that LBFO usually produces the best performance among these three algorithms and BFO is better than PSO. Detailed differences are listed as follows: a) On account of random search directions and fixed chemotaxis step size, the original BFO algorithm has a restrained global search capability and a weak convergence performance. Comparing to BFO, LBFO algorithm utilizes levy flight to balance global search and local search. The results illustrate that LBFO has higher convergence rate and solution accuracy. b) Due to the defects of algorithm performance, PSO algorithm shows worse results than BFO in this model. PSO algorithm is caught in local optimum through successive iterations and slow convergence rate appearing, which limits the accuracy of the algorithm. On the contrary, BFO algorithm has a more effective search capability, so it is easy to jump out of local optimum and find better results. c) It can be seen that LBFO can always find the best solution from the data of the mean value. In this paper, we employ original BFO and LBFO algorithms to solve PO problem with different risk aversion factors. The obtained results indicate that LBFO algorithm is a better choice to solve the difficult PO problem due to the levy flight strategy, whose characteristic is the frequent short-distance exploration and occasional long-distance exploration is utilized to adjust the chemotaxis step size. Further work may consider more useful conditions such as inflation, fundamental analysis and focus on multi-period or dynamic objectives to satisfy demands from the real market to propose a new PO model. Brain storm optimization for portfolio optimization Portfolio selection Value at Risk: the New Benchmark for Controlling Market Risk Sparse and robust mean-variance portfolio optimization problems Liquidity-adjusted value-at-risk optimization of a multi-asset portfolio using a vine copula approach Optimization of risk control in financial markets based on particle swarm optimization algorithm Bacterial foraging based approaches to portfolio optimization with liquidity risk Modified moth search algorithm for portfolio optimization Biomimicry of social foraging bacteria for distributed optimization: models, principles, and emergent behaviors Mathematical modeling and a hybridized bacterial foraging optimization algorithm for the flexible job-shop scheduling problem with sequencing flexibility A novel bacterial foraging optimization algorithm for feature selection Cooperative bacterial foraging optimization method for multi-objective multi-echelon supply chain optimization problem A novel competitive particle swarm optimization algorithm based on Levy flight Cuckoo search via Lévy flight applied to optimal water supply system design A new technique for multilevel color image thresholding based on modified fuzzy entropy and Lévy flight firefly algorithm Fuzzy sets as a basis for a theory of possibility Fuzzy Sets On possibilistic mean value and variance of fuzzy numbers Possibilistic mean-variance models and efficient frontiers for portfolio selection problem fast, accurate algorithm for numerical simulation of Lévy stable stochastic processes Improved particle swarm optimizers with application on constrained portfolio selection Structure-redesign-based bacterial foraging optimization for portfolio selection Fuzzy portfolio optimization under downside risk measures. Fuzzy Sets Syst Combining decision analysis and portfolio management to improve project selection in the exploration and production firm