IDEAS home Printed from https://ideas.repec.org/a/hin/complx/4325125.html
   My bibliography  Save this article

Modeling Investor Behavior Using Machine Learning: Mean-Reversion and Momentum Trading Strategies

Author

Listed:
  • Thiago Christiano Silva
  • Benjamin Miranda Tabak
  • Idamar Magalhães Ferreira

Abstract

We model investor behavior by training machine learning techniques with financial data comprising more than 13,000 investors of a large bank in Brazil over 2016 to 2018. We take high-frequency data on every sell or buy operation of these investors on a daily basis, allowing us to fully track these investment decisions over time. We then analyze whether these investment changes correlate with the IBOVESPA index. We find that investors decide their investment strategies using recent past price changes. There is some degree of heterogeneity in investment decisions. Overall, we find evidence of mean-reverting investment strategies. We also find evidence that female investors and higher academic degree have a less pronounced mean-reverting strategy behavior comparatively to male investors and those with lower academic degree. Finally, this paper provides a general methodological approach to mitigate potential biases arising from ad-hoc design decisions of discarding or introducing variables in empirical econometrics. For that, we use feature selection techniques from machine learning to identify relevant variables in an objective and concise way.

Suggested Citation

  • Thiago Christiano Silva & Benjamin Miranda Tabak & Idamar Magalhães Ferreira, 2019. "Modeling Investor Behavior Using Machine Learning: Mean-Reversion and Momentum Trading Strategies," Complexity, Hindawi, vol. 2019, pages 1-14, December.
  • Handle: RePEc:hin:complx:4325125
    DOI: 10.1155/2019/4325125
    as

    Download full text from publisher

    File URL: http://downloads.hindawi.com/journals/8503/2019/4325125.pdf
    Download Restriction: no

    File URL: http://downloads.hindawi.com/journals/8503/2019/4325125.xml
    Download Restriction: no

    File URL: https://libkey.io/10.1155/2019/4325125?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Park, Keun Woo & Jeong, Seong Hoon & Oh, Ji Yeol Jimmy, 2019. "Foreigners at the gate? Foreign investor trading and the disposition effect of domestic individual investors," The North American Journal of Economics and Finance, Elsevier, vol. 49(C), pages 165-180.
    2. Luigi Guiso & Tullio Jappelli, 2005. "Awareness and Stock Market Participation," Review of Finance, European Finance Association, vol. 9(4), pages 537-567.
    3. Chang, Eui Jung & Lima, Eduardo Jose Araujo & Tabak, Benjamin Miranda, 2004. "Testing for predictability in emerging equity markets," Emerging Markets Review, Elsevier, vol. 5(3), pages 295-316, September.
    4. Xiong, Xiong & Meng, Yongqiang & Li, Xiao & Shen, Dehua, 2019. "An empirical analysis of the Adaptive Market Hypothesis with calendar effects:Evidence from China," Finance Research Letters, Elsevier, vol. 31(C).
    5. Fama, Eugene F & French, Kenneth R, 1988. "Permanent and Temporary Components of Stock Prices," Journal of Political Economy, University of Chicago Press, vol. 96(2), pages 246-273, April.
    6. Li, Jiang-Cheng & Li, Yun-Xian & Tang, Nian-Sheng & Mei, Dong-Cheng, 2016. "The roles of mean residence time on herd behavior in a financial market," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 462(C), pages 350-357.
    7. Suzuki, Tomoya & Ohkura, Yuushi, 2016. "Financial technical indicator based on chaotic bagging predictors for adaptive stock selection in Japanese and American markets," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 442(C), pages 50-66.
    8. Shi, Yong & Tang, Ye-ran & Long, Wen, 2019. "Sentiment contagion analysis of interacting investors: Evidence from China’s stock forum," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 523(C), pages 246-259.
    9. Lee, Eunju & Piqueira, Natalia, 2019. "Behavioral biases of informed traders: Evidence from insider trading on the 52-week high," Journal of Empirical Finance, Elsevier, vol. 52(C), pages 56-75.
    10. Engel, Charles & Hamilton, James D, 1990. "Long Swings in the Dollar: Are They in the Data and Do Markets Know It?," American Economic Review, American Economic Association, vol. 80(4), pages 689-713, September.
    11. Conrad, Jennifer & Kaul, Gautam, 1998. "An Anatomy of Trading Strategies," Review of Financial Studies, Society for Financial Studies, vol. 11(3), pages 489-519.
    12. Schiereck, D. & De Bondt, W. & Weber, M., 1999. "Contrarian and Momentum Strategies in Germany," Publications of Darmstadt Technical University, Institute for Business Studies (BWL) 35306, Darmstadt Technical University, Department of Business Administration, Economics and Law, Institute for Business Studies (BWL).
    13. Cajueiro, Daniel O. & Tabak, Benjamin M., 2006. "Testing for predictability in equity returns for European transition markets," Economic Systems, Elsevier, vol. 30(1), pages 56-78, March.
    14. Ding, Rong & Cheng, Peng, 2011. "Speculative trading, price pressure and overvaluation," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 21(3), pages 419-442, July.
    15. Abreu, Margarida, 2019. "How biased is the behavior of the individual investor in warrants?," Research in International Business and Finance, Elsevier, vol. 47(C), pages 139-149.
    16. Cajueiro, Daniel O. & Tabak, Benjamin M., 2008. "Testing for time-varying long-range dependence in real state equity returns," Chaos, Solitons & Fractals, Elsevier, vol. 38(1), pages 293-307.
    17. Neyse, Levent & Bosworth, Steven & Ring, Patrick & Schmidt, Ulrich, 2016. "Overconfidence, Incentives and Digit Ratio," Open Access Publications from Kiel Institute for the World Economy 130145, Kiel Institute for the World Economy (IfW Kiel).
    18. Onishchenko, Olena & Ülkü, Numan, 2019. "Foreign investor trading behavior has evolved," Journal of Multinational Financial Management, Elsevier, vol. 51(C), pages 98-115.
    19. Shefrin, Hersh & Statman, Meir, 1985. "The Disposition to Sell Winners Too Early and Ride Losers Too Long: Theory and Evidence," Journal of Finance, American Finance Association, vol. 40(3), pages 777-790, July.
    20. Hal R. Varian, 2014. "Big Data: New Tricks for Econometrics," Journal of Economic Perspectives, American Economic Association, vol. 28(2), pages 3-28, Spring.
    21. Andrew W. Lo, A. Craig MacKinlay, 1988. "Stock Market Prices do not Follow Random Walks: Evidence from a Simple Specification Test," Review of Financial Studies, Society for Financial Studies, vol. 1(1), pages 41-66.
    22. Ralph S. J. Koijen & Juan Carlos Rodríguez & Alessandro Sbuelz, 2009. "Momentum and Mean Reversion in Strategic Asset Allocation," Management Science, INFORMS, vol. 55(7), pages 1199-1213, July.
    23. Morrin, Maureen, et al, 2002. "Taking Stock of Stockbrokers: Exploring Momentum versus Contrarian Investor Strategies and Profiles," Journal of Consumer Research, Journal of Consumer Research Inc., vol. 29(2), pages 188-198, September.
    24. Poterba, James M. & Summers, Lawrence H., 1988. "Mean reversion in stock prices : Evidence and Implications," Journal of Financial Economics, Elsevier, vol. 22(1), pages 27-59, October.
    25. Boya, Christophe M., 2019. "From efficient markets to adaptive markets: Evidence from the French stock exchange," Research in International Business and Finance, Elsevier, vol. 49(C), pages 156-165.
    26. Chaves, Denis B. & Viswanathan, Vivek, 2016. "Momentum and mean-reversion in commodity spot and futures markets," Journal of Commodity Markets, Elsevier, vol. 3(1), pages 39-53.
    27. Liu, Chen & Li, Xuefei, 2019. "Media coverage and investor scare behavior diffusion," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 527(C).
    28. Mitchell A. Petersen, 2009. "Estimating Standard Errors in Finance Panel Data Sets: Comparing Approaches," Review of Financial Studies, Society for Financial Studies, vol. 22(1), pages 435-480, January.
    29. Okunev, John & White, Derek, 2003. "Do Momentum-Based Strategies Still Work in Foreign Currency Markets?," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 38(2), pages 425-447, June.
    30. Balvers, Ronald J. & Wu, Yangru, 2006. "Momentum and mean reversion across national equity markets," Journal of Empirical Finance, Elsevier, vol. 13(1), pages 24-48, January.
    31. Mario A Bertella & Felipe R Pires & Ling Feng & Harry Eugene Stanley, 2014. "Confidence and the Stock Market: An Agent-Based Approach," PLOS ONE, Public Library of Science, vol. 9(1), pages 1-9, January.
    32. Margarida Abreu, 2017. "How Biased is the Behavior of the Individual Investor in Warrants?," Working Papers REM 2017/07, ISEG - Lisbon School of Economics and Management, REM, Universidade de Lisboa.
    33. Brad M. Barber & Terrance Odean, 2001. "Boys will be Boys: Gender, Overconfidence, and Common Stock Investment," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 116(1), pages 261-292.
    34. Wei, J.R. & Huang, J.P. & Hui, P.M., 2013. "An agent-based model of stock markets incorporating momentum investors," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 392(12), pages 2728-2735.
    35. Pak, Tae-Young & Babiarz, Patryk, 2018. "Does cognitive aging affect portfolio choice?," Journal of Economic Psychology, Elsevier, vol. 66(C), pages 1-12.
    36. Urquhart, Andrew & McGroarty, Frank, 2016. "Are stock markets really efficient? Evidence of the adaptive market hypothesis," International Review of Financial Analysis, Elsevier, vol. 47(C), pages 39-49.
    37. Sunden, Annika E & Surette, Brian J, 1998. "Gender Differences in the Allocation of Assets in Retirement Savings Plans," American Economic Review, American Economic Association, vol. 88(2), pages 207-211, May.
    38. Sensoy, Ahmet & Ozturk, Kevser & Hacihasanoglu, Erk & Tabak, Benjamin M., 2017. "Not all emerging markets are the same: A classification approach with correlation based networks," Journal of Financial Stability, Elsevier, vol. 33(C), pages 163-186.
    39. Hui Zou & Trevor Hastie, 2005. "Addendum: Regularization and variable selection via the elastic net," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 67(5), pages 768-768, November.
    40. Mark Grinblatt & Matti Keloharju & Juhani Linnainmaa, 2011. "IQ and Stock Market Participation," Journal of Finance, American Finance Association, vol. 66(6), pages 2121-2164, December.
    41. Hui Zou & Trevor Hastie, 2005. "Regularization and variable selection via the elastic net," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 67(2), pages 301-320, April.
    42. Tabak, Benjamin M. & Lima, Eduardo J.A., 2009. "Market efficiency of Brazilian exchange rate: Evidence from variance ratio statistics and technical trading rules," European Journal of Operational Research, Elsevier, vol. 194(3), pages 814-820, May.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Cynthia Pagliaro & Dhagash Mehta & Han-Tai Shiao & Shaofei Wang & Luwei Xiong, 2021. "Investor Behavior Modeling by Analyzing Financial Advisor Notes: A Machine Learning Perspective," Papers 2107.05592, arXiv.org.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Simarjeet Singh & Nidhi Walia, 2022. "Momentum investing: a systematic literature review and bibliometric analysis," Management Review Quarterly, Springer, vol. 72(1), pages 87-113, February.
    2. repec:wvu:wpaper:09-14 is not listed on IDEAS
    3. Adam Zaremba & Jacob Koby Shemer, 2018. "Price-Based Investment Strategies," Springer Books, Springer, number 978-3-319-91530-2, June.
    4. Hyeongwoo Kim & Liliana Stern & Michael Stern, 2009. "Nonlinear mean reversion in the G7 stock markets," Applied Financial Economics, Taylor & Francis Journals, vol. 19(5), pages 347-355.
    5. Akarim, Yasemin Deniz & Sevim, Serafettin, 2013. "The impact of mean reversion model on portfolio investment strategies: Empirical evidence from emerging markets," Economic Modelling, Elsevier, vol. 31(C), pages 453-459.
    6. Balvers, Ronald J. & Wu, Yangru, 2006. "Momentum and mean reversion across national equity markets," Journal of Empirical Finance, Elsevier, vol. 13(1), pages 24-48, January.
    7. Wen-Jun Xue & Li-Wen Zhang, 2016. "Stock Return Autocorrelations and Predictability in the Chinese Stock Market: Evidence from Threshold Quantile Autoregressive Models," Working Papers 1605, Florida International University, Department of Economics.
    8. Boya, Christophe M., 2019. "From efficient markets to adaptive markets: Evidence from the French stock exchange," Research in International Business and Finance, Elsevier, vol. 49(C), pages 156-165.
    9. Minye Zhang & Yongheng Deng, 2010. "Is the Mean Return of Hotel Real Estate Stocks Apt to Overreact to Past Performance?," The Journal of Real Estate Finance and Economics, Springer, vol. 40(4), pages 497-543, May.
    10. Dewandaru, Ginanjar & Masih, Rumi & Bacha, Obiyathulla Ismath & Masih, A. Mansur. M., 2015. "Developing trading strategies based on fractal finance: An application of MF-DFA in the context of Islamic equities," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 438(C), pages 223-235.
    11. Zaremba, Adam & Kizys, Renatas & Raza, Muhammad Wajid, 2020. "The long-run reversal in the long run: Insights from two centuries of international equity returns," Journal of Empirical Finance, Elsevier, vol. 55(C), pages 177-199.
    12. Stephen Foerster, 2011. "Double then Nothing: Why Stock Investments Relying on Simple Heuristics May Disappoint," Review of Behavioral Finance, Emerald Group Publishing Limited, vol. 3(2), pages 115-140, September.
    13. Serban, Alina F., 2010. "Combining mean reversion and momentum trading strategies in foreign exchange markets," Journal of Banking & Finance, Elsevier, vol. 34(11), pages 2720-2727, November.
    14. Moskowitz, Tobias J. & Ooi, Yao Hua & Pedersen, Lasse Heje, 2012. "Time series momentum," Journal of Financial Economics, Elsevier, vol. 104(2), pages 228-250.
    15. John B. Donaldson & Rajnish Mehra, 2021. "Average crossing time: An alternative characterization of mean aversion and reversion," Quantitative Economics, Econometric Society, vol. 12(3), pages 903-944, July.
    16. Sandrine Jacob Leal, 2015. "Fundamentalists, chartists and asset pricing anomalies," Quantitative Finance, Taylor & Francis Journals, vol. 15(11), pages 1837-1850, November.
    17. Guiso, Luigi & Sodini, Paolo, 2013. "Household Finance: An Emerging Field," Handbook of the Economics of Finance, in: G.M. Constantinides & M. Harris & R. M. Stulz (ed.), Handbook of the Economics of Finance, volume 2, chapter 0, pages 1397-1532, Elsevier.
    18. Hon, Mark T. & Tonks, Ian, 2003. "Momentum in the UK stock market," Journal of Multinational Financial Management, Elsevier, vol. 13(1), pages 43-70, February.
    19. He, Xue-Zhong & Li, Kai & Li, Youwei, 2018. "Asset allocation with time series momentum and reversal," Journal of Economic Dynamics and Control, Elsevier, vol. 91(C), pages 441-457.
    20. Xue, Wen-Jun & Zhang, Li-Wen, 2017. "Stock return autocorrelations and predictability in the Chinese stock market—Evidence from threshold quantile autoregressive models," Economic Modelling, Elsevier, vol. 60(C), pages 391-401.
    21. Ahn, Yongkil, 2022. "The anatomy of the disposition effect: Which factors are most important?," Finance Research Letters, Elsevier, vol. 44(C).

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:hin:complx:4325125. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Mohamed Abdelhakeem (email available below). General contact details of provider: https://www.hindawi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.