IDEAS home Printed from https://ideas.repec.org/a/eee/energy/v247y2022ics0360544222003747.html
   My bibliography  Save this article

Investor sentiment and machine learning: Predicting the price of China's crude oil futures market

Author

Listed:
  • Jiang, Zhe
  • Zhang, Lin
  • Zhang, Lingling
  • Wen, Bo

Abstract

Sentiment analysis technology has made it possible to precisely calculate the daily reactions and opinions of investors, which has been found to have a significant influence on financial asset pricing. Thus, in this study, we examine the impacts that predictive power investor sentiment has over the price of China's crude oil. We first constructed investor sentiment indexes of China's crude oil futures based on specific economic variables and comments found on one of the most active online financial forums. Then, five popular machine learning tools were utilized to generate predictions. According to our findings, the long short-term memory model combined with the composite sentiment index performed the best due to a lower rate of prediction errors and greater directional accuracy for time-series forecasting of one-day-ahead prices. In this way, this study could aid researchers to more effectively investigate the energy sector which is rapidly changing and highly speculative in nature

Suggested Citation

  • Jiang, Zhe & Zhang, Lin & Zhang, Lingling & Wen, Bo, 2022. "Investor sentiment and machine learning: Predicting the price of China's crude oil futures market," Energy, Elsevier, vol. 247(C).
  • Handle: RePEc:eee:energy:v:247:y:2022:i:c:s0360544222003747
    DOI: 10.1016/j.energy.2022.123471
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0360544222003747
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.energy.2022.123471?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
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Hu, Rui & Hu, Weihao & Gökmen, Nuri & Li, Pengfei & Huang, Qi & Chen, Zhe, 2019. "High resolution wind speed forecasting based on wavelet decomposed phase space reconstruction and self-organizing map," Renewable Energy, Elsevier, vol. 140(C), pages 17-31.
    2. Malcolm Baker & Jeffrey Wurgler, 2006. "Investor Sentiment and the Cross‐Section of Stock Returns," Journal of Finance, American Finance Association, vol. 61(4), pages 1645-1680, August.
    3. Lv, Fei & Yang, Chen & Fang, Libing, 2020. "Do the crude oil futures of the Shanghai International Energy Exchange improve asset allocation of Chinese petrochemical-related stocks?," International Review of Financial Analysis, Elsevier, vol. 71(C).
    4. Al-Nasseri, Alya & Menla Ali, Faek & Tucker, Allan, 2021. "Investor sentiment and the dispersion of stock returns: Evidence based on the social network of investors," International Review of Financial Analysis, Elsevier, vol. 78(C).
    5. Li, Xuerong & Shang, Wei & Wang, Shouyang, 2019. "Text-based crude oil price forecasting: A deep learning approach," International Journal of Forecasting, Elsevier, vol. 35(4), pages 1548-1560.
    6. Malcolm Baker & Jeffrey Wurgler, 2007. "Investor Sentiment in the Stock Market," Journal of Economic Perspectives, American Economic Association, vol. 21(2), pages 129-152, Spring.
    7. Dutta, Anupam & Bouri, Elie & Saeed, Tareq, 2021. "News-based equity market uncertainty and crude oil volatility," Energy, Elsevier, vol. 222(C).
    8. Miao, Hong & Ramchander, Sanjay & Wang, Tianyang & Yang, Dongxiao, 2017. "Influential factors in crude oil price forecasting," Energy Economics, Elsevier, vol. 68(C), pages 77-88.
    9. Ali, Fahad & Ülkü, Numan, 2020. "Weekday seasonality of stock returns: The contrary case of China," Journal of Asian Economics, Elsevier, vol. 68(C).
    10. Ruan, Qingsong & Wang, Zilin & Zhou, Yaping & Lv, Dayong, 2020. "A new investor sentiment indicator (ISI) based on artificial intelligence: A powerful return predictor in China," Economic Modelling, Elsevier, vol. 88(C), pages 47-58.
    11. Wu, Chih-Chiang & Chung, Huimin & Chang, Yu-Hsien, 2012. "The economic value of co-movement between oil price and exchange rate using copula-based GARCH models," Energy Economics, Elsevier, vol. 34(1), pages 270-282.
    12. Kim, Soon-Ho & Kim, Dongcheol, 2014. "Investor sentiment from internet message postings and the predictability of stock returns," Journal of Economic Behavior & Organization, Elsevier, vol. 107(PB), pages 708-729.
    13. Broadstock, David C. & Cheng, Louis T.W., 2019. "Time-varying relation between black and green bond price benchmarks: Macroeconomic determinants for the first decade," Finance Research Letters, Elsevier, vol. 29(C), pages 17-22.
    14. Granger, C W J, 1969. "Investigating Causal Relations by Econometric Models and Cross-Spectral Methods," Econometrica, Econometric Society, vol. 37(3), pages 424-438, July.
    15. Stambaugh, Robert F. & Yu, Jianfeng & Yuan, Yu, 2012. "The short of it: Investor sentiment and anomalies," Journal of Financial Economics, Elsevier, vol. 104(2), pages 288-302.
    16. Shi, Xunpeng & Wang, Keying & Cheong, Tsun Se & Zhang, Hongwu, 2020. "Prioritizing driving factors of household carbon emissions: An application of the LASSO model with survey data," Energy Economics, Elsevier, vol. 92(C).
    17. Çepni, Oğuzhan & Guney, I. Ethem & Gupta, Rangan & Wohar, Mark E., 2020. "The role of an aligned investor sentiment index in predicting bond risk premia of the U.S," Journal of Financial Markets, Elsevier, vol. 51(C).
    18. Zhang, Yaojie & Ma, Feng & Wang, Yudong, 2019. "Forecasting crude oil prices with a large set of predictors: Can LASSO select powerful predictors?," Journal of Empirical Finance, Elsevier, vol. 54(C), pages 97-117.
    19. Weiguo Zhang & Xue Gong & Chao Wang & Xin Ye, 2021. "Predicting stock market volatility based on textual sentiment: A nonlinear analysis," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 40(8), pages 1479-1500, December.
    20. Smales, Lee A., 2014. "News sentiment in the gold futures market," Journal of Banking & Finance, Elsevier, vol. 49(C), pages 275-286.
    21. Diebold, Francis X & Mariano, Roberto S, 2002. "Comparing Predictive Accuracy," Journal of Business & Economic Statistics, American Statistical Association, vol. 20(1), pages 134-144, January.
    22. Simon Alfano & Stefan Feuerriegel & Dirk Neumann, 2020. "Language sentiment in fundamental and noise trading: evidence from crude oil," Applied Economics, Taylor & Francis Journals, vol. 52(49), pages 5343-5363, October.
    23. Ghoddusi, Hamed & Creamer, Germán G. & Rafizadeh, Nima, 2019. "Machine learning in energy economics and finance: A review," Energy Economics, Elsevier, vol. 81(C), pages 709-727.
    24. Wang, Yudong & Wu, Chongfeng & Yang, Li, 2014. "Oil price shocks and agricultural commodity prices," Energy Economics, Elsevier, vol. 44(C), pages 22-35.
    25. Gabriele Ranco & Darko Aleksovski & Guido Caldarelli & Miha Grčar & Igor Mozetič, 2015. "The Effects of Twitter Sentiment on Stock Price Returns," PLOS ONE, Public Library of Science, vol. 10(9), pages 1-21, September.
    26. Dai, Zhifeng & Kang, Jie, 2021. "Bond yield and crude oil prices predictability," Energy Economics, Elsevier, vol. 97(C).
    27. Jian Yang & Yinggang Zhou, 2020. "Return and volatility transmission between China's and international crude oil futures markets: A first look," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 40(6), pages 860-884, June.
    28. Nikitopoulos, Christina Sklibosios & Squires, Matthew & Thorp, Susan & Yeung, Danny, 2017. "Determinants of the crude oil futures curve: Inventory, consumption and volatility," Journal of Banking & Finance, Elsevier, vol. 84(C), pages 53-67.
    29. He, Ling T. & Casey, K.M., 2015. "Forecasting ability of the investor sentiment endurance index: The case of oil service stock returns and crude oil prices," Energy Economics, Elsevier, vol. 47(C), pages 121-128.
    30. Zhu, Huiming & Guo, Yawei & You, Wanhai & Xu, Yaqin, 2016. "The heterogeneity dependence between crude oil price changes and industry stock market returns in China: Evidence from a quantile regression approach," Energy Economics, Elsevier, vol. 55(C), pages 30-41.
    31. Omer Berat Sezer & Mehmet Ugur Gudelek & Ahmet Murat Ozbayoglu, 2019. "Financial Time Series Forecasting with Deep Learning : A Systematic Literature Review: 2005-2019," Papers 1911.13288, arXiv.org.
    32. Paul C. Tetlock, 2007. "Giving Content to Investor Sentiment: The Role of Media in the Stock Market," Journal of Finance, American Finance Association, vol. 62(3), pages 1139-1168, June.
    33. Werner Antweiler & Murray Z. Frank, 2004. "Is All That Talk Just Noise? The Information Content of Internet Stock Message Boards," Journal of Finance, American Finance Association, vol. 59(3), pages 1259-1294, June.
    34. Sepehr Ramyar & Farhad Kianfar, 2019. "Forecasting Crude Oil Prices: A Comparison Between Artificial Neural Networks and Vector Autoregressive Models," Computational Economics, Springer;Society for Computational Economics, vol. 53(2), pages 743-761, February.
    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. Mingyang Zhang & Heyan Xu & Ning Ma & Xinglin Pan, 2022. "Intelligent Vehicle Sales Prediction Based on Online Public Opinion and Online Search Index," Sustainability, MDPI, vol. 14(16), pages 1-17, August.
    2. Huang, Wenyang & Gao, Tianxiao & Hao, Yun & Wang, Xiuqing, 2023. "Transformer-based forecasting for intraday trading in the Shanghai crude oil market: Analyzing open-high-low-close prices," Energy Economics, Elsevier, vol. 127(PA).
    3. Marcus Vinicius Santos & Fernando Morgado-Dias & Thiago C. Silva, 2023. "Oil Sector and Sentiment Analysis—A Review," Energies, MDPI, vol. 16(12), pages 1-29, June.

    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. Li, Xiao, 2020. "When financial literacy meets textual analysis: A conceptual review," Journal of Behavioral and Experimental Finance, Elsevier, vol. 28(C).
    2. Marlene Amstad & Leonardo Gambacorta & Chao He & Dora Xia, 2021. "Trade sentiment and the stock market: new evidence based on big data textual analysis of Chinese media," BIS Working Papers 917, Bank for International Settlements.
    3. Renault, Thomas, 2017. "Intraday online investor sentiment and return patterns in the U.S. stock market," Journal of Banking & Finance, Elsevier, vol. 84(C), pages 25-40.
    4. Mahmoudi, Nader & Docherty, Paul & Melia, Adrian, 2022. "Firm-level investor sentiment and corporate announcement returns," Journal of Banking & Finance, Elsevier, vol. 144(C).
    5. Naeem, Muhammad Abubakr & Farid, Saqib & Faruk, Balli & Shahzad, Syed Jawad Hussain, 2020. "Can happiness predict future volatility in stock markets?," Research in International Business and Finance, Elsevier, vol. 54(C).
    6. Zeitun, Rami & Rehman, Mobeen Ur & Ahmad, Nasir & Vo, Xuan Vinh, 2023. "The impact of Twitter-based sentiment on US sectoral returns," The North American Journal of Economics and Finance, Elsevier, vol. 64(C).
    7. Enwei Zhu & Jing Wu & Hongyu Liu & Keyang Li, 2023. "A Sentiment Index of the Housing Market in China: Text Mining of Narratives on Social Media," The Journal of Real Estate Finance and Economics, Springer, vol. 66(1), pages 77-118, January.
    8. Ung, Sze Nie & Gebka, Bartosz & Anderson, Robert D.J., 2023. "Is sentiment the solution to the risk–return puzzle? A (cautionary) note," Journal of Behavioral and Experimental Finance, Elsevier, vol. 37(C).
    9. Fang, Hao & Chung, Chien-Ping & Lu, Yang-Cheng & Lee, Yen-Hsien & Wang, Wen-Hao, 2021. "The impacts of investors' sentiments on stock returns using fintech approaches," International Review of Financial Analysis, Elsevier, vol. 77(C).
    10. Khuu, Joyce & Durand, Robert B. & Smales, Lee A., 2016. "Melancholia and Japanese stock returns – 2003 to 2012," Pacific-Basin Finance Journal, Elsevier, vol. 40(PB), pages 424-437.
    11. Cheng, Xian & Wu, Peng & Liao, Stephen Shaoyi & Wang, Xuelian, 2023. "An integrated model for crude oil forecasting: Causality assessment and technical efficiency," Energy Economics, Elsevier, vol. 117(C).
    12. Chen, Cathy Yi-Hsuan & Fengler, Matthias R. & Härdle, Wolfgang Karl & Liu, Yanchu, 2022. "Media-expressed tone, option characteristics, and stock return predictability," Journal of Economic Dynamics and Control, Elsevier, vol. 134(C).
    13. N. Banholzer & S. Heiden & D. Schneller, 2019. "Exploiting investor sentiment for portfolio optimization," Business Research, Springer;German Academic Association for Business Research, vol. 12(2), pages 671-702, December.
    14. Wang, Wenzhao & Duxbury, Darren, 2021. "Institutional investor sentiment and the mean-variance relationship: Global evidence," Journal of Economic Behavior & Organization, Elsevier, vol. 191(C), pages 415-441.
    15. Song, Ziyu & Yu, Changrui, 2022. "Investor sentiment indices based on k-step PLS algorithm: A group of powerful predictors of stock market returns," International Review of Financial Analysis, Elsevier, vol. 83(C).
    16. Chen, Zhongdong & Daves, Phillip R., 2018. "The January sentiment effect in the U.S. stock market," International Review of Financial Analysis, Elsevier, vol. 59(C), pages 94-104.
    17. Anand, Abhinav & Basu, Sankarshan & Pathak, Jalaj & Thampy, Ashok, 2021. "The impact of sentiment on emerging stock markets," International Review of Economics & Finance, Elsevier, vol. 75(C), pages 161-177.
    18. Piñeiro-Chousa, Juan & López-Cabarcos, M. Ángeles & Pérez-Pico, Ada María & Ribeiro-Navarrete, Belén, 2018. "Does social network sentiment influence the relationship between the S&P 500 and gold returns?," International Review of Financial Analysis, Elsevier, vol. 57(C), pages 57-64.
    19. Ruan, Qingsong & Wang, Zilin & Zhou, Yaping & Lv, Dayong, 2020. "A new investor sentiment indicator (ISI) based on artificial intelligence: A powerful return predictor in China," Economic Modelling, Elsevier, vol. 88(C), pages 47-58.
    20. Zongwu Cai & Pixiong Chen, 2022. "New Online Investor Sentiment and Asset Returns," WORKING PAPERS SERIES IN THEORETICAL AND APPLIED ECONOMICS 202216, University of Kansas, Department of Economics, revised Nov 2022.

    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:eee:energy:v:247:y:2022:i:c:s0360544222003747. 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: Catherine Liu (email available below). General contact details of provider: http://www.journals.elsevier.com/energy .

    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.