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

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.

[1]  Atul Singhal,et al.  overconfidence , 2001, The Lancet.

[2]  Behavioral biases of informed traders: Evidence from insider trading on the 52-week high , 2019, Journal of Empirical Finance.

[3]  Takao Terano,et al.  Analyzing the Influence of Overconfident Investors on Financial Markets Through Agent-Based Model , 2007, IDEAL.

[4]  Dehua Shen,et al.  An empirical analysis of the Adaptive Market Hypothesis with calendar effects:Evidence from China , 2019 .

[5]  M. Lundeberg,et al.  Highly Confident, but Wrong: Gender Differences and Similarities in Confidence Judgments. , 1994 .

[6]  D. Schiereck,et al.  Contrarian and Momentum Strategies in Germany , 1999 .

[7]  W. Marsden I and J , 2012 .

[8]  Hal R. Varian,et al.  Big Data: New Tricks for Econometrics , 2014 .

[9]  Cäzilia Loibl,et al.  Gender Differences in Investment Behavior , 2008 .

[10]  Nian-Sheng Tang,et al.  The roles of mean residence time on herd behavior in a financial market , 2016 .

[11]  Yangru Wu,et al.  Momentum and mean reversion across national equity markets , 2006 .

[12]  Numan Ülkü,et al.  Foreign investor trading behavior has evolved , 2019, Journal of Multinational Financial Management.

[13]  Tomoya Suzuki,et al.  Financial technical indicator based on chaotic bagging predictors for adaptive stock selection in Japanese and American markets , 2016 .

[14]  Liang Zhao,et al.  Network-Based High Level Data Classification , 2012, IEEE Transactions on Neural Networks and Learning Systems.

[15]  R. Souza,et al.  Momentum , 2017, Jornal brasileiro de pneumologia : publicacao oficial da Sociedade Brasileira de Pneumologia e Tisilogia.

[16]  John Okunev,et al.  Do Momentum-Based Strategies Still Work in Foreign Currency Markets? , 2003, Journal of Financial and Quantitative Analysis.

[17]  N. Barberis,et al.  What Drives the Disposition Effect? An Analysis of a Long-Standing Preference-Based Explanation , 2006 .

[18]  Patryk Babiarz,et al.  Does cognitive aging affect portfolio choice? , 2018, Journal of Economic Psychology.

[19]  Ji Yeol Jimmy Oh,et al.  Foreigners at the gate? Foreign investor trading and the disposition effect of domestic individual investors , 2019, The North American Journal of Economics and Finance.

[20]  H. Zou,et al.  Regularization and variable selection via the elastic net , 2005 .

[21]  Brad M. Barber,et al.  Boys Will Be Boys: Gender, Overconfidence, and Common Stock Investment , 1998 .

[22]  Christophe Boya From efficient markets to adaptive markets: Evidence from the French stock exchange , 2019, Research in International Business and Finance.

[23]  Daniela M. Witten,et al.  An Introduction to Statistical Learning: with Applications in R , 2013 .

[24]  T. Jappelli,et al.  Awareness and Stock Market Participation , 2005 .

[25]  Pak Ming Hui,et al.  An agent-based model of stock markets incorporating momentum investors , 2013 .

[26]  Liang Zhao,et al.  Network-Based Stochastic Semisupervised Learning , 2012, IEEE Transactions on Neural Networks and Learning Systems.

[27]  L. Spierdijk,et al.  Mean reversion in stock prices , 2017 .

[28]  James D. Hamilton,et al.  Long Swings in the Dollar: Are They in the Data and Do Markets Know It? The American Economic Review , 1990 .

[29]  Benjamin Miranda Tabak,et al.  Testing for predictability in emerging equity markets , 2004 .

[30]  K. Arrow,et al.  EXISTENCE OF AN EQUILIBRIUM FOR A COMPETITIVE ECONOMY , 1954 .

[31]  A. Lo,et al.  Stock Market Prices Do Not Follow Random Walks: Evidence from a Simple Specification Test , 1987 .

[32]  E. Fama,et al.  Permanent and Temporary Components of Stock Prices , 1988, Journal of Political Economy.

[33]  Momentum and Mean-Reversion in Commodity Spot and Futures Markets , 2016 .

[34]  Liang Zhao,et al.  Stochastic Competitive Learning in Complex Networks , 2012, IEEE Transactions on Neural Networks and Learning Systems.

[35]  Fabricio A. Breve Machine learning in complex networks , 2010 .

[36]  Juhani T. Linnainmaa,et al.  IQ and Stock Market Participation , 2010 .

[37]  Speculative trading, price pressure and overvaluation , 2011 .

[38]  E. Hacihasanoglu,et al.  Not all emerging markets are the same: A classification approach with correlation based networks , 2017 .

[39]  Gautam Kaul,et al.  An Anatomy of Trading Strategies , 1998 .

[40]  Andrew Urquhart,et al.  Are stock markets really efficient? Evidence of the Adaptive Market Hypothesis , 2016 .

[41]  Margarida Abreu How biased is the behavior of the individual investor in warrants? , 2019, Research in International Business and Finance.

[42]  Steven J. Bosworth,et al.  Overconfidence, Incentives and Digit Ratio , 2016, Scientific Reports.

[43]  Blake LeBaron,et al.  Empirical regularities from interacting long- and short-memory investors in an agent-based stock market , 2001, IEEE Trans. Evol. Comput..

[44]  Christopher M. Bishop,et al.  Pattern Recognition and Machine Learning (Information Science and Statistics) , 2006 .

[45]  Chen Liu,et al.  Media coverage and investor scare behavior diffusion , 2019, Physica A: Statistical Mechanics and its Applications.

[46]  Yong Shi,et al.  Sentiment contagion analysis of interacting investors: Evidence from China’s stock forum , 2019, Physica A: Statistical Mechanics and its Applications.

[47]  Benjamin Miranda Tabak,et al.  Market efficiency of Brazilian exchange rate: Evidence from variance ratio statistics and technical trading rules , 2009, Eur. J. Oper. Res..

[48]  B. Tabak,et al.  Testing for Predictability in Equity Returns for European Transition Markets , 2006 .

[49]  Aaas News,et al.  Book Reviews , 1893, Buffalo Medical and Surgical Journal.

[50]  J. Ignacio.,et al.  Daily seasonality and stock market reforms in Spain , 1995 .

[51]  Annika E. Sundén,et al.  Gender Differences in the Allocation of Assets in Retirement Savings Plans , 1998 .

[52]  B. Tabak,et al.  Testing for time-varying long-range dependence in real state equity returns , 2008 .

[53]  SchiereckDirk,et al.  Contrarian and Momentum Strategies in Germany , 1999 .

[54]  M. Statman,et al.  The disposition to sell winners too early and ride losers too long , 1985 .

[55]  H. Simon,et al.  "Models of Man"@@@Models of Man: Social and Rational. Mathematical Essays on Rational Human Behavior in a Social Setting. , 1959 .

[56]  Harry Eugene Stanley,et al.  Confidence and the Stock Market: An Agent-Based Approach , 2014, PloS one.

[57]  Alessandro Sbuelz,et al.  Momentum and Mean Reversion in Strategic Asset Allocation , 2009, Manag. Sci..

[58]  David Mazursky,et al.  Taking Stock of Stockbrokers: Exploring Momentum versus Contrarian Investor Strategies and Profiles , 2002 .