Next Article in Journal
Parameter Optimization in a Leaky Integrator Echo State Network with an Improved Gravitational Search Algorithm
Previous Article in Journal
Advanced Numerical Methods in Computational Solid Mechanics
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Heuristic Approach to Forecasting and Selection of a Portfolio with Extra High Dimensions

Guangdong Provincial Key Laboratory of Interdisciplinary Research and Application for Data Science, BNU-HKBU United International College, Zhuhai 519089, China
Mathematics 2023, 11(6), 1513; https://doi.org/10.3390/math11061513
Submission received: 28 February 2023 / Revised: 11 March 2023 / Accepted: 13 March 2023 / Published: 21 March 2023
(This article belongs to the Special Issue New Advance of Data Science and Optimization)

Abstract

:
The performance of a financial portfolio depends on the output of two tasks: first, a forecasting process, where quantities of interest for the investors, such as the rate of return and risk for each stock, are predicted into the future, and second, an optimization process, where those individual stocks are formed into the portfolio optimizing the combined risk and reward features. However, in very large dimensions, when the number of stocks is high, those two quantitative problems often become intractable because of a loss in precision. This paper introduces a forecasting and portfolio formation strategy in multiple periods based on the splitting of the multivariate forecasting model into multiple bivariate forecasting models and updating investment weights at each period based on the predicted target quantities for the returns and the covariances. The methodology proposed is suitable for a very large portfolio of assets. The experimental results are based on a sample of one thousand stocks from the Chinese stock market. For such a large sample, the forecast and optimization process is executed speedily. The investment strategies are benchmarked with the equally weighted portfolio. In the long run, they offer a better investment performance in terms of a higher rate of return or lower risk, compared with this portfolio, demonstrating the applicability and economic value of the proposed methodology in practice.

1. Introduction

Portfolio managers and investors make decisions concerning the amount they invest in different assets and the timing for these investments. At the core of their decision-making process, there are two challenges. First, for the timing, there is a forecast process for the performance of each asset. Second, once the expectations for future performances are formed, there is a wealth optimization process by combining individual assets in a diversified portfolio. We shall refer to the first challenge as the forecasting problem and the second challenge as the optimization problem.
In the finance literature, the two problems are often considered separately. The forecasting problem has been taken up by studies in time-series modeling. Since the work of Box and Jenkins [1] on the autoregressive moving average (ARMA) models and seminal paper of Engle [2] on the conditional heteroscedasticity, we have seen over the 1990s and 2000s a vast and fruitful development on the modeling conditional stock return and conditional volatility. The literature considers both univariate and multivariate model specifications for, respectively, the conditional variance and conditional covariance. For the multivariate case, an excellent review is [3], summarizing the main parametric models. The optimization problem, instead, has been studied since the pioneering work of Markowitz in mathematical finance [4]. He proposed a “mean-variance” framework for the formation of diversified portfolios. Investors are risk averse and in making investment decisions they optimize their utilities by combining investments to maximize the expected return and minimize the expected risk. The Sharpe ratio [5] was introduced as a measure of portfolio performance combining both the reward and the risk aspects of investments. For investment evaluations, this ratio is commonly used by practitioners as an objective function.
This paper takes a holistic view of the two problems. Both forecasts of stock performances and optimization of a large portfolio of stocks are tacked as a unique challenge for the investment decision-making process. Because of the difficulty in producing an accurate forecast of stock returns, in practice, portfolio managers tend to focus on the second issue neglecting the forecasting models for returns and covariances. The unconditional return and covariance, estimated as historic sample return and sample covariance of assets are often used for portfolio optimization. The forecasting problem being more difficult is not less important than the optimization problem as superior out-of-sample portfolio performance can be delivered only with a better forecast of return and covariances. The approach to investment adopted by this paper may fall into the predict and optimize category. A recent review of both time series prediction and portfolio optimization is [6], where investment management based on an approach that falls into this category is also presented.
Some general results in the empirical literature for daily return forecasting are statistically significant trends and partial autocorrelations (see for example [7] for the UK stock market). To capture these effects, this paper applies the traditional autoregressive AR(1) forecasting model. Moreover, there is plenty of evidence of heteroskedasticity and time-varying covariances (see for example [8] for volatility spillover and heteroskedasticity for the Chinese stock markets due to the economic business cycle). This paper employs the GARCH(1,1) specification for time-varying stock variance and it applies the dynamic conditional correlation (DCC) model [9] as its parsimonious specification that also allows time-varying conditional correlations to be predicted.
The contribution of this paper is the following. It offers a practical approach to both forecasting and portfolio optimization by combining the two problems with an iterative algorithm. Furthermore, the methodology presented overcomes the curse of dimensionality for high dimensional volatility modeling and the intractability of portfolio optimization due to large covariance matrices. Instead of modeling the covariance structure of all assets as a whole, the approach relies on the equally weighted portfolio as a proxy for the market portfolio and models the covariance of each asset with this portfolio thus reducing the large multivariate model in several bivariate models. In practice, with the development of electronic markets, the basket of stocks and other assets available for investment is very large. Investment managers often monitor investment opportunities from different markets and even by considering only one market, the number of stocks traded is by far higher than what forecasting and optimization models can handle without incurring precision problems. For example, some of the world’s largest stock exchanges, such as the New York Stock Exchange or the Shanghai Stock Exchange, all have stocks traded every day exceeding two thousand units. This is contraposed to the fact that, in the research literature, the multivariate volatility models are only being applied successfully for up to 50 assets as in [10]. Multivariate time series forecasting models with assets exceeding a thousand unit has never been successfully attempted.
Recently, thanks to developments in deep neural network modeling, stock market forecasting has acquired a new impetus. While traditional time series models imposed specific functional forms and required stationarity assumptions of stock returns, a deep-learning model does not require such assumptions and allows the inclusion of data from different sources in predicting future market performance. For example, in [11] a deep model is used to extract market sentiment information from textual data and this information is embedded in another learning model to forecast future returns. In [12], a deep neural network architecture that includes convolutions and memory gates is applied to three series of high-frequency price data to predict their future prices. Deep-learning models can potentially handle data that is hyperdimensional without running into accuracy problems during model training. However, their performance out-of-sample (model testing) is yet to be established. Training a deep learning model is computationally expensive and if one would hope to achieve consistent out-of-sample predictive power on an extra large set of data, such as on one thousand stock series, those hyper-parameterized models would require much more data input that is normally available to researchers and industry practitioners. An example of an out-of-sample performance study is the paper [13] where several deep-learning models are compared with the traditional ARMA model to forecast a univariate time series of stock price. Even in this case of low dimensionality only a semi-parametric ARMA, can beat the traditional ARMA out-of-sample. This paper does not use any deep learning architecture to forecast future returns but instead uses the simplest parametric autoregressive model to capture the trend of a stock return in a hope that, when this is captured, the downstream investment strategy will avail of this and generate economic value.
The investment strategies presented in this paper rely on multiple-period evaluations of predicted returns and covariances. The strategies are heuristic in the sense that they do not rely on mathematical optimization but rather on simple and approximate updating of portfolio weights, at each period of investment, by tracking and improving upon the equally weighted portfolio investment strategy. For each investment period, the forecasting models produce predictions for the stock returns and covariances and, based on those, investment weights are re-adjusted and thus portfolios are re-balanced. The investment strategies proposed in this paper are tactical in the sense that it has a goal of optimizing reward and risk for each period of investment but also tracking the equally weighted portfolio as a long-term benchmark. Investment strategies with multiple period decisions have been studied by the extant literature. For example, in [14,15], approximate optimization methods are used for investment decision problems. Their approaches do not consider the out-of-sample forecast and investment performance, thus resulting in less practical usability. Furthermore, in [16] asset allocation is studied by considering realistic scenarios for investor preferences and transaction costs. However, its approach is infeasible in large dimensions by being heavily based on simulation.
Heuristic optimization techniques have been studied and applied in many areas of research. They are greedy algorithms specific to the problem at hand with the goal being to reach a solution that is near optimum when the optimization problem has high complexity. For example, in [17,18] some of those algorithms are presented and reviewed. Application of heuristic algorithm in portfolio optimization can be found in [19,20]. When the investment problem is too complex such as with multiple objective functions or with many inequality constraints those algorithms are needed because the computational complexity of the problem at hand is too high or because the pareto optimal solution may not exist. Instead of considering an optimal solution for one period, say, the minimum variance portfolio for one day of investment, the objective function of this study is the overall investment performance over multiple periods such as the Sharpe ratio for an arbitrarily long period of time composed of several subperiods where investment decisions are made. In this sense, the investment approach proposed in this paper can be considered a heuristic multi-period stochastic optimization approach to investment, where stochastic refers to the fact that stock returns are predicted random variables.
In terms of the research question and modeling strategy, this article is closest to [21] as it considers both prediction and asset allocation strategy jointly. In the latter, a multivariate hidden Markow model is used for forecasting stock returns and an intertemporal optimization process is considered, maximizing the expected return and incorporating the maximum value drawdown as an optimization constraint. There are other research items in the optimization literature that consider intertemporal financial optimization with different investment objectives (see for example [22,23]). However, none of the methods proposed are evaluated against very large dimensions such as when the number of assets reaches a thousand units. This paper takes a more practical perspective by focusing on investment performance when the portfolio under management has any arbitrary dimension and for this scope, it applies less complex forecasting models.
A related stream of work is in combining both prediction and optimization problems into non-parametric models. In [24], a neural network with user-defined loss functions is used to train a prediction model for the portfolio return and the investment weights are the output of this prediction model. Similarly, in [25] a deep neural network with the Sharpe ratio as a loss function for the forecasting model is used. Furthermore, in [26] the problem of forecasting and optimization is considered jointly by formalizing properties of the loss function used in the model. In this combined prediction and optimization literature the downstream performance from the optimization problem is taken into account when measuring errors in the upstream prediction model. This literature also does not consider the curse of dimensionality that arises with high dimensional portfolios. This paper differs from this literature stream as it takes a more traditional parametric predict and optimize approach in portfolio investment decisions.
This paper is also related to the stream of work focused on estimating large covariance matrices. For example, in [27] the modeling of correlation matrices is based on an equal dynamic correlation among all assets, thus overcoming problems related to exploding number of parameters for large dimensions. Furthermore, in [28,29] a factor structure is considered in estimating very large covariance matrices with dimensions even reaching one thousand. Those models rely on the shrinkage of the covariance matrix that can be used for both forecasting and portfolio selection. The shrinkage estimator of the covariance matrix has been proposed by other studies but with different model specifications. Among others [30,31], consider non-linear and non-parametric methods. Instead of estimating the whole covariance matrix, the approach adopted in this paper relies on estimating pairwise covariances of each asset with the equally weighted portfolio taken as the market.
In the experiment, data from the Shanghai and Shenzhen stock exchanges are used. The methodology is applied to a medium-large size basket of 100 stocks and an extra-large basket of 1000 stocks for multiple period forecast and investment evaluation. The data used are rather extensive covering more than 10 years of daily observations. By excluding transaction costs, the experimental results support the superiority out-of-sample of the proposed approach compared to the equally weighted portfolio as it delivers a better realized Sharpe ratio and other performance metrics in the long run.
The remainder of the article is organized as follows. Section 2 presents the forecast model specification and the heuristic portfolio allocation methodology, Section 3 introduces the data used for the analysis, the sampling scheme, and the investment performance results. Finally, Section 4 concludes.

2. Methodology

Given n assets, each with return r i , t , for i = 1 , , n and t = 0 , , T , the multi-period portfolio allocation problem consists of choosing weights w i , t for each asset i at time t. Without loss of generality, we consider t representing one day such that on each day the portfolio will be re-balanced as the weights change.
Let p represent the portfolio, at time t 1 the portfolio manager set the weights based on a forecast of future returns r i , t ^ and covariances c o v ^ ( r i t , r j t ) for i = 1 , , n and j = 1 , , n . This portfolio manager is risk averse as her goal is to maximize the expected return of the portfolio, and for a given return, she minimized the expected risk of the portfolio. Given the vector of weights w t = w 1 , t , , w n , t and the vector of predicted returns r ^ t = r ^ 1 , t , , r ^ n , t , the expected returns for the portfolio at time t is
E [ r p , t ] = w t r ^ t
and the expected risk of the portfolio at time t is
V a r [ r p , t ] = w t Σ ^ t w t
with the matrix Σ ^ t being the predicted ( n · n ) variance-covariance matrix of the n assets.
In the mean variance framework, a common objective function for this portfolio manager is to optimize the Sharpe ratio:
maximize w S R p , t = E [ r p , t ] V a r [ r p , t ] subject   to w 1 = 1 , w 0
where 1 is a ( n · 1 ) vector of one. The two constraints in the optimization problem (3) represent the budget constraint of the portfolio manager and a constraint on the short selling.
In such a framework, as the number of assets n is big, we encounter two major problems. First, all parametric models for Σ ^ t suffer from the curse of dimensionality. Even the simplest models for the conditional covariances will fail to estimate the underlying covariances when the number of variables is very high, not even considering the computational time required for such an estimation. As the likelihood function is a high-dimensional plane with many local optima, all estimates are left with very low precision. Evidence of this fact is presented in [32] and the conclusion made is that simples models, such as the DCC of [9], are more robust when the number of assets tends to be high. The second problem is also related to accuracy: the optimal weights in the problem of Equation (3) require the inversion of the matrix Σ ^ t . When this matrix is too big, traditional matrix inversion methods will fail. Even with approximate regularization methods to estimate the inverse covariance matrix, such as the one proposed in [33], the challenge of computational time in a practical environment is hard to overcome. Moreover, the upstream noise from the forecasting models will be exacerbated downstream, when doing the matrix inversion.
In this paper, a simplified approach is proposed. Instead of modeling the whole ( n · n ) covariance matrix Σ ^ t , a ( 2 · 2 ) covariance matrix is modeled n times, thus overcoming the curse of dimensionality. Moreover, instead of computing the inverse of the matrix Σ ^ t at each day t for the optimal weights w t , a heuristic weight updating approach based on the predicted returns and predicted covariances of each asset with the equally weighted portfolio is adopted. The portfolio allocation problem is thus divided into two steps, in the first step the future returns and covariances are predicted. In the second step, a portfolio based on those predictions is formed.
In the subsections below the two steps of the methodology are described. For the choice of names and mathematical symbols used throughout the paper see Appendix C.

2.1. Return and Variance Forecasting Model

This first step aims to build models to forecast the future returns of each asset, the future return of the equally weighted portfolio, and the covariance of each return with the return of the equally weighted portfolio. The return of the equally weighted portfolio that we observe (at time t 1 ) is
r e w , t 1 = w e w r t 1 ,
where w e w is a ( n · 1 ) vector with elements 1 / n .
To predict future returns the autoregressive conditional mean model of order 1, AR(1), is used in conjunction with the generalized heteroskedasticity model GARCH(1,1) for the conditional variance. The AR(1)-GARCH(1,1) model has 5 parameters, two for the conditional mean and three for the conditional variance. It is a parsimonious model capturing trend and partial autocorrelation of stock returns and time-varying volatility that are typical of stock market returns (see [34] for a discussion on the performance of the GARCH model). Considering a univariate stock return, the conditional mean and variance for this are specified as:
r t = α 0 + α 1 r t 1 + σ t ε t , ε t N ( 0 , 1 )
σ t 2 = β 0 + β 1 ε t 1 2 + β 2 σ t 1 2
with stationarity and positivity of the variance constraints imposed on the parameters as | α 1 | < 1 , β 0 > 0 , β 1 > 0 , β 2 > 0 , and β 1 + β 2 < 1 . This model is estimated independently for each individual asset i, for i = 1 , , n and, also, for the equally weighted portfolio return r e w , t .
Further, to predict future covariances, the correlation between each asset in the portfolio and the equally weighted portfolio return is modeled. To capture this time-varying correlation the DCC parametrization is used:
Q t = ( 1 γ 1 γ 2 ) Q ¯ + γ 1 ε t 1 ε t 1 + γ 2 Q t 1
R t = diag ( q t ) 1 Q t diag ( q t ) 1
with stationarity and positivity constraints γ 1 > 0 , γ 2 > 0 , γ 1 + γ 1 < 1 . The expression Q ¯ is the sample covariance matrix, ε t 1 = [ ε i , t 1 ε e w , t 1 ] denotes the ( 2 · 1 ) vector of innovations from individual model estimation of Equation (5). The matrix R t = 1 ρ i , t ρ i , t 1 is guaranteed to be a correlation matrix thanks to the standardization in Equation (8) and the element ρ t is the estimated correlation between an asset and the equally weighted portfolio for day t. This correlation model is also estimated between each asset i and the equally weighted portfolio independently from the other assets. In Equations (5)–(7) the subscript i is dropped for compactness.
The estimation of this model follows a two-stage maximum likelihood optimization. First, the parameters in Equations (5) and (6) are estimated by maximizing the normal log-likelihood function
l o g L 1 = T 2 log ( 2 π ) 1 2 t = 1 T log ( σ t 2 ) 1 2 t = 1 T ε t 2 .
Second, once the optimal parameters are found, their innovations ε t are used to run the recursions in Equations (7) and (8) and parameters of the correlation model is estimated by maximizing the bivariate normal likelihood
l o g L 2 = T 2 log ( 2 π ) 1 2 t = 1 T log det ( Σ t ) 1 2 t = 1 T ε t Σ t 1 ε t .
The covariance matrix Σ t = σ i , t 2 c o v i , t c o v i , t σ e w , t 2 is the ( 2 · 2 ) covariance matrix of any asset and the equally weighted portfolio. The covariance terms c o v i , t = ρ i , t σ i , t σ e w , t are obtained iteratively given estimates for the variance of each asset and the correlation between each asset and the equally weighted portfolio. Because the dimension of the covariance matrix is small, the maximum likelihood estimation approach is fast for a reasonable data size T.
Note that the correlations ρ i , t are estimated correlations between the rate of return of any asset i and the rate of return of the equally weighted portfolio e w . For shortness in notation, the subscript e w is dropped. Furthermore, the correlation matrix Σ t is re-estimated for each asset return, independently from the other correlation matrices. For example, with n = 100 assets, n + 1 models for conditional mean and variance and n models for conditional correlation are estimated, consisting of a total of 505 parameters for the conditional mean and variance and 200 parameters for the conditional correlation. Instead of modeling the whole correlation among all assets, this approach considers all assets as if they are independent of each other but all correlated with the equally weighted portfolio, thus reducing the modeling problem to smaller subproblems.
Once the models are estimated, a forecast of future return and future covariances are produced one period ahead. Thus, the following vector of return and covariance forecasts are predicted:
r t + 1 = [ r 1 , t + 1 r n , t + 1 ]
c o v t + 1 = [ c o v 1 , t + 1 c o v n , t + 1 ] .
The forecasting problem is summarized with Algorithm 1. The input of this algorithm is multivariate time series return data that are described in Section 3.1. The data are split into K windows of training and testing subsamples. For each training window, the univariate A R ( 1 ) G A R C H ( 1 , 1 ) model is estimated for the equally weighted portfolio return and each stock return. Furthermore, the multivariate D C C model is estimated between individual stock return and the equally weighted portfolio return. Based on the estimates of this training window, one-step-ahead forecasts are produced for the corresponding test window that contains data of size s t e p . In the algorithm, the procedure in the outer f o r loop selects the training and testing window and estimates the models. The procedure in the most inner f o r loop produces forecast quantities for each stock corresponding to the s t e p out-of-sample time stamps.
Algorithm 1 Training and 1 Step Ahead Forecasting of Return and Covariances.
     Input:
     return d a t a of size (T by n)
     parameters K and w s
  • w e w [ 1 / n , , 1 / n ]
  • for  w i n 0 to K 1  do
  •      r t r a i n d a t a [ ( w i n · s t e p ) : ( w s + w i n · s t e p 1 ) ]
  •      r t e s t d a t a [ ( w s + w i n · s t e p ) : ( w s + w i n · s t e p + s t e p ) ]
  •      r e w , t r a i n w e w × r t r a i n
  •      r e w , t e s t w e w × r t e s t
    ▹Training and forecasting the equally weighted portfolio return
  •      ( θ ^ e w , r e t , θ ^ e w , σ 2 ) AR(1)-GARCH(1,1) with r e w , t r a i n
  •     for  t 1 to s t e p  do
  •          ( r ^ e w , t , σ 2 ^ e w , t ) AR(1)-GARCH(1,1) with ( θ ^ e w , r e t , θ ^ e w , σ 2 ) and r e w , t 1
  •     end for
    ▹Training and forecasting individual stock returns
  •     for  i 1 to n do
  •          ( θ ^ i , r e t , θ ^ i , σ 2 ) AR(1)-GARCH(1,1) with r i , t r a i n
  •          θ ^ i , c o r r DCC with r i , t r a i n
  •         for  t 1 to s t e p  do
  •             ( r ^ i , t , σ 2 ^ i , t ) AR(1)-GARCH(1,1) with ( θ ^ i , r e t , θ ^ i , σ 2 ) and r i , t 1
  •             c o v ^ i , t DCC with θ ^ i , c o r r , r i , t 1 and r e w , t 1
  •         end for
  •     end for
  • end for

2.2. Portfolio Formation Strategy

The second step of the methodology aims to set the weight vector w t + 1 = [ w 1 , t + 1 w n , t + 1 ] given the forecast of returns and covariances obtained previously. Starting with the equal weight vector, weights are updated on each day of the investment period.
The portfolio selection strategy consists of setting a target return and a target risk. The predicted return of the equally weighted portfolio is taken as a target return: t a r g e t R e t = r ^ e w , t + 1 . This is because the equally weighted portfolio is rather hard to beat, its performance out-of-sample is considerable as shown in [35]. Therefore, the heuristic approach of this paper seeks to improve upon the rate of return of this equally weighted portfolio. For the risk, instead, the average predicted covariance between each of the n stocks and the equally weighted portfolio is taken as the target risk for our portfolio, t a r g e t C o v = 1 n i = 1 n c o v ^ i , t + 1 . The rationale for taking the average covariances as a risk target stands from the fact that, in a large portfolio, the covariance risk is the dominant source of risk.
Consider the equally weighted portfolio return r e w . When the number of its components is infinitely high, its variance is equal to the average pairwise covariance among its components (this result can be found in [36]):
V a r ( r e w ) = i = 1 n j = 1 n σ i , j 2 n 2 = i = 1 n σ i 2 n 2 + i = 1 n j = 1 , j i n σ i , j 2 n 2 = 1 n σ 2 ¯ + n 1 n σ i , j 2 ¯
lim n V a r ( r e w ) = σ i , j 2 ¯ ,
where σ i , j 2 ¯ , i j is the average covariance, among assets i and j. Because the whole covariance structure between the assets is not modeled directly, but only the covariance between each asset and the equally weighted portfolio is modeled, such average covariance is taken as a relative proxy for the systemic risk σ i , j 2 ¯ .
Therefore, setting this portfolio raises the overall difficulty bar for the investment strategy when there is an extra large number of stocks because this is already a fully diversified portfolio. The investment strategies aim to beat this equally-weighted portfolio in short periods when there is diversification opportunities not captured by this and when there are superior forecasts of stock returns. In the long run, the equally weighted portfolio is the benchmark investment.
Let r m i n , t + h = min i r ^ 1 , t + 1 , , r ^ i , t + 1 , , r ^ n , t + h and c o v m i n , t + h = min i c o v ^ 1 , t + h , , c o v ^ i , t + h , , c o v ^ n , t + h be, respectively, the minimum of the predicted returns and the minimum of predicted covariance among all n assets under consideration for the forecast period t + 1 . Based on the target return and the target covariance the weights for the forecast period are updated as the following:
v 1 , t + 1 = r t + h r m i n , t + h t a r g e t R e t r m i n , t + h ( w e w + w t )
v 2 , t + 1 = t a r g e t C o v c o v m i n , t + h c o v t + h c o v m i n , t + h ( w e w + w t )
v t + 1 = c v 1 , t + 1 + ( 1 c ) w 2 , t + 1
w t + 1 = v t + 1 / s u m ( v t + 1 )
with w 0 = w e w and the product ⊙ in Equations (15) and (16) denoting the element-by-element product. The ratio expression in Equation (15) is a vector containing relative predicted returns over the target return. It has elements that take values above 1 if a stock return is predicted to be higher than the target return and smaller than 1 if a stock return is predicted to be lower than the target return. The ratio in Equation (16) is a vector that contains the relative predicted covariance over the target covariance. Its elements take values higher than 1 if the covariance is predicted to be higher than the target covariance and smaller than 1 if the covariance is predicted to be smaller than the target covariance. The differences in return and covariances with their respective minimum element guarantees that all elements in the ratio vectors are positive. The equal weight vector w e w is added to the weight of the previous period w t to avoid the weights to shrink to zero by repeated iteration once an asset has the minimum of the return or minimum of the covariance among all assets. Furthermore, adding equal weights allows for better tracking of the equally weighted portfolio as this is the benchmark strategy.
The two objectives of maximizing expected returns (Equation (15)) and minimizing risk (Equation (16)) are combined linearly by weighting more on assets for which the relative return is predicted to be higher and weighting less on assets for which relative covariance is predicted to be higher. The constant c, for 0 c 1 is a parameter that maps on the risk aversion by considering only the expected return, and thus having a neutral position on the risk, when c = 1 , and by weighting most on avoiding risk when c = 0 . The standardization in Equation (18) guarantees that all weights sum to one, fulfilling the budget constraint of the investment. The weights are updated iteratively for each of the forecast periods resulting in a multi-period investment strategy.
The portfolio allocation strategy is summarized in the following Algorithm 2. The portfolio weights are updated at each period based on the forecast of returns and covariances. When the return of some assets is expected to be high compared to the expected return of the equally weighted portfolio, more weight is assigned to those assets. On the other side, when the covariance of the assets with the equally weighted portfolio is expected to be high, lesser weights are assigned to these assets. The two effects are balanced linearly in the updating process. In the algorithm, the f o r loop runs for each out-of-sample time stamp t corresponding to one day. Therefore after receiving predicted returns and covariances for each day the f o r loop outputs the stock allocation weights w within the loop.
Algorithm 2 Weight Update for Each Successive Day.
     Input:
     predicted r ^ and c o v ^
     parameter c
     equal weights w e w
  • w w e w
    ▹Out-of-sample t
  • for t 1 to T do
  •      t a r g e t R e t r ^ e w , t 1
  •      t a r g e t C o v m e a n ( c o v ^ · , t 1 )
  •      w 1 R ^ t r m i n , t t a r g e t R e t r m i n , t ( w e w + w )
  •      w 2 t a r g e t R e t c o v m i n , t c o v t c o v m i n , t ( w e w + w )
  •      v c w 1 + ( 1 c ) w 2
  •      w t v / s u m ( v )
  • end for

3. Results

In this section, the data used to evaluate the proposed forecast and portfolio allocation methodology are presented, and the sampling scheme used to train and test the forecasting models is further explained. Moreover, the investment performance metrics are defined and performance statistics are reported.

3.1. Data Description and Sampling Scheme

The methodology is evaluated using data from the Chinese stock market. All stocks listed in the Shanghai and Shenzhen stock exchanges are taken into consideration. Moreover, a long-history dataset, with daily observations from 2011 to 2022 is considered. All the data are obtained from the repository tushare.pro (For documentation of the dataset see https://tushare.pro/document/2, accessed on 1 November 2022).
The data present many missing values and the main reason for this is the fact that many stocks are not actively traded. To overcome this problem, a sampling filter is applied selecting all stocks that in the last 11 years are actively traded for at least 95% of the trading days. As the sample data in the analysis consist of 2837 trading days (11 years and 10 months), this filter will take all stocks with activity in at least 2695 trading days out of 2837 days. After the filtering, a random selection of stocks is applied in forming two baskets of stocks. First, a moderately large basket of 100 stocks is formed and, second, a very large basket of 1000 stocks is formed. The market trading codes, as well as sample names of stocks constituting those baskets, are reported in Appendix B. The dataset suffers from survivorship bias (see [37]) as all stocks are continuously listed from January 2011 to October 2022. The performance evaluations are all relative to the equal-weighted portfolio, which is also subject to this bias, thus minimizing its impact.
For each basket of investments, two investment strategies are considered: a heuristic reward-risk strategy where the parameter c = 0.5 in Equation (17), such that both return forecast and covariance forecast are considered and a heuristic max-reward strategy with c = 1 , where only the return forecast is considered. For the latter investors maximize return without considering the risk of the portfolio so that they are risk-neutral. From those two strategies on the two baskets of investments, four portfolios are derived, namely the heuristic reward-risk 100, the heuristic max-reward 100, the heuristic reward-risk 1000 and the heuristic max-reward 1000.
To evaluate the investment strategy, a realistic forecast training and investment scheme is adopted. Forecasting models are trained based on a rolling window of size w s and once the models are trained, forecasts for returns and covariances are generated every day for the next day. Based on these forecasts, the portfolio weights are also updated every day. For example, the first training window consists of data from day t = 1 to day t = w s . Based on data from this window, the models generate one-step ahead forecasts for mean and covariances for the time stamp t = w s + 1 , w s + s t e p , where s t e p is the number of days a window is rolled over. Based on this forecast the weight vector w t is set for each day t. After this first training sample, the training window is rolled over s t e p days ahead, it consists now of data from day s t e p to day s t e p + w s and the resulting forecasts are relative to t = w s + s t e p + 1 , , w s + 2 · s t e p . This pseudo-out-of-sample investment process is repeated for the whole sample data of about 11 years. Figure 1 illustrates the training and forecasting sampling scheme.
The window size w s and the s t e p size determines how often the forecast models need to be re-estimated. For instance, with our dataset of 2837 daily observations (about 11.8 years) and considering w s = 243 , corresponding to about 1 year, and s t e p = 20 , corresponding to about 1 month (excluding weekends and holidays), there are 130 training windows for which the forecasting models need to be re-estimated. In the experimentation, those parameters are set differently for the two baskets of investments. For the basket of 100 stocks, the parameters w s = 243 and s t e p = 20 are kept, while for the basket of 1000 stocks, the parameters are w s = 486 , corresponding to about 2 years, and s t e p = 40 , corresponding to about 2 months (of working days). For the first basket, there are 130 training windows in which models are estimated and for the second basket, there are 58 such windows. As the first window is for training only, the out-of-sample period starts in January 2012, leaving out one year of data, for the portfolios of 100 stocks, and it starts on January 2013, leaving out two years of data, for the portfolios of 1000 stocks. Because the forecast models are fit for each stock for each window, when the number of assets reaches the thousands, it could take some hours to complete the whole model evaluation procedure with serial computing. With 1000 stocks, the equally weighted portfolio, and 58 training windows there are ( 58 ( 1000 · 2 + 1 ) ) maximum likelihood optimizations as a two-stage estimation is required to estimate conditional means, variances, and covariances. In the experimentation, a small-scale computing set-up is used with limited 500 MB memory reserved for data processing. The algorithm runs sequentially and it is implemented in Python. It makes use of the “minimize” function with Sequential Least Squares Programming (SLSQP) method as implemented in the Scipy package for the maximum likelihood evaluations. Estimation of the forecasting models takes most of the computing time with the maximum likelihood evaluations for all training data windows for the basket of 100 stocks completed in about 10 minutes runtime and evaluations of maximum likelihoods for the models for the 1000 stocks completed in about 5 hours runtime. This nonlinear increase in time is due to a nonlinear increase in complexity as the size of training data w s increases.

3.2. Investment Perfomance

The performance of the investment strategies is assessed in terms of cumulative return, annualized daily return, volatility of the daily return, and transaction costs. As cumulative return, the whole ten years and 10 months of out-of-sample data are considered and a price index is constructed such that at the beginning of 2012 the portfolio is worth 100 and the portfolio value is updated each day. As for transaction costs, only the portfolio rebalancing cost is considered by assuming 25 basis points for price unit transactions. This is the retail rate charged by many banks for trading in the Chinese market and also the fair transaction cost for pricing model based investment strategies considered in [38]. The heuristic investment strategies are compared with the buy-and-hold equally weighted trading strategy that does not require any transaction costs.
As an overall performance, the realized daily Sharpe ratio is built as the standardized out-of-sample daily return:
S h a r p e R a t i o = r ¯ t = 1 T ( r t r ¯ ) 2 × 100 %
where r ¯ = 1 n t = 1 T r t and T is the total number of days out-of-sample. The definition of this ratio is not equal to the ratio between annual average return and annual average standard deviation.
At a glance the max-reward strategy performs better than the reward-risk strategy, offering a higher cumulative return. In Figure 2, the overall price performance of the max-reward strategy and the reward-risk strategy are compared with that of the equally weighted portfolio of the 100 stocks. Furthermore, in Figure 3 the price of the reward-risk and max-reward strategies for the 1000 stocks are compared with that of the equally weighted portfolio. The overall winner is the heuristic max-reward 100 portfolio, yielding the highest cumulative return over the investment period. The portfolios built on 1000 stocks performs worse than the portfolios build on 100 stocks as it offers less cumulative returns. However, this is due to stocks being randomly selected from the population as the equally weighted 1000 portfolio also performs poorly compared to the equally weighted 100 portfolio (comparing Figure 2 and Figure 3).
The heuristic investment strategies effectively improve upon the equally weighted portfolio and its investment performance matches the designed goal of the strategy. Overall the equally weighted portfolio is well tracked and this is evident from the movement pattern of prices in Figure 2 and Figure 3. The equally weighted portfolio is already fully diversified, however, its performance is beaten thanks to superior return forecasts. For example, during the market bubble-and-crash period of 2015–2016 prices soared again after an initial crash in mid-2015. The investment strategy capitalized on this opportunity. Furthermore, in the relatively positive year 2021, some stocks outperformed the market, and also in this case the investment strategies benefit from return forecasts. In terms of risk goal, the reward-risk portfolios, which combine both return forecast and covariance forecast in its investment strategy, have overall less volatility than the equally weighted portfolios (see for example in Figure 3 during the years 2016–2020). Therefore the strategy also benefits from superior covariance forecasts. Overall, the goal of risk reduction is more difficult to achieve and this is because the equally weighted portfolio is already diversified. In periods of high correlation such as during the market crash of mid-2015, the performance of all trading strategies crashes.
Table 1 and Table 2 summarize the investment performance for the investment strategies with 100 stocks and 1000 stocks, respectively. The results confirm that the max-reward strategy reaches its goal of maximizing return as the annualized rate of return, calculated as daily average return over the whole out-of-sample period multiplied by 243, is about 5.5 % and 4 % higher than that of the respective equally weighted portfolios of 100 stocks and 1000 stocks with a similar level of risk (27.2% annual standard deviation versus 26.68% for the portfolios of 100 stocks and 26.32% annual standard deviation versus 26.35% for the portfolio of 1000 stocks). The reward-risk portfolios also achieve their goal of balancing return and standard deviation. The average yearly returns for these portfolios are about 1 % higher than the respective equally weighted portfolios and the annualized standard deviation is about 3–4% lower than that of the equally weighted portfolio. Some additional results on the effectiveness of the heuristic portfolio strategies in minimizing risk are contained in Appendix A.
Considering the realized Sharpe ratio defined in Equation (19) both max-reward and reward-risk strategies offer better performance than the equally weighted strategy. However, these positive results from the investment strategy do not take into account transaction costs. Assuming a relatively high transaction fee such as 25 basis points for a unit transaction, this is translated as a yearly average cost of about 7.88 % and 13.21 % for the portfolios reward-risk 100 and max-reward 100 and 5.76–7.23% for the portfolios reward-risk 1000 and max-reward 1000. By accounting for those costs, both max-reward and reward-risk strategies are unprofitable compared with the equally weighted strategy.
In summary, the equally weighted portfolio is well tracked, and the designed goals of max-return and reward-risk to beat the equally weighted portfolio is achieved only in some specific periods when there is high predictability of stock return and risk. For most of the other periods, when there is no predictability, the performance of the investment strategies does not depart significantly from that of the equally weighted portfolio. A negative side effect is that, because of noise in forecasts for prices and covariances, those strategies require some level of portfolio rebalancing, that, even if at a small level, results in transaction costs without direct performance benefit.
To determine where those transaction costs are incurred, the daily weight changes are computed as the sum of all absolute changes in weight for all stocks from one day to the next day, including both buy and sell transactions:
Δ t w = w t w t 1 1 = s u m { w t w t 1 } .
Transaction costs reported in Table 1 and Table 2 are calculated yearly as t = 1 243 Δ t w .
Figure 4 and Figure 5 report those weight changes for the portfolio strategies with 100 stocks while Figure 6 and Figure 7 report the weight changes for the portfolio strategies with 1000 stocks. For the portfolios of 100 stocks, the fraction of the investment that gets rebalanced is rather high. On average, ( 13 / 2 ) % (As cost are calculated for buy and sell, the unit investment doubled accounting for both buy and sell transactions) of the investments get rebalanced every day for the reward-risk portfolio and ( 22 / 2 ) % of the investments get rebalanced for the max-reward investment strategy. Indeed the equally weighted strategy has zero rebalancing cost. For the portfolio of 1000 stocks, the average fraction of investment re-balanced daily is ( 9 / 2 ) % and ( 12 / 2 ) % , respectively.
Between June and December 2015, when all heuristic investment strategies significantly beat the equally weighted portfolio in terms of absolute return, the portfolio rebalancing costs are significantly higher. This is an indication that the predicted returns for this period have high variability and on average they are accurate as the investment strategies based on those forecasts are generating a significant economic value. In the period between March and November 2018 the heuristic reward-risk 1000 portfolio incurred significantly high transaction costs (see Figure 6) and the performance of this investment strategy peaked compared with that of the equally weighted portfolio (see blue line compared with the red line in Figure 3). Furthermore, in this case, return forecasts are on average accurate. In calm periods, such as the period between 2012 and 2015, the transaction costs are relatively low and this is because in those periods both returns and covariances are predicted to be very similar from one day to the next. However, despite this, the heuristic investment strategies still incur transaction costs but without economic benefit. This is due to noise forecasts of the return.
As the annual transaction cost is high, a possibility to reduce this cost is to rebalance the portfolio at a less frequent period such as weekly or even monthly instead of daily. In this study, the daily rebalancing portfolio allocation scheme is kept to better assess the effect of the forecasting models, which are more accurate at a daily level, on the investment strategies.

4. Conclusions

This article introduces a heuristic approach for multi-period portfolio selection based on a forecasting model for stock returns and covariances. This approach is feasible for investment in a very large number of assets, even exceeding a thousand units. The portfolio selection method is based on an iterative assessment of reward and risk following the mean-variance framework but does not require mathematical optimization as it updates investment weights based on predicted quantities. The portfolio strategies presented in the paper track the equally weighted portfolio and aim to beat this portfolio in terms of delivering a better rate of return and lower risk in the long run.
Based on a large sample of market data from the Chinese stock exchanges, the portfolio investment strategies hit their target of improving the rate of return and reducing the risk of the investment when compared with the equally weighted portfolio investment strategy. However, when considering transaction costs, the proposed strategies are not as profitable as the buy-and-hold equally weighted strategy that does not require any portfolio rebalancing transaction costs. In this evaluation of transaction cost, a relatively expensive fee of 25 bps per unit transaction is assumed. For large institutional investors, this transaction fee can be much lower as one-fifth of the assumed fee (See for example http://english.sse.com.cn/start/taxes/, accessed on 1 December 2022, for the fees charged by the stock exchange) thus resulting in more profitable strategies compared to the benchmark even when taking into account those transaction costs.
Mathematic forecasting models for stock return have notoriously high error (see [39] for a discussion) and this paper does not attempt to deliver a forecasting model with high accuracy but rather aims to capture the general trend of a stock return and covariances with simple forecasting models. In the empirical application the forecasting models are re-train every month (and every 2 months for the portfolio of 1000 stocks) and, once the models are trained, it applies the one-step ahead forecast approach that captures this trend for the periods into the future. Re-training the models every day and producing a forecast for the one day ahead could arguably offer a more accurate forecast, thus offering better economic performance with the multi-period portfolio allocation strategy. However, this approach is not adopted as it requires re-estimating thousands of coefficients every day and can be rather expensive from a computational point of view.
Based on the sample data, the forecasting and the portfolio formation approach presented generates an economic value of about 400–500 basis points. The annual return of the heuristic max-reward strategies is about 4–5% higher than that of the equally weighted portfolio strategy even maintaining a similar level of risk. This result is based on a long sample period of more than 10 years that includes both calm and turbulent market dynamics. For some sub-periods, such as the turbulent period of 2015–2016, this economic value is significantly higher.

Funding

This research was supported by UIC Start-up Research Fund grant number R72021208.

Data Availability Statement

Restrictions apply to the availability of these data. Data was obtained from tushare.pro. For a documentation of the dataset see https://tushare.pro/document/2 (accessed on 1 November 2022).

Conflicts of Interest

The author declare no conflict of interest.

Appendix A. Daily Return and Standard Deviation of Investments

In this appendix, the performance of the reward-risk 1000 portfolio (Figure A2) is contrasted with that of the benchmark equally weighted 1000 portfolio (Figure A1). The performance is computed as an out-of-sample daily rate of return and a rolling standard deviation of daily returns based on a window of 20 observations. During the period between mid-2015 and the beginning of 2016, the reward-risk 1000 portfolio achieves considerably lower daily drawdown and lower standard deviation. Furthermore, around mid-2018, this portfolio achieves a considerably higher daily rate of return compared with that of the equally weighted 1000 portfolio.
Figure A1. Out-of-sample Return Performance of the equally weighted 1000 investment portfolio. The gray line denotes the daily rate of return and the red line denotes a moving window standard deviation of 20 daily returns.
Figure A1. Out-of-sample Return Performance of the equally weighted 1000 investment portfolio. The gray line denotes the daily rate of return and the red line denotes a moving window standard deviation of 20 daily returns.
Mathematics 11 01513 g0a1
Figure A2. Out-of-sample Return Performance of the reward-risk 1000 investment portfolio. The gray line denotes the daily rate of return and the red line denotes a moving window standard deviation of 20 daily returns.
Figure A2. Out-of-sample Return Performance of the reward-risk 1000 investment portfolio. The gray line denotes the daily rate of return and the red line denotes a moving window standard deviation of 20 daily returns.
Mathematics 11 01513 g0a2

Appendix B. Ticker Symbol of Selected Companies

This appendix reports in a tabular format (Table A1,Table A2,Table A3) all stock tickers in the basket of 100 stocks and the basket of 1000 stocks. It also displays an example of company names and industry sectors for some of the tickers forming the portfolios in this study (Table A4).
Table A1. Ticker symbol for the 100 randomly selected stocks in the Shenzhen and Shanghai stock exchanges. The suffix “.SZ” denotes Shenzhen and the suffix “.SH” denotes Shanghai.
Table A1. Ticker symbol for the 100 randomly selected stocks in the Shenzhen and Shanghai stock exchanges. The suffix “.SZ” denotes Shenzhen and the suffix “.SH” denotes Shanghai.
Selected 100 Stocks in the Shenzhen and Shanghai Stock Exchanges
000065.SZ000089.SZ000420.SZ000428.SZ000507.SZ000546.SZ000567.SZ000576.SZ000652.SZ000701.SZ
000729.SZ000739.SZ000801.SZ000825.SZ000906.SZ000915.SZ000957.SZ000960.SZ002016.SZ002024.SZ
002033.SZ002108.SZ002120.SZ002130.SZ002138.SZ002149.SZ002152.SZ002166.SZ002182.SZ002197.SZ
002204.SZ002216.SZ002222.SZ002268.SZ002291.SZ002328.SZ002363.SZ002364.SZ002372.SZ002405.SZ
002414.SZ002433.SZ002444.SZ002460.SZ002488.SZ002522.SZ002532.SZ002536.SZ002543.SZ002557.SZ
300012.SZ300041.SZ300091.SZ300103.SZ300106.SZ300121.SZ300171.SZ300204.SZ300211.SZ600007.SH
600109.SH600127.SH600152.SH600183.SH600216.SH600256.SH600302.SH600326.SH600327.SH600343.SH
600353.SH600368.SH600398.SH600420.SH600508.SH600517.SH600531.SH600538.SH600551.SH600560.SH
600593.SH600594.SH600598.SH600608.SH600628.SH600686.SH600708.SH600837.SH600853.SH600868.SH
600970.SH600984.SH600995.SH601000.SH601107.SH601186.SH601618.SH601799.SH601866.SH601918.SH
Table A2. Ticker symbol for the 1000 randomly selected stocks in the Shenzhen and Shanghai stock exchanges. This table reports only the stocks traded in the Shenzen market.
Table A2. Ticker symbol for the 1000 randomly selected stocks in the Shenzhen and Shanghai stock exchanges. This table reports only the stocks traded in the Shenzen market.
Selected Stocks in the Shenzhen Stock Exchange
000009.SZ000011.SZ000012.SZ000014.SZ000025.SZ000026.SZ000027.SZ000028.SZ000039.SZ000046.SZ
000049.SZ000055.SZ000059.SZ000060.SZ000065.SZ000069.SZ000088.SZ000089.SZ000090.SZ000096.SZ
000099.SZ000157.SZ000158.SZ000159.SZ000338.SZ000400.SZ000402.SZ000404.SZ000419.SZ000420.SZ
000421.SZ000423.SZ000425.SZ000428.SZ000488.SZ000501.SZ000507.SZ000513.SZ000514.SZ000517.SZ
000518.SZ000521.SZ000528.SZ000529.SZ000530.SZ000531.SZ000532.SZ000539.SZ000541.SZ000543.SZ
000546.SZ000550.SZ000551.SZ000559.SZ000561.SZ000563.SZ000568.SZ000570.SZ000572.SZ000573.SZ
000576.SZ000581.SZ000590.SZ000591.SZ000593.SZ000598.SZ000599.SZ000600.SZ000601.SZ000603.SZ
000609.SZ000617.SZ000619.SZ000623.SZ000625.SZ000631.SZ000632.SZ000635.SZ000637.SZ000639.SZ
000650.SZ000652.SZ000655.SZ000656.SZ000671.SZ000680.SZ000683.SZ000686.SZ000690.SZ000691.SZ
000692.SZ000698.SZ000701.SZ000702.SZ000703.SZ000705.SZ000708.SZ000709.SZ000725.SZ000726.SZ
000727.SZ000728.SZ000729.SZ000731.SZ000732.SZ000733.SZ000735.SZ000738.SZ000739.SZ000752.SZ
000758.SZ000762.SZ000768.SZ000776.SZ000778.SZ000782.SZ000788.SZ000789.SZ000790.SZ000791.SZ
000800.SZ000807.SZ000816.SZ000819.SZ000822.SZ000823.SZ000825.SZ000826.SZ000828.SZ000830.SZ
000837.SZ000838.SZ000839.SZ000852.SZ000858.SZ000859.SZ000860.SZ000869.SZ000875.SZ000877.SZ
000880.SZ000882.SZ000885.SZ000888.SZ000895.SZ000897.SZ000898.SZ000899.SZ000902.SZ000905.SZ
000909.SZ000910.SZ000911.SZ000913.SZ000918.SZ000919.SZ000921.SZ000922.SZ000926.SZ000927.SZ
000928.SZ000929.SZ000931.SZ000933.SZ000936.SZ000937.SZ000948.SZ000949.SZ000951.SZ000952.SZ
000957.SZ000960.SZ000961.SZ000963.SZ000965.SZ000966.SZ000969.SZ000970.SZ000973.SZ000977.SZ
000978.SZ000983.SZ000985.SZ000989.SZ000993.SZ000999.SZ001914.SZ002001.SZ002003.SZ002007.SZ
002013.SZ002014.SZ002016.SZ002017.SZ002022.SZ002023.SZ002024.SZ002027.SZ002028.SZ002029.SZ
002031.SZ002032.SZ002033.SZ002034.SZ002036.SZ002038.SZ002041.SZ002042.SZ002043.SZ002045.SZ
002048.SZ002050.SZ002054.SZ002055.SZ002056.SZ002058.SZ002063.SZ002064.SZ002066.SZ002067.SZ
002068.SZ002073.SZ002077.SZ002078.SZ002079.SZ002080.SZ002081.SZ002087.SZ002088.SZ002093.SZ
002100.SZ002101.SZ002104.SZ002105.SZ002107.SZ002108.SZ002117.SZ002123.SZ002126.SZ002130.SZ
002132.SZ002133.SZ002136.SZ002138.SZ002139.SZ002142.SZ002144.SZ002146.SZ002148.SZ002149.SZ
002150.SZ002152.SZ002153.SZ002154.SZ002155.SZ002158.SZ002165.SZ002166.SZ002169.SZ002170.SZ
002172.SZ002176.SZ002177.SZ002178.SZ002179.SZ002181.SZ002182.SZ002184.SZ002185.SZ002186.SZ
002187.SZ002191.SZ002192.SZ002194.SZ002195.SZ002197.SZ002202.SZ002205.SZ002206.SZ002208.SZ
002213.SZ002215.SZ002216.SZ002221.SZ002222.SZ002223.SZ002224.SZ002229.SZ002232.SZ002233.SZ
002234.SZ002236.SZ002237.SZ002241.SZ002242.SZ002244.SZ002245.SZ002247.SZ002249.SZ002250.SZ
002251.SZ002254.SZ002258.SZ002262.SZ002265.SZ002268.SZ002269.SZ002271.SZ002273.SZ002274.SZ
002276.SZ002277.SZ002284.SZ002285.SZ002287.SZ002291.SZ002295.SZ002299.SZ002302.SZ002303.SZ
002307.SZ002311.SZ002313.SZ002318.SZ002321.SZ002322.SZ002324.SZ002325.SZ002326.SZ002330.SZ
002334.SZ002335.SZ002336.SZ002337.SZ002339.SZ002340.SZ002342.SZ002344.SZ002350.SZ002351.SZ
002353.SZ002360.SZ002361.SZ002362.SZ002363.SZ002364.SZ002365.SZ002371.SZ002372.SZ002374.SZ
002375.SZ002376.SZ002378.SZ002380.SZ002381.SZ002385.SZ002386.SZ002391.SZ002393.SZ002394.SZ
002397.SZ002402.SZ002403.SZ002404.SZ002405.SZ002406.SZ002410.SZ002412.SZ002414.SZ002415.SZ
002420.SZ002421.SZ002422.SZ002424.SZ002430.SZ002432.SZ002433.SZ002434.SZ002438.SZ002440.SZ
002441.SZ002444.SZ002448.SZ002449.SZ002455.SZ002457.SZ002459.SZ002463.SZ002468.SZ002469.SZ
002470.SZ002472.SZ002475.SZ002478.SZ002479.SZ002480.SZ002482.SZ002484.SZ002487.SZ002488.SZ
002489.SZ002493.SZ002494.SZ002495.SZ002496.SZ002497.SZ002498.SZ002501.SZ002503.SZ002510.SZ
002511.SZ002516.SZ002519.SZ002522.SZ002523.SZ002528.SZ002531.SZ002532.SZ002533.SZ002534.SZ
002535.SZ002536.SZ002538.SZ002539.SZ002540.SZ002546.SZ002548.SZ002550.SZ002552.SZ002554.SZ
002556.SZ002557.SZ002561.SZ002562.SZ002563.SZ002565.SZ002566.SZ002568.SZ002572.SZ002585.SZ
002588.SZ002593.SZ002594.SZ002595.SZ300001.SZ300003.SZ300005.SZ300006.SZ300007.SZ300009.SZ
300014.SZ300015.SZ300016.SZ300017.SZ300021.SZ300024.SZ300026.SZ300029.SZ300031.SZ300033.SZ
300035.SZ300036.SZ300037.SZ300039.SZ300041.SZ300042.SZ300048.SZ300054.SZ300066.SZ300067.SZ
300068.SZ300069.SZ300070.SZ300072.SZ300073.SZ300074.SZ300075.SZ300076.SZ300079.SZ300082.SZ
300083.SZ300091.SZ300094.SZ300101.SZ300102.SZ300103.SZ300105.SZ300107.SZ300113.SZ300114.SZ
300117.SZ300120.SZ300121.SZ300124.SZ300125.SZ300126.SZ300129.SZ300132.SZ300133.SZ300135.SZ
300136.SZ300137.SZ300138.SZ300139.SZ300147.SZ300151.SZ300153.SZ300154.SZ300155.SZ300160.SZ
300167.SZ300170.SZ300175.SZ300185.SZ300193.SZ300200.SZ300204.SZ300205.SZ300206.SZ300207.SZ
300210.SZ300211.SZ300215.SZ300217.SZ300218.SZ300246.SZ
Table A3. Ticker symbol for the 1000 randomly selected stocks in the Shenzhen and Shanghai stock exchanges. This table reports only the stocks traded in the Shanghai market.
Table A3. Ticker symbol for the 1000 randomly selected stocks in the Shenzhen and Shanghai stock exchanges. This table reports only the stocks traded in the Shanghai market.
Selected Stocks in the Shanghai Stock Exchange
600000.SH600004.SH600006.SH600007.SH
600008.SH600009.SH600010.SH600011.SH600015.SH600016.SH600017.SH600020.SH600021.SH600027.SH
600028.SH600029.SH600031.SH600036.SH600037.SH600038.SH600039.SH600048.SH600054.SH600059.SH
600062.SH600064.SH600066.SH600067.SH600072.SH600073.SH600077.SH600078.SH600079.SH600080.SH
600081.SH600082.SH600083.SH600085.SH600088.SH600095.SH600096.SH600098.SH600103.SH600105.SH
600106.SH600108.SH600109.SH600114.SH600115.SH600116.SH600117.SH600118.SH600119.SH600121.SH
600125.SH600126.SH600127.SH600132.SH600135.SH600138.SH600141.SH600143.SH600148.SH600150.SH
600152.SH600156.SH600159.SH600160.SH600161.SH600162.SH600166.SH600169.SH600170.SH600171.SH
600172.SH600176.SH600177.SH600183.SH600184.SH600186.SH600187.SH600190.SH600192.SH600195.SH
600196.SH600202.SH600203.SH600207.SH600210.SH600216.SH600218.SH600219.SH600220.SH600222.SH
600223.SH600230.SH600231.SH600233.SH600236.SH600237.SH600243.SH600248.SH600249.SH600251.SH
600256.SH600260.SH600261.SH600262.SH600265.SH600266.SH600267.SH600269.SH600272.SH600276.SH
600278.SH600279.SH600281.SH600282.SH600283.SH600285.SH600287.SH600288.SH600292.SH600298.SH
600299.SH600300.SH600301.SH600303.SH600305.SH600308.SH600309.SH600310.SH600316.SH600320.SH
600321.SH600322.SH600325.SH600327.SH600329.SH600330.SH600331.SH600333.SH600336.SH600337.SH
600340.SH600343.SH600345.SH600350.SH600351.SH600352.SH600353.SH600354.SH600355.SH600356.SH
600359.SH600360.SH600362.SH600363.SH600366.SH600367.SH600368.SH600370.SH600371.SH600372.SH
600373.SH600376.SH600377.SH600380.SH600382.SH600386.SH600390.SH600391.SH600397.SH600400.SH
600403.SH600409.SH600410.SH600415.SH600418.SH600420.SH600422.SH600425.SH600426.SH600428.SH
600429.SH600435.SH600436.SH600439.SH600446.SH600448.SH600449.SH600452.SH600456.SH600459.SH
600467.SH600470.SH600476.SH600477.SH600479.SH600481.SH600482.SH600487.SH600488.SH600489.SH
600491.SH600493.SH600495.SH600497.SH600498.SH600500.SH600501.SH600502.SH600503.SH600505.SH
600507.SH600508.SH600510.SH600516.SH600517.SH600518.SH600519.SH600521.SH600523.SH600526.SH
600527.SH600528.SH600529.SH600531.SH600533.SH600535.SH600536.SH600537.SH600538.SH600540.SH
600543.SH600545.SH600548.SH600549.SH600557.SH600558.SH600560.SH600561.SH600562.SH600563.SH
600566.SH600567.SH600569.SH600573.SH600582.SH600585.SH600586.SH600588.SH600593.SH600594.SH
600595.SH600597.SH600598.SH600601.SH600604.SH600605.SH600608.SH600611.SH600612.SH600613.SH
600615.SH600616.SH600618.SH600619.SH600620.SH600621.SH600622.SH600623.SH600624.SH600628.SH
600630.SH600635.SH600638.SH600639.SH600640.SH600642.SH600644.SH600647.SH600648.SH600650.SH
600651.SH600657.SH600661.SH600662.SH600663.SH600667.SH600668.SH600676.SH600679.SH600683.SH
600684.SH600688.SH600690.SH600691.SH600692.SH600693.SH600694.SH600697.SH600702.SH600703.SH
600704.SH600706.SH600707.SH600708.SH600712.SH600713.SH600716.SH600717.SH600724.SH600726.SH
600728.SH600731.SH600736.SH600737.SH600741.SH600742.SH600743.SH600744.SH600746.SH600748.SH
600750.SH600755.SH600756.SH600758.SH600765.SH600771.SH600773.SH600774.SH600775.SH600776.SH
600778.SH600779.SH600781.SH600783.SH600785.SH600790.SH600791.SH600792.SH600800.SH600801.SH
600802.SH600805.SH600810.SH600811.SH600812.SH600814.SH600815.SH600818.SH600819.SH600821.SH
600823.SH600824.SH600825.SH600826.SH600830.SH600831.SH600834.SH600835.SH600837.SH600839.SH
600841.SH600843.SH600844.SH600846.SH600851.SH600853.SH600854.SH600855.SH600857.SH600858.SH
600863.SH600867.SH600868.SH600869.SH600872.SH600874.SH600875.SH600879.SH600881.SH600883.SH
600886.SH600888.SH600889.SH600893.SH600894.SH600895.SH600897.SH600900.SH600961.SH600963.SH
600969.SH600970.SH600971.SH600973.SH600975.SH600979.SH600980.SH600982.SH600984.SH600987.SH
600993.SH600995.SH600998.SH600999.SH601000.SH601001.SH601007.SH601008.SH601009.SH601010.SH
601011.SH601018.SH601088.SH601098.SH601099.SH601101.SH601111.SH601116.SH601117.SH601118.SH
601126.SH601137.SH601158.SH601169.SH601177.SH601186.SH601188.SH601199.SH601218.SH601233.SH
601258.SH601311.SH601328.SH601333.SH601369.SH601377.SH601390.SH601398.SH601518.SH601566.SH
601588.SH601600.SH601601.SH601607.SH601616.SH601618.SH601666.SH601668.SH601678.SH601688.SH
601718.SH601766.SH601777.SH601801.SH601808.SH601818.SH601857.SH601866.SH601877.SH601888.SH
601898.SH601899.SH601918.SH601933.SH601939.SH601958.SH601988.SH601991.SH601992.SH601998.SH
Table A4. Details of some example companies among the portfolio of 100 stocks.
Table A4. Details of some example companies among the portfolio of 100 stocks.
TickerCompany Name ENIndustryMarket
000065.SZNorinco InternationalConstructionShenzhen Main Board
000089.SZShenzhen Airport GroupAirportShenzhen Main Board
000420.SZJilin Chemical FibreChemical fiberShenzhen Main Board
300211.SZJiangsu Yitong High-TechCommunication devicesShenzhen Growth
600007.SHChina World Trade CenterPark developmentShanghai Main Board
600109.SHSinolink SecuritiesSecuritiesShanghai Main Board
601799.SHChangzhou XingyuAuto partsShanghai Main Board
601866.SHCOSCO ShippingWater transportationShanghai Main Board
601918.SHSDIC XINJI EnergyCoal miningShanghai Main Board

Appendix C. Nomenclature and List of Mathematical Symbols

r i , t rate of return of asset i at for day t
σ t 2 conditional variance at time t
Σ covariance matrix
( α 0 , α 1 ) parameters of A R ( 1 ) model
( β 0 , β 1 , β 2 ) parameters of G A R C H ( 1 , 1 ) model
( γ 1 , γ 2 ) parameters of D C C model
1 vector with all elements equal to one
ε t vector of innovations at time t
r ^ i , t predicted return of asset i for time t (used in Algorithms 1 and 2)
c o v ^ i , t predicted covariance between asset return i and the equally weighted portfolio return for time t (used in Algorithms 1 and 2)
w t vector of investment weights for time t
element-by-element product between two matrices

References

  1. Box, G.; Jenkins, G. Time Series Analysis Forecasting and Control; Wiley: Hoboken, NJ, USA, 1976. [Google Scholar]
  2. Engle, R. Autoregressive conditional heteroscedasticity with estimates of the variance of united kingrom inflation. Econometrica 1982, 50, 391–407. [Google Scholar] [CrossRef]
  3. Bauwens, L.; Laurent, S.; Rombouts, J. Multivariate GARCH models: A survey. J. Appl. Econom. 2006, 21, 79–109. [Google Scholar] [CrossRef] [Green Version]
  4. Markowitz, H. Portfolio selection. J. Financ. 1952, 7, 77–91. [Google Scholar]
  5. Sharpe, W.F. Mutual fund performance. J. Bus. 1966, 39, 119–138. [Google Scholar] [CrossRef]
  6. Cheng, L.; Shadabfar, M.; Sioofy Khoojine, A. A state-of-the-art review of probabilistic portfolio management for future stock markets. Mathematics 2023, 11, 1148. [Google Scholar] [CrossRef]
  7. Poon, S.H.; Taylor, S.J. Stock returns and volatility: An empirical study of the UK stock market. J. Bank. Financ. 1992, 16, 37–59. [Google Scholar] [CrossRef]
  8. Su, X.; Liu, Z. Sector volatility spillover and economic policy uncertainty: Evidence from China’s stock market. Mathematics 2021, 9, 1411. [Google Scholar] [CrossRef]
  9. Engle, R. Dynamic conditional correlation: A simple class of multivariate generalized autoregressive conditional heteroskedasticity models. J. Bus. Econ. Stat. 2002, 20, 339–350. [Google Scholar] [CrossRef]
  10. Engle, R.; Sheppard, K. Evaluating the Specification of Covariance Models for Large Portfolios; Working Paper; New York University: New York, NY, USA, 2008. [Google Scholar]
  11. Fazlija, B.; Harder, P. Using financial news sentiment for stock price direction prediction. Mathematics 2022, 10, 2156. [Google Scholar] [CrossRef]
  12. Ratchagit, M.; Xu, H. A two-delay combination model for stock price prediction. Mathematics 2022, 10, 3447. [Google Scholar] [CrossRef]
  13. He, K.; Yang, Q.; Ji, L.; Pan, J.; Zou, Y. Financial time series forecasting with the deep learning ensemble model. Mathematics 2023, 11, 1054. [Google Scholar] [CrossRef]
  14. Zhang, X.; Zhang, W.; Xiao, W. Multi-period portfolio optimization under possibility measures. Econ. Model. 2013, 35, 401–408. [Google Scholar] [CrossRef]
  15. Liu, Y.J.; Zhang, W.G.; Zhang, P. A multi-period portfolio selection optimization model by using interval analysis. Econ. Model. 2013, 33, 113–119. [Google Scholar] [CrossRef]
  16. Blay, K.; Gosh, A.; Kusiak, S.; Markowitz, H.; Savoulides, N.; Zheng, Q. Multiperiod portfolio selection: A practical simulation-based framework. J. Investig. Manag. 2020, 18, 94–129. [Google Scholar]
  17. Khattab, H.; Mahafzah, B.A.; Sharieh, A. A hybrid algorithm based on modified chemical reaction optimization and best-first search algorithm for solving minimum vertex cover problem. Neural Comput. Appl. 2022, 34, 15513–15541. [Google Scholar] [CrossRef]
  18. Juan, A.A.; Keenan, P.; Martí, R.; McGarraghy, S.; Panadero, J.; Carroll, P.; Oliva, D. A review of the role of heuristics in stochastic optimisation: From metaheuristics to learnheuristics. Ann. Oper. Res. 2021, 1–13. [Google Scholar] [CrossRef]
  19. Speranza, M.G. A heuristic algorithm for a portfolio optimization model applied to the Milan stock market. Comput. Oper. Res. 1996, 23, 433–441. [Google Scholar] [CrossRef]
  20. Meghwani, S.S.; Thakur, M. Multi-objective heuristic algorithms for practical portfolio optimization and rebalancing with transaction cost. Appl. Soft Comput. 2018, 67, 865–894. [Google Scholar] [CrossRef]
  21. Nystrup, P.; Boyd, S.; Lindström, E.; Madsen, H. Multi-period portfolio selection with drawdown control. Ann. Oper. Res. 2019, 282, 245–271. [Google Scholar] [CrossRef] [Green Version]
  22. Dantzig, G.B.; Infanger, G. Multi-stage stochastic linear programs for portfolio optimization. Ann. Oper. Res. 1993, 45, 59–76. [Google Scholar] [CrossRef] [Green Version]
  23. Boyd, S.; Busseti, E.; Diamond, S.; Kahn, R.N.; Koh, K.; Nystrup, P.; Speth, J. Multi-period trading via convex optimization. Found Trends Optim. 2017, 3, 1–76. [Google Scholar] [CrossRef] [Green Version]
  24. Bengio, Y. Using a financial training criterion rather than a prediction criterion. Int. J. Neural Syst. 1997, 8, 433–443. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  25. Zhang, Z.; Zohren, S.; Roberts, S. Deep learning for portfolio optimization. J. Financ. Data Sci. 2020, 2, 8–20. [Google Scholar] [CrossRef]
  26. Elmachtoub, A.N.; Grigas, P. Smart “predict, then optimize”. Manag. Sci. 2022, 68, 9–26. [Google Scholar] [CrossRef]
  27. Engle, R.; Kelly, B. Dynamic equicorrelation. J. Bus. Econ. Stat. 2012, 30, 212–228. [Google Scholar] [CrossRef]
  28. Ledoit, O.; Wolf, M. Improved estimation of the covariance matrix of stock returns with an application to portfolio selection. J. Empir. Financ. 2003, 10, 603–621. [Google Scholar] [CrossRef] [Green Version]
  29. De Nard, G.; Ledoit, O.; Wolf, M. Factor models for portfolio selection in large dimensions: The good, the better and the ugly. J. Financ. Econom. 2021, 19, 236–257. [Google Scholar] [CrossRef] [Green Version]
  30. Touloumis, A. Nonparametric Stein-type shrinkage covariance matrix estimators in high-dimensional settings. Comput. Stat. Data Anal. 2015, 83, 251–261. [Google Scholar] [CrossRef] [Green Version]
  31. Ledoit, O.; Wolf, M. Nonlinear shrinkage estimation of large-dimensional covariance matrices. Ann. Stat. 2012, 40, 1024–1060. [Google Scholar] [CrossRef]
  32. Caporin, M.; McAleer, M. Robust ranking of multivariate GARCH models by problem dimension. Comput. Stat. Data Anal. 2014, 76, 172–185. [Google Scholar] [CrossRef] [Green Version]
  33. Yuan, M. High dimensional inverse covariance matrix estimation via linear programming. J. Mach. Learn. Res. 2010, 11, 2261–2286. [Google Scholar]
  34. Hansen, P.R.; Lunde, A. A forecast comparison of volatility models: Does anything beat a GARCH(1,1)? J. Appl. Econom. 2005, 20, 873–889. [Google Scholar] [CrossRef] [Green Version]
  35. DeMiguel, V.; Garlappi, L.; Uppal, R. Optimal versus naive diversification: How inefficient is the 1/N portfolio strategy? Rev. Financ. Stud. 2009, 22, 1915–1953. [Google Scholar] [CrossRef] [Green Version]
  36. Elton, E.J.; Gruber, M.J.; Brown, S.J.; Goetzmann, W.N. Modern Portfolio Theory and Investment Analysis; John Wiley & Sons: New York, NY, USA, 2009. [Google Scholar]
  37. Brown, S.J.; Goetzmann, W.; Ibbotson, R.G.; Ross, S.A. Survivorship bias in performance studies. Rev. Financ. Stud. 1992, 5, 553–580. [Google Scholar] [CrossRef] [Green Version]
  38. Leippold, M.; Wang, Q.; Zhou, W. Machine learning in the Chinese stock market. J. Financ. Econ. 2022, 145, 64–82. [Google Scholar] [CrossRef]
  39. Campbell, J.Y.; Thompson, S.B. Predicting excess stock returns out of sample: Can anything beat the historical average? Rev. Financ. Stud. 2008, 21, 1509–1531. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Sampling Scheme. The forecast and investment strategy are evaluated using a rolling window scheme. For each training window w s it follows a forecast for the next s t e p days using one-step ahead forecasts. The process is repeated K times by shifting the training and testing samples s t e p days ahead every time.
Figure 1. Sampling Scheme. The forecast and investment strategy are evaluated using a rolling window scheme. For each training window w s it follows a forecast for the next s t e p days using one-step ahead forecasts. The process is repeated K times by shifting the training and testing samples s t e p days ahead every time.
Mathematics 11 01513 g001
Figure 2. Out-of-sample price performance of the heuristic reward-risk (in blue line), the heuristic max-reward (in green line) and the equally weighted (in red line) portfolios with the 100 stocks.
Figure 2. Out-of-sample price performance of the heuristic reward-risk (in blue line), the heuristic max-reward (in green line) and the equally weighted (in red line) portfolios with the 100 stocks.
Mathematics 11 01513 g002
Figure 3. Out-of-sample price performance of the heuristic reward-risk (in blue line), the heuristic max-reward (in green line) and the equally weighted (in red line) portfolios with the 1000 stocks.
Figure 3. Out-of-sample price performance of the heuristic reward-risk (in blue line), the heuristic max-reward (in green line) and the equally weighted (in red line) portfolios with the 1000 stocks.
Mathematics 11 01513 g003
Figure 4. The daily ratio of shared to be re-weighted in the heuristic reward-risk 100 portfolio, taking into consideration both buy and sell orders. The average daily change in weight denoted with the red line is calculated as a rolling window average of the past 20 days’ changes in weight.
Figure 4. The daily ratio of shared to be re-weighted in the heuristic reward-risk 100 portfolio, taking into consideration both buy and sell orders. The average daily change in weight denoted with the red line is calculated as a rolling window average of the past 20 days’ changes in weight.
Mathematics 11 01513 g004
Figure 5. The daily ratio of shared to be re-weighted in the heuristic max-reward 100 portfolio, taking into consideration both buy and sell orders. The average daily change in weight denoted with the red line is calculated as a rolling window average of the past 20 days’ changes in weight.
Figure 5. The daily ratio of shared to be re-weighted in the heuristic max-reward 100 portfolio, taking into consideration both buy and sell orders. The average daily change in weight denoted with the red line is calculated as a rolling window average of the past 20 days’ changes in weight.
Mathematics 11 01513 g005
Figure 6. The daily ratio of shared to be re-weighted in the heuristic reward-risk 1000 portfolio, taking into consideration both buy and sell orders. The average daily change in weight denoted with the red line is calculated as a rolling window average of the past 20 days’ changes in weight.
Figure 6. The daily ratio of shared to be re-weighted in the heuristic reward-risk 1000 portfolio, taking into consideration both buy and sell orders. The average daily change in weight denoted with the red line is calculated as a rolling window average of the past 20 days’ changes in weight.
Mathematics 11 01513 g006
Figure 7. The daily ratio of shared to be re-weighted in the heuristic max-reward 1000 portfolio, taking into consideration both buy and sell orders. The average daily change in weight denoted with the red line is calculated as a rolling window average of the past 20 days’ changes in weight.
Figure 7. The daily ratio of shared to be re-weighted in the heuristic max-reward 1000 portfolio, taking into consideration both buy and sell orders. The average daily change in weight denoted with the red line is calculated as a rolling window average of the past 20 days’ changes in weight.
Mathematics 11 01513 g007
Table 1. Summary out-of-sample investment performance for the 100 stocks.
Table 1. Summary out-of-sample investment performance for the 100 stocks.
Performance MeasureHeuristic Reward-RiskHeuristic Max-RewardEqually Weighted
Average Return Annualized18.00%22.84%17.27%
Average Standard Annualized23.24%27.20%26.68%
Realized Daily Sharpe Ratio4.97%5.39%4.15%
Average Yearly Transaction Cost7.88%13.21%0%
Table 2. Summary out-of-sample investment performance for the 1000 stocks.
Table 2. Summary out-of-sample investment performance for the 1000 stocks.
Performance MeasureHeuristic Reward-RiskHeuristic Max-RewardEqually Weighted
Average Yearly Return17.30%20.32%16.36%
Average Yearly Standard deviation22.65%26.32%26.35%
Realized Daily Sharpe Ratio4.90%4.95%3.98%
Average Yearly Transaction Cost5.76%7.23%0%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Hu, Y. A Heuristic Approach to Forecasting and Selection of a Portfolio with Extra High Dimensions. Mathematics 2023, 11, 1513. https://doi.org/10.3390/math11061513

AMA Style

Hu Y. A Heuristic Approach to Forecasting and Selection of a Portfolio with Extra High Dimensions. Mathematics. 2023; 11(6):1513. https://doi.org/10.3390/math11061513

Chicago/Turabian Style

Hu, Yujia. 2023. "A Heuristic Approach to Forecasting and Selection of a Portfolio with Extra High Dimensions" Mathematics 11, no. 6: 1513. https://doi.org/10.3390/math11061513

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