Next Article in Journal
Generation of Face Privacy-Protected Images Based on the Diffusion Model
Next Article in Special Issue
Study on the Stability of Complex Networks in the Stock Markets of Key Industries in China
Previous Article in Journal
Link Prediction in Dynamic Social Networks Combining Entropy, Causality, and a Graph Convolutional Network Model
Previous Article in Special Issue
Underwriter Discourse, IPO Profit Distribution, and Audit Quality: An Entropy Study from the Perspective of an Underwriter–Auditor Network
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

SF-Transformer: A Mutual Information-Enhanced Transformer Model with Spot-Forward Parity for Forecasting Long-Term Chinese Stock Index Futures Prices

1
Business School, Central South University, Changsha 410083, China
2
School of Computer and Engineering, Central South University, Changsha 410083, China
3
School of Geosciences and Info-Physics, Central South University, Changsha 410083, China
*
Author to whom correspondence should be addressed.
Entropy 2024, 26(6), 478; https://doi.org/10.3390/e26060478
Submission received: 1 April 2024 / Revised: 23 May 2024 / Accepted: 27 May 2024 / Published: 30 May 2024
(This article belongs to the Special Issue Complexity in Financial Networks)

Abstract

:
The complexity in stock index futures markets, influenced by the intricate interplay of human behavior, is characterized as nonlinearity and dynamism, contributing to significant uncertainty in long-term price forecasting. While machine learning models have demonstrated their efficacy in stock price forecasting, they rely solely on historical price data, which, given the inherent volatility and dynamic nature of financial markets, are insufficient to address the complexity and uncertainty in long-term forecasting due to the limited connection between historical and forecasting prices. This paper introduces a pioneering approach that integrates financial theory with advanced deep learning methods to enhance predictive accuracy and risk management in China’s stock index futures market. The SF-Transformer model, combining spot-forward parity and the Transformer model, is proposed to improve forecasting accuracy across short and long-term horizons. Formulated upon the arbitrage-free futures pricing model, the spot-forward parity model offers variables such as stock index price, risk-free rate, and stock index dividend yield for forecasting. Our insight is that the mutual information generated by these variables has the potential to significantly reduce uncertainty in long-term forecasting. A case study on predicting major stock index futures prices in China demonstrates the superiority of the SF-Transformer model over models based on LSTM, MLP, and the stock index futures arbitrage-free pricing model, covering both short and long-term forecasting up to 28 days. Unlike existing machine learning models, the Transformer processes entire time series concurrently, leveraging its attention mechanism to discern intricate dependencies and capture long-range relationships, thereby offering a holistic understanding of time series data. An enhancement of mutual information is observed after introducing spot-forward parity in the forecasting. The variation of mutual information and ablation study results highlights the significant contributions of spot-forward parity, particularly to the long-term forecasting. Overall, these findings highlight the SF-Transformer model’s efficacy in leveraging spot-forward parity for reducing uncertainty and advancing robust and comprehensive approaches in long-term stock index futures price forecasting.

1. Introduction

Futures contracts, standardized agreements for the delivery of assets at specified prices and times, serve as important hedging tools for investors, including those in the stock market [1]. Stock index futures, based on stock indices, mitigate risks and losses for stock investors while also addressing systematic risks. Despite their relatively recent introduction, stock index futures have gained significant traction globally, emerging as popular derivatives vital for maintaining financial market vitality and gauging capital market maturity [2,3,4,5]. China, recognizing the importance of financial market development and hedging instruments, has diligently cultivated its stock index futures market [6,7,8]. The establishment of the CSI 300 Stock Index Futures in 2010 marked the market’s inception at the China Financial Futures Exchange (CFFEX), followed by expansions to include additional index futures. Notable milestones, such as the relaxation of short-selling restrictions and the introduction of new index futures contracts, have contributed to increased trading volume and market liquidity. This ongoing development, crucial for deepening capital market reforms and bolstering financial market effectiveness, highlights the significance of financial complexity analyses in anticipating market changes and optimizing the price discovery function of China’s stock index futures market [9,10,11,12].
The long-term stock index futures prediction plays a crucial role in advancing China’s stock index futures market [13,14]. This research topic has garnered significant attention. The prevailing approach in this field predominantly relies on financial time series analysis [15,16]. However, due to the inherent complexity and uncertainties of financial derivatives, their prices and related time series often exhibit nonstationary, nonlinear characteristics, deviating from the normal distribution assumptions typically mandated by most financial time series analysis methods [17,18]. To address these limitations, there has been an introduction of machine learning methods that rely on much fewer assumptions regarding time sequences and processes [19,20,21]. The machine learning methods operate in a data-driven fashion, enabling the efficient capture of nonlinear features within the data and enhancing the accuracy of stock index futures prediction.
Deep learning, as an advanced subset within the realm of machine learning methods, has demonstrated remarkable success across various applications [22,23,24,25,26]. Unlike conventional “shallow” machine learning models, which lack distributed representations and necessitate manual feature extraction [27], our method empowers automatic feature extraction from the data [26,28]. Additionally, in deep learning, the hidden layers serve as linear combinations of input features, with the weights between the hidden and input layers mirroring the weights of input features in this linear combination [29]. Moreover, Montufar et al. [30] demonstrated that the capacity of deep learning models grows exponentially with increasing depth. Attributed to these merits, deep learning methods may achieve more promising forecasting results in predictive analyses of stock index futures [31,32,33,34,35,36,37,38,39].
Despite the advancements in methods for predicting stock index futures, these approaches operate purely in a data-driven fashion, emphasizing the principle of letting the data speak for itself [40,41]. However, given the inherent volatility and dynamic nature of financial markets, it remains challenging to robustly forecast future market movements [17,42,43,44]. The Chinese Stock Index Futures market is relatively new, and the introduction of futures for market indices may be premature [45,46]. The stock index futures market in China, with an average daily trading volume of about 100 thousand lots (CSI 300), is characterized by stringent regulations aimed at controlling speculation and encouraging hedging, primarily focusing on domestic enterprises and institutional investors. In contrast, the USA’s stock index futures market [5], featured by a high daily trading volume of approximately 200 million lots (S&P 500), is highly developed, with extensive product offerings and diverse participation from both institutional and retail investors, allowing for significant speculative activities. Meanwhile, Hong Kong’s stock index futures market [47,48], with a daily trading volume of about 100 thousand lots, serves as a vital link between Chinese and global investors, offering high liquidity and transparency with a mix of international and local participation. Therefore, China’s market is still in its early development stage. When forecasting future prices with purely data-driven machine learning techniques, the ever-evolving market regulatory policies, relatively low market transparency, and shorter exchange history contribute to higher financial complexity and uncertainty in forecasting and risk management compared to the more mature and stable futures markets of the USA and Hong Kong. Additionally, enterprise and institutional investors, who are the major participants in Chinese markets, aim for long-term hedging. They are less concerned with short-term fluctuations and more focused on avoiding significant financial losses over the long term. This requirement greatly increases the difficulty of using data-driven machine learning models for predictive analysis and risk management research on stock index futures.
In this paper, we integrate financial theory and deep learning methods. Our idea is inspired by the following observation: while a data-driven machine learning method is adept at allowing the data to speak for itself and forecasting data variation tendencies based on historical patterns, financial theory is more robust in addressing financial uncertainty as it takes into account future variations stemming from a comprehensive understanding of economic factors and market dynamics. Thus, the mutual information generated by financial theory has the potential to significantly reduce uncertainty in long-term forecasting. We leverage financial theory to guide the application of deep learning methods, thereby combining the advantages of these two categories of methods and further improving the predictive accuracy and risk management capabilities for China’s stock index futures market. To this end, we propose SF-Transformer: a mutual information-enhanced Transformer model with spot-forward parity for forecasting long-term Chinese Stock Index Futures prices. Initially, the SF-Transformer model is raised based on the arbitrage-free futures pricing model, i.e., spot-forward parity. We conduct a descriptive analysis on the data required for predicting stock index futures prices in China, evaluating predictions from the short term to the long term and comparing predictions among different stock index futures. A comparative analysis is conducted using different models, including the Transformer model, LSTM, MLP, and the stock index futures arbitrage-free pricing model, highlighting the superiority of the SF-Transformer model in both short-term and long-term predictions of stock index futures. Significantly, increased mutual information highlights the crucial role of spot-forward parity in addressing complexity and uncertainty in long-term forecasting. Based on the research findings, recommendations are presented for governments and businesses.
The primary contributions of this paper are as follows: First, as stated above, we introduce a novel forecasting model integrating spot-forward parity and the Transformer model. This innovative approach notably improves the accuracy of short- and long-term forecasting for the Chinese Stock Index Futures prices. Second, unlike the majority of prior studies that concentrate on analyzing the trend of individual time series stock index futures to make predictions, we identify that the stock index price, the risk-free rate, and the stock index dividend yield play an important role in Chinese Stock Index Futures price forecasting.
The organization of this paper is as follows: Section 2 presents the methodology employed for prediction creation, including the measures and statistical tests utilized to assess forecast accuracy. Section 3 offers a comprehensive overview of the data utilized in this study. Section 4 gives the experimental design, while Section 5 presents the results and discussion pertaining to the forecast of stock index futures prices. Section 6 concludes the paper and proposes avenues for future research.

2. Methodology

2.1. Spot-Forward Parity Stock Index Futures Pricing Model

Since the inception of stock index futures in 1982, research on pricing methods for stock index futures has been a core topic in both the theory and practice of stock index futures. In traditional microeconomics, the analysis of demand and supply curves is primarily based on the spot market, where transactions occur immediately. However, the completion of forward and futures contracts is delayed, meaning that goods are ordered first, and payment is made at a future date. Currently, the mainstream model for futures pricing is the arbitrage-free trading model, proposed by Cornell and French in 1983. The basic principle is that if a financial derivative can be replicated using existing prices and known financial instruments, the price of the financial derivative must be equal to the price of the replicated financial instruments; otherwise, there is an arbitrage opportunity [49]. The fundamental assumptions that the arbitrage-free pricing theory needs to satisfy are as follows:
Assumption 1.
The market has no friction. In other words, there are no transaction costs in the financial market.
Assumption 2.
Market participants do not bear counterparty risk.
Assumption 3.
The market is perfectly competitive.
Assumption 4.
Market participants are risk-averse and desire more wealth.
Assumption 5.
There are no arbitrage opportunities in the market. Arbitrage refers to the process in which an investor can obtain a risk-free return without the need for an initial investment in the trading of a certain asset.
In the presence of the abovementioned assumptions, to price stock index futures, the following two asset portfolios, A and B, can be constructed with their initial positions at time = 0:
Portfolio A: Short position in a forward contract.
Portfolio B: Short position in e q T units of the underlying spot, and a long position in a zero-coupon risk-free bond with a value of S 0 e q T .
Here, the risk-free interest rate is denoted as r f , q is the stock index dividend yield, and S ( 0 ) is the stock index price at the initial time t = 0. Let Π A t and Π B t represent the values of portfolios A and B at time t . Since the forward contract has no initial cost, and the amount obtained from the short position in the spot is exactly invested in the long position of the zero-coupon risk-free bond, the values of these two portfolios at the initial time t = 0 are:
Π A t = 0 ,
Π B t = 0 .
As the zero-coupon risk-free bond earns a return of e r f T , the values of these two portfolios at time t = T are:
Π A T = F T 0 ,
Π B T = S 0 e r f q T .
Since portfolio B replicates portfolio A, the values of these two portfolios are equal at time t = T , leading to:
F T 0 = S 0 e r f q T .
When the risk-free interest rate r f does not change over time and remains consistent for all terms, theoretically, the price of the stock index futures equals the forward price with the same delivery date and underlying spot. Therefore, Equation (5) represents the arbitrage-free trading stock index futures pricing model. In empirical applications, researchers often take the logarithm of both sides to linearize it [50,51,52,53,54]:
l n F T 0 = l n S 0 + r f q T .
From the above equation, it is evident that the price fluctuation of stock index futures is primarily influenced by factors such as the spot price (i.e., stock index price), risk-free interest rate, and stock index dividend yield. The impact of these factors has been extensively confirmed through empirical studies [52,53,55,56,57].
Although the classical arbitrage-free trading stock index futures pricing model is widely used by investors and institutions, it can only provide the theoretical price of the current futures and does not offer meaningful insights into future futures price movements. Furthermore, this arbitrage-free model relies on strict assumptions, which are often not met in real markets. For instance, risk-free interest rates fluctuate in real markets, with longer terms typically resulting in higher prices. Stock index futures trading incurs costs, and investors are often influenced by emotions, which can be irrational. These factors contribute to small deviations of futures market prices from theoretical prices, making it challenging to predict future stock index futures prices accurately based solely on theoretical prices.
Therefore, there is a need to enhance the arbitrage-free pricing model to better guide its role in futures forecasting.

2.2. Transformer Neural Network Model

The Transformer model was originally proposed for natural language processing (NLP). After being proposed for several years, the advent of Transformers in the realm of deep learning has marked a paradigm shift, particularly in the context of NLP and various sequential data tasks [58,59,60,61,62]. Traditional sequence models for time sequence forecasting, such as recurrent neural networks (RNNs) [63,64,65] and long short-term memory networks (LSTMs) [66,67,68,69,70], faced challenges in capturing long-range dependencies and suffered from sequential processing inefficiencies. Recently, Transformers have rapidly emerged as the cornerstone of numerous cutting-edge models, owing to their capability to capture intricate patterns in sequential data. Transformers, proposed by Vaswani et al. [71], addressed these limitations by leveraging a novel mechanism called self-attention.
Mathematically, for a given input sequence X , the self-attention first computes its Query Q , Key K , and Value V Matrices:
Q = X W Q , K = X W K , V = X W V ,
where X represents the input sequence, and W Q , W K , and W V are learnable weight matrices. Based on the compatibility between the query and key, attention scores can be computed to represent the importance assigned to each element in the sequence.
A t t e n t i o n S c o r e s Q , K = s o f t m a x Q K T d k   ,
where d k is the dimension of the key vectors, which is used to scale the dot product to mitigate issues related to vanishing gradients. The self-attention is the weighted sum that combines the values according to their corresponding attention scores, capturing the contextual information.
A t t e n t i o n Q , K , V = A t t e n t i o n S c o r e s Q , K V .
The self-attention mechanism allows each element within the sequence to simultaneously consider all other elements, capturing their contextual relationships in X effectively.
To enrich the expressive capacity of self-attention, Transformers utilize multi-head attention. This involves applying the attention mechanism multiple times in parallel, each with different learned linear projections.
H e a d i = A t t e n t i o n Q W Q i ,   K W K i ,   V W V i ,
where W Q i , W K i , and W V i are learnable weight matrices specific to the i -th head. The outputs from these multiple heads are then concatenated and linearly transformed.
M u l t i H e a d   O u t p u t = C o n c a t H e a d 1 , , H e a d h W O .
The outputs from the individual heads are concatenated and linearly transformed by the matrix W O to produce the final multi-head attention output.
Transformers lack inherent positional information due to the unordered nature of self-attention. For processing sequence data, positional encoding is introduced in Transformers. Given the position p o s of an element in the time-sequence data, its positional encoding P o s E n c can be calculated as:
P o s E n c ( p o s , 2 i ) = s i n ( p o s 10,000 2 i d ) ,
P o s E n c ( p o s , 2 i + 1 ) = c o s ( p o s 10,000 2 i d ) ,
where i is the dimension and d is the model’s hidden dimension. The positional encoding is finally added to the values of the original time points in the sequence data, enabling the self-attention mechanism to process sequence data.
Combining the positional encoding, the multi-head attention forms a network layer in the Transformer model to extract features of sequence data. Based on this foundational layer, the Transformer architecture consists of an encoder responsible for processing the input sequence and a decoder tasked with generating the output sequence. Both encoder and decoder consist of multiple layers, each containing self-attention mechanisms and feedforward neural networks. The encoder transforms the input sequence into a set of continuous representations, and the decoder generates the output sequence step by step, utilizing the encoder’s representations.
The advantages of Transformers are multifaceted. By employing self-attention mechanisms, Transformers excel in capturing long-range dependencies, making them highly efficient for tasks involving sequence data. The parallelized processing of sequences and the ability to consider context holistically contribute to their success in various applications beyond NLP, including computer vision, speech processing, and financial sequence forecasting. For details of Transformers, interested readers are referred to reference [71].
Utilizing the Transformer model, we can forecast the future price by leveraging a given sequence of historical stock index futures data (Figure 1). Considering a historical data sequence as input X e n , it undergoes encoding and is fed into the Transformer model’s encoder. The encoder extracts inherent features from the historical data sequence and forwards them to the attention layers in the decoders, serving as Keys K and Values V . The decoder receives the input in the form of a decoder sequence X d e , composed of a subsequence preceding the forecasting sequence within the input sequence to the encoder and the subsequence to be forecast, in which the sequence to forecast is marked by zero values. Taking X d e as Values V, the decoder uses multiple attention layers to explore the interconnection between encoded features, i.e., Keys K and Values V , and forecast the target variables, i.e., historical stock index futures prices in our setting. Formally, the output Y of the Transformer model for stock index futures price forecasting can be formulated as:
Y = F C D e c o d e r X d e , E n c o d e r X e n ,
where F C ( ) denotes fully-connected layers.

2.3. SF-Transformer Network Model

The spot-forward stock index futures pricing model asserts that the price of stock index futures is predominantly influenced by the stock index price, risk-free interest rate, and stock index dividend yield. This underscores the importance of incorporating these three financial factors into the prediction of future prices. Subsequent empirical studies [45,53,57,72] have consistently demonstrated that these factors, integral to the spot-forward arbitrage-free pricing model, exert a lasting impact on futures prices. On the other hand, given that historical prices of stock index futures represent typical time series data, there is a notable implication that the Transformer model can be effectively used to capture the temporal volatility characteristics inherent in stock index futures. Therefore, integrating the spot-forward futures pricing model and Transformer network allows for the assimilation of financial knowledge from arbitrage-free pricing theory and the temporal volatility characteristics of stock index futures, thereby enhancing the effectiveness of stock index futures price forecasting.
To improve the predictive performance of stock index futures prices, this paper proposes the SF-Transformer, an enhanced Transformer futures prediction model by integrating the spot-forward arbitrage-free futures pricing model. In the SF-Transformer model, the information from the financial market contained in the arbitrage-free trading model and historical stock index futures information are stacked in a common vector. The introduction of this information increases the Transformer cell input from scalar data of stock index futures prices to a 4-dimensional vector. Consequently, the learnable weight matrices W Q , W K , and W K in Equation (10) are four times larger than that of the original weight matrix. Based on the theoretical estimation of the Vapnik–Chervonenkis dimension in neural network theory [73,74,75,76], the increase in the number of parameters in the Transformer model significantly enhances the model’s capacity, theoretically improving its learning ability to express stock index futures prices.
Given the SF-Transformer illustrated in Figure 1, we can formally show the introduction of the three variables in the spot-forward parity is able to improve the model. Let X represent the sequence data including variables of stock index futures prices X p and variables of spot-forward parity X S F , the self-attention operation in Equation (9) is rewritten as:
Q = X W Q = X p , X S F W Q , p W Q , S F = X p W Q , p + X S F W Q , S F = Q p + Q S F ,
K = X W K = X p , X S F W K , p W K , S F = X p W K , p + X S F W K , S F = K p + K S F ,
V = X W V = X p , X S F W V , p W V , S F = X p W V , p + X S F W V , S F = V p + V S F ,
where W , p and W , S F denote the weighting matrices related to X p and X S F , respectively, and Q p , K p , V p and Q S F , K S F , V S F are the query, key, and value matrices corresponding to the stock index futures prices and the spot-forward parity.
Given the query Q , key K , and value V matrices in Equations (15)–(17), the attention score is rewritten as:
A t t e n t i o n S c o r e Q , K = s o f t m a x Q K T d k   = s o f t m a x Q p + Q S F K p + K S F T d k   = s o f t m a x Q p K p T + Q p K S F T + Q S F K p T + Q S F K S F T d k   = Z 1 s o f t m a x Q p K p T d k   s o f t m a x Q p K S F T d k   s o f t m a x Q S F K p T d k   s o f t m a x Q S F K S F T d k   = s o f t m a x Q p K p T d k   Z 1 s o f t m a x Q p K S F T d k   s o f t m a x Q S F K p T d k   s o f t m a x Q S F K S F T d k   = s o f t m a x Q p K p T d k   S
where denotes the element-wise product, Z 1 is the diagonal matrix for normalization, and S denotes the attention score matrix related to X S F . Equation (18) indicates that the variables of spot-forward parity can be introduced to adjust attention scores.
Given decomposition of V in Equation (17), the self-attention is rewritten as:
A t t e n t i o n Q , K , V = A t t e n t i o n S c o r e Q , K V = A t t e n t i o n S c o r e Q , K V p + V S F = A t t e n t i o n S c o r e Q , K V p + A t t e n t i o n S c o r e Q , K V S F .
Equation (19) indicates that, after introducing spot-forward parity, self-attention values are adjusted according to the value matrix V S F , which encodes the information with respect to financial factors.
Based on the above account, our SF-Transformer model is shown in Figure 2. For a time series of stock index futures, we add three variables of spot-forward parity as additional dimensions. And then, we added position encoding defined in Equations (12) and (13) and time stamp encoding representing the global time context (minutes, hours, dates, and holidays). Based on this representation, the encoder processes inputs in the form of long sequence time series. The self-attention operation is employed to extract attentions. On the other hand, the decoder handles the other long sequence time series, in which a subsequence padded with zeros is the target element to be forecast. The decoder generates the weighted attention of the encoded features and promptly generates values of target elements in a generative fashion. For training the SF-Transformer model, the MSE loss on prediction in terms of the target element is used. The loss is backpropagated through the decoder and encoder to update the model parameters.

2.4. Forecasting Accuracy Assessment

In this study, the mean absolute percentage error (MAPE), a well-established evaluation criterion [63,77,78,79], is employed to assess the performance of the above models. MAPE serves as a metric for evaluating the accuracy of predictive models, particularly in the context of time series forecasting. It is derived by calculating the absolute percentage difference between the predicted values y ^ t and the actual values y t for each data point in the dataset, and then taking the average of these differences across all data points. The equation for MAPE is thus:
M A P E = 1 T t y ^ t y t y t × 100 .
Here, T represents the total number of elements in the time series.
Unlike metrics like RMSE, which are squares of the errors, MAPE provides a clear percentage representation of how far off the predictions are, relative to the magnitude of the actual values. This makes it particularly insightful for understanding the relative accuracy of forecasts, especially in scenarios where the scale of the data varies significantly. For instance, in financial markets, MAPE can highlight the average magnitude of forecast errors relative to the actual stock prices, which is crucial for assessing the practical significance of forecasting errors.

2.5. Mutual Information Estimation

The long-term fluctuations in stock index futures prices exhibit intricate patterns, presenting formidable obstacles to accurate forecasting. While spot-forward parity models hold theoretical promise in mitigating uncertainty during forecasting, it is essential to substantiate the impact of spot-forward models on stock index futures price prediction. To assess the contribution of spot-forward models, we examine the information gain derived from spot-forward parity. To this end, we employ mutual information as a measure before and after incorporating spot-forward parity. Mutual information, closely tied to the entropy of a random variable, serves as a fundamental metric in information theory. Put simply, mutual information quantifies the level of information or relationship between two variables.
Given two continuous random variables x and y , the mutual information of x and y , denoted as I X ; Y , is defined as:
I x ; y = p ( x , y ) log p ( x , y ) p x p y d x d y ,
where p ( x , y ) is the joint probability density function of x and y , and p x and p y are the marginal probabilities of x and y , respectively. Mutual information can also be stated as:
I x ; y = H y H y | x ,
where H y is the entropy of y and H y | x is the conditional entropy given x .
Using variation of mutual information, the information gain from spot-forward parity X S F can be estimated as:
C X S F = I X p , X S F ; Y I X p ; Y ,
where Y denotes the stock index futures price. From Equations (22) and (23), we know that the information gain measured by the variation of mutual information, denoted as C X S F , is equivalent to the differences of conditional entropy given variables with and without spot-forward parity X S F :
C X S F = H Y | X p H Y | X p , X S F .
It is known that a normal distribution achieves maximum entropy among all distributions with the equivalent covariance ([80], Theorem 8.6.5). The entropy of the normal distribution N μ , σ with mean μ and standard deviation σ is 1 2 log 2 π σ 2 + 1 2 . By combining Equation (22), the lower bound of mutual information can be derived, which has been discussed in the literature [81]:
I x ; y H y 1 2 log 2 π σ 2 + 1 2 .
By using the lower bound of mutual information in Equation (25), and eliminating the constant terms, it is straightforward to derive the approximation of C X S F in Equation (23) that measures the variation of mutual information with and without spot-forward parity X S F :
C X S F log σ p log σ p , S F ,
where σ p and σ p , S F are the standard deviations of the normal distribution given X p and X p , X S F , respectively. Thus, the calculation of C X S F becomes an estimation of standard deviations. Assuming the normal distribution p Y | X p , X S F (resp., p Y | X p ) satisfies p Y | X p , X S F ~ N μ X p , X S F , σ p , S F (resp., p Y | X p ~ N μ X p , σ p , ), where μ X p , X S F is the mean given X p and X S F , we can estimate σ p , S F (resp., σ p ) in a maximum likelihood fashion:
σ p , S F 2 = 1 N i = 1 N Y i μ X p i , X S F i 2 .
Here, X p i , X S F i , and Y ( i ) denote i -th known samples of historical prices, spot-forward parity, and forecasted prices. Since the optimal mean μ X p , X S F is theoretically intractable [82], to determine μ X p , X S F , we follow the work of [83], using the outputs of the empirically optimal predictor in experiments to approximate μ X p , X S F .

3. Data

In September 2006, with the approval of the China Securities Regulatory Commission (CSRC), the China Financial Futures Exchange (CFFEX) was established in Shanghai, marking a new milestone in the reform of China’s capital markets. In 2010, CFFEX introduced the country’s first stock index futures financial instrument, the CSI 300 Stock Index Futures (IF). During the bull market in 2015, it also launched the SSE 50 Stock Index Futures (IH) and the CSI 500 Stock Index Futures (IC). Simultaneously, it enriched the variety of investment instruments in China’s financial derivatives market and enhanced the operational efficiency of the financial system.
Futures with stock indices as underlying assets are referred to as stock index futures. Currently, there are four stock index futures financial instruments in China: IF, IH, IC, and IM. IF’s underlying assets are composed of 300 representative stocks listed on the Shanghai Stock Exchange (SSE) and Shenzhen Stock Exchange (SZSE). These sample stocks usually have large market capitalization and strong liquidity. IH’s underlying assets come from the SSE and consist of only 50 stocks, but they are large-cap stocks with excellent liquidity, representing the overall situation of benchmark enterprises in various industries. IC’s underlying assets are also composed of stocks from the SSE and SZSE, totaling 500, with relatively smaller market capitalization, easily influenced by major funds, and often exhibiting larger price fluctuations and higher index volatility. IM’s underlying assets consist of 1000 stocks excluding the sample stocks from the CSI 800 index, characterized by smaller size and good liquidity. However, due to its recent listing of less than six months, the data volume is limited. Therefore, this research selects the daily data of IF, IC, and IH as the research and forecasting objects.
The data used in this research are obtained entirely from the Wind database, primarily including daily closing price data of the main contracts of major stock index futures in China and financial market information data contained in the no-arbitrage futures pricing model. The financial market information includes stock index prices, risk-free interest rates, and stock index dividend yields. Specifically, the daily closing prices of the CSI 300 stock index, CSI 500 stock index, and SSE 50 stock index are selected as stock index prices. Following the conventions of previous studies [53,57], the overnight weighted average interest rate of interbank lending is chosen as the risk-free interest rate. The dividend yield is derived from the dividend yields of the aforementioned stock indices. According to the structure of the SF-Transformer model, the logarithm of the closing prices of stock index futures and stock indices is taken in this section.
To facilitate comparative analyses across different stock index futures, the selected sample data period is uniformly set from 16 April 2015 to 25 October 2022, encompassing 1832 trading days. In previous research, there has been no theoretical consensus on the optimal selection ratio for the training–validation–testing sets [84,85,86,87,88]. The training set ratios generally range from 70% to 90%, with the most common choice being 80% [69,79,89,90,91,92,93,94,95,96,97]. Therefore, based on the tradition of previous research, this study constructs the training, validation, and testing sets in a ratio of 8:1:1. Specifically, data from 16 April 2015 to 20 April 2021 are selected as the training set, data from 21 April 2021 to 18 January 2022 are selected as the validation set, and data from 19 January 2022 to 25 October 2022 are chosen as the testing set.
The results of the descriptive statistical analysis for the data selected in this research are presented in Table 1. It can be observed that most variables exhibit skewness and kurtosis, indicating a departure from the normal distribution assumption required by many financial time series analysis methods. In comparison to the CSI 300 Stock Index Futures and its spot market, as well as the SSE 50 Stock Index Futures and its spot market, the volatility of the CSI 500 Stock Index Futures and its spot market is approximately twice as large. This aligns with the characteristics of the CSI 500 Stock Index Futures and its spot market, as discussed earlier.

4. Experiments

4.1. Experimental Setting

To validate whether integrating the no-arbitrage futures pricing model with the SF-Transformers can enhance the predictive performance of stock index futures prices, this section conducts experiments on stock index futures price prediction.
While financial regulatory authorities focus on mitigating risks in the futures market through early awareness of derivative market risks, facilitating prompt and comprehensive responses for prevention and mitigation, enterprises and institutions utilizing futures for long-term hedging are less concerned with short-term minor fluctuations. Instead, their primary apprehension lies in the potential for substantial financial losses over an extended period. In comparison to short-term predictions made a day or a few hours later, mid- to long-term predictions are more challenging and often less accurate, as they require the model to capture complex dependencies and robustness against noise in the data over extended periods. Given mid- and long-term forecasting is the major concern for enterprises and institutions, this study investigates various forecasting time horizons (1, 3, 5, 7, 10, 14, 21, and 28 days) and assesses the predictive performance of the models using the MAPE as a metric for forecasting error.
In our experiments, the Transformer model is designed to include encoders and decoders with 2 and 1 attention layers, respectively. We carefully tune these hyperparameters to ensure model performance. We finally use 8 multi-head attention layers. The Adam optimizer [98] was utilized to train the Transformer model. Several hyperparameters play a pivotal role in shaping the predictive performance of the Transformer model during training, including parameters such as batch size, epochs, and learning rate. The early stopping training strategy was implemented to counteract overfitting. Notably, the learning rate, deemed the most critical tunable hyperparameter, was initially set relatively high at 0.01 during training to facilitate a swift reduction in the loss function early on. Subsequently, as the training progressed, the learning rate underwent decay with a rate of 0.5.

4.2. Model Comparison

We carried out comparative experiments to validate whether combining the no-arbitrage futures pricing model with SF-Transformers can improve the accuracy of predicting stock index futures prices. To validate the effectiveness of Transformers, we compared SF-Transformers with mainstream machine learning models. Herein, two machine learning models were chosen for comparison, namely long short-term memory (LSTM) and multilayer perceptron (MLP). Besides the above machine learning models, we compared the proposed method with an econometric model, i.e., the stock index futures arbitrage-free pricing model, as described in Section 2.1.
The LSTM, a recurrent neural network architecture, is specifically engineered to address prolonged dependencies and sequence prediction tasks. It achieves this by incorporating memory cells capable of selectively retaining and updating information over extended durations, enabling the network to discern and memorize patterns within sequential data. In this study, we tailored a specialized variant of LSTM, denoted as SF-LSTM, for a comprehensive comparative analysis. The SF-LSTM is configured to receive three variables representing spot-forward information and the stock index futures price, mirroring the input variables of the SF-Transformer. Employing an iterative approach like that in [70], SF-LSTM forecasts stock index prices with a forward-looking perspective, extending its predictive capabilities up to 28 days ahead.
The MLP, a feedforward neural network, comprises multiple fully-connected layers and proves effective for stock prediction tasks by learning to map input features to output values, such as stock prices, through a sequence of nonlinear transformations. In our configuration, the MLP neural network includes three fully-connected hidden layers. The input variables for the MLP mirror those of SF-Transformer and SF-LSTM, giving rise to the SF-MLP. The SF-MLP solely receives the variables from one day before the forecasting time horizons. Via multiple fully-connected layers, SF-MLP recurrently forecasts the stock index futures price and spot-forward model variables during the forecasting time horizons.
The stock index futures arbitrage-free pricing model takes the stock index price at initial time, risk-free interest rate, and stock index dividend yield as input, which are also included in the predictor variables of the SF-Transformer, SF-LSTM, and SF-MLP. In contrast to network models used by machine learning methods, the stock index futures arbitrage-free pricing model forecasts stock index futures at time horizons t using an analytic nonlinear model in Equation (5). In the following, we refer to the stock index futures arbitrage-free pricing model as the arbitrage-free model for brevity.

4.3. Ablation Study

This paper proposes the integration of spot-forward model variables into Transformer models to enhance overall model performance. To assess the significance of spot-forward parity model information in long-term forecasting, we conduct an ablation study on the SF-Transformer model. In this context, a baseline Transformer model is constructed, which only uses historical stock index futures prices for forecasting within the depicted time horizons in a generative manner, as illustrated in Figure 2.
To further explore the impact of spot-forward parity, we additionally conduct ablation studies on machine learning models, namely the LSTM and MLP. Both of these models rely solely on historical stock index futures prices as input, generating rolling forecasts for upcoming days within the designated forecasting time horizons.

4.4. Mutual Information Analysis

To evaluate the impact of the spot-forward parity model on forecasting stock index futures prices, we conduct a mutual information analysis. This involves calculating the mutual information between forecasted prices and predictor variables with and without spot-forward parity, as outlined in Section 2.5. We investigate the mutual information across various forecasting time horizons (1, 3, 5, 7, 10, 14, 21, and 28 days). The optimal predictors, with and without spot-forward parity, are determined by comparing the MAPEs obtained in the ablation analysis. We then utilize the variation of mutual information, as defined in Equation (23), to estimate the information gain from the inclusion of spot-forward parity variables.

5. Results and Discussion

Table 2 exhibits the results of the model comparison generated by the SF-Transformer, SF-LSTM, SF-MLP, and arbitrage-free pricing model for the CSI 300 Stock Index Futures (IF), SSE 50 Stock Index Futures (IH), and CSI 500 Stock Index Futures (IC) spanning the 1st to the 28th day. Figure 3 compares the MAPEs of three machine learning models—SF-Transformer, SF-LSTM, and SF-MLP—over 28 forecasting horizons in detail, either for CSI 300 Stock Index Futures, CSI 500 Stock Index Futures, or SSE 50 Stock Index Futures. The predictive performance of the SF-Transformer model is superior to those of SF-LSTM and SF-MLP. This suggests that the Transformer model can enhance the prediction accuracy. Compared to the SF-MLP that only receives information in the previous time point, the SF-Transformer and SF-LSTM take the long time series as input and find their interconnection to values of prediction time horizons. In contrast to LSTM that receives the input variables recurrently, the Transformer analyzes the entire time series concurrently, leveraging its attention mechanism to discern intricate dependencies and capture long-range relationships, resulting in a more holistic understanding of sequential data. The arbitrage-free model yields the highest MAPEs among the comparative models. For forecasting IF and IC, the MAPE values are even higher than the ones at the mid-term and long-term horizons. This indicates that, on average, the forecasted prices deviate from the actual prices by more than 100%, resulting in inapplicable forecasting results. The high deviation between the futures market prices and the theoretical prices forecasted by the arbitrage-free model is due to its rigorous theoretical assumptions. In comparison, machine learning models, especially the SF-Transformer, which learns the historical variation features of stock index futures prices and spot-forward parity variables, can avoid the limitations of these theoretical assumptions while incorporating the indicative factors within spot-forward parity to achieve significantly enhanced forecasting accuracy.
Figure 4 and Table 3 present the results of the ablation study, which is derived from vanilla Transformer, LSTM, and MLP models. Notably, the MAPEs obtained from the vanilla Transformer, LSTM, and MLP are consistently higher across all forecast horizons compared to their respective versions integrated with the spot-forward model (i.e., SF-Transformer, SF-LSTM, and SF-MLP). This disparity demonstrates the crucial role played by the integration of the spot-forward model in augmenting predictive performance. The findings suggest a critical divergence from data-driven machine learning models that rely only on historical price data. SF-Transformer, SF-LSTM, and SF-MLP benefit from the incorporation of the spot-forward parity, which is proven to be essential in capturing intricate financial nuances. This fusion of economic principles and financial information, rooted in the no-arbitrage futures pricing model, contributes to a more robust and informed forecasting model for stock index futures prices.
Of particular note is the observation that the MAPEs for the short- and mid-term days generated by the vanilla Transformer are notably worse than those produced by the vanilla LSTM. This indicates a clear performance degradation when relying solely on historical price data. The performance degradation may be attributed to the dependence on short-term stock futures prices in recent days, while Transformer models adopt a holistic time sequential approach but involve simple price to price attention values for predictions. In contrast, SF-Transformers leverage spot-forward model variables to generate in-depth self-attention values correlated with stock index futures prices. This self-attention mechanism enables the Transformer model to discern relevant time points, facilitating accurate predictions across both short- and long-term forecast horizons.
Figure 5 and Table 4 illustrate the variations in mutual information between forecasting prices and predictor variables with and without spot-forward parity. Utilizing the optimal predictors identified at each forecasting horizon (as detailed in Table 2 and Table 3), we compute the mutual information. Given that the SF-Transformer emerges as the optimal predictor for most forecasting horizons across all stock index futures (except for the first day in IC forecasting), the variations in mutual information serve as representative indicators of the information gain from spot-forward parity via the Transformer model. Notably, all variations in mutual information are positive except for the first day in IH forecasting, indicating a positive information gain from spot-forward parity in forecasting stock index futures prices. Particularly noteworthy is the relatively higher increase in mutual information observed at long-term forecasting horizons (H ≥ 10) compared to short-term ones (H < 10), suggesting the effectiveness of spot-forward parity in supporting long-term forecasting and reducing forecasting uncertainty.
For IH forecasting, the highest information gain is achieved in long-term forecasting horizons from H = 14 to H = 28 days. Conversely, for IF and IC forecasting, the information gain generally increases gradually from H = 1 to H = 10 days, with a peak increase in mutual information at the H = 10 forecasting day, followed by a decrease, especially during forecasting horizons from H = 21 to H = 28 days. Given that IH corresponds to the SSE 50 Index, a blue-chip index known for stable financial performance, it is reasonable to infer that spot-forward parity is informative for long-term forecasting of stock index futures prices. In contrast, IC, corresponding to the CSI 500, which reflects 500 middle and small stocks with good liquidity, exhibits larger price fluctuations and higher volatility, making spot-forward parity more effective in forecasting horizons from H = 7 to H = 14. As for IF, corresponding to the CSI 300 index comprising the top 300 blue-chip and GEM stocks, it combines characteristics of large-cap focus and high market sensitivity. Hence, the variation of mutual information for IF combines the characteristics of IH and IC, showing high information gain in forecasting horizons from H = 7 to H = 14 days, while still maintaining a median information gain in forecasting horizons up to H = 28 days. Overall, the variation in mutual information is consistent with the ablation analysis, highlighting the crucial role of spot-forward parity in enhancing stock index futures price forecasting, particularly in long-term forecasting scenarios.
While machine learning models demonstrate their strengths, as shown in Table 2, Table 3 and Table 4 and Figure 3, Figure 4 and Figure 5, it is important to consider the limitations of deep learning models. Firstly, deep learning models are data-driven and require substantial historical sequential data for training. When historical data are sparse or incomplete, the performance of these models can be severely impacted. Moreover, deep learning models can be sensitive to small changes or noise in the input data and may not perform well on data that differ significantly from the training data. This sensitivity is inherent to the data-driven nature of machine learning, where the model relies solely on the available data. On the other hand, the arbitrage-free model, an econometric model, is based on stock index futures pricing theory and determines fair values of stock index futures without historical data. However, econometric pricing models depend on strong assumptions, such as the no-arbitrage condition, and is a form of ideal analytic expression, which may not hold in real markets.
Therefore, for long-term forecasting that includes “unseen” variations in historical data, our SF-Transformer model improves machine learning performance by incorporating the econometric pricing model. This approach leverages the power of deep learning models to quantify nonlinear relationships within the data and utilizes associations provided by econometric theory to mitigate uncertainty in long-term forecasting. As shown in the mutual information analysis in Figure 5, the spot-forward parity provides valuable pricing information for long-term forecasting.
The performance of mutual information-enhanced deep learning models can be further improved by the use of Transformers. Compared with LSTM and MLP, this network architecture allows us to capture pricing-associated features from a holistic perspective of the historical spot-forward parity and price data while drawing attention to critical time intervals to effectively handle the complexity and uncertainty in mid-term and long-term forecasting of stock index price futures. However, due to large network parameters involved in the Transformer model, its performance can degrade significantly with small datasets, where simpler models such as MLP and LSTM might perform better.
Overall, by incorporating the economic principles and financial information embedded in the spot-forward parity futures pricing model, the SF-Transformer futures prediction model is considered reliable and applicable across various stock index futures markets in China. Since this model is also suitable for forecasting forward and commodity futures, it can be applied to predict prices in other forward and commodity futures markets, demonstrating strong generalization capabilities.
Based on the application results of the model presented in this research, the following recommendations are proposed for the policymakers, as well as for enterprises and investors:
  • Adopt mutual information-enhanced forecasting model: Consider integration of financial theory into deep learning model to leverage both economic principles and financial prices. This allows the mutual information generated by financial theory to reduce uncertainty in long-term forecasting and thus substantially improve predictive accuracy across different stock index futures.
  • Longer-term forecasting: Given the model’s capability to provide reliable forecasts even for longer-term periods, financial risk regulatory agencies and market participants may benefit from incorporating such forecasts into their risk management strategies. This is particularly relevant for entities engaged in long-term hedging using futures contracts.

6. Conclusions

This paper presents an integrated framework of financial theory and state-of-the-art deep learning methods, leveraging the respective strengths of both approaches to enhance long-term forecasting accuracy of stock index futures prices. The proposed SF-Transformer model, which combines spot-forward parity with the Transformer architecture, represents a significant advancement. By leveraging the self-attention mechanism of the Transformer, the SF-Transformer is capable of exploring the relationships between predictor variables, particularly those influenced by spot-forward parity, enabling it to learn intricate associations for forecasting prices. The comparative analysis of the experiments conducted in this research demonstrates that the SF-Transformer model surpasses other models in its predictive accuracy for major stock index futures prices in China.
As evidenced by enhanced mutual information, the spot-forward parity results in a substantial reduction in uncertainty in long-term forecasting. This highlights the crucial roles of stock index futures price, risk-free rate, and stock index dividend yield in long-term Chinese Stock Index Futures price forecasting. Furthermore, it suggests that information derived from both the spot market and the financial market is indispensable for the accurate forecasting of stock index futures prices.
Thanks to the enhanced mutual information, the SF-Transformer demonstrates robust performance, particularly in its long-term forecasting capability, allowing us to cover the entire lifecycle of the main contracts effectively. This extended forecasting horizon is of paramount importance for enterprises and investors involved in long-term hedging and risk management using stock index futures. The superior forecasting accuracy attained by SF-Transformer model positions it as a valuable tool for anticipating market trends and making informed decisions in the context of complexity in financial markets.
Serving as a viable forecasting solution, the SF-Transformer model contributes to the broader objective of creating more robust and comprehensive approaches against complexity and uncertainties in financial markets. In the realm of financial regulatory oversight, bolstering the pricing system of stock index futures emerges as a pivotal strategy for fostering stability in the Chinese Stock Index Futures market. To achieve this, it is imperative for regulatory authorities to factor in the influence of financial components such as the spot stock price, dividend yield, and the risk-free rate during monitoring activities. Instituting regulatory measures that encompass both short-term and long-term perspectives becomes crucial for preemptively identifying potential price fluctuations and implementing corresponding preventive actions. For enterprises and investors, the integration of financial theories with advanced deep learning models presents an avenue for developing a more robust forecasting model. This integration will enable them to uncover critical insights essential for navigating the complexity of stock index futures and other commodity markets, thereby making more informed decisions and mitigating risks effectively.
In the future, we will carry out trading simulations of stock index futures prices to further validate the effectiveness of the SF-Transformer. Metrics such as alpha and Sharpe ratios can be used to assess the investment return and effectiveness of the investment strategy. A trading simulation over a one-week, one-month, and two-month ahead forecast would fully validate the effectiveness and robustness of the SF-Transformer in real time market conditions. This would, in addition to the accuracy validation reported in this paper, provide a comprehensive evaluation of the model’s real-world applicability and robustness in complicated market conditions.

Author Contributions

Conceptualization, J.H. and W.M.; methodology, W.M.; software, W.M.; validation, P.L. and W.M.; formal analysis, W.M.; investigation, P.L.; resources, J.H.; data curation, J.H.; writing—original draft preparation, W.M.; writing—review and editing, J.H.; visualization, W.M.; supervision, J.H.; project administration, J.H.; funding acquisition, J.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Social Science Fund of China [Grant No. 22BTJ023] and the National Natural Science Foundation of China [Grant No.71671062].

Data Availability Statement

Data is contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Hull, J.; Treepongkaruna, S.; Colwell, D.; Heaney, R.; Pitt, D. Fundamentals of Futures and Options Markets; Pearson Higher Education AU: Upper Saddle River, NJ, USA, 2013. [Google Scholar]
  2. Stoll, H.R.; Whaley, R.E. The Dynamics of Stock Index and Stock Index Futures Returns. J. Financ. Quant. Anal. 1990, 25, 441–468. [Google Scholar] [CrossRef]
  3. Subrahmanyam, A. A Theory of Trading in Stock Index Futures. Rev. Financ. Stud. 1991, 4, 17–51. [Google Scholar] [CrossRef]
  4. Cornell, B.; French, K.R. The Pricing of Stock Index Futures. J. Futures Mark. Pre-1986 1983, 3, 1. [Google Scholar] [CrossRef]
  5. Sutcliffe, C.M. Stock Index Futures; Routledge: Abingdon, UK, 2018. [Google Scholar]
  6. Pan, L.; Mishra, V. Stock market development and economic growth: Empirical evidence from China. Econ. Model. 2018, 68, 661–673. [Google Scholar] [CrossRef]
  7. Hu, G.X.; Wang, J. A Review of China’s Financial Markets. Annu. Rev. Financ. Econ. 2022, 14, 465–507. [Google Scholar] [CrossRef]
  8. Bustos, O.; Pomares-Quimbaya, A. Stock market movement forecast: A Systematic review. Expert Syst. Appl. 2020, 156, 113464. [Google Scholar] [CrossRef]
  9. Wang, X.; Wang, X.; Li, B.; Bai, Z. The nonlinear characteristics of Chinese stock index futures yield volatility. China Financ. Rev. Int. 2020, 10, 175–196. [Google Scholar] [CrossRef]
  10. Yang, J.; Yang, Z.; Zhou, Y. Intraday price discovery and volatility transmission in stock index and stock index futures markets: Evidence from China. J. Futures Mark. 2012, 32, 99–121. [Google Scholar] [CrossRef]
  11. Johansson, A.C.; Ljungwall, C. Spillover Effects Among the Greater China Stock Markets. World Dev. 2009, 37, 839–851. [Google Scholar] [CrossRef]
  12. Carpenter, J.N.; Lu, F.; Whitelaw, R.F. The real value of China’s stock market. J. Financ. Econ. 2021, 139, 679–696. [Google Scholar] [CrossRef]
  13. Miao, H.; Ramchander, S.; Wang, T.; Yang, D. Role of index futures on China’s stock markets: Evidence from price discovery and volatility spillover. Pac.-Basin Financ. J. 2017, 44, 13–26. [Google Scholar] [CrossRef]
  14. Bakar, M.R.A.; Abbas, I.T.; Kalal, M.A.; AlSattar, H.A.; Bakhayt, A.-G.K.; Kalaf, B.A. Solution for multi-objective optimisation master production scheduling problems based on swarm intelligence algorithms. J. Comput. Theor. Nanosci. 2017, 14, 5184–5194. [Google Scholar] [CrossRef]
  15. Sezer, O.B.; Gudelek, M.U.; Ozbayoglu, A.M. Financial time series forecasting with deep learning: A systematic literature review: 2005–2019. Appl. Soft Comput. 2020, 90, 106181. [Google Scholar] [CrossRef]
  16. Hsu, M.-W.; Lessmann, S.; Sung, M.-C.; Ma, T.; Johnson, J.E.V. Bridging the divide in financial market forecasting: Machine learners vs. financial economists. Expert Syst. Appl. 2016, 61, 215–234. [Google Scholar] [CrossRef]
  17. Bollen, J.; Mao, H.; Zeng, X. Twitter mood predicts the stock market. J. Comput. Sci. 2011, 2, 1–8. [Google Scholar] [CrossRef]
  18. Qian, B.; Rasheed, K. Stock market prediction with multiple classifiers. Appl. Intell. 2007, 26, 25–33. [Google Scholar] [CrossRef]
  19. Cao, J.; Li, Z.; Li, J. Financial time series forecasting model based on CEEMDAN and LSTM. Phys. A Stat. Mech. Its Appl. 2019, 519, 127–139. [Google Scholar] [CrossRef]
  20. Cheng, D.; Yang, F.; Xiang, S.; Liu, J. Financial time series forecasting with multi-modality graph neural network. Pattern Recognit. 2022, 121, 108218. [Google Scholar] [CrossRef]
  21. Yan, H.; Ouyang, H. Financial Time Series Prediction Based on Deep Learning. Wirel. Pers. Commun. 2018, 102, 683–700. [Google Scholar] [CrossRef]
  22. Otter, D.W.; Medina, J.R.; Kalita, J.K. A survey of the usages of deep learning for natural language processing. IEEE Trans. Neural Netw. Learn. Syst. 2020, 32, 604–624. [Google Scholar] [CrossRef]
  23. Krizhevsky, A.; Sutskever, I.; Hinton, G.E. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems; MIT Press: Cambridge, MA, USA, 2012; Volume 25. [Google Scholar]
  24. Hinton, G.; Deng, L.; Yu, D.; Dahl, G.E.; Mohamed, A.-r.; Jaitly, N.; Senior, A.; Vanhoucke, V.; Nguyen, P.; Sainath, T.N. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Process. Mag. 2012, 29, 82–97. [Google Scholar] [CrossRef]
  25. Xiong, H.Y.; Alipanahi, B.; Lee, L.J.; Bretschneider, H.; Merico, D.; Yuen, R.K.; Hua, Y.; Gueroussov, S.; Najafabadi, H.S.; Hughes, T.R. The human splicing code reveals new insights into the genetic determinants of disease. Science 2015, 347, 1254806. [Google Scholar] [CrossRef] [PubMed]
  26. LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef]
  27. Bengio, Y.; Delalleau, O.; Roux, N. The curse of highly variable functions for local kernel machines. In Advances in Neural Information Processing Systems; MIT Press: Cambridge, MA, USA, 2005; Volume 18. [Google Scholar]
  28. Goodfellow, I.; Bengio, Y.; Courville, A. Deep Learning; MIT Press: Cambridge, MA, USA, 2016. [Google Scholar]
  29. Bengio, Y. Learning deep architectures for AI. Found. Trends® Mach. Learn. 2009, 2, 1–127. [Google Scholar] [CrossRef]
  30. Montufar, G.F.; Pascanu, R.; Cho, K.; Bengio, Y. On the number of linear regions of deep neural networks. In Advances in Neural Information Processing Systems; MIT Press: Cambridge, MA, USA, 2014; Volume 27. [Google Scholar]
  31. Yoshihara, A.; Fujikawa, K.; Seki, K.; Uehara, K. Predicting stock market trends by recurrent deep neural networks. In Proceedings of the PRICAI 2014: Trends in Artificial Intelligence: 13th Pacific Rim International Conference on Artificial Intelligence, Gold Coast, QLD, Australia, 1–5 December 2014; pp. 759–769. [Google Scholar]
  32. Di Persio, L.; Honchar, O. Artificial neural networks architectures for stock price prediction: Comparisons and applications. Int. J. Circuits Syst. Signal Process. 2016, 10, 403–413. [Google Scholar]
  33. Bao, W.; Yue, J.; Rao, Y. A deep learning framework for financial time series using stacked autoencoders and long-short term memory. PLoS ONE 2017, 12, e0180944. [Google Scholar] [CrossRef]
  34. Chong, E.; Han, C.; Park, F.C. Deep learning networks for stock market analysis and prediction: Methodology, data representations, and case studies. Expert Syst. Appl. 2017, 83, 187–205. [Google Scholar] [CrossRef]
  35. Nabipour, M.; Nayyeri, P.; Jabani, H.; Mosavi, A.; Salwana, E.; S., S. Deep learning for stock market prediction. Entropy 2020, 22, 840. [Google Scholar] [CrossRef]
  36. Jing, N.; Wu, Z.; Wang, H. A hybrid model integrating deep learning with investor sentiment analysis for stock price prediction. Expert Syst. Appl. 2021, 178, 115019. [Google Scholar] [CrossRef]
  37. Chhajer, P.; Shah, M.; Kshirsagar, A. The applications of artificial neural networks, support vector machines, and long–short term memory for stock market prediction. Decis. Anal. J. 2022, 2, 100015. [Google Scholar] [CrossRef]
  38. Thakkar, A.; Chaudhari, K. Information fusion-based genetic algorithm with long short-term memory for stock price and trend prediction. Appl. Soft Comput. 2022, 128, 109428. [Google Scholar] [CrossRef]
  39. Chaudhari, K.; Thakkar, A. Neural network systems with an integrated coefficient of variation-based feature selection for stock price and trend prediction. Expert Syst. Appl. 2023, 219, 119527. [Google Scholar] [CrossRef]
  40. Thakkar, A.; Chaudhari, K. A comprehensive survey on deep neural networks for stock market: The need, challenges, and future directions. Expert Syst. Appl. 2021, 177, 114800. [Google Scholar] [CrossRef]
  41. Cao, L. Ai in finance: Challenges, techniques, and opportunities. ACM Comput. Surv. CSUR 2022, 55, 1–38. [Google Scholar]
  42. Jiang, W. Applications of deep learning in stock market prediction: Recent progress. Expert Syst. Appl. 2021, 184, 115537. [Google Scholar] [CrossRef]
  43. Kanwal, A.; Lau, M.F.; Ng, S.P.; Sim, K.Y.; Chandrasekaran, S. BiCuDNNLSTM-1dCNN—A hybrid deep learning-based predictive model for stock price prediction. Expert Syst. Appl. 2022, 202, 117123. [Google Scholar] [CrossRef]
  44. Zhang, C.; Sjarif, N.N.A.; Ibrahim, R. Deep learning models for price forecasting of financial time series: A review of recent advancements: 2020–2022. Wiley Interdiscip. Rev. Data Min. Knowl. Discov. 2024, 14, e1519. [Google Scholar] [CrossRef]
  45. Hao, J.; Xiong, X.; He, F.; Ma, F. Price discovery in the Chinese stock index futures market. Emerg. Mark. Financ. Trade 2019, 55, 2982–2996. [Google Scholar] [CrossRef]
  46. Lu, X.; Tian, J.; Zhou, Y.; Li, Z. Multifractal detrended fluctuation analysis of the Chinese stock index futures market. Phys. A Stat. Mech. Its Appl. 2013, 392, 1452–1458. [Google Scholar] [CrossRef]
  47. Raj, M.; Thurston, D. Effectiveness of simple technical trading rules in the Hong Kong futures markets. Appl. Econ. Lett. 1996, 3, 33–36. [Google Scholar] [CrossRef]
  48. Tang, G.Y.; Mak, S.; Choi, D.F. The causal relationship between stock index futures and cash index prices in Hong Kong. Appl. Financ. Econ. 1992, 2, 187–190. [Google Scholar] [CrossRef]
  49. Hull, J.C.; Basu, S. Options, Futures, and Other Derivatives; Pearson Education India: Hoboken, NJ, USA, 2016. [Google Scholar]
  50. Garcia, P.; Sanders, D.R. Ex Ante basis risk in the live hog futures contract: Has hedgers’ risk increased? In Proceedings of the NCR-134 Conference on Applied Commodity Price Analysis, Forecasting, and Market Risk Management, Chicago, IL, USA, 24–25 April 1995. [Google Scholar]
  51. Yan, X. Valuation of commodity derivatives in a new multi-factor model. Rev. Deriv. Res. 2002, 5, 251–271. [Google Scholar] [CrossRef]
  52. Wu, T.-Y.; Chien, Y.-C.; Hsu, C.-C.; Chang, Y.-W. Market factors influencing futures’ basis-an empirical study of Taiwan’s securities market. Eur. J. Econ. Financ. Adm. Sci. 2011, 41, 141–148. [Google Scholar]
  53. Marcinkiewicz, E. Determinants of the Index Futures Basis: An Empirical Study of Warsaw stock exchange. In Proceedings of the 14th International Conference on Finance and Banking, Ostrava, Czech Republic, 16–17 October 2013. [Google Scholar]
  54. Li, S.; Wei, L.; Huang, Z. Value-at-Risk Forecasting of Chinese Stock Index and Index Future Under Jumps, Permanent Component, and Asymmetric Information. Emerg. Mark. Financ. Trade 2016, 52, 1072–1091. [Google Scholar] [CrossRef]
  55. Chen, N.F.; Cuny, C.J.; Haugen, R.A. Stock volatility and the levels of the basis and open interest in futures contracts. J. Financ. 1995, 50, 281–300. [Google Scholar] [CrossRef]
  56. Motladiile, B.; Smit, E. Relationship between share index volatility, basis and open interest in futures contracts: The South African experience. S. Afr. J. Bus. Manag. 2003, 34, 41–50. [Google Scholar] [CrossRef]
  57. Chan Phooi M’ng, J.; Jer, H.Y. Do economic statistics contain information to predict stock indexes futures prices and returns? Evidence from Asian equity futures markets. Rev. Quant. Financ. Account. 2021, 57, 1033–1060. [Google Scholar] [CrossRef]
  58. Devlin, J.; Chang, M.-W.; Lee, K.; Toutanova, K. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv 2018, arXiv:1810.04805. [Google Scholar]
  59. Carion, N.; Massa, F.; Synnaeve, G.; Usunier, N.; Kirillov, A.; Zagoruyko, S. End-to-End Object Detection with Transformers. In Proceedings of the Computer Vision—ECCV 2020; Springer: Cham, Switzerland, 2020; pp. 213–229. [Google Scholar]
  60. Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv 2020, arXiv:2010.11929. [Google Scholar]
  61. Dai, X.; Chen, Y.; Yang, J.; Zhang, P.; Yuan, L.; Zhang, L. Dynamic detr: End-to-end object detection with dynamic attention. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada, 10–17 October 2021; pp. 2988–2997. [Google Scholar]
  62. Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; Guo, B. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada, 10–17 October 2021; pp. 10012–10022. [Google Scholar]
  63. Qin, Y.; Song, D.; Chen, H.; Cheng, W.; Jiang, G.; Garrison, W.C. A Dual-Stage Attention-Based Recurrent Neural Network for Time Series Prediction. arXiv 2017. [Google Scholar] [CrossRef]
  64. Pawar, K.; Jalem, R.S.; Tiwari, V. Stock Market Price Prediction Using LSTM RNN. In Proceedings of the Emerging Trends in Expert Applications and Security; Springer: Singapore, 2019; pp. 493–503. [Google Scholar]
  65. Saud, A.S.; Shakya, S. Analysis of look back period for stock price prediction with RNN variants: A case study on banking sector of NEPSE. Procedia Comput. Sci. 2020, 167, 788–798. [Google Scholar] [CrossRef]
  66. Cheng, L.C.; Huang, Y.H.; Wu, M.E. Applied attention-based LSTM neural networks in stock prediction. In Proceedings of the 2018 IEEE International Conference on Big Data (Big Data), Seattle, WA, USA, 10–13 December 2018; pp. 4716–4718. [Google Scholar]
  67. Pang, X.W.; Zhou, Y.; Wang, P.; Lin, W.; Chang, V. Stock Market Prediction based on Deep Long Short Term Memory Neural Network. In Proceedings of the COMPLEXIS, Funchal, Portugal, 20–21 March 2018; pp. 102–108. [Google Scholar]
  68. Wang, C.; Gao, Q. High and Low Prices Prediction of Soybean Futures with LSTM Neural Network. In Proceedings of the 2018 IEEE 9th International Conference on Software Engineering and Service Science (ICSESS), Beijing, China, 23–25 November 2018; pp. 140–143. [Google Scholar]
  69. Mughees, N.; Mohsin, S.A.; Mughees, A.; Mughees, A. Deep sequence to sequence Bi-LSTM neural networks for day-ahead peak load forecasting. Expert Syst. Appl. 2021, 175, 114844. [Google Scholar] [CrossRef]
  70. Mao, W.; Zhu, H.; Wu, H.; Lu, Y.; Wang, H. Forecasting and trading credit default swap indices using a deep learning model integrating Merton and LSTMs. Expert Syst. Appl. 2023, 213, 119012. [Google Scholar] [CrossRef]
  71. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. In Advances in Neural Information Processing Systems; MIT Press: Cambridge, MA, USA, 2017; Volume 30. [Google Scholar]
  72. Aloui, C.; Hkiri, B.; Lau, M.C.K.; Yarovaya, L. Information transmission across stock indices and stock index futures: International evidence using wavelet framework. Res. Int. Bus. Financ. 2018, 44, 411–421. [Google Scholar] [CrossRef]
  73. Bartlett, P.; Maiorov, V.; Meir, R. Almost linear VC dimension bounds for piecewise polynomial networks. In Advances in Neural Information Processing Systems; MIT Press: Cambridge, MA, USA, 1998; Volume 11. [Google Scholar]
  74. Collins, J.; Sohl-Dickstein, J.; Sussillo, D. Capacity and trainability in recurrent neural networks. arXiv 2016, arXiv:1611.09913. [Google Scholar]
  75. Koiran, P.; Sontag, E.D. Vapnik-Chervonenkis dimension of recurrent neural networks. Discret. Appl. Math. 1998, 86, 63–79. [Google Scholar] [CrossRef]
  76. Sontag, E.D. VC dimension of neural networks. NATO ASI Ser. F Comput. Syst. Sci. 1998, 168, 69–96. [Google Scholar]
  77. Gao, T.; Chai, Y.; Liu, Y. Applying long short term momory neural networks for predicting stock closing price. In Proceedings of the 2017 8th IEEE International Conference on Software Engineering and Service Science (ICSESS), Beijing, China, 24–26 November 2017; pp. 575–578. [Google Scholar]
  78. Li, Z.; Tam, V. Combining the real-time wavelet denoising and long-short-term-memory neural network for predicting stock indexes. In Proceedings of the 2017 IEEE Symposium Series on Computational Intelligence (SSCI), Honolulu, HI, USA, 27 November–1 December 2017; pp. 1–8. [Google Scholar]
  79. Ji, L.; Zou, Y.; He, K.; Zhu, B. Carbon futures price forecasting based with ARIMA-CNN-LSTM model. Procedia Comput. Sci. 2019, 162, 33–38. [Google Scholar] [CrossRef]
  80. Elements of Information Theory. In Average Case Analysis of Algorithms on Sequences; Wiley: Hoboken, NJ, USA, 2001; pp. 149–210.
  81. Prasad, S. Certain relations between mutual information and fidelity of statistical estimation. arXiv 2010, arXiv:1010.1508. [Google Scholar]
  82. Paninski, L. Estimation of entropy and mutual information. Neural Comput. 2003, 15, 1191–1253. [Google Scholar] [CrossRef]
  83. Janssen, J.; Guan, V.; Robeva, E. Ultra-marginal feature importance: Learning from data with causal guarantees. In Proceedings of the International Conference on Artificial Intelligence and Statistics, Valencia, Spain, 25–27 April 2023; pp. 10782–10814. [Google Scholar]
  84. Afendras, G.; Markatou, M. Optimality of training/test size and resampling effectiveness in cross-validation. J. Stat. Plan. Inference 2019, 199, 286–301. [Google Scholar] [CrossRef]
  85. Guyon, I. A scaling law for the validation-set training-set size ratio. AT&T Bell Lab. 1997, 1, 1–11. [Google Scholar]
  86. Guyon, I.; Makhoul, J.; Schwartz, R.; Vapnik, V. What size test set gives good error rate estimates? IEEE Trans. Pattern Anal. Mach. Intell. 1998, 20, 52–64. [Google Scholar] [CrossRef]
  87. Joseph, V.R. Optimal ratio for data splitting. Stat. Anal. Data Min. ASA Data Sci. J. 2022, 15, 531–538. [Google Scholar] [CrossRef]
  88. Kearns, M. A bound on the error of cross validation using the approximation and estimation rates, with consequences for the training-test split. In Advances in Neural Information Processing Systems; MIT Press: Cambridge, MA, USA, 1995; Volume 8. [Google Scholar]
  89. Alonso-Monsalve, S.; Suárez-Cetrulo, A.L.; Cervantes, A.; Quintana, D. Convolution on neural networks for high-frequency trend prediction of cryptocurrency exchange rates using technical indicators. Expert Syst. Appl. 2020, 149, 113250. [Google Scholar] [CrossRef]
  90. Dress, K.; Lessmann, S.; von Mettenheim, H.-J. Residual value forecasting using asymmetric cost functions. Int. J. Forecast. 2018, 34, 551–565. [Google Scholar] [CrossRef]
  91. Gudelek, M.U.; Boluk, S.A.; Ozbayoglu, A.M. A deep learning based stock trading model with 2-D CNN trend detection. In Proceedings of the 2017 IEEE symposium series on computational intelligence (SSCI), Honolulu, HI, USA, 27 November–1 December 2017; pp. 1–8. [Google Scholar]
  92. He, K.; Chen, Y.; Tso, G.K. Price forecasting in the precious metal market: A multivariate EMD denoising approach. Resour. Policy 2017, 54, 9–24. [Google Scholar] [CrossRef]
  93. He, K.; Chen, Y.; Tso, G.K. Forecasting exchange rate using variational mode decomposition and entropy theory. Phys. A Stat. Mech. Its Appl. 2018, 510, 15–25. [Google Scholar] [CrossRef]
  94. Kim, H.Y.; Won, C.H. Forecasting the volatility of stock price index: A hybrid model integrating LSTM with multiple GARCH-type models. Expert Syst. Appl. 2018, 103, 25–37. [Google Scholar] [CrossRef]
  95. Lahmiri, S. Intraday stock price forecasting based on variational mode decomposition. J. Comput. Sci. 2016, 12, 23–27. [Google Scholar] [CrossRef]
  96. Liu, Y. Novel volatility forecasting using deep learning–long short term memory recurrent neural networks. Expert Syst. Appl. 2019, 132, 99–109. [Google Scholar] [CrossRef]
  97. Roondiwala, M.; Patel, H.; Varma, S. Predicting stock prices using LSTM. Int. J. Sci. Res. (IJSR) 2017, 6, 1754–1756. [Google Scholar]
  98. Diederik, P.K. Adam: A method for stochastic optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar]
Figure 1. Transformer model for stock index futures price forecasting. The time series data are input into the encoder, which employs multiple attention layers to extract features for forecasting. Simultaneously, the forecasting horizons, marked as zeros and accompanied by the previous historical time series data, are fed into the decoder. The decoder, integrating features from the encoder, predicts the values of forecasting horizons using multiple attention layers and a fully connected layer.
Figure 1. Transformer model for stock index futures price forecasting. The time series data are input into the encoder, which employs multiple attention layers to extract features for forecasting. Simultaneously, the forecasting horizons, marked as zeros and accompanied by the previous historical time series data, are fed into the decoder. The decoder, integrating features from the encoder, predicts the values of forecasting horizons using multiple attention layers and a fully connected layer.
Entropy 26 00478 g001
Figure 2. Architecture of SF-Transformer. (a) Sequential spot-forward (SF) parity values, stock index futures values, and global time constitute the input representation to the SF-Transformer. This input generates embeddings for SF via value/position/time embedding. (b) The SF-Transformer utilizes the embeddings of the encoder and decoder inputs to generate forecasts of stock index futures prices in a generative manner. Model training involves the use of mean squared error (MSE) to measure the difference between forecasted values and ground-truth values.
Figure 2. Architecture of SF-Transformer. (a) Sequential spot-forward (SF) parity values, stock index futures values, and global time constitute the input representation to the SF-Transformer. This input generates embeddings for SF via value/position/time embedding. (b) The SF-Transformer utilizes the embeddings of the encoder and decoder inputs to generate forecasts of stock index futures prices in a generative manner. Model training involves the use of mean squared error (MSE) to measure the difference between forecasted values and ground-truth values.
Entropy 26 00478 g002
Figure 3. 1-day- to 28-days-ahead out-of-sample forecasting errors of SF-Transformer, SF-LSTM, and SF-MLP for (a) IF, (b) IH, and (c) IC Stock Index Futures measured by MAPE. Note that arbitrage-free is not illustrated here due to its significantly higher and even inapplicable MAPEs.
Figure 3. 1-day- to 28-days-ahead out-of-sample forecasting errors of SF-Transformer, SF-LSTM, and SF-MLP for (a) IF, (b) IH, and (c) IC Stock Index Futures measured by MAPE. Note that arbitrage-free is not illustrated here due to its significantly higher and even inapplicable MAPEs.
Entropy 26 00478 g003
Figure 4. 1-day- to 28-days-ahead out-of-sample forecasting errors of Transformer, LSTM, and MLP for (a) IF, (b) IH, and (c) IC Stock Index Futures measured by MAPE.
Figure 4. 1-day- to 28-days-ahead out-of-sample forecasting errors of Transformer, LSTM, and MLP for (a) IF, (b) IH, and (c) IC Stock Index Futures measured by MAPE.
Entropy 26 00478 g004
Figure 5. Variation of mutual information (VarMI) with and without spot-forward parity across forecasting horizons from 1 to 28 days for (a) IF, (b) IH, and (c) IC Stock Index Futures.
Figure 5. Variation of mutual information (VarMI) with and without spot-forward parity across forecasting horizons from 1 to 28 days for (a) IF, (b) IH, and (c) IC Stock Index Futures.
Entropy 26 00478 g005
Table 1. Summary of descriptive statistics.
Table 1. Summary of descriptive statistics.
VariablesMeanStd. Dev.Min.Max.Skew.Kurt.
IF
F3970.9668655.44052749.60005801.00000.53082.3216
S3989.3080647.98692853.76005807.72000.54472.3349
q2.24620.26001.47012.93060.19383.1360
rf2.08840.51220.67553.4819−0.40592.5593
lnF8.27360.16157.91928.66580.27772.1369
lnS8.27860.15887.95648.66690.29742.1368
IH
F2775.3841435.62211809.80004020.40000.24942.4051
S2782.7353430.58291912.72004028.53000.27132.4193
q2.93250.33541.52954.07380.16713.2885
rf2.08840.51220.67553.4819−0.40592.5593
lnF7.91620.15757.50108.2991−0.05562.2782
lnS7.91920.15497.55638.3012−0.02702.2594
IC
F6103.2134984.42974033.200011,427.80001.19837.9357
S6159.77791004.09544018.460011,545.89001.17017.5655
q1.10980.38690.36472.10440.24072.2403
rf2.08840.51220.67553.4819−0.40592.5593
lnF8.70430.15568.30239.34380.21724.5639
lnS8.71320.15738.29879.35410.21474.4870
Note: This table reports the main descriptive statistics of the variables under consideration over the whole sample period from 16 April 2015 to 25 October 2022. The main descriptive statistics include the mean, standard deviation, minimum, maximum, skewness, and kurtosis.
Table 2. 1-day- to 28-days-ahead out-of-sample forecasting errors of SF-MLP, SF-LSTM, SF-Transformer, and arbitrage-free models for IF, IH, and IC Stock Index Futures measured by MAPE. N/A represents the forecasting result is not applicable, with MAPEs > 1.
Table 2. 1-day- to 28-days-ahead out-of-sample forecasting errors of SF-MLP, SF-LSTM, SF-Transformer, and arbitrage-free models for IF, IH, and IC Stock Index Futures measured by MAPE. N/A represents the forecasting result is not applicable, with MAPEs > 1.
ModelsH = 1H = 3H = 5H = 7H = 10H = 14H = 21H = 28
IF
SF-MLP0.01400.03160.04180.04900.05700.06680.08560.1014
SF-LSTM0.01330.01910.02390.02800.03480.04340.05840.0687
SF-Transformer0.01270.01730.01980.02170.02680.03480.04660.0577
Arbitrage-free 0.33610.6810N/AN/AN/AN/AN/AN/A
IH
SF-MLP0.01460.03530.05280.06720.08410.10020.11650.1252
SF-LSTM0.01600.02210.02820.03390.04270.05520.07640.0955
SF-Transformer0.01620.01950.02100.02580.03670.05050.06730.0800
Arbitrage-free0.57650.86290.93870.96650.98200.98870.99290.9944
IC
SF-MLP0.01430.04370.0650.07850.08920.09720.10760.1151
SF-LSTM0.01430.02470.03420.04230.05140.06170.07740.0904
SF-Transformer0.01340.02050.02430.02740.03310.04010.06030.0746
Arbitrage-free0.7147N/AN/AN/AN/AN/AN/AN/A
Table 3. 1-day- to 28-days-ahead out-of-sample forecasting errors of MLP, LSTM, and Transformer forecasting models for IF, IH, and IC Stock Index Futures measured by MAPE.
Table 3. 1-day- to 28-days-ahead out-of-sample forecasting errors of MLP, LSTM, and Transformer forecasting models for IF, IH, and IC Stock Index Futures measured by MAPE.
ModelsH = 1H = 3H = 5H = 7H = 10H = 14H = 21H = 28
IF
MLP0.01610.03980.05810.07390.09330.11030.12190.1241
LSTM0.01380.02000.02550.03110.03960.04970.06820.0885
Transformer0.01960.02500.02890.03130.03720.04590.05810.0720
IH
MLP0.01410.02290.02920.03490.04530.05960.08900.1166
LSTM0.01390.01870.02400.02940.03710.04690.06320.0779
Transformer0.01330.01610.01970.02230.02750.03670.04880.0604
IC
MLP0.02200.05380.07520.09090.10620.11650.12270.1238
LSTM0.01480.02670.03770.04760.06110.07710.10130.1243
Transformer0.01320.02330.03040.03810.04800.05630.06820.0886
Table 4. Summary of mutual information variation with and without spot-forward parity across forecasting horizons from 1 to 28 days for IF, IH, and IC Stock Index Futures.
Table 4. Summary of mutual information variation with and without spot-forward parity across forecasting horizons from 1 to 28 days for IF, IH, and IC Stock Index Futures.
ModelsH = 1H = 3H = 5H = 7H = 10H = 14H = 21H = 28
IF0.02110.04800.08660.11850.14080.13270.10660.0854
IH0.00000.05660.02080.04880.10770.12660.13160.1237
IC0.01690.05680.07540.09230.11360.09310.02390.0134
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Mao, W.; Liu, P.; Huang, J. SF-Transformer: A Mutual Information-Enhanced Transformer Model with Spot-Forward Parity for Forecasting Long-Term Chinese Stock Index Futures Prices. Entropy 2024, 26, 478. https://doi.org/10.3390/e26060478

AMA Style

Mao W, Liu P, Huang J. SF-Transformer: A Mutual Information-Enhanced Transformer Model with Spot-Forward Parity for Forecasting Long-Term Chinese Stock Index Futures Prices. Entropy. 2024; 26(6):478. https://doi.org/10.3390/e26060478

Chicago/Turabian Style

Mao, Weifang, Pin Liu, and Jixian Huang. 2024. "SF-Transformer: A Mutual Information-Enhanced Transformer Model with Spot-Forward Parity for Forecasting Long-Term Chinese Stock Index Futures Prices" Entropy 26, no. 6: 478. https://doi.org/10.3390/e26060478

APA Style

Mao, W., Liu, P., & Huang, J. (2024). SF-Transformer: A Mutual Information-Enhanced Transformer Model with Spot-Forward Parity for Forecasting Long-Term Chinese Stock Index Futures Prices. Entropy, 26(6), 478. https://doi.org/10.3390/e26060478

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop