Predicting Twitter stock price using linear regression, random forest, and MLP regression
Abstract
Since the chaos and complexity in the stock market, predicting stock prices with machinery approaches helps assert a new perspective for people to reach satisfactory results in stock analysis. The stock price of Twitter reflects its market value and performance, which are influenced by various factors such as user engagement, revenue, news, and sentiment. Predicting the stock price of Twitter is a challenging task that requires sophisticated methods and data analysis. In this essay, the author compares three different machine learning models to predict Twitter’s stock price: linear regression, random forest, and MLP regression. The paper uses historical data on Twitter’s stock price and various features such as volume, peak value, and trough value. The researcher evaluates the performance of each model using metrics such as Mean-squared Error and R-squared and finds that MLP regression outperforms the accuracy and generalization of the other two models. The author also discusses the limitations and implications of our findings for investors and researchers.
References
- Hamoudi, H. Elseifi, M. A. 2021, Stock Market Prediction using CNN and LSTM, (Stanford University).
- Orsel, O. E. Yamada, S. S. 2022, Comparative Study of Machine Learning Models for Stock Price Prediction. (ArXiv.org).
- Huang, Y. Capretz, L. F. Ho, D. 2021, Machine learning for stock prediction based on fundamental analysis. (In 2021 IEEE Symposium Series on Computational Intelligence), pp. 01-10.
- Kumar, V. Rani, M. 2020, A Comparative Performance Analysis of Linear Regression, Random Forest, and MLP Regression Models for Stock Price Prediction, (International Journal of Scientific Research in Computer Science and Engineering, vol. 8), no. 1, pp. 528-533.
- Wang, X. Mao, Y. Zhu, Z. Tao, X. 2017, Stock price prediction with LSTM and random forest, (IEEE International Conference on Big Data), pp. 233-238.
- Saeid, P. A. Du, N. Cai, L. Yang, J.-C. Bi, Z. Chen, L. 2023, A federated learning-enabled predictive analysis to forecast stock market trends. (Journal of Ambient Intelligence and Humanized Computing, vol. 14), no. 4, pp. 4529–4535.
- Cakra, Y. E. Trisedya, B. D. 2015, Stock price prediction using linear regression based on sentiment analysis. (In 2015 international conference on advanced computer science and information systems), pp. 147-154.
- Skiera, B. Reiner, J. Albers, S. 2022, Regression Analysis. In: Homburg, C., Klarmann, M., Vomberg, A. (eds) Handbook of Market Research, (Springer, Cham).
- García, S. Ramírez-Gallego, S. Luengo, J. Benítez, J. M. Herrera, F. 2016, Big data preprocessing: methods and prospects. (Big Data Analytics, vol. 1), no. 1.
- Shahril Khuzairi, N.M. Che Cob, Z. 2021, A Preliminary Model of Learning Analytics to Explore Data Visualization on Educator’s Satisfaction and Academic Performance in Higher Education. (Lecture Notes in Computer Science, vol. 13051. ).
- Breiman, L. 2001, Random Forests. (Machine Learning, vol. 45), no. 1, pp. 5–32.
- Chai, T. Draxler, R. R. 2014, Root mean square error (RMSE) or mean absolute error (MAE). (Geoscientific model development discussions, vol. 7), no. 1, pp. 1525-1534.
- Pardo, C. Rodríguez, J.J. García-Osorio, C. Maudes, J. 2010, An Empirical Study of Multilayer Perceptron Ensembles for Regression Tasks. In: García-Pedrajas, N., Herrera, F., Fyfe, C., Benítez, J.M., Ali, M. (eds) Trends in Applied Intelligent Systems. IEA/AIE 2010. (Lecture Notes in Computer Science, vol. 6097).
- Janković, R. Amelio, A. 2018, Comparing multilayer perceptron and multiple regression models for predicting energy use in the balkans. (arXiv preprint arXiv:1810.11333).
- Kingsmore, K. M. Puglisi, C. E. Grammer, A. C. Lipsky, P. E. 2021, An introduction to machine learning and analysis of its use in rheumatic diseases. (Nature Reviews Rheumatology, vol. 17), no. 12, pp. 710-730.