Next Article in Journal
Performance Optimization of a Thermoelectric Device by Using a Shear Thinning Nanofluid and Rotating Cylinder in a Cavity with Ventilation Ports
Next Article in Special Issue
Evolutionary Exploration of Mechanical Assemblies in VR
Previous Article in Journal
A Dimension Group-Based Comprehensive Elite Learning Swarm Optimizer for Large-Scale Optimization
Previous Article in Special Issue
A Memetic Algorithm with a Novel Repair Heuristic for the Multiple-Choice Multidimensional Knapsack Problem
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Genetic Mean Reversion Strategy for Online Portfolio Selection with Transaction Costs

1
School of Software, Kwangwoon University, 20 Kwangwoon-ro, Nowon-gu, Seoul 01897, Korea
2
Department of Computer Engineering, Gachon University, 1342 Seongnamdaero, Sujeong-gu, Seongnam-si 13120, Korea
*
Author to whom correspondence should be addressed.
Mathematics 2022, 10(7), 1073; https://doi.org/10.3390/math10071073
Submission received: 13 February 2022 / Revised: 15 March 2022 / Accepted: 24 March 2022 / Published: 26 March 2022
(This article belongs to the Special Issue Swarm and Evolutionary Computation—Bridging Theory and Practice)

Abstract

:
Online portfolio selection (OLPS) is a procedure for allocating portfolio assets using only past information to maximize an expected return. There have been successful mean reversion strategies that have achieved large excess returns on the traditional OLPS benchmark datasets. We propose a genetic mean reversion strategy that evolves a population of portfolio vectors using a hybrid genetic algorithm. Each vector represents the proportion of the portfolio assets, and our strategy chooses the best vector in terms of the expected returns on every trading day. To test our strategy, we used the price information of the S&P 500 constituents from 2000 to 2017 and compared various strategies for online portfolio selection. Our hybrid genetic framework successfully evolved the portfolio vectors; therefore, our strategy outperformed the other strategies when explicit or implicit transaction costs were incurred.
Keywords:
68W50; 91G80

1. Introduction

In equity markets, mean reversion assumes that stocks that recently produced higher-than-average returns will tend to generate lower-than-average returns, and vice versa. The overreaction hypothesis states that the mean reversion occurs when stock prices overreact to information [1]. In recent decades, there have been controversial findings on the existence of the mean reversion. Fama and French [2] found the evidence of negative autocorrelations in stock returns, Balvers et al. [3] provided the empirical support for the mean reversion across national stock markets, and Gropp [4] showed that it is possible to earn excess returns by exploiting the mean reversion property. However, Kim et al. [5] reported that evidence of mean reversion in U.S. stock returns was weak, and Booth et al. [6] suggested that mean reversion assumption is not needed because the small-firm effect alone can explain the anomaly.
In contrast to mean reversion, the momentum effect documented in Jegadeesh and Titman [7] states that stocks that have performed well in the past tend to generate better returns at 3 to 12-month horizons than stocks that have performed poorly in the past. Jegadeesh and Titman [8] demonstrated the existence of the momentum effect on the U.S. stock markets from 1965 to 1998, and Fama and French [9] found strong momentum returns in international stock markets. The momentum effect is attributable to investors’ delayed overreactions [8] or underreactions to new information [10].
Online portfolio selection (OLPS) is a procedure of selling stocks with low expected returns and purchasing stocks with high expected returns. OLPS aims to maximize cumulative return by periodically adjusting the weights of stocks in an portfolio using the historical prices of the stocks. There are two representative types of OLPS strategies. The follow-the-leader methods [11,12,13] pursue the best strategy so far, whereas the follow-the-loser methods [14,15,16,17] exploit the mean reversion property. Refer to [18] for a comprehensive survey of he OLPS.
There are three types of mean reversion strategy that outperform other OLPS strategies on traditional benchmark datasets: a passive aggressive mean reversion (PAMR) strategy [15], an online moving average reversion (OLMAR) strategy [16], and a transaction cost optimization (TCO) strategy [17]. The PAMR uses the daily prices of a stock to determine if the stock is mean-revertible, whereas OLMAR utilizes the moving average of daily prices. The TCO can use either the daily prices or the moving average of daily prices to exploit the mean reversion property.
Investors pay transaction costs when they trade securities. Explicit transaction costs include taxes and commissions, and implicit transaction costs include price-impact costs and bid–ask spreads. Based on institutional trading data, Keim and Madhavan [19] found that explicit and implicit transaction costs were at least 0.13% and 0.11%, respectively. They also reported that the total transaction costs incurred by the transaction initiators were at least 0.26% on the New York Stock Exchange (NYSE) and NYSE American. As transaction costs depend on the trading volume, it is desirable to avoid unnecessary transactions.
The genetic algorithm (GA) is a metaheuristic inspired by biological evolution. To simulate natural selection, the GA evolves a population of candidate solutions through selection, crossover, mutation, and replacement operations. The behavior of GA is determined by the exploration and exploitation relationship [20]. Here, exploration is the process of visiting entirely new regions of a search space, and exploitation is the process of visiting the neighborhood of previously visited regions [21]. The GA has many successful real-world applications, including bioinformatics [22,23], operational research [24,25], medical image processing [26,27], and financial engineering [28,29,30].
The GA has been used extensively to solve the Markowitz mean-variance portfolio optimization problem [31], which maximizes expected return while minimizing risk. For example, Chang et al. [32] used GA to find the cardinality constrained efficient frontier, Skolpadungket et al. [33] compared various multi-objective GAs for solving portfolio optimization with multiple constraints, Chen et al. [34] proposed a non-dominated sorting and local search based multi-objective evolutionary framework to solve cardinality constrained portfolio optimization, and Kalayci et al. [35] used a hybrid metaheuristic that embeds GAs to find the cardinality-constrained efficient frontier.
A GA hybridized with a local search heuristic is called a hybrid GA (HGA). Using an HGA, we propose a mean reversion strategy for an OLPS. The HGA uses historical price information to evolve a population of portfolio vectors representing proportions of portfolio assets, and our strategy selects the most prominent mean-revertible vector on every trading day. We tested our strategy using 10 datasets from S&P 500, and compared the results with those obtained using state-of-the-art mean reversion strategies from other researches [15,16,17]. We believe that this is the first application of GA to OLPS.
The rest of this paper is organized as follows: In Section 2, we present some preliminaries on OLPS. In Section 3, we provide the details of the genetic mean reversion strategy. In Section 4, we present the experimental setup and results. Finally, in Section 5, we draw some concluding remarks and discuss future research directions.

2. Preliminaries

Let m be the number of securities in a portfolio, and n be the number of total trading days. On the t th day, the closing prices of the securities are represented by p t = ( p t ( 1 ) , p t ( 2 ) , . . . , p t ( m ) ) R + m , where p t ( i ) is the closing price of the i th security. The daily returns of the securities are represented by a price relative vector, x t = ( x t ( 1 ) , x t ( 2 ) , . . . , x t ( m ) ) R + m , where x t ( i ) = p t ( i ) / p t 1 ( i ) . Before the start of the t th trading day, we decide a portfolio vector, b t = ( b t ( 1 ) , b t ( 2 ) , . . . , b t ( m ) ) R + m , where b t ( i ) denotes the weight of the i th security and i = 1 m b t ( i ) = 1 . After the t th trading day, the daily return is calculated as b t · x t , and the cumulative return for the n trading days is calculated as t = 1 n b t · x t .
The objective of OLPS is to maximize the cumulative return for investors. We assume that all securities can be divided into fractional shares that can be traded at their closing prices on every trading day. These notation and assumptions are common in OLPS studies [11,13,15,16,17,36].
A buy-and-hold strategy ( BAH b ) is a passive strategy in which an investor buys stocks according to the portfolio vector b on the first day and holds them for the entire period. The uniform BAH is denoted by BAH U , where U = ( 1 / m , . . . , 1 / m ) . A constant rebalanced portfolio ( CRP b ) is a strategy that reallocates the wealth of the investor according to the portfolio vector b on every trading day. In hindsight, the best portfolio vector b * for CRP can be determined as follows:
b * = arg max b R + m t = 1 n b · x t subject to b 1 = 1 .
Universal portfolios (UPs) [11] asymptotically achieve the performance of b * by dividing its initial wealth among all possible CRPs. Good approximation algorithms can efficiently implement a UP [37,38]. In this study, BAH U and a UP were used as benchmark measures of performance.
Passive aggressive mean reversion (PAMR) [15] exploits the single-period mean reversion because it generates the next portfolio vector using x t , the daily returns of stocks in the portfolio. The PAMR utilizes the passive aggressive online learning algorithm [39] to generate the next portfolio vector that is mean-revertible and close to the current portfolio vector; that is,
b t + 1 = arg min b R + m 1 2 b b t 2 subject to b · x t ϵ b 1 = 1 .
To benefit from the single-period reversion ( b · x t ϵ ), this strategy seeks a portfolio vector whose latest return is confined to ϵ . We set ϵ to 0.5 as in Li et al. [15].
Another state-of-the-art mean reversion strategy is online moving average reversion (OLMAR) [16], which is a multi-period mean reversion strategy. Unlike PAMR, the OLMAR uses a simple moving average (SMA) to generate the next portfolio vector. The SMA is the arithmetic average of the closing prices. Here, SMA t ( w ) R + m denotes the SMA on the t th day; that is,
SMA t ( w ) = 1 w i = t w + 1 t p i ,
where w Z + is the window length. The OLMAR produces the next portfolio vector that is mean-revertible and close to the current portfolio vector; that is,
b t + 1 = arg min b R + m 1 2 b b t 2 subject to b · x ˜ t + 1 ϵ and b 1 = 1 ,
where ϵ R + is the reversion threshold, and x ˜ t + 1 R + m is the predicted relative price; that is,
x ˜ t + 1 ( w ) = SMA t ( w ) p t ,
where ⊘ represents the Hadamard (element-wise) division. As in Li et al. [16], we set ϵ to 10 and w to 5.
The other state-of-the-art mean reversion strategy is the transaction cost optimization (TCO) [17], which aims to perform well even in the presence of non-zero transaction costs. The TCO does not allow trivial trades to reduce transaction costs. Let b t ^ R + m be the closing price adjusted portfolio vector on the the t th day, and b ˜ t + 1 2 R m be the proportions to be reallocated after the t th day. The TCO then uses the predicted relative price to calculate b ˜ t + 1 2 ; that is,
b ˜ t + 1 2 = η x ˜ t + 1 b t ^ · x ˜ t + 1 1 m 1 · x ˜ t + 1 b t ^ · x ˜ t + 1 ,
where b ^ t = ( b t x t ) / ( b t · x t ) , ⊙ denotes the Hadamard (element-wise) product, and η R + is a smoothing parameter. The positive elements of b ˜ t + 1 2 have above-average expected returns, and thus their weights will be increased on the ( t + 1 ) th day day, and vice versa; that is,
b t + 1 ( i ) = b ^ t ( i ) + I b ˜ t + 1 2 ( i ) 0 I b ˜ t + 1 2 ( i ) < 0 · max b ˜ t + 1 2 ( i ) λ , 0 ,
for all 1 i m , where λ R + is a trade-off parameter. Only changes larger than λ are used to determine the next portfolio vector. We set η to 10 and λ to 10 × η × γ , where γ is the transaction cost rate. (Li et al. [17] stated that they set λ to 10 × γ . However, their implementation set λ to 10 × η × γ , which produces better results than 10 × γ and coincides with the results of their study.) As the elements of b t + 1 may not summed to 1, b t + 1 needs to be normalized; that is,
b t + 1 = arg min b R + m b b t + 1 2 subject to b 1 = 1 .
The TCO calculates the predictive relative prices using either the single-period or the multi-period mean reversion property. The TCO-1 uses the daily returns, whereas TCO-2 utilizes the moving average of closing prices; that is,
x ˜ t + 1 = 1 x t in TCO - 1 SMA t ( 5 ) x t in TCO - 2 .

3. Methods

We used a steady-state hybrid genetic algorithm (HGA), whose pseudocode is given in Algorithm 1. Each individual is represented by a real-valued chromosome, which is a portfolio vector b R + m . The chromosome is a point in the m-dimensional simplex Δ m , specifying the proportions of a portfolio with m assets. We set the population size to 100 and generated the initial population by sampling 100 chromosomes uniformly from Δ m . The population of candidate portfolio vectors evolved through a hybrid genetic framework.
Algorithm 1 The outline of our HGA.
 1:
Create an initial population P
 2:
for t 2 to n do                                                                                                        ▷n is the last trading day
 3:
    FitnessUpdate(P, x t 1 , x t )
 4:
     ( parent 1 , parent 2 ) ( Select ( P , x t ) , Select ( P , x t ))
 5:
     ( offspring 1 , offspring 2 ) Crossover ( parent 1 , parent 2 )
 6:
    Mutation( offspring 1 , offspring 2 )
 7:
     offspring LocalSearch( offspring 1 , offspring 2 , x t )
 8:
    Replace(P, offspring )

3.1. Fitness Update

Financial returns are assumed to be log-normal [40], and the objective of the portfolio optimization is often set to maximize the expected log return [18,41]. Therefore, we used the expected relative log return as the fitness of a chromosome. The benchmark of the relative log return is a uniform portfolio vector u = ( 1 / m , . . . , 1 / m ) , which has the average return of all assets in the portfolio.
The uniform portfolio vector u also provides a baseline indicating whether each chromosome is mean-revertible on the t th day. Let c Δ m be a chromosome and x t 1 be the relative price vector on the ( t 1 ) th day. If the return of c is less than that of u , i.e., c · x t 1 < u · x t 1 , c is mean-revertible on the t th day because its recent performance is below the benchmark; otherwise, it is trend following on the t th day.
To effectively exploit the mean reversion property, we maintain two versions of fitness for a chromosome: the mean-revertible fitness and trend-following fitness. Each fitness is the expected relative log return parameterized by the mean and standard deviation, which are initialized to 0. The mean-revertible fitness is used to select a promising individual for a crossover, and the trend-following fitness is used to find an undesirable individual that needs to be replaced.
When x t is revealed, log c · x t u · x t incrementally updates the parameters of the fitness, mean-revertible chromosomes update their own mean-revertible fitness, and trend-following chromosomes update their own trend-following fitness. The pseudocode of the fitness-updating procedure is given in Algorithm 2. Here, μ m ( c ) and σ m ( c ) are the mean and standard deviation of the mean-revertible chromosome c , and μ n ( c ) and σ n ( c ) are those of the trend-following chromosome c .
Algorithm 2 FitnessUpdate ( P , x t 1 , x t ) .
 1:
for each c P do
 2:
    rtn  log c · x t u · x t                                                                                                   ▷ relative log return
 3:
    if  c · x t 1 < u · x t 1 then                                                    ▷ for mean-revertible chromosomes
 4:
        Update μ m ( c ) , σ m ( c ) incrementally using rtn
 5:
    else                                                                                           ▷ for trend-following chromosomes
 6:
        Update μ n ( c ) , σ n ( c ) incrementally using rtn

3.2. Selection

For the genetic algorithm, the selection is the source of exploitation [42], which is the ability of the algorithm to move toward the direction of desired improvement [43]. After each t th trading day, we select two prominent mean-revertible chromosomes as parents for later breeding. Only chromosomes that produced below-average returns on the tth day were considered. The fitness of the chromosome is its expected relative log return when it is mean-revertible. To obtain the mean-revertible fitness of a chromosome c , we sample a relative log return from N ( μ m ( c ) , σ m 2 ( c ) ) , using the Box-Muller transform [44]. The pseudocode of the selection function is given in Algorithm 3.
Algorithm 3 Select ( P , x t ).
 1:
b e s t                                                                                                  ▷ b e s t stores the best fitness
 2:
for each c P do
 3:
    if  c · x t < u · x t then                                                                  ▷ test whether c is mean-revertible
 4:
        Sample r t n N ( μ m ( c ) , σ m 2 ( c ) )
 5:
        if  r t n > b e s t  then
 6:
            ( b e s t , b ) ( r t n , c )                                                               ▷ b stores the fittest chromosome
 7:
if b e s t = then
 8:
    Randomly sample b P                                                      ▷ all chromosomes are trend following
 9:
return b

3.3. Crossover and Mutation

A crossover combines two parents to create new offspring. We used a uniform crossover in which each gene was inherited from either parent with equal probability. Figure 1 shows an example of a uniform crossover, which results in two offspring. The crossover is exploitative because it recombines the material of promising parents; however, it is also explorative because it generates new offspring [42].
After a crossover, each offspring undergoes a mutation. The mutation rate was set to μ , and the mutated gene was multiplied by ( 1 + β ) or ( 1 β ) . The multiplicand was randomly selected with the same probability. We set μ to 0.05 and β to 0.5. A mutation can also be seen as both explorative and exploitative because it introduces new offspring in an unbiased manner while conserving most of the original chromosome [42].

3.4. Local Search Heuristic

The GA can explore a wide range of search spaces using explorative operators when the hyperparameters are appropriately set. However, it is weak in fine-tuning capability near the local or global optima, which can be alleviated by HGA [45]. Thus, we incorporated a local search heuristic into the GA to improve the fine-tuning capability.
We first generated two additional chromosomes by taking the inverse of each gene in the two offspring. We then manipulated each gene of the two offspring and the two new chromosomes. On the t th day, each i th gene in the four chromosomes is multiplied by ( 1 + β ) if the return of the i th stock is below average; otherwise, it is multiplied by ( 1 β ) . We set β to 0.5.
This heuristic makes the chromosomes perform worse on the t th day, which strengthens the mean reversion property on the next day. Each chromosome c is normalized such that it belongs to the simplex—that is, c = c / c 1 —and the best mean-revertible chromosome is chosen for replacement. The pseudocode of the local search heuristic is given in Algorithm 4.
Algorithm 4 LocalSearch ( offspring 1 , offspring 2 , x t ).
 1:
a v g i = 1 m x t ( i ) / m                                                                             ▷ a v g stores the average return
 2:
for i 1 to m do
 3:
     c h r o m o s o m e 1 ( i ) o f f s p r i n g 1 ( i ) 1                                                  ▷ c ( i ) denotes the i th gene
 4:
     c h r o m o s o m e 2 ( i ) o f f s p r i n g 2 ( i ) 1
 5:
C { offspring 1 , offspring 2 , chromosome 1 , chromosome 2 }
 6:
for i 1 to m do
 7:
    if  x t ( i ) < a v g  then
 8:
        for each  c C  do
 9:
            c ( i ) c ( i ) * ( 1 + β )
 10:
    else
 11:
        for each  c C  do
 12:
            c ( i ) c ( i ) * ( 1 β )
 13:
for each c C do
 14:
     c = c / c 1                                                                                                                       ▷ normalization
 15:
b a r g m i n c C c · x t                                                     ▷ select the best mean-revertible chromosome
 16:
return b

3.5. Replacement

The mean reversion property expects the current best strategy to fail. Therefore, we replace the best trend-following chromosome with the best mean-revertible chromosome. On the t th day, we choose an individual only from the chromosomes that produce above-average returns. The fitness of a chromosome is its expected relative log return when it is trend following. To obtain the trend-following fitness of a chromosome c , we sample a relative log return from N ( μ n ( c ) , σ n 2 ( c ) ) . The pseudocode of the replacement procedure is given in Algorithm 5.
Algorithm 5 Replace ( P , offspring ).
 1:
b e s t                                                                                                               ▷ b e s t stores the best fitness
 2:
for each c P do
 3:
    if  c · x t u · x t then                                                                   ▷ test whether c is trend following or not
 4:
        Sample r t n N ( μ n ( c ) , σ n 2 ( c ) )
 5:
        if  r t n > b e s t  then
 6:
            ( b e s t , b ) ( r t n , c )                                                   ▷ b stores the best trend-following chromosome
 7:
if b e s t = then
 8:
    Randomly sample b P                                                                  ▷ all chromosomes are mean-revertible
 9:
P ( P { b } ) { offspring }

3.6. Genetic Mean Reversion Strategy

Our strategy starts with a uniform portfolio vector—that is, b 1 = ( 1 / m , . . . , 1 / m ) . After the t th day, a new portfolio vector is generated by combining the previous portfolio vector with the most promising mean-revertible vector in the population P; that is,
b t + 1 = ( 1 α ) b t + α arg min c P c · x t ,
where α is a user-defined parameter that prevents excessive trading. We set α to 0.0005 γ δ , where γ is the transaction cost rate and δ = b t c 1 . As γ δ is proportional to the actual transaction cost of changing the portfolio vector from b t to c , α is set adaptively to reduce the transaction costs. We set α to 1 when there is no transaction cost.
Our hybrid genetic framework maintains profitable individuals with the mean reversion property and tries to achieve higher returns than the benchmarks by selecting the most mean-revertible portfolio vector according to the market conditions. The results of our strategy are compared with those of previous state-of-the-art mean reversion strategies [15,16,17].

4. Results

4.1. Data

We used the historical daily prices of the companies in the S&P 500 from 2000 to 2017. This dataset contains 389 stocks with price information for the entire period. The dataset was used in our preliminary study [46], and generated in the following way: the stocks were sorted in alphabetical order based on their ticker symbols, and 10 portfolios were generated sequentially in that order. To the best of our knowledge, this is the largest dataset used in an OLPS study. Our dataset is summarized in Table 1. (The dataset in .mat and .csv formats is available at the following address: https://github.com/uramoon/mr_dataset (Accessed on: 13 February 2022). A detailed description of the dataset is provided in the README file.) Appendix A presents the experimental results on the single portfolio of all 389 stocks.
We also tested our strategy using traditional datasets, which have been widely used by many researchers [12,14,15,36,47]. However, some of these datasets do not provide the criteria for stock selection [15] and have abnormal patterns that can be easily exploited using mean reversion strategies. Therefore, although we mainly used our own datasets, we also provide the details of traditional datasets and the experimental results using them in Appendix B.

4.2. Experimental Setup

The genetic mean reversion (GMR) strategy was written in C#, and the results of the GMR were averaged over 100 independent runs for all experiments. The averaged results can be implemented in the real market by splitting the initial wealth evenly among the 100 runs and prohibiting the transfer of money between runs [38]. When there are transaction costs, the average performance can be improved by offsetting trades among the runs [37].
For the other strategies, we used the implementations of Li et al. [16,17,48]. Here, BAH U and UP were used as benchmark measures of performance. We also compared our strategy with the state-of-the-art mean reversion strategies: PAMR, OLMAR, TCO-1, and TCO-2 [15,16,17].
Even if there is no commission, traders incur an implicit cost in the difference between the actual transaction price and the benchmark price [49]. To incorporate all expenses that can be incurred in actual trading, we used the proportional commission model [36] in which an investor pays at a rate of γ [ 0 , 1 ] for each buy and each sell such that the daily return on the t th day is ( b t · x t ) × ( 1 γ · b t b ^ t 1 1 ). Here, b ^ t 1 is the closing price adjusted portfolio vector (i.e., b ^ t 1 = ( b t 1 x t 1 ) / ( b t 1 · x t 1 ) ), and γ is set to 0%, 0.25%, and 0.5%, which are reasonable transaction cost rates for OLPS [17,50]. The transaction on the tth day is profitable only when the excess profit from the transaction ( b t · x t b ^ t 1 · x t ) outweighs the transaction costs ( γ · b t b ^ t 1 1 ).
Cumulative wealth at the end of the trading period is our main performance criterion. The cumulative wealth measures the wealth of a trading strategy with an initial wealth of 1. We also calculated the average daily turnover ratio ( 0.5 · b t b ^ t 1 1 ) for each strategy, which denotes the mean ratio of assets that have been replaced on every trading day. As the transaction costs depend on the turnover ratio, it is desirable to avoid unnecessary transactions.
We also compare the results of GMR with those of BAH U in terms of annualized percentage yield (APY), annualized standard deviation (ASD), Sharpe ratio (SR), the maximum drawdown (MDD), alpha ( α ), t-statistics, and p-value. The APY is annual compound return, and the ASD is the standard deviation of daily returns multiplied by the squared root of the number of annual trading days. The SR measures the risk-adjusted performance of a trading strategy compared to a risk-free asset, i.e., SR = ( APY R f ) / ASD , where R f is the risk-free return (U.S. Treasury bill rate). The MDD is the maximum observed loss from a peak to a valley, which measures the downside risk over a certain period. α is the intercept from the market model regression [51] that measures the excess daily return of GMR against BAH U . The t-statistic is the test statistic for the null hypothesis that the α is zero [52], and the p-value is computed from the t-statistic. A low p-value indicates that we can reject the null hypothesis.

4.3. Cumulative Wealth without Transaction Costs

We first conducted experiments to test the GMR strategy in the absence of the transaction costs. As transaction costs were not considered, it would be extremely difficult to achieve a similar performance in the real market. Table 2 lists the cumulative wealth achieved using various strategies. The results of BAH U show that there is a strong upward trend in all datasets; the simple BAH U increased its wealth by over 6-fold on every dataset. The other benchmark UP improved the performance of BAH U overall with a small turnover ratio, but achieved less than half the wealth of BAH U on the SP500(6).
Although previous mean reversion strategies largely outperformed the benchmarks on many datasets, they showed a poor performance on the SP500(0), SP500(1), and SP500(6), all of which failed to beat BAH U on these three datasets, except for TCO-1, which performed better than BAH U on SP500(1). Although the OLMAR produced the best average performance by achieving tremendous wealth on SP500(3), it lost 82% of its wealth on SP500(0). In general, the multi-period mean reversion strategies (OLMAR and TCO-2) worked better than their single-period counterparts (PAMR and TCO-1) in terms of the average wealth and turnover ratio.
We also tested whether the results from GMR are significantly better than those from BAH U . Table 3 presents further details on the performance of both strategies. Although the GMR had higher risks (ASDs and MDDs) than BAH U , it exhibited higher returns (APYs) and risk-adjusted returns (SRs) on all datasets. The p-values indicate that the excess returns ( α ) of GMR against BAH U are statistically significant on the eight datasets.
Our method produced the best results on the four datasets SP500(0), SP500(1), SP500(6), and SP500(8), and outperformed the benchmarks on all datasets. To work well on unseen datasets, it is desirable to produce stable results on many different datasets. It is also worth noting that it showed the best results on the three datasets where the previous strategies failed to outperform the benchmarks. Although the average performance of GMR was below the previous strategies, its win ratio was the highest among the mean reversion strategies.

4.4. Cumulative Wealth with Transaction Costs

We tested the proposed strategy in the presence of transaction costs. The experimental results with reasonable transaction costs suggest how well each strategy will be applied in the real market. Table 4 shows the cumulative wealth achieved by various strategies when the transaction cost rate is 0.25%. The performance of BAH U barely changed because it pays the transaction costs only on the first day. However, the performance of UP was no better than BAH U on most datasets; the transaction costs of 0.25% outweighed the benefits of the asset reallocation.
Previous mean reversion strategies also did not perform well with transaction costs of 0.25%. The PAMR and OLMAR spent all their money on transaction costs because they did not consider the transaction costs when changing the portfolio vectors. The TCOs reduced their trading volumes by less than half, but failed to outperform the benchmarks on most datasets; TCO-2 performed the best on two datasets, but failed to outperform the benchmarks on the other eight datasets, and TCO-1 performed worse than the benchmarks on all datasets.
Similar to the previous mean reversion strategies, the transaction costs degraded the performance of the GMR. However, it achieved relatively good results by significantly reducing its turnover ratio and showed the best results on seven datasets, achieving the highest average earning and a win ratio of 0.9.
Table 5 compares GMR with BAH U when the transaction cost rate was set to 0.25%. Again, GMR had higher risks than BAH U , but produced better annual returns and risk-adjusted returns on all datasets except SP500(5). On the nine datasets, GMR had positive excess daily returns, but they were statistically significant on three datasets in the presence of transaction costs.
We also tested the performance of each strategy with transaction costs of 0.5%. Table 6 lists the cumulative wealth achieved by the various strategies. The performance of BAH U barely changed. At this transaction cost rate, the UP and the previous mean reversion strategies did not exceed BAH U on all datasets. However, the GMR outperformed the benchmarks on all datasets by maintaining a good population of portfolio vectors and adaptively reducing the turnover ratio. Table 7 shows that the risk-adjusted returns of GMR are overall higher than those of BAH U with transaction costs of 0.5%.

4.5. Comparisons of GA and Random Sampling

We compare a random sampling (RS) with a GA to examine how much the genetic framework contributes to the quality of the solutions. An RS is a population-based heuristic that produces a solution through random sampling. Instead of selecting two promising parents from the population, two individuals were uniformly sampled from the simplex. These individuals are processed through a local search, and the best solution replaces a random individual of the population. The RS results were averaged over 100 independent runs. The RS started with the same initial population as the GMR because it used the same random seed numbers as the GMR. Figure 2 presents the experimental results. The GMR outperformed the RS on every dataset, indicating that the GA successfully evolved the population of portfolio vectors.

4.6. Local Search Heuristic

The GMR embeds a local search heuristic to improve the fine-tuning capability of the GA. To determine the effects of the local search, we tested the performance of GMR when not employing the local search heuristic. We averaged the results of the experiments over 100 independent runs using the same random seed numbers as the original GMR. Figure 3 shows the results of the experiments. The local search heuristic improved the performance of our genetic framework for every dataset.

4.7. Parameter Sensitivity

Strategies that are highly sensitive to their parameters are not likely to perform well on unseen data. Experiments were conducted to determine the effect of the GMR parameters on the experimental results. We varied μ , α , and β , which mutation, portfolio vector calculation, and local search, respectively. For simplicity, we fixed the rate of transaction costs to 0.5% and averaged the results of the experiments over 100 independent runs. Figure 4 shows the experimental results. Overall, the value of each parameter did not significantly affect the experimental results. As OLPS is used for online algorithms, we deliberately did not fine-tune the parameters.

5. Conclusions

In this paper, we proposed a mean reversion strategy that evolves a population of portfolio vectors through the HGA. To exploit the mean reversion property, a local search heuristic was devised and embedded in the GA. The experimental results obtained for the S&P500 datasets revealed that our genetic framework and local search heuristic were able to improve the performance of our strategy.
We also investigated the performance of various mean reversion strategies on the S&P500 datasets. When there were no transaction costs, previous mean reversion strategies performed extremely well. However, they showed poor results with respect to the transaction costs. As our strategy limited the turnover ratio to an appropriate level based on the transaction costs, it outperformed the benchmarks on most of the datasets.
In the future, it would be worthwhile to develop a new strategy that incorporates both trend following and mean reversion disciplines. On the SP500(6) dataset, BAH U outperformed most of the mean reversion strategies; it might therefore, be helpful to adopt a trend following strategy by identifying the market conditions.

Author Contributions

Conceptualization, S.-H.M.; methodology, S.-H.M.; software, S.-H.M.; validation, Y.Y.; formal analysis, Y.Y.; investigation, S.-H.M.; resources, S.-H.M.; data curation, S.-H.M.; writing—original draft preparation, S.-H.M.; writing—review and editing, Y.Y.; visualization, S.-H.M.; supervision, Y.Y.; project administration, Y.Y.; funding acquisition, Y.Y. All authors have read and agreed to the published version of the manuscript.

Funding

Not applicable.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The datasets used in this study are openly available at https://github.com/uramoon/mr_dataset (Accessed on: 13 February 2022).

Acknowledgments

The present research has been conducted by a Research Grant from Kwangwoon University in 2020.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. Scalability of GMR

We conducted experiments to test whether GMR scales well on the number of securities in a portfolio. The GMR was compared to benchmark strategies using a portfolio consisting of 389 securities in the S&P 500 datasets. Figure A1 shows that GMR can handle a large number of securities in the portfolio.
Figure A1. Cumulative wealth on the portfolio of 389 stocks according to the rate of transaction costs.
Figure A1. Cumulative wealth on the portfolio of 389 stocks according to the rate of transaction costs.
Mathematics 10 01073 g0a1

Appendix B. Experimental Results on Traditional Datasets

Appendix B.1. Traditional Datasets

We used traditional datasets that have been widely applied by many researchers [12,14,15,36,47]. Table A1 summarizes these datasets. Some of these datasets strongly favor mean reversion strategies. (The company “kin_ark” in the NYSE datasets has an exceptionally strong mean reversion tendency such that holding that company only when its price had fallen in the previous day increased the initial wealth over two-billionfold in NYSE(O) and nineteen-thousandfold in NYSE(N). However, holding “kin_ark” over the entire period increased the initial wealth 2.05 -fold for NYSE(O) and 4.13 -fold for NYSE(N).) Refer to Li et al. [15] for details of the datasets.
Table A1. Summary of traditional datasets.
Table A1. Summary of traditional datasets.
NamePeriodDaysStocks aMax ( x t ( j ) ) bMin ( x t ( j ) ) c
NYSE(O)1962–19845651361.35290.7500
NYSE(N)1985–20106431231.81460.4545
TSE1994–19981259881.93920.3685
MSCI2006–20101043241.16630.8274
DJIA2001–2003507301.20120.4027
SP5001998–20031276251.24390.6976
a The number of stocks in the portfolio. b The highest daily return on a stock in the portfolio. c The lowest daily return on a stock in the portfolio.

Appendix B.2. Experimental Results

Experiments were conducted to test the GMR using traditional datasets. We intentionally did not change the parameter values used in the main text to avoid an overfitting. Table A2 shows the performance of the GMR with transaction costs of 0%, 0.25%, and 0.5%. When there were no transaction costs, the GMR outperformed the benchmarks on all datasets. At transaction costs of 0.25%, GMR outperformed BAH U , whereas UP performed the best on many datasets. At transaction costs of 0.5%, however, the GMR outperformed both benchmarks overall.
Table A2. Cumulative wealth on traditional datasets. The best values are shown in bold.
Table A2. Cumulative wealth on traditional datasets. The best values are shown in bold.
Data γ = 0 % γ = 0.25 % γ = 0.5 %
BAH U UPGMR BAH U UPGMR BAH U UPGMR
NYSE(O)14.5026.681.30 × 101214.4617.5916.7414.4211.3615.61
NYSE(N)18.0631.493.06 × 10518.0120.5619.4617.9713.3118.69
TSE1.611.603.641.611.411.141.601.241.31
MSCI0.910.9217.990.900.870.940.890.810.92
DJIA0.760.810.830.760.780.750.760.750.75
SP5001.341.652.371.341.501.411.331.371.38

References

  1. De Bondt, W.F.M.; Thaler, R. Does the stock market overreact? J. Financ. 1985, 40, 793–805. [Google Scholar] [CrossRef]
  2. Fama, E.F.; French, K.R. Permanent and temporary components of stock prices. J. Polit. Econ. 1988, 96, 246–273. [Google Scholar] [CrossRef]
  3. Balvers, R.; Wu, Y.; Gilliland, E. Mean reversion across national stock markets and parametric contrarian investment strategies. J. Financ. 2000, 55, 745–772. [Google Scholar] [CrossRef]
  4. Gropp, J. Mean reversion of industry stock returns in the U.S., 1926–1998. J. Empir. Financ. 2004, 11, 537–551. [Google Scholar] [CrossRef]
  5. Kim, M.J.; Nelson, C.R.; Startz, R. Mean reversion in stock prices? A reappraisal of the empirical evidence. Rev. Econ. Stud. 1991, 58, 515–528. [Google Scholar] [CrossRef] [Green Version]
  6. Booth, G.G.; Fung, H.G.; Leung, W.K. A risk-return explanation of the momentum-reversal “anomaly”. J. Empir. Financ. 2016, 35, 68–77. [Google Scholar] [CrossRef]
  7. Jegadeesh, N.; Titman, S. Returns to buying winners and selling losers: Implications for stock market efficiency. J. Financ. 1993, 48, 65–91. [Google Scholar] [CrossRef]
  8. Jegadeesh, N.; Titman, S. Profitability of momentum strategies: An evaluation of alternative explanations. J. Financ. 2001, 56, 699–720. [Google Scholar] [CrossRef] [Green Version]
  9. Fama, E.F.; French, K.R. Size, value, and momentum in international stock returns. J. Financ. Econ. 2012, 105, 457–472. [Google Scholar] [CrossRef]
  10. Zhang, X.F. Information uncertainty and stock returns. J. Financ. 2006, 61, 105–137. [Google Scholar] [CrossRef]
  11. Cover, T.M. Universal portfolios. Math. Financ. 1991, 1, 1–29. [Google Scholar] [CrossRef]
  12. Helmbold, D.P.; Schapire, R.E.; Singer, Y.; Warmuth, M.K. On-line portfolio selection using multiplicative updates. Math. Financ. 1998, 8, 325–347. [Google Scholar] [CrossRef]
  13. Agarwal, A.; Hazan, E.; Kale, S.; Schapire, R.E. Algorithms for portfolio management based on the Newton method. In Proceedings of the 23rd International Conference on Machine Learning (ICML), Pittsburgh, PA, USA, 25–29 June 2006; ACM: New York, NY, USA, 2006; pp. 9–16. [Google Scholar]
  14. Li, B.; Hoi, S.C.H.; Zhao, P.; Gopalkrishnan, V. Confidence weighted mean reversion strategy for online portfolio selection. ACM Trans. Knowl. Discov. Data 2013, 7, 4:1–4:38. [Google Scholar] [CrossRef]
  15. Li, B.; Zhao, P.; Hoi, S.; Gopalkrishnan, V. PAMR: Passive aggressive mean reversion strategy for portfolio selection. Mach. Learn. 2012, 87, 221–258. [Google Scholar] [CrossRef]
  16. Li, B.; Hoi, S.C.; Sahoo, D.; Liu, Z.Y. Moving average reversion strategy for on-line portfolio selection. Artif. Intell. 2015, 222, 104–123. [Google Scholar] [CrossRef]
  17. Li, B.; Wang, J.; Huang, D.; Hoi, S.C.H. Transaction cost optimization for online portfolio selection. Quant. Financ. 2018, 18, 1411–1424. [Google Scholar] [CrossRef]
  18. Li, B.; Hoi, S.C.H. Online portfolio selection: A survey. ACM Comput. Surv. 2014, 46, 35:1–35:36. [Google Scholar] [CrossRef]
  19. Keim, D.B.; Madhavan, A. The cost of institutional equity trades. Financ. Anal. J. 1998, 54, 50–69. [Google Scholar] [CrossRef]
  20. Herrera, F.; Lozano, M. Adaptation of genetic algorithm parameters based on fuzzy logic controllers. Genet. Algorithms Soft Comput. 1996, 8, 95–125. [Google Scholar]
  21. Črepinšek, M.; Liu, S.H.; Mernik, M. Exploration and exploitation in evolutionary algorithms: A survey. ACM Comput. Surv. 2013, 45, 1–33. [Google Scholar] [CrossRef]
  22. Notredame, C.; Higgins, D.G. SAGA: Sequence alignment by genetic algorithm. Nucleic Acids Res. 1996, 24, 1515–1524. [Google Scholar] [CrossRef] [PubMed]
  23. Yoon, Y.; Kim, Y.H. Optimizing taxon addition order and branch lengths in the construction of phylogenetic trees using maximum likelihood. J. Bioinf. Comput. Biol. 2020, 18, 2050003. [Google Scholar] [CrossRef] [PubMed]
  24. Goncalves, J.F.; de Magalhaes Mendes, J.J.; Resende, M.G. A hybrid genetic algorithm for the job shop scheduling problem. Eur. J. Oper. Res. 2005, 167, 77–95. [Google Scholar] [CrossRef] [Green Version]
  25. Yoon, Y.; Kim, Y.H.; Moon, B. A theoretical and empirical investigation on the Lagrangian capacities of the 0–1 multidimensional knapsack problem. Eur. J. Oper. Res. 2012, 218, 366–376. [Google Scholar] [CrossRef]
  26. Nagarajan, G.; Minu, R.; Muthukumar, B.; Vedanarayanan, V.; Sundarsingh, S. Hybrid genetic algorithm for medical image feature extraction and selection. Procedia Comput. Sci. 2016, 85, 455–462. [Google Scholar] [CrossRef] [Green Version]
  27. Pareek, N.K.; Patidar, V. Medical image protection using genetic algorithm operations. Soft Comput. 2016, 20, 763–772. [Google Scholar] [CrossRef]
  28. Kwon, Y.K.; Moon, B.R. A hybrid neurogenetic approach for stock forecasting. IEEE Trans. Neural Netw. 2007, 18, 851–864. [Google Scholar] [CrossRef] [Green Version]
  29. Wu, C.H.; Tzeng, G.H.; Goo, Y.J.; Fang, W.C. A real-valued genetic algorithm to optimize the parameters of support vector machine for predicting bankruptcy. Expert Syst. Appl. 2007, 32, 397–408. [Google Scholar] [CrossRef]
  30. Cho, D.H.; Moon, S.H.; Kim, Y.H. Genetic feature selection applied to KOSPI and cryptocurrency price prediction. Mathematics 2021, 9, 2574. [Google Scholar] [CrossRef]
  31. Markowitz, H. Portfolio selection. J. Financ. 1952, 7, 77–91. [Google Scholar]
  32. Chang, T.J.; Meade, N.; Beasley, J.; Sharaiha, Y. Heuristics for cardinality constrained portfolio optimisation. Comput. Oper. Res. 2000, 27, 1271–1302. [Google Scholar] [CrossRef]
  33. Skolpadungket, P.; Dahal, K.; Harnpornchai, N. Portfolio optimization using multi-objective genetic algorithms. In Proceedings of the IEEE Congress on Evolutionary Computation (CEC), Singapore, 25–28 September 2007; pp. 516–523. [Google Scholar]
  34. Chen, B.; Lin, Y.; Zeng, W.; Xu, H.; Zhang, D. The mean-variance cardinality constrained portfolio optimization problem using a local search-based multi-objective evolutionary algorithm. Appl. Intell. 2017, 47, 505–525. [Google Scholar] [CrossRef]
  35. Kalayci, C.B.; Polat, O.; Akbay, M.A. An efficient hybrid metaheuristic algorithm for cardinality constrained portfolio optimization. Swarm Evol. Comput. 2020, 54, 100662. [Google Scholar] [CrossRef]
  36. Borodin, A.; El-Yaniv, R.; Gogan, V. Can we learn to beat the best stock. J. Artif. Intell. Res. 2004, 21, 579–594. [Google Scholar] [CrossRef]
  37. Blum, A.; Kalai, A. Universal portfolios with and without transaction costs. Mach. Learn. 1999, 35, 193–205. [Google Scholar] [CrossRef] [Green Version]
  38. Kalai, A.; Vempala, S. Efficient algorithms for universal portfolios. In Proceedings of the 41st Annual Symposium on Foundations of Computer Science (FOCS), Washington, DC, USA, 12–14 November 2000; pp. 486–491. [Google Scholar]
  39. Crammer, K.; Dekel, O.; Keshet, J.; Shalev-Shwartz, S.; Singer, Y. Online passive-aggressive algorithms. J. Mach. Learn. Res. 2006, 7, 551–585. [Google Scholar]
  40. Black, F.; Scholes, M. The pricing of options and corporate liabilities. J. Polit. Econ. 1973, 81, 637–654. [Google Scholar] [CrossRef] [Green Version]
  41. Kelly, J.L. A new interpretation of information rate. Bell Syst. Tech. J. 1956, 35, 917–926. [Google Scholar] [CrossRef]
  42. Eiben, A.; Schippers, C. On evolutionary exploration and exploitation. Fundam. Inform. 1998, 35, 35–50. [Google Scholar] [CrossRef]
  43. Beyer, H.G. On the “Explorative power” of ES/EP-like algorithms. In Evolutionary Programming VII; Porto, V.W., Saravanan, N., Waagen, D., Eiben, A.E., Eds.; Springer: Berlin/Heidelberg, Germany, 1998; pp. 323–334. [Google Scholar]
  44. Box, G.E.P.; Muller, M.E. A note on the generation of random normal deviates. Ann. Math. Stat. 1958, 29, 610–611. [Google Scholar] [CrossRef]
  45. Oh, I.S.; Lee, J.S.; Moon, B.R. Hybrid genetic algorithms for feature selection. IEEE Trans. Pattern Anal. Mach. Intell. 2004, 26, 1424–1437. [Google Scholar] [PubMed] [Green Version]
  46. Moon, S.H.; Kim, Y.H.; Moon, B.R. Empirical investigation of state-of-the-art mean reversion strategies for equity markets. arXiv 2019, arXiv:1909.04327. [Google Scholar]
  47. Györfi, L.; Lugosi, G.; Udina, F. Nonparametric kernel-based sequential investment strategies. Math. Financ. 2006, 16, 337–357. [Google Scholar] [CrossRef]
  48. Li, B.; Sahoo, D.; Hoi, S.C. OLPS: A toolbox for on-line portfolio selection. J. Mach. Learn. Res. 2016, 17, 1–5. [Google Scholar]
  49. Hasbrouck, J. Assessing the quality of a security market: A new approach to transaction-cost measurement. Rev. Financ. Stud. 2015, 6, 191–212. [Google Scholar] [CrossRef]
  50. Das, P.; Johnson, N.; Banerjee, A. Online lazy updates for portfolio selection with transaction costs. In Proceedings of the 27th AAAI Conference on Artificial Intelligence, Bellevue, WA, USA, 14–18 July 2013; pp. 202–208. [Google Scholar]
  51. Jensen, M.C. The performance of mutual funds in the period 1945–1964. J. Financ. 1968, 23, 389–416. [Google Scholar] [CrossRef]
  52. Goodwin, T.H. The information ratio. Financ. Anal. J. 1998, 54, 34–43. [Google Scholar] [CrossRef]
Figure 1. Example of a uniform crossover. Each gene was randomly selected from one of the corresponding genes of the parents. If a random number is less than 0.5, Offspring 1 inherits a gene from Parent 1; otherwise, it inherits a gene from Parent 2. Offspring 2 inherits genes from the opposite parent of Offspring 1.
Figure 1. Example of a uniform crossover. Each gene was randomly selected from one of the corresponding genes of the parents. If a random number is less than 0.5, Offspring 1 inherits a gene from Parent 1; otherwise, it inherits a gene from Parent 2. Offspring 2 inherits genes from the opposite parent of Offspring 1.
Mathematics 10 01073 g001
Figure 2. Comparisons of GA and RS. (a) The rate of transaction costs: 0%; (b) The rate of transaction costs: 0.25%; (c) The rate of transaction costs: 0.5%.
Figure 2. Comparisons of GA and RS. (a) The rate of transaction costs: 0%; (b) The rate of transaction costs: 0.25%; (c) The rate of transaction costs: 0.5%.
Mathematics 10 01073 g002
Figure 3. Cumulative wealth with and without local search heuristic. (a) The rate of transaction costs: 0%; (b) The rate of transaction costs: 0.25%; (c) The rate of transaction costs: 0.5%.
Figure 3. Cumulative wealth with and without local search heuristic. (a) The rate of transaction costs: 0%; (b) The rate of transaction costs: 0.25%; (c) The rate of transaction costs: 0.5%.
Mathematics 10 01073 g003
Figure 4. Cumulative wealth according to the values of the parameters. The values we used for the GMR were centered on all graphs. The transaction cost rate is 0.5%. (a) μ : Probability of a gene mutation; (b) α : Parameter used for portfolio vectors; (c) β : Parameter used in the local search.
Figure 4. Cumulative wealth according to the values of the parameters. The values we used for the GMR were centered on all graphs. The transaction cost rate is 0.5%. (a) μ : Probability of a gene mutation; (b) α : Parameter used for portfolio vectors; (c) β : Parameter used in the local search.
Mathematics 10 01073 g004
Table 1. Summary of the S&P 500 dataset.
Table 1. Summary of the S&P 500 dataset.
NamePeriodDaysStocks aMax ( x t ( j ) ) bMin ( x t ( j ) ) c
SP500(0)2000–20174527391.66000.3921
SP500(1)2000–20174527391.57820.5494
SP500(2)2000–20174527391.62960.5402
SP500(3)2000–20174527391.60370.4133
SP500(4)2000–20174527392.02360.4844
SP500(5)2000–20174527391.54250.3948
SP500(6)2000–20174527391.86980.5873
SP500(7)2000–20174527391.75450.3195
SP500(8)2000–20174527391.56050.4096
SP500(9)2000–20174527382.01010.3811
a The number of stocks in the portfolio. b The highest daily return on a stock in the portfolio. c The lowest daily return on a stock in the portfolio.
Table 2. Cumulative wealth achieved by various strategies on the S&P 500 datasets. The transaction costs were not considered. The best values are shown in bold.
Table 2. Cumulative wealth achieved by various strategies on the S&P 500 datasets. The transaction costs were not considered. The best values are shown in bold.
DataBenchmarksPrevious Mean Reversion StrategiesGMR
BAH U UPPAMROLMARTCO-1TCO-2
SP500(0)9.4413.451.520.182.142.2928.77
SP500(1)8.319.805.453.9611.684.3356.51
SP500(2)6.978.54198.24176.03232.07353.5762.35
SP500(3)6.689.15103.523564.62230.16189.8546.25
SP500(4)7.548.6795.5833.2493.2884.7954.40
SP500(5)6.397.76162.52169.98191.22316.4839.86
SP500(6)24.2911.159.484.4612.809.9355.05
SP500(7)7.9211.9516.2414.6740.6273.3958.35
SP500(8)8.9012.39154.6581.6688.8522.59160.27
SP500(9)6.499.16101.82103.6652.32155.14103.03
Average9.2910.2084.90415.2595.51121.2466.48
Turnover *N/A0.01590.82610.61910.54960.33330.5892
Win ratio **N/AN/A0.70.70.80.71.0
* Average daily turnover ratio. ** The odds of winning against both benchmarks.
Table 3. APY, ASD, SR, MDD, and α , t-statistic, and p-value of GMR on the S&P 500 datasets. The transaction costs were not considered, and the p-value less than 0.05 are denoted with an asterisk.
Table 3. APY, ASD, SR, MDD, and α , t-statistic, and p-value of GMR on the S&P 500 datasets. The transaction costs were not considered, and the p-value less than 0.05 are denoted with an asterisk.
Data BAH U GMR
APYASDSRMDDAPYASDSRMDD α t-Statisticsp-Value
SP500(0)0.13280.20920.55880.55030.20520.31580.59940.69210.00031.40950.0794
SP500(1)0.12490.19790.55060.46950.25120.28750.81860.53130.00042.7085 0.0034 *
SP500(2)0.11390.19400.50500.48500.25810.26010.93130.46060.00053.6514 0.0001 *
SP500(3)0.11130.20020.47660.52110.23740.30300.73100.63080.00052.5172 0.0059 *
SP500(4)0.11880.21230.48470.62770.24860.30130.77230.53510.00052.6804 0.0037 *
SP500(5)0.10850.21430.43210.58380.22720.31690.66680.62030.00042.4057 0.0081 *
SP500(6)0.19390.26430.67350.62260.24940.34600.67490.64550.00041.55660.0598
SP500(7)0.12180.20670.51240.50130.25350.38990.60930.64030.00062.0393 0.0207 *
SP500(8)0.12920.19110.59270.49740.32580.35460.87400.67970.00072.8101 0.0025 *
SP500(9)0.10950.20070.46620.55660.29370.33230.83600.48980.00063.1257 0.0009 *
Table 4. Cumulative wealth achieved by various strategies on the S&P 500 datasets. The transaction cost rate was 0.25%. The best values are shown in bold.
Table 4. Cumulative wealth achieved by various strategies on the S&P 500 datasets. The transaction cost rate was 0.25%. The best values are shown in bold.
DataBenchmarksPrevious Mean Reversion StrategiesGMR
BAH U UPPAMROLMARTCO-1TCO-2
SP500(0)9.419.180.000.000.010.0425.73
SP500(1)8.296.880.000.000.050.2518.82
SP500(2)6.955.920.000.001.075.199.19
SP500(3)6.666.330.000.000.884.9811.41
SP500(4)7.526.040.000.000.431.5513.38
SP500(5)6.375.480.000.000.457.227.06
SP500(6)24.237.690.000.000.070.6224.00
SP500(7)7.908.230.000.000.151.3923.54
SP500(8)8.888.690.000.000.090.1918.96
SP500(9)6.476.440.000.000.1713.1011.07
Average9.277.090.000.000.343.4516.32
Turnover *N/A0.01590.82710.62060.20570.13960.0027
Win ratio **N/AN/A0.00.00.00.20.9
* Average daily turnover ratio. ** The odds of winning against both benchmarks.
Table 5. APY, ASD, SR, MDD, and α , t-statistic, and p-value of GMR on the S&P 500 datasets. The transaction cost rate was 0.25%, and the p-value less than 0.05 are denoted with an asterisk.
Table 5. APY, ASD, SR, MDD, and α , t-statistic, and p-value of GMR on the S&P 500 datasets. The transaction cost rate was 0.25%, and the p-value less than 0.05 are denoted with an asterisk.
Data BAH U GMR
APYASDSRMDDAPYASDSRMDD α t-Statisticsp-Value
SP500(0)0.13260.20920.55800.55030.19770.25560.71130.52530.00022.0164 0.0219 *
SP500(1)0.12470.19790.54980.46950.17710.22610.71290.46740.00022.3986 0.0082 *
SP500(2)0.11370.19410.50410.48500.13120.21170.54440.51480.00010.96360.1677
SP500(3)0.11110.20020.47570.52110.14480.23920.53910.61470.00011.22660.1100
SP500(4)0.11860.21230.48390.62770.15500.26570.52360.63490.00021.15540.1240
SP500(5)0.10840.21430.43140.58380.11470.24600.40160.61550.00000.32400.3730
SP500(6)0.19370.26430.67280.62260.19310.25950.68300.60150.00010.95340.1702
SP500(7)0.12170.20670.51160.50130.19180.28730.61210.50690.00031.6460 0.0499 *
SP500(8)0.12900.19110.59180.49740.17760.26480.61060.54240.00021.15340.1244
SP500(9)0.10930.20080.46540.55660.14290.25720.49370.56570.00010.99770.1592
Table 6. Cumulative wealth achieved by various strategies on the S&P 500 datasets. The transaction cost rate was 0.5%. The best values are shown in bold.
Table 6. Cumulative wealth achieved by various strategies on the S&P 500 datasets. The transaction cost rate was 0.5%. The best values are shown in bold.
DataBenchmarksPrevious Mean Reversion StrategiesGMR
BAH U UPPAMROLMARTCO-1TCO-2
SP500(0)9.396.430.000.000.000.0324.14
SP500(1)8.274.830.000.000.090.4617.91
SP500(2)6.934.190.000.000.864.608.88
SP500(3)6.654.450.000.003.224.1310.29
SP500(4)7.514.240.000.000.362.2912.80
SP500(5)6.363.820.000.000.141.996.84
SP500(6)24.175.300.000.000.201.3524.82
SP500(7)7.885.780.000.000.111.5423.76
SP500(8)8.866.200.000.000.050.1118.59
SP500(9)6.464.500.000.000.124.769.65
Average9.254.970.000.000.512.1315.77
Turnover *N/A0.01590.82810.62210.09200.06090.0014
Win ratio **N/AN/A0.00.00.00.01.0
* Average daily turnover ratio. ** The odds of winning against both benchmarks.
Table 7. APY, ASD, SR, MDD, and α , t-statistic, and p-value of GMR on the S&P 500 datasets. The transaction cost rate was 0.5%, and the p-value less than 0.05 are denoted with an asterisk.
Table 7. APY, ASD, SR, MDD, and α , t-statistic, and p-value of GMR on the S&P 500 datasets. The transaction cost rate was 0.5%, and the p-value less than 0.05 are denoted with an asterisk.
Data BAH U GMR
APYASDSRMDDAPYASDSRMDD α t-Statisticsp-Value
SP500(0)0.13250.20920.55720.55030.19350.24580.72250.52350.00022.1368 0.0163 *
SP500(1)0.12450.19790.54890.46950.17390.21790.72490.45420.00022.6515 0.0040 *
SP500(2)0.11360.19410.50330.48500.12900.20520.55120.51330.00011.05410.1460
SP500(3)0.11100.20020.47490.52110.13820.23070.53040.59370.00011.13080.1291
SP500(4)0.11850.21230.48310.62770.15220.25980.52450.62900.00021.14730.1257
SP500(5)0.10820.21440.43060.58380.11280.23330.41520.60570.00000.33760.3679
SP500(6)0.19360.26440.67210.62260.19530.25460.70490.61360.00010.96490.1673
SP500(7)0.12150.20680.51080.50130.19240.28110.62800.50030.00031.7297 0.0419 *
SP500(8)0.12880.19110.59090.49740.17630.25480.62950.54690.00021.23510.1084
SP500(9)0.10920.20080.46460.55660.13420.24540.48230.57270.00010.84360.1995
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Moon, S.-H.; Yoon, Y. Genetic Mean Reversion Strategy for Online Portfolio Selection with Transaction Costs. Mathematics 2022, 10, 1073. https://doi.org/10.3390/math10071073

AMA Style

Moon S-H, Yoon Y. Genetic Mean Reversion Strategy for Online Portfolio Selection with Transaction Costs. Mathematics. 2022; 10(7):1073. https://doi.org/10.3390/math10071073

Chicago/Turabian Style

Moon, Seung-Hyun, and Yourim Yoon. 2022. "Genetic Mean Reversion Strategy for Online Portfolio Selection with Transaction Costs" Mathematics 10, no. 7: 1073. https://doi.org/10.3390/math10071073

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop