Stock price prediction has been a subject of significant interest in the financial mathematics field. Recently, interest in natural language processing models has increased, and among them, transformer models, such as BERT and FinBERT, are attracting attention. This study uses a mathematical framework to investigate the effects of human sentiment on stock movements, especially in text data. In particular, FinBERT, a domain-specific language model based on BERT tailored for financial language, was employed for the sentiment analysis on the financial texts to extract sentiment information. In this study, we use “summary” text data extracted from The New York Times, representing concise summaries of news articles. Accordingly, we apply FinBERT to the summary text data to calculate sentiment scores. In addition, we employ the LSTM (Long short-term memory) methodology, one of the machine learning models, for stock price prediction using sentiment scores. Furthermore, the LSTM model was trained by stock price data and the estimated sentiment scores. We compared the predictive power of LSTM models with and without sentiment analysis based on error measures such as MSE, RMSE, and MAE. The empirical results demonstrated that including sentiment scores through the LSTM model led to improved prediction accuracy for all three measures. These findings indicate the significance of incorporating news sentiment into stock price predictions, shedding light on the potential impact of psychological factors on financial markets. By using the FinBERT transformer model, this study aimed to investigate the interplay between sentiment and stock price predictions, contributing to a deeper understanding of mathematical-based sentiment analysis in finance and its role in enhancing forecasting in financial mathematics. Furthermore, we show that using summary data instead of entire news articles is a useful strategy for mathematical-based sentiment analysis.
Accurately forecasting crude oil prices is crucial due to its vital role in the industrial economy. In this study, we explored the multifaceted impact of various financial, economic, and political factors on the forecasting of crude oil forward prices and volatility. We used various machine learning models to forecast oil forward prices and volatility based on their superior predictive power. Furthermore, we employed the SHAP framework to analyze individual features to identify their contributions in terms of the prediction. According to our findings, factors contributing to oil forward prices and volatility can be summarized into four key focal outcomes. First, it was confirmed that soybean forward pricing overwhelmingly contributes to oil forward pricing predictions. Second, the SSEC is the second-largest contributor to oil forward pricing predictions, surpassing the contributions of the S&P 500 or oil volatility. Third, the contribution of oil forward prices is the highest in predicting oil volatility. Lastly, the contribution of the DXY significantly influences both oil forward price and volatility predictions, with a particularly notable impact on oil volatility predictions. In summary, through the SHAP framework, we identified that soybean forward prices, the SSEC, oil volatility, and the DXY are the primary contributors to oil forward price predictions, while oil forward prices, the S&P 500, and the DXY are the main contributors to oil volatility predictions. These research findings provide valuable insights into the most-influential factors for predicting oil forward prices and oil volatility, laying the foundation for informed investment decisions and robust risk-management strategies.
Recent advances in natural language processing (NLP) have enabled the development of powerful language models such as Generative Pre-trained Transformers (GPTs). This study evaluates the performance of ChatGPT in generating news summaries by comparing them with summaries written by professional journalists at The New York Times. Using BERTScore as the primary metric, we assessed the semantic similarity between ChatGPT-generated and human-authored summaries. We further employed OpenAI’s moderation API to examine the extent to which each set of summaries contained potentially biased, inflammatory, or violent language. The results indicate that ChatGPT-generated summaries exhibit a high degree of contextual alignment with human-written summaries, achieving a BERTScore F1-score above 0.87. Moreover, ChatGPT outputs consistently omit language flagged as problematic by moderation algorithms, producing summaries that are less likely to include harmful or polarizing content—a feature we define as moderation-friendly summarization. These findings suggest that ChatGPT can serve as a valuable tool for automated news summarization, offering content that is both contextually accurate and aligned with content moderation standards, thereby supporting more objective and responsible news dissemination.