IDEAS home Printed from https://ideas.repec.org/a/gam/jeners/v12y2019i22p4291-d285712.html
   My bibliography  Save this article

Forecasting Oil Price Using Web-based Sentiment Analysis

Author

Listed:
  • Lu-Tao Zhao

    (School of Mathematics and Physics, University of Science and Technology Beijing, Beijing 100083, China
    Center for Energy and Environmental Policy Research & School of Management and Economics, Beijing Institute of Technology, Beijing 100081, China)

  • Guan-Rong Zeng

    (School of Mathematics and Physics, University of Science and Technology Beijing, Beijing 100083, China)

  • Wen-Jing Wang

    (School of Mathematics and Physics, University of Science and Technology Beijing, Beijing 100083, China)

  • Zhi-Gang Zhang

    (School of Mathematics and Physics, University of Science and Technology Beijing, Beijing 100083, China)

Abstract

International oil price forecasting is a complex and important issue in the research area of energy economy. In this paper, a new model based on web-based sentiment analysis is proposed. For the oil market, sentiment analysis is used to extract key information from web texts from the four perspectives of: compound, negative, neutral, and positive sentiment. These are constructed as feature and input into oil price forecasting models with oil price itself. Finally, we analyze the effect in various views and get some interesting discoveries. The results show that the root mean squared error can be reduced by about 0.2 and the error variance by 0.2, which means that the accuracy and stability are thereby improved. Furthermore, we find that different types of sentiments can all improve performance but by similar amounts. Last but not least, text with strong intensity can better support oil price forecasting than weaker text, for which the root mean squared error can be reduced by up to 0.5, and the number of the bad cases is reduced by 20%, indicating that text with strong intensity can correct the original oil price forecast. We believe that our research will play a strong supporting role in future research on using web information for oil price forecasting.

Suggested Citation

  • Lu-Tao Zhao & Guan-Rong Zeng & Wen-Jing Wang & Zhi-Gang Zhang, 2019. "Forecasting Oil Price Using Web-based Sentiment Analysis," Energies, MDPI, vol. 12(22), pages 1-18, November.
  • Handle: RePEc:gam:jeners:v:12:y:2019:i:22:p:4291-:d:285712
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1996-1073/12/22/4291/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1996-1073/12/22/4291/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Ji, Qiang & Guo, Jian-Feng, 2015. "Oil price volatility and oil-related events: An Internet concern study perspective," Applied Energy, Elsevier, vol. 137(C), pages 256-264.
    2. Yao, Ting & Zhang, Yue-Jun & Ma, Chao-Qun, 2017. "How does investor attention affect international crude oil prices?," Applied Energy, Elsevier, vol. 205(C), pages 336-344.
    3. Tule, Moses K. & Ndako, Umar B. & Onipede, Samuel F., 2017. "Oil price shocks and volatility spillovers in the Nigerian sovereign bond market," Review of Financial Economics, Elsevier, vol. 35(C), pages 57-65.
    4. Duc Hong Vo & Tan Ngoc Vu & Anh The Vo & Michael McAleer, 2019. "Modeling the Relationship between Crude Oil and Agricultural Commodity Prices," Energies, MDPI, vol. 12(7), pages 1-41, April.
    5. Adrangi, Bahram & Chatrath, Arjun & Dhanda, Kanwalroop Kathy & Raffiee, Kambiz, 2001. "Chaos in oil prices? Evidence from futures markets," Energy Economics, Elsevier, vol. 23(4), pages 405-425, July.
    6. 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.
    7. 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.
    8. Naser, Hanan, 2016. "Estimating and forecasting the real prices of crude oil: A data rich model using a dynamic model averaging (DMA) approach," Energy Economics, Elsevier, vol. 56(C), pages 75-87.
    9. Wang, Minggang & Zhao, Longfeng & Du, Ruijin & Wang, Chao & Chen, Lin & Tian, Lixin & Eugene Stanley, H., 2018. "A novel hybrid method of forecasting crude oil prices using complex network science and artificial intelligence algorithms," Applied Energy, Elsevier, vol. 220(C), pages 480-495.
    10. Ho, Kin-Yip & Shi, Yanlin & Zhang, Zhaoyong, 2013. "How does news sentiment impact asset volatility? Evidence from long memory and regime-switching approaches," The North American Journal of Economics and Finance, Elsevier, vol. 26(C), pages 436-456.
    11. Kayalar, Derya Ezgi & Küçüközmen, C. Coşkun & Selcuk-Kestel, A. Sevtap, 2017. "The impact of crude oil prices on financial market indicators: copula approach," Energy Economics, Elsevier, vol. 61(C), pages 162-173.
    12. Zhao, Lu-Tao & Wang, Yi & Guo, Shi-Qiu & Zeng, Guan-Rong, 2018. "A novel method based on numerical fitting for oil price trend forecasting," Applied Energy, Elsevier, vol. 220(C), pages 154-163.
    13. Ma, Feng & Liu, Jing & Wahab, M.I.M. & Zhang, Yaojie, 2018. "Forecasting the aggregate oil price volatility in a data-rich environment," Economic Modelling, Elsevier, vol. 72(C), pages 320-332.
    14. Zhao, Lu-Tao & Liu, Kun & Duan, Xin-Lei & Li, Ming-Fang, 2019. "Oil price risk evaluation using a novel hybrid model based on time-varying long memory," Energy Economics, Elsevier, vol. 81(C), pages 70-78.
    15. Wang, Jie & Wang, Jun, 2016. "Forecasting energy market indices with recurrent neural networks: Case study of crude oil price fluctuations," Energy, Elsevier, vol. 102(C), pages 365-374.
    16. Wang, Jue & Athanasopoulos, George & Hyndman, Rob J. & Wang, Shouyang, 2018. "Crude oil price forecasting based on internet concern using an extreme learning machine," International Journal of Forecasting, Elsevier, vol. 34(4), pages 665-677.
    17. Huang, Shupei & An, Haizhong & Huang, Xuan & Wang, Yue, 2018. "Do all sectors respond to oil price shocks simultaneously?," Applied Energy, Elsevier, vol. 227(C), pages 393-402.
    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. Simionescu, Mihaela, 2022. "Econometrics of sentiments- sentometrics and machine learning: The improvement of inflation predictions in Romania using sentiment analysis," Technological Forecasting and Social Change, Elsevier, vol. 182(C).
    2. Tserenpurev Chuluunsaikhan & Ga-Ae Ryu & Kwan-Hee Yoo & HyungChul Rah & Aziz Nasridinov, 2020. "Incorporating Deep Learning and News Topic Modeling for Forecasting Pork Prices: The Case of South Korea," Agriculture, MDPI, vol. 10(11), pages 1-22, October.
    3. Lucey, Brian & Ren, Boru, 2021. "Does news tone help forecast oil?," Economic Modelling, Elsevier, vol. 104(C).
    4. Jiangwei Liu & Xiaohong Huang, 2021. "Forecasting Crude Oil Price Using Event Extraction," Papers 2111.09111, arXiv.org.
    5. Kai Chen & Rabea Jamil Mahfoud & Yonghui Sun & Dongliang Nan & Kaike Wang & Hassan Haes Alhelou & Pierluigi Siano, 2020. "Defect Texts Mining of Secondary Device in Smart Substation with GloVe and Attention-Based Bidirectional LSTM," Energies, MDPI, vol. 13(17), pages 1-17, September.
    6. Kais Tissaoui & Taha Zaghdoudi & Abdelaziz Hakimi & Ousama Ben-Salha & Lamia Ben Amor, 2022. "Does Uncertainty Forecast Crude Oil Volatility before and during the COVID-19 Outbreak? Fresh Evidence Using Machine Learning Models," Energies, MDPI, vol. 15(15), pages 1-20, August.

    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. He, Mengxi & Zhang, Yaojie & Wen, Danyan & Wang, Yudong, 2021. "Forecasting crude oil prices: A scaled PCA approach," Energy Economics, Elsevier, vol. 97(C).
    2. Tang, Ling & Zhang, Chengyuan & Li, Ling & Wang, Shouyang, 2020. "A multi-scale method for forecasting oil price with multi-factor search engine data," Applied Energy, Elsevier, vol. 257(C).
    3. Lu-Tao Zhao & Guan-Rong Zeng & Ling-Yun He & Ya Meng, 2020. "Forecasting Short-Term Oil Price with a Generalised Pattern Matching Model Based on Empirical Genetic Algorithm," Computational Economics, Springer;Society for Computational Economics, vol. 55(4), pages 1151-1169, April.
    4. Abdollahi, Hooman, 2020. "A novel hybrid model for forecasting crude oil price based on time series decomposition," Applied Energy, Elsevier, vol. 267(C).
    5. Guo, Jingjun & Zhao, Zhengling & Sun, Jingyun & Sun, Shaolong, 2022. "Multi-perspective crude oil price forecasting with a new decomposition-ensemble framework," Resources Policy, Elsevier, vol. 77(C).
    6. Li, Jingjing & Tang, Ling & Wang, Shouyang, 2020. "Forecasting crude oil price with multilingual search engine data," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 551(C).
    7. Li, Jinchao & Zhu, Shaowen & Wu, Qianqian, 2019. "Monthly crude oil spot price forecasting using variational mode decomposition," Energy Economics, Elsevier, vol. 83(C), pages 240-253.
    8. Radosław Puka & Bartosz Łamasz & Marek Michalski, 2021. "Effectiveness of Artificial Neural Networks in Hedging against WTI Crude Oil Price Risk," Energies, MDPI, vol. 14(11), pages 1-26, June.
    9. Taiyong Li & Yingrui Zhou & Xinsheng Li & Jiang Wu & Ting He, 2019. "Forecasting Daily Crude Oil Prices Using Improved CEEMDAN and Ridge Regression-Based Predictors," Energies, MDPI, vol. 12(19), pages 1-25, September.
    10. Zhao, Yuan & Zhang, Weiguo & Gong, Xue & Wang, Chao, 2021. "A novel method for online real-time forecasting of crude oil price," Applied Energy, Elsevier, vol. 303(C).
    11. Li Jingjing & Tang Ling & Li Ling, 2020. "The Co-Movements Between Crude Oil Price and Internet Concerns: Causality Analysis in the Frequency Domain," Journal of Systems Science and Information, De Gruyter, vol. 8(3), pages 224-239, June.
    12. Zhao, Lu-Tao & Wang, Dai-Song & Ren, Zhong-Yuan, 2024. "The impact of joint events on oil price volatility: Evidence from a dynamic graphical news analysis model," Economic Modelling, Elsevier, vol. 130(C).
    13. Lu-Tao Zhao & Li-Na Liu & Zi-Jie Wang & Ling-Yun He, 2019. "Forecasting Oil Price Volatility in the Era of Big Data: A Text Mining for VaR Approach," Sustainability, MDPI, vol. 11(14), pages 1-20, July.
    14. Fiszeder, Piotr & Fałdziński, Marcin & Molnár, Peter, 2023. "Attention to oil prices and its impact on the oil, gold and stock markets and their covariance," Energy Economics, Elsevier, vol. 120(C).
    15. Zhao, Lu-Tao & Wang, Yi & Guo, Shi-Qiu & Zeng, Guan-Rong, 2018. "A novel method based on numerical fitting for oil price trend forecasting," Applied Energy, Elsevier, vol. 220(C), pages 154-163.
    16. Lu-Tao Zhao & Shun-Gang Wang & Zhi-Gang Zhang, 2020. "Oil Price Forecasting Using a Time-Varying Approach," Energies, MDPI, vol. 13(6), pages 1-16, March.
    17. Li, Mingchen & Cheng, Zishu & Lin, Wencan & Wei, Yunjie & Wang, Shouyang, 2023. "What can be learned from the historical trend of crude oil prices? An ensemble approach for crude oil price forecasting," Energy Economics, Elsevier, vol. 123(C).
    18. 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).
    19. Zhang, Yue-Jun & Li, Zhao-Chen, 2021. "Forecasting the stock returns of Chinese oil companies: Can investor attention help?," International Review of Economics & Finance, Elsevier, vol. 76(C), pages 531-555.
    20. Liu, Siyao & Fang, Wei & Gao, Xiangyun & Wang, Ze & An, Feng & Wen, Shaobo, 2020. "Self-similar behaviors in the crude oil market," Energy, Elsevier, vol. 211(C).

    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:gam:jeners:v:12:y:2019:i:22:p:4291-:d:285712. 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.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.