Submitted:
10 February 2024
Posted:
12 February 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
- The PAE framework is introduced to employ two distinct schemes to efficiently ensemble four different types of trend estimators.
- The PAE framework augments the performance of original trend estimators through reasonable evaluation and weighting.
- The hyperparameters are tuned based on the oldest dataset to avoid overfitting. Extensive experiments are conducted on six real-world datasets to demonstrate our algorithm not only outperforms competing strategies in terms of multiple evaluation criteria, but also has promising scalability of transaction costs.
2. Problem Setting
3. Related Works
3.1. Trend Estimator
3.2. Ensemble Learning
4. Methodology
4.1. Passive Aggressive Ensemble
4.2. Online Portfolio Selection with Multiple Trend Estimators
4.3. Solving Algorithm
| Algorithm 1 PAE framework |
![]() |
4.4. Complexity Analysis
5. Experiments and Results
5.1. Data
5.2. Competing Portfolio Srategies
- BAH: the uniform Buy-And-Hold trading strategy. The strategy invests equally in assets at the onset and maintains this allocation throughout.
- OLMAR [9]: It takes the moving average to predict the future price. The parameters are set as: and .
- PPT [10]: It takes the PP in recent time window to predict the future price. The parameters are set as: and .
- AICTR [25]: The adaptive input and composite trend representation combines three trends (SMA, EMA, PP) and market conditions through radial basis functions. The parameters are set as: , , and .
- SPOLC [16]: The short-term portfolio optimization with loss control strategy with the window size 𝑤 = 5 and the mixing parameter 𝛾 = 0.025.
5.3. Evaluation Critteria
- Cumulative wealth. The cumulative wealth (CW) is utilized as the key evaluation metric for the investment performance of each portfolio selection algorithm.
- Annualized Percentage Yield. The annualized percentage yield (APY) is a widely used metric for evaluating investment returns. It represents the average return of a strategy over the course of a year. APY is computed as follow:where represents the number of years according to trading days. In this study, all datasets consist of daily prices. Therefore, is calculated as divided by 252, which is the average number of annual trading days.
- Sharpe ratio. In the realm of financial trading, it is often observed that higher returns are accompanied by elevated levels of risk. Thus, it is crucial for an investment algorithm to strike a balance between maximizing returns and managing risks. The Sharpe Ratio (SR) serves as a widely utilized metric for evaluating risk-adjusted returns and is defined as follows:Where is the return of a risk-free asset and is set to 0 in this paper since we do not consider a risk-free asset, is the standard deviation of return estimated by the samples in trading periods.
- Calmar ratio. The Calmar Ration (CR) [36] is a comparison of the average annual compound return and the maximum drawdown (MDD) risk, which is widely adopted in fund management. The calculation formula is CR=APY/MDD, where .
5.4. Results
5.4.1. Parameter Setting
5.4.2. Ensemble Effectiveness
5.4.3. Comparison Studies
5.4.4. Transaction Costs
5.4.5. Running Time
6. Conclusion and Future Work
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Appendix A
Appendix B
References
- Li B, Hoi S C H. Online portfolio selection: A survey[J]. ACM Computing Surveys (CSUR), 2014, 46(3): 1-36. [CrossRef]
- Lai Z R, Yang H. A survey on gaps between mean-variance approach and exponential growth rate approach for portfolio optimization[J]. ACM Computing Surveys (CSUR), 2022, 55(2): 1-36. [CrossRef]
- Agarwal A, Hazan E, Kale S, et al. Algorithms for portfolio management based on the newton method[C]//Proceedings of the 23rd international conference on Machine learning. 2006: 9-16. [CrossRef]
- Györfi L, Udina F, Walk H. Nonparametric nearest neighbor based empirical portfolio selection strategies[J]. 2008. [CrossRef]
- Kahneman D, Tversky A. Prospect theory: An analysis of decision under risk[M]//Handbook of the fundamentals of financial decision making: Part I. 2013: 99-127. [CrossRef]
- Shiller R, J. From efficient markets theory to behavioral finance[J]. Journal of economic perspectives, 2003, 17(1): 83-104. [CrossRef]
- Li B, Zhao P, Hoi S C H, et al. PAMR: Passive aggressive mean reversion strategy for portfolio selection[J]. Machine learning, 2012, 87: 221-258. [CrossRef]
- Li B, Hoi S C H, Zhao P, et al. Confidence weighted mean reversion strategy for online portfolio selection[J]. ACM Transactions on Knowledge Discovery from Data (TKDD), 2013, 7(1): 1-38. [CrossRef]
- Li B, Hoi S C H, Sahoo D, et al. Moving average reversion strategy for on-line portfolio selection[J]. Artificial Intelligence, 2015, 222: 104-123. [CrossRef]
- Lai Z R, Dai D Q, Ren C X, et al. A peak price tracking-based learning system for portfolio selection[J]. IEEE Transactions on Neural Networks and Learning Systems, 2017, 29(7): 2823-2832. [CrossRef]
- Dai H L, Liang C X, Dai H M, et al. An online portfolio strategy based on trend promote price tracing ensemble learning algorithm[J]. Knowledge-Based Systems, 2022, 239: 107957. [CrossRef]
- Fern A, Givan R. Online ensemble learning: An empirical study[J]. Machine Learning, 2003, 53: 71-109.
- Von Krannichfeldt L, Wang Y, Hug G. Online ensemble learning for load forecasting[J]. IEEE Transactions on Power Systems, 2020, 36(1): 545-548. [CrossRef]
- Helmbold D P, Schapire R E, Singer Y, et al. On-line portfolio selection using multiplicative updates[J]. Mathematical Finance, 1998, 8(4): 325-347. [CrossRef]
- Li Y, Zheng X, Chen C, et al. Exponential gradient with momentum for online portfolio selection[J]. Expert Systems with Applications, 2022, 187: 115889. [CrossRef]
- Lai Z R, Tan L, Wu X, et al. Loss control with rank-one covariance estimate for short-term portfolio optimization[J]. The Journal of Machine Learning Research, 2020, 21(1): 3815-3851.
- Dai H L, Huang C Y, Dai H M, et al. A novel adjusted learning algorithm for online portfolio selection using peak price tracking approach[J]. Decision Analytics Journal, 2023: 100256. [CrossRef]
- Cai X, Ye Z. Gaussian weighting reversion strategy for accurate online portfolio selection[J]. IEEE Transactions on Signal Processing, 2019, 67(21): 5558-5570. [CrossRef]
- Cai, X. Vector autoregressive weighting reversion strategy for online portfolio selection[C]//Proceedings of the twenty-ninth international conference on international joint conferences on artificial intelligence. 2021: 4469-4475.
- Wu B, Lyu B, Gu J. Weighted Multivariate Mean Reversion for Online Portfolio Selection[C]//Joint European Conference on Machine Learning and Knowledge Discovery in Databases. Cham: Springer Nature Switzerland, 2023: 255-270.
- Guo, Sini, et al. “Online portfolio selection with state-dependent price estimators and transaction costs.” European Journal of Operational Research (2023).
- Guo S, Gu J W, Ching W K. Adaptive online portfolio selection with transaction costs[J]. European Journal of Operational Research, 2021, 295(3): 1074-1086. [CrossRef]
- Kumar A, Segev A. Bayesian Ensembled Knowledge Extraction Strategy for Online Portfolio Selection[C]//2022 IEEE International Conference on Big Data (Big Data). IEEE, 2022: 4148-4156.
- Duchi J, Shalev-Shwartz S, Singer Y, et al. Efficient projections onto the l 1-ball for learning in high dimensions[C]//Proceedings of the 25th international conference on Machine learning. 2008: 272-279.
- Lai Z R, Dai D Q, Ren C X, et al. Radial basis functions with adaptive input and composite trend representation for portfolio selection[J]. IEEE Transactions on Neural Networks and Learning Systems, 2018, 29(12): 6214-6226. [CrossRef]
- De Boer, Pieter-Tjerk, et al. “A tutorial on the cross-entropy method.” Annals of operations research 134 (2005): 19-67. [CrossRef]
- Huang D, Zhou J, Li B, et al. Robust median reversion strategy for online portfolio selection[J]. IEEE Transactions on Knowledge and Data Engineering, 2016, 28(9): 2480-2493. [CrossRef]
- Crammer, Koby, et al. “Online Passive-Aggressive Algorithms.” Journal of Machine Learning Research 7.19 (2006): 551-585.
- Aldridge, Irene. High-frequency trading: a practical guide to algorithmic strategies and trading systems. Vol. 604. John Wiley & Sons, 2013.
- Cover, Thomas M. “Universal portfolios.” Mathematical finance 1.1 (1991): 1-29. [CrossRef]
- Borodin, Allan, Ran El-Yaniv, and Vincent Gogan. “Can we learn to beat the best stock.” Advances in Neural Information Processing Systems 16 (2003).
- Zhang, Yong, et al. “Combining expert weights for online portfolio selection based on the gradient descent algorithm.” Knowledge-Based Systems 234 (2021): 107533. [CrossRef]
- Li, Bin, et al. “Transaction cost optimization for online portfolio selection.” Quantitative Finance 18.8 (2018): 1411-1424. [CrossRef]
- Grinold, Richard C., and Ronald N. Kahn. “Active portfolio management.” (2000).
- Treynor, Jack L., and Fischer Black. “How to use security analysis to improve portfolio selection.” The journal of business 46.1 (1973): 66-86.
- Young T, W. Calmar ratio: A smoother tool[J]. Futures, 1991, 20(1): 40.



| Type | Strategies | Complexity |
| Single trend estimator | OLMAR | |
| PPT | ||
| Multiple trend estimators | AICTR | |
| PAE |
| Dataset | Region | Time | Days | Assets |
| NYSE(O)* | US | 3/7/1962 - 31/12/1984 | 5651 | 36 |
| NYSE(N) | US | 1/1/1985 - 30/6/2010 | 6431 | 23 |
| TSE | CA | 4/1/1994 - 31/12/1998 | 1259 | 88 |
| MSCI | Global | 1/4/2006 - 31/3/2010 | 1043 | 24 |
| NYSE19 | US | 2/1/2015 - 4/9/2019 | 1167 | 47 |
| ZZ28 | CN | 4/1/2000 - 1/4/2020 | 4905 | 28 |
| ETF23 | CN | 1/2/2021-1/10/2023 | 647 | 23 |
| Trend estimator | NYSE(N) | MSCI | TSE | ZZ28 | NYSE19 | ETF23 |
| PP | 2.08E+09 | 8.33 | 226.84 | 906.7 | 1.46 | 1.4 |
| EMA | 4.64E+08 | 23.6 | 680.83 | 283.58 | 2.46 | 1.69 |
| SMA | 4.26E+08 | 14.1 | 76.77 | 134.64 | 1.14 | 1.26 |
| IP | 1.16E+06 | 10.28 | 1.39E+03 | 185.13 | 9.34 | 0.84 |
| PAE-C | 6.83E+08 | 23.63 | 706 | 348.31 | 2.51 | 1.29 |
| PAE-R | 4.15E+09 | 14.98 | 2.26E+03 | 867.83 | 2.44 | 1.71 |
| Dataset | Metrics | BAH | OLMAR | PPT | AICTR | SPOLC | PAE-C | PAE-R |
| NYSE(N) | CW | 18.29 | 4.19E+08 | 2.63E+09 | 1.01E+09 | 1.99E+07 | 6.83E+08 | 4.15E+09 |
| APY | 0.121 | 1.177 | 1.339 | 1.254 | 0.932 | 1.219 | 1.382 | |
| SR | 0.046 | 0.104 | 0.108 | 0.106 | 0.105 | 0.105 | 0.113 | |
| IR | -0.025 | 0.096 | 0.102 | 0.099 | 0.095 | 0.097 | 0.107 | |
| CR | 0.225 | 1.28 | 1.561 | 1.374 | 1.082 | 1.298 | 1.629 | |
| MSCI | CW | 0.89 | 14.5 | 7.99 | 12.38 | 7.34 | 23.63 | 14.98 |
| APY | -0.027 | 0.908 | 0.652 | 0.837 | 0.618 | 1.147 | 0.923 | |
| SR | 0.001 | 0.116 | 0.09 | 0.108 | 0.09 | 0.132 | 0.116 | |
| IR | -0.036 | 0.169 | 0.136 | 0.158 | 0.132 | 0.193 | 0.17 | |
| CR | -0.041 | 1.889 | 1.269 | 2.026 | 1.13 | 2.677 | 1.901 | |
| TSE | CW | 1.56 | 57.79 | 265.05 | 544.47 | 277.1 | 706 | 2.26E+03 |
| APY | 0.093 | 1.252 | 2.055 | 2.529 | 2.083 | 2.717 | 3.692 | |
| SR | 0.048 | 0.082 | 0.101 | 0.111 | 0.111 | 0.114 | 0.129 | |
| IR | -0.002 | 0.078 | 0.098 | 0.108 | 0.107 | 0.111 | 0.127 | |
| CR | 0.311 | 1.527 | 2.672 | 3.81 | 4.087 | 4.779 | 5.127 | |
| ZZ28 | CW | 31.76 | 124.58 | 922.47 | 195.73 | 853.07 | 348.31 | 867.83 |
| APY | 0.194 | 0.281 | 0.42 | 0.311 | 0.415 | 0.351 | 0.416 | |
| SR | 0.048 | 0.05 | 0.063 | 0.053 | 0.068 | 0.057 | 0.063 | |
| IR | 0.002 | 0.024 | 0.044 | 0.029 | 0.044 | 0.034 | 0.043 | |
| CR | 0.335 | 0.389 | 0.583 | 0.436 | 0.711 | 0.474 | 0.548 | |
| NYSE19 | CW | 1.37 | 0.98 | 1.5 | 1.79 | 2.45 | 2.51 | 2.44 |
| APY | 0.07 | -0.005 | 0.092 | 0.133 | 0.214 | 0.22 | 0.213 | |
| SR | 0.034 | 0.018 | 0.028 | 0.032 | 0.04 | 0.04 | 0.039 | |
| IR | -0.022 | 0.009 | 0.021 | 0.024 | 0.033 | 0.033 | 0.032 | |
| CA | 0.288 | -0.006 | 0.113 | 0.168 | 0.299 | 0.277 | 0.301 | |
| ETF23 | CW | 0.87 | 1.19 | 1.41 | 1.28 | 0.84 | 1.29 | 1.71 |
| APY | -0.053 | 0.07 | 0.143 | 0.102 | -0.064 | 0.104 | 0.231 | |
| SR | -0.012 | 0.023 | 0.034 | 0.028 | -0.003 | 0.029 | 0.048 | |
| IR | -0.005 | 0.036 | 0.051 | 0.043 | 0.005 | 0.043 | 0.067 | |
| CR | -0.185 | 0.156 | 0.375 | 0.24 | -0.181 | 0.224 | 0.532 |
| Statistics | NYSE(N) | MSCI | TSE | ZZ28 | NYSE19 | ETF23 | ||||||
| PAE-C | PAE-R | PAE-C | PAE-R | PAE-C | PAE-R | PAE-C | PAE-R | PAE-C | PAE-R | PAE-C | PAE-R | |
| 0.0030 | 0.0033 | 0.0033 | 0.0029 | 0.0061 | 0.0071 | 0.0007 | 0.0009 | 0.0009 | 0.0014 | 0.0008 | 0.0012 | |
| 1.3411 | 1.3561 | 1.2009 | 1.1946 | 2.2057 | 2.0434 | 1.0666 | 1.0718 | 1.7696 | 1.4239 | 1.1315 | 1.1495 | |
| t-statistics | 7.3420 | 8.0863 | 6.3287 | 5.5531 | 3.6954 | 4.2855 | 2.2146 | 2.8055 | 1.3519 | 1.7481 | 1.1124 | 1.7443 |
| p-value | 0.0000 | 0.0000 | 0.0000 | 0.0000 | 0.0002 | 0.0000 | 0.0268 | 0.0050 | 0.1769 | 0.0807 | 0.2664 | 0.0816 |
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. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
