Skip to main content
Springer logoLink to Springer
. 2026 Oct 16;22(1):344. doi: 10.1007/s41060-026-01302-7

Online forecasting for financial time series

Nikolas Michael 1,✉, Mihai Cucuringu 1,3,4, Sam Howison 2
PMCID: PMC13675284  PMID: 42892820

Abstract

We introduce OFTER (online forecasting via temporal embedding regression), a time series forecasting pipeline tailored for financial problems centered on mid-sized multivariate time series. OFTER utilizes the non-parametric models of k-nearest neighbors and generalized regression neural networks, integrated with a dimensionality reduction component. To circumvent the curse of dimensionality, we employ a weighted norm based on a modified version of the maximal correlation coefficient. The pipeline we introduce is specifically designed for online tasks, has an interpretable output, and is able to outperform several state-of-the-art baselines. The computational efficacy of the algorithm, its online nature, and its ability to operate in low signal-to-noise regimes, render OFTER an ideal approach for financial multivariate time series problems, such as daily equity forecasting. Our work demonstrates that while deep learning models hold significant promise for time series forecasting, traditional methods carefully integrating mainstream tools remain very competitive alternatives with the added benefits of scalability and interpretability.

Keywords: Financial time series, Time series analysis, Forecasting applications, Quantitative finance, Correlation

Introduction

Time series are temporally structured data sets that play a central role in finance. For forecasting tasks, the temporal structure can be leveraged to improve performance but also to avoid look-ahead biases in the training phase. For univariate time series, parametric linear time series models such as the Autoregressive Integrated Moving Average (ARIMA) and the Autoregressive Conditional Heteroscedasticity (ARCH) have attained sufficiently good results in most applications of interest. While these algorithms can be extended to the setting of multivariate time series, the rapid rise in computing power in recent decades has rendered machine learning techniques an attractive alternative to traditional time series methods. An early comparison between different machine learning models was [1], where the authors concluded that the choice of method had a significant effect on performance.

Deep learning models have been a popular choice for multivariate time series forecasting, including Long-Short Term Memory (LSTM) [2], Bidirectional LSTM [3] and Gated Recurrent Unit [4] (GRU). Various expansions of such deep learning models have been proposed in recent years, such as DeepAR [5] and Temporal Fusion Transformers [6], which generally achieve state-of-the-art performances across various domains. However, such approaches often employ thousands of trainable parameters, which can be difficult to train with a limited number of observations, thus leading to degraded out-of-sample forecasting performance. Despite such advancements in deep learning, simple regression-based models are still widely used and sought after. This is especially true for mid-low frequency financial tasks, such as predicting daily returns, volumes, and realized volatilities, partly due to the complexity, unpredictability and constantly shifting dynamics of the financial markets. For example, ordinary least squares (OLS) is still widely used for both forecasting and interpretive statistical analysis due to its simplicity, closed-form solution, and the fact that it requires no choice of hyperparameters. Its regularized versions, such as the LASSO and the elastic net are some of the most widely utilized regression models in finance, as they require only a few hyperparameters.

On the other hand, various recent lines of work have demonstrated the merit of combining traditional time series models and machine learning models, such as [7–11]. In this paper, we consider one of the simplest types of hybrid model, which builds on the results of a univariate ARIMA model and enhances it by performing a novel regression method on the residuals of an ARIMA model.

Non-parametric models and dimensionality reduction

Two simple models that have been relatively overlooked by the machine learning community, are k-nearest neighbors (kNN) and generalized regression neural networks (GRNN), both of which are simple, non-parametric, fast methods requiring only a single hyperparameter. This mainly stems from the curse of dimensionality, which affects both techniques. GRNNs have been utilized primarily in engineering applications, such as [12] for logo recognition, [13] for forecasting feeding patterns, and [14] for modeling the pile-bearing capacity of soil. An overview of its different applications for dynamical systems has been pursued by [15]. In this work, we aim to circumvent the curse of dimensionality that these two methods suffer from by using the following two techniques. Firstly, instead of the Euclidean norm employed by kNN and GRNN, we consider a thresholded weighted norm that is driven by the feature’s predictive potential. Secondly, before employing these well-known models, we consider a dimensionality reduction component, which is by far the most common remedy for the curse of dimensionality.

Dimensionality reduction is one of the main unsupervised machine learning paradigms, with the past couple of decades having witnessed seminal contributions in terms of nonlinear dimensionality reduction methods, such as locally linear embedding (LLE) [16], ISOMAP [17], Hessian LLE [18], Laplacian eigenmaps [19], and diffusion maps [20]. In more recent years, deep learning models have also been increasingly used as a means of dimensionality reduction, such as the class of autoencoders [21], which can be seen as a nonlinear extension of PCA. Performing dimensionality reduction via the use of autoencoders before employing a kNN technique, [22] has shown a significant improvement in performance over kNN for classification. Partial least squares are a popular method of incorporating information from the target into the initial features, during the embedding stage. More recently, [23] achieved improvements in the performance of PCA by scaling each factor based on its predictive slope with the target.

Uses in financial applications

Examples of dimensionality reduction use cases in time series forecasting tasks include [24], who used a truncated diffusion map to construct a global manifold for the slow dynamics of a reduced kinetic model, and [25] who utilizes manifold learning techniques in conjunction with various supervised learning models to build a profitable strategy for the Forex market. Along the same lines, [26] proposed a hybrid approach integrating the Midas-RV model and PCA to achieve better results in forecasting the volatility of crude oil futures in the Chinese market. In this paper, we consider the forecasting of daily returns and traded volumes for ETF instruments. Being able to accurately predict next-day volumes is of interest to practitioners and especially to market makers. Previous works include [27], who showed how search engine data can be leveraged to forecast future trading volumes. Similarly to our work is [28], who utilizes support vector machines to predict the daily volume percentages with promising performance, in the spirit of [29] who combine SVM and LSTM after residualizing with an AR model.

Main contribution OFTER - a novel integrated pipeline

We consider the task of one-step time series forecasting and propose an approach that integrates ARIMA models, dimensionality reduction, and simple non-parametric methods into a single pipeline, which we denote as online forecasting via temporal embedding regression (OFTER). Such a pipeline is of great interest to practitioners working with mid-sized data sets that are low signal-to-error in nature, with no significant seasonality patterns, with low frequency trading strategies being a common example that we explore.

To alleviate the curse of high dimensionality and enhance our dimensionality reduction component, we conduct feature selection on the embedding features based on the concept of maximal correlation. We apply OFTER to the financial tasks of forecasting next-day volume and returns by building an embedding based on various features of 10 exchange traded funds (ETFs). Through an extensive set of numerical simulations on both synthetic and real data, we demonstrate that OFTER provides a powerful alternative to other mainstream machine learning models for mid-sized data sets, even performing better than established time series-tailored deep learning models. In particular, it can work effectively in low signal-to-noise regimes for mid-sized data sets, while still being computationally efficient.

Furthermore, our proposed methodology provides the following additional benefits.

  • Once an embedding has been computed, the algorithm can easily perform out-of-sample extensions and incorporate newly arrived time observations. Therefore, OFTER can naturally be viewed as an online algorithm that operates efficiently in an online setting.

  • Certain configurations of our method fall under the unsupervised learning setting, as the embedding is independent of the target. In other words, the same embedding can potentially be employed to forecast different target variables of interest, and thus OFTER is amenable to extensions to the multi-target setting.

  • Our method can further provide an avenue for change-point detection and anomaly detection tasks, which can be seen as natural byproducts. A previous or newly arrived observation without any local neighboring points in the embedding, could indicate either an extreme measurement or a change-point in the time series.

Paper structure

The rest of this paper is structured as follows. In Sect. 2, we provide an overview of some of the essential concepts used in the proposed pipeline, including the kNN and GRNN algorithms, principal component analysis, and maximal correlation. In Sect. 3, we introduce our proposed methodology, along with its main components and their integration into an algorithm. In Sect. 4, we analyze the performance of OFTER in both synthetic experiments and real-world data. We also discuss the additional properties of OFTER in Sect. 5. Finally, we conclude in Sect. 6.

Preliminaries and related works

Consider a d-dimensional time series represented as a matrix X=x1,⋯,xT∈RT×d with rows denoting observations for T time points, which we refer to as the feature matrix. Assume for the rest of this paper that we are interested in forecasting a single univariate target variable, which we denote by y=y1,⋯,yT∈RT and refer to as the target variable. Furthermore, denote by x′∈Rd and y′∈R, the value of the features and the target variable, respectively, associated with a new observation. We denote by ed the all-ones vector of length d. In terms of matrix indexing, we generally denote the (i, j) entry of X by Xi,j, the submatrix of X including rows starting from t1 up to t2 by Xt1:t2, i.e xt1,⋯,xt2 and by Xt1:t2,j the jth column of Xt1:t2.

kNN and GRNN

kNN is a non-parametric supervised learning algorithm that dates back to the work of Fix and Hodges in 1951 [30] and has grown to become one of the most popular machine learning techniques. The main idea is that a similarity of values in the feature space implies a similarity in the values for the target variable. Denote by x(1),x(2),⋯,x(T) a reordering of the training samples such that

‖x(1)-x′‖≤⋯≤‖x(T)-x′‖, 1

where ‖·‖ denotes the Euclidean norm. The set of the k-nearest neighbors of the new point x′ is defined as

NNk(x′)={i∈{1,⋯,T}:||x(i)-x′||≤||x(k)-x′||}. 2

Based on NNk(x′), the forecast for y′ is computed as

y^=1k∑i∈NNk(x′)yi. 3

A closely related method is GRNN, introduced in [31], based on the Nadaraya-Watson kernel regression estimator [32, 33]. When forecasting y′, GRNN attaches a weight to each of the previous time series entries, determined by their distance to x′. In particular, define the weight wi of the ith observation as

wi=exp-||xi-x′||2h∑j=1Texp-||xj-x′||2h, 4

where h is a bandwidth hyperparameter to be optimized. The prediction for the response of a new observation y^ is then simply the weighted average of the responses of the training observations, defined as

y^=∑i=1Twiyi. 5

Consider the observations (x1,y1),⋯,(xT,yT), to be realizations of an Rd+1 random vector, and let f denote the corresponding true underlying density of the random variable. The theoretical motivation of GRNN stems from the Parzen estimators [31], used to estimate unknown probability density functions f as

f^h(x′,y′)=1T1πhd+12∑i=1Texp-(y′-yi)2h×exp-(x′-xi)T(x′-xi)h. 6

If h varies with T such that limT→∞h(T)=0 and limT→∞Thd(T)=0, these estimators are shown to be consistent, i.e

plimT→∞f^h(T)(x′,y′)=f(x′,y′),∀(x′,y′)∈Rd+1. 7

Informally, [31] argues that if f^(x,y)≈f(x,y), then

y^=∑i=1Twiyi=∫y′f^(x,y′)∫f^(x,y)dydy′≈∫y′f(x,y′)∫f(x,y)dydy′=Ey′|x′. 8

We caution the reader that, despite GRNN bearing “Neural Network" in its name, it is quite different from other popular variants. Specifically, aside from the width hyperparameter, there are no ad-hoc hyperparameters to be chosen or optimized. Furthermore, it is a single-pass algorithm, as the weights are not optimized. Thus, unlike other neural network structures, it is much faster and easier to train but lacks the expressive power of neural networks.

Dimensionality reduction

Both kNN and GRNN suffer from the so-called curse of dimensionality which refers to the phenomenon that for certain methods, the amount of data points required to estimate an unknown function with a certain accuracy, grows exponentially with the dimensionality of the data set.1 To alleviate this issue, kNN or GRNN is often applied after projecting the data points from Rd into a lower-dimensional space Rp (p≤d), while somewhat retaining the structure of the original data set. By far the most popular such method is principal component analysis (PCA), which applies a linear transformation to the original features, chosen to maximize the variance of the projected features in the newly reduced space while ensuring the resulting features remain uncorrelated with each other.

Denote by C(X) the covariance matrix of X, and its eigen-decomposition by C(X)=UΛUT, where Λ is a diagonal matrix capturing the λ1≥⋯≥λd≥0 eigenvalues of C(X), and the columns of U are given by the u1,⋯,ud orthonormal eigenvectors (in the same order as their corresponding eigenvalues). The principal component scores are given by the columns of XU, with the variance of each of the new components given by its corresponding eigenvalue (component i has variance λi). Selecting the first p components retains a proportion of the total variance in the feature matrix equal to ∑i=1pλi/∑i=1dλi. Given the proportion of variance to retain δ∈(0,1), we set

p=mini:∑k=1iλk∑k=1dλk≥δ. 9

We remark that random-matrix theory based techniques could also be employed for delimiting the informative part of the spectrum from the bulk of the eigenvalues that correspond to the noise component [34]. Note that before calculating C(X), we ensure that X is of full rank by removing any columns of X that result in rank deficiency.2 Before applying PCA, we standardize X (subtracting by each feature its mean and dividing by its standard deviation). We shall denote the transformed features as X~=XU.

Maximal correlation

Consider two univariate random variables denoted as V1 and V2. Loosely stated, the correlation between V1 and V2 is a measure of their association. Popular types of correlation include the Pearson, Spearman, and Kendall correlations. Another type is the maximal correlation (see e.g [35]) defined as

argmaxϕ,ψ∈FCor(ϕ(V1),ψ(V2)), 10

where F is a suitable function class and Cor is the Pearson correlation defined as

Cor(V1,V2)=EV1V2-EV1EV2EV12-EV12EV22-EV22. 11

A solution to the problem of determining maximal correlation can be computed by optimizing the functions ϕ and ψ iteratively. We consider a related but simpler problem, where we aim to calculate

argmaxϕ∈FCor(ϕ(V1),V2). 12

The reason for considering Eq. (12) instead of Eq. (10), is that in a regression setting, we are only interested in transforming the feature, rather than the target. By solving Eq. (10), one can transform the features in the embedding space so as to be maximally correlated to the target.

We consider a solution in a restricted function class F.3 In particular, we consider the class of Bernstein polynomials (see e.g [36]), which are defined as

bν,n(x)=νnxν(1-x)n-ν,ν=0,1,⋯,n. 13

The choice of this basis is justified via the Stone–Weierstrass theorem.4 Bernstein polynomials have been widely used, especially in the context of Bezier curves [37], and B-splines [38], often arising in the development of modeling tools in computer-aided geometric design.

For the solution of Eq. (12), we assume that we observe vectors v1 and v2, which capture N observations of the random variables V1 and V2, respectively. Denote by v¯1 and v¯2 the mean of v1 and v2, respectively. Similarly denote by σv1 and σv2 standard deviation of v1 and v2, respectively. Consider the function basis ϕ1,⋯,ϕK, where ϕi(x)=bK,i(x) and define the N×K matrix Φ s.t Φi,j=ϕj(v1,i). We assume Φ is centered, i.e ΦTeN=0.

With the function basis defined, we consider the function class

F=∑k=1Kckϕk:c1,⋯,cK∈R, 14

so that for f∈F, f(v1,i)=∑k=1Kckϕk(v1,i), and problem Eq. (12) reduces to finding the suitable vector c.

To simplify calculations, we also require the transformed vector to be standardized, i.e cTΦTeN=0,1N-1cTΦTΦc=1. Thus, we aim to solve

argmaxc∈RK,cTΦTeN=0,cTΦTΦc=N-1Cor(Φc,v2). 15

Note that

Cor(Φc,v2)=Cov(Φc,v2)σv2σv1=(Φc)Tv2N-1-(Φc)TeNNv2TeNNσv2σv1, 16

and thus, under the constraints of Eq. (15), we have

Cor(Φc,v2)=(Φc)Tv2(N-1)σv2, 17

for which a solution can be found by considering the Lagrangian

L=cTΦTv2(N-1)σv2-λ(cTΦTeN)-μ(cTΦTΦc-(N-1)). 18

Extremizers of the above Lagrangian satisfy

μ=cTΦTv22(N-1)2σv2,and 19
λ=v¯2(N-1)σv2. 20

Substituting back to Eq. (18), and writing z=ΦTv2, z¯=z-v¯2ΦTeN and A=ΦTΦN-1, we reduce the problem to solving

z¯=cTzAc. 21

By considering a solution of the form c=τA-1z¯ for τ∈R, we arrive at the solution

τ=1z¯T(A-1)Tz. 22

Overall, the solution to Eq. (15) is given by

c=A-1z¯z¯T(A-1)Tz=N-1(ΦTΦ)-1ΦTv2-v¯2eNv2-v¯2eNTΦ(ΦTΦ)-1TΦTv2. 23

We refer to the correlation between the target y and the transformed x as the one-sided maximal correlation (OSMC) of x and y, as

OSMCK(x,y)=Cor(Φc,y), 24

where Φ and c depend on x and the choice of the number of basis functions used K. In Section F, we prove the consistency of the transformation cN and show that it has a convergence rate of Op(N-1/2).

Methodology

Figure 1 is a pictorial diagram of the main components of the OFTER pipeline, each of which is described in detail in the remainder of this section.

Fig. 1.

Fig. 1

Pictorial illustration of OFTER, where the main components of its iterative part are displayed. Note that some components are omitted to simplify the diagram. (1) In this step, the feature matrix X∈Rn,d is transformed to X~∈Rn,p(p<d) using PCA. (2) Each entry of the vector c is calculated as cj=OSMC(X~1:L0,j,y1:L0), with OSMC as formulated in Sect. 2.3. (3) Each entry of the vector v is calculated as vj=cj21(|cj|≥cmin)∑l=1p+|IOriginal|cl21(|cl|≥cmin), as is explained in Sect. 3.3. In other words, features whose correlation with the target is low are discarded. (4) The distance between observations of time points j and t is calculated as dj,t=||X~t-X~j||v, where ||.||v is later defined in Eq. (44). This is calculated for j=t-L,⋯,t-1 where L is the lookback window. (5) All the different forecasts from GRNN, kNN, and OLS are calculated using X~(t-L):(t-1), and the distance vector d. (6) All the individual forecasts are combined into y^t. In particular, the forecast of the highest performing model is selected as explained in Sect. 3.2. (7) The PCA embedding is updated using the methodology described in Sect. 3.1. In particular, the eigenvalues and eigenvectors of the covariance matrix is updated

Online update of the embedding

In order for the algorithm to run in an online setting, the embedding needs to be updated as new data arrives. The initial embedding is calculated based on the first L0<T entries, and then updated at every time step. However, re-computing the embedding at every single iteration can be quite expensive (in fact, of complexity O(nd2+d3) at each step5). For PCA, there exists a computationally efficient approach that updates U and Λ. In particular, if C(Xt) denotes the covariance matrix built from the first t data points, one can compute the eigenvectors of the updated covariance

C(X1:t+1)=t-1tC(X1:t)+1t||xt+1||2xt+1||xt+1||xt+1T||xt+1||, 25

by using the previously computed eigenvectors of C(X1:t) (we assume centered data for now). The online algorithm proposed in [39] achieves just that, with a complexity of O(p2d) at each iteration (recall that p denotes the chosen dimension of the embedding).

The above is an instance of a more general problem, which is the rank-one update of an eigensystem [40]. Consider again the symmetric matrix A, whose eigen-decomposition is known, with λ1≥⋯≥λd denoting its eigenvalues, and ui be the eigenvector corresponding to λi,∀i∈{1,⋯,d} such that A=UΛUT. The task at hand is to evaluate the eigensystem of A+ρvvT, by using the known eigensystem of A. As shown by [40], the eigenvalues of A+ρvvT are the roots κ1,⋯,κd of the secular equation

1+ρ∑i=1dzi2λi-κ=0,wherez=UTv. 26

Once the updated eigenvalues are computed, each updated eigenvector uk can be calculated as

uk=UΛ-κkI-1z||UΛ-κkI-1z||. 27

Going a step further, one could reduce computations by only updating the first few eigenvalues. A good approximation of the solution is given by [41], who shows how this can be achieved by solving

1+ρ∑i=1pzi2λi-κ+1-∑i=1pzi2μ-κ=0. 28

The solutions of this equation are shown to approximate the first m eigenvalues, with an error of the order O(maxm+1≤i≤p|λi-μ|). Note that μ is another parameter to be chosen, and should be made so as to minimize O(maxm+1≤i≤p|λi-μ|), for example μ=median(λm+1,⋯,λp). The parameter p will have already been chosen at an earlier part of the algorithm using Eq. (9), and does not change during the update step. While there are various existing techniques to solve equation Eq. (28), we employ the convexifying method described in [42], adopting the earlier work of [40].

Note that initially the feature matrix is standardized based on the initial L0 entries (i.e we standardize X(1:L0)). Denote the mean vector of X1:t by μt∈Rd, and the correctly centered X1:t by X¯1:t∈Rd. Assuming that X(1:t-1) has been centered by μt-1, we need to re-center based on μt. Following [39], the update takes the form X¯1:t=X1:t+et(μt-1-μt)T. It turns out that we can adjust for the re-centering, via two more rank-one updates of the covariance matrix, by expressing X¯1:tTX¯1:t in the following way.

X¯1:tTX¯1:t=X1:tTX1:t+X1:tTeNδT+δeNTX1:t+tδδT=X1:tTX1:t+δX1:tTeNt110δTeNTX1:t=X1:tTX1:t+δμX1:tTeNρ11+ρ12ρ21+ρ2211+ρ1211+ρ22×ρ100ρ2×ρ11+ρ12ρ21+ρ2211+ρ1211+ρ22TδμTeNTX1:t=X1:tTX1:t+ρ1δ+X1:tTeN1+ρ12ρ2δ+X1:tTeN1+ρ22ρ100ρ2×ρ1δ+X1:tTeN1+ρ12ρ2δ+X1:tTeN1+ρ22=X1:tTX1:t+ρ1b1b1T+ρ2b2b2T.

where in the above

δμ=μt-1-μt, 29
ρ1=t-t2+42, 30
ρ2=t+t2+42, 31
b1=ρ1(μt-1-μt)+X1:tTeN1+ρ12, 32
b2=ρ2(μt-1-μt)+X1:tTeN1+ρ22. 33

Choice of hyperparameters

The hyperparameter k of kNN in Eq. (5) and the smoothing parameter hyperparameter h in Eq. (4) are both of crucial importance to the performance of their respective algorithms. Notice that, as h→∞, wi→1/T (Eq. (4)) for all i. On the other hand, as h→0, GRNN becomes equivalent to 1NN (kNN with k=1). To demonstrate the effect of the smoothing parameter on the predictive task, we consider the following toy model

yt=0.5+cosπ64t+ϵt,whereϵt∼N(0,σ2). 34

In Fig. 2, we demonstrate how the choice of the h affects the nature of the obtained fit. For low values of h, the obtained fit is close to giving constant fitted values equal to the mean, while for high values of h, the obtained fit matches the observed data points almost perfectly.6

Fig. 2.

Fig. 2

Visualization of the forecasted values when using GRNN with different smoothing parameters for the model Eq. (34). In a high signal-to-noise problem like this, as h becomes larger GRNN becomes almost perfectly capable of forecasting future values

To choose a suitable value of h, [31] proposes the use of the holdout method, where the optimal parameter is found via calculating a loss function by removing a sample point at a time and taking the average. More modern applications use K-fold validation instead, and these methods can be modified for time series data (see [43] for a discussion on the different approaches).

To remove any scale dependencies, we re-parameterize h as

h=median({||xj-x′||}j=1T)s. 35

Dynamic Selection Since this is an online algorithm, we could update the hyperparameters in an online manner as well. Instead of choosing a single value from a candidate set, we use each of the candidate values for the hyperparameter to fit a different model, updating the performance of all models at each time point. The model with the highest performance up to the previous time point is chosen for the forecast of the current time point, as is done in dynamic model selection [44, 45]. The region of competence includes the last LD time points (we refer to this as the lookback window).7

The choice of the parameter s can be performed by the use of a loss function. If the fitted value corresponding to parameter s for day t is y^ts, the forecast yt^ is calculated as

y^t=∑s=1|S|ηtsy^ts,whereηts=1,Rts=min(Rt1,⋯,RtS)0,otherwise. 36

By Rts, we define the loss corresponding to parameter s, i.e Rts=∑i=1t-1Loss(y^ts,yt). The loss function can be the mean squared error or mean absolute error for general applications. For the application of forecasting future returns, we use the loss function of minus Profit and Loss (abbreviated P&L, and defined in Sect. 4.3).

Similarly, a large k for kNN algorithm would produce similar forecasts to using low values of h. Instead of using either GRNN or kNN, we use both models, each with their own hyperparameter candidate set, and then select based on performance, in a similar manner to Eq. (36). Aside from these two types of models, we also consider a standard OLS model.

Denote by SGRNN the hyperparameter candidate for GRNN and SkNN the hyperparameter candidate set for kNN. Denote by y^tGRNN,s, the forecast when using GRNN with parameter s, y^tkNN,k the forecast when using kNN (with parameter k), and y^tOLS the forecast when using an OLS model. Then define

RtGRNN,s=∑i=t-LDt-1Loss(y^iGRNN,s,yi).RtkNN,k=∑i=t-LDt-1Loss(y^ikNN,k,yi).RtOLS=∑i=t-LDt-1Loss(y^iOLS,yi). 37

Based on the losses up to time point t, the minimum loss is calculated as

Rtoptimal=min({RtGRNN,s:s∈SGRNN}∪{RtkNN,k:k∈SkNN}∪{RtOLS}), 38

and the number of models achieving the optimal performance as

Ntoptimal=|{s:RtGRNN,s=Rtoptimal}|+|{k:RtkNN,k=Rtoptimal}|+1(RtOLS=Rtoptimal), 39

where 1(A) is an indicator function taking the value 1, if condition A is satisfied and 0 otherwise. Then we reformulate Eq. (36), to include the kNN and OLS models as

y^t=∑s∈SGRNNηtGRNN,sy^tGRNN,s+∑k∈SkNNηtkNN,ky^tkNN,k+ηtOLSy^tOLS, 40

where

ηtGRNN,s=1Ntoptimal,RtGRNN,s=Rtoptimal0,otherwise,ηtkNN,k=1Ntoptimal,RtkNN,k=Rtoptimal0,otherwise,ηtOLS=1Ntoptimal,RtOLS=Rtoptimal0,otherwise. 41

Overcoming the shortcomings of kNN and GRNN

One downside of applying dimensionality reduction methods is that they are agnostic of the target to be forecasted. In transforming the initial space in order to retain a large proportion of the variability with a reduced number of features, an initial feature that is already highly correlated with the target but also weakly correlated with other features could end up having a relatively small weight in the final forecasting step. To circumvent this shortcoming, we employ two additional steps.

Firstly, we make sure that all features from the original feature space X that have a high enough correlation with the target are retained in the forecasting step. This way, we ensure that selecting the components that capture most of the variability is not done at the expense of dropping original features that provide predictive power on their own. Therefore, we define the following set, after calculating the OSMC between each of the original features and the target

IOriginal={j:OSMC(X1:L0,j,y1:L0)≥cOriginal}, 42

where any feature whose OMSC is higher than the pre-determined cOriginal, is chosen to be included in the feature set.

During the pre-processing part of the algorithm, we replace X~ with (X~,X1:T,IOriginal), with a number of features equal to p+|IOriginal|. Note that for mid-sized, low signal-to-error data sets like the daily data set we use in Sect. 4.3, IOriginal is usually null.

Secondly, certain features in the embedding space ought to have more influence on the neighbor selection. This can be achieved by using a weighted metric rather than the standard Euclidean norm. In particular, if v represents the vector of weights, the weighted Euclidean distance between Xt1 and Xt2 is given by

||X~t1-X~t2||v=∑j=1p+|IOriginal|vj(X~t1,j-X~t2,j)2. 43

To increase robustness we threshold any correlations with absolute values smaller than cmin (which is another hyperparameter) to 0. The weights are based on the OSMC between each feature and the target

vj=cj21(|cj|≥cmin)∑l=1p+|IOriginal|cl21(|cl|≥cmin), 44

where cj=OSMC(X~1:L0,j,y1:L0)∀j∈{1,⋯,p,p+1,⋯,|IOriginal|}.

Algorithm outline

To ensure stationarity of the target y, we first perform an ADF test with significance level pADF, and if the null hypothesis is not rejected, we difference the time series, and repeat until we reject the null hypothesis. We then perform ACF and PACF tests to check if there are any significant ARMA effects.8 If such effects are identified, we perform a grid search over the orders of the AR and MA orders (p and q respectively) to find the optimal ARIMA(p,r,q) model in terms of their Bayesian Information Criterion (BIC), where r denotes the number of times differencing was applied. Otherwise, we simply fit ARIMA(0,r,0).

Using this procedure, we decompose the target y into a time series signal (ARIMA) and a residual component

y=yTS⏟Time Series Signal+ϵ⏟Residual. 45

Overall, the algorithm consists of three main steps: (1) computing an embedding, (2) choosing features based on the OSMC, and (3) forecasting based on kNN and GRNN. The complete algorithm is given in Algorithm 1, with Algorithm 2 detailing the forecasting step.9

Algorithm 1.

Algorithm 1

OFTER

Algorithm 2.

Algorithm 2

Forecasting for time point t

Empirical results

We consider and compare four different configurations of OFTER, which we denote as follows

  • OFTER (no dimensionality reduction and no feature transformation). This entails setting X~=X, using the Pearson correlation instead of the OSMC, and skipping steps 4, 5, 6, 7, and 17 of Algorithm 1.

  • OFTER-DR (dimensionality reduction and no feature transformation). This is almost the same as Algorithm 1, but we use the Pearson correlation instead of the OSMC.

  • OFTER-FT (feature transformation and no dimensionality reduction). This entails setting X~=X as well as skipping steps 4, 5, 6, 7, and 17 of Algorithm 1.

  • OFTER-DR-FT (feature transformation and dimensionality reduction). This is the exact algorithm as given by Algorithm 1.

Unless stated otherwise we use pADF=0.05. When performing dimensionality reduction, we consider δ=0.9. For the candidate sets, we use SGRNN={0.001,0.005,0.01, 0.05,0.1,0.5,1,5,10,50,100} and SkNN={1,2,3,5,10, 15,20,30,50}. In terms of features, we include those corresponding to the current period up to a lag of 3. Lastly, we set L0 equal to 0.7T. Note that OFTER is generally robust for different choices of hyperparameters, as evidenced by our robustness analysis reported in Section C.

Baseline models

We compare the performance of OFTER against that of several mainstream machine learning models. We include the linear models OLS, PCR, LASSO, but also the widely used support vector machines (SVM), random forests, and XGBoost. We also include some of the most widely used time series-tailored deep learning models, such as LSTM, Bi-LSTM, and GRU. Unlike OFTER, most of these methods are not naturally amenable to efficient implementation in an online setting and thus cannot be updated. For comparison purposes, we retrain each of these models every 100 steps. In the case of LSTM, Bi-LSTM, and GRU, we re-fit the model with only five epochs, starting from the previous weight matrix. For the sake of a fair comparison, instead of following the embedding updating step, we also re-compute the embedding of OFTER every 100 steps. We provide an overview of these methods, as well as details of their implementation for this task, in Section B. Note that the features are standardized for all baseline models in the same manner as they are for OFTER.

Synthetic data sets

Before testing OFTER on real life data sets, we first check whether it can perform consistently well on some simple low dimensional toy models. For this purpose, we use the three five-dimensional models from [25], which are simplistic models crafted to resemble electroencephalography signals and are suitable for this forecasting task.

M1:yt(1)=0.2yt-1(1)-0.4yt-1(2)+ϵt(1)yt(2)=-0.5yt-1(1)+0.15yt-1(2)+ϵt(2)yt(3)=-0.14yt-1(2)+ϵt(3)yt(4)=0.5yt-1(1)-0.25yt-1(2)+ϵt(4)yt(5)=0.15yt-1(1)+ϵt(5) 46

The first data set (M1) shown in Eq. (46) is generated by a set of five linear equations.

M2:yt(1)=g(yt-1(1))+ϵt(1)yt(2)=g(yt-1(2))+0.5yt-1(1)yt-1(2)+ϵt(2)yt(3)=g(yt-1(3))+0.3yt-1(2)+0.5(yt-1(1))2+ϵt(3)yt(4)=0.5yt-1(1)-0.25yt-1(2)+ϵt(4)yt(5)=0.15yt-1(1)+ϵt(5) 47

where g(u)=3.4u1-e-u2e-u2.

The second data set (M2) shown in Eq. (47) is generated by a set of five equations, some of which are non-linear. [25] based these equations on some models appearing in [46].

M3:yt(1)=0.1yt-1(1)-0.6yt-3(2)+ϵt(1)yt(2)=-0.15yt-3(1)+0.8yt-3(2)+ϵt(2)yt(3)=-0.45yt-3(2)+ϵt(3)yt(4)=0.45yt-3(1)-0.85yt-3(2)+ϵt(4)yt(5)=0.95yt-2(1)+ϵt(5) 48

The third data set (M3) resembles M1, but is a time series with a higher order, making M3 a VAR model.

In each of the above cases ϵt(1),⋯,ϵt(5) are uncorrelated normally distributed random variables with unit variance. Note that a burn-in period of 100 periods is used with y1(1),⋯,y1(5) set equal to zero.

Data

ETF data set

We consider a daily data set for two forecasting applications, namely daily returns and volumes. We consider 10 ETFs (SPY, XLF, XLB, XLK, XLV, XLI, XLU, XLY, XLP, XLE). We forecast both daily returns and changes in daily volumes, which we define in the following paragraphs.

Daily Returns: Let Pi,d denote the closing price for asset i at day d. We consider the close to close returns10 for asset i, defined as

Ri,dk=Pi,d+k-Pi,dPi,d. 49

As a more representative quantity, grounded within financial applications, we consider the market excess returns, that is the difference between the returns of an instrument and that of the S&P-500 index, a widely used proxy for market returns.

R~i,tk=Ri,tk-RSPY,tk. 50

Predicting daily returns is one of the most popular yet difficult problems in finance. Due to the low signal-to-noise ratio of this task, standard metrics like MSE and correlation, are considered unsuitable. A more suitable economic-driven evaluation method is following a hypothetical transaction of the underlying instruments, based on the forecasted signs (with + and − corresponding to buy and sell, respectively). For each instruments i and each day t, we denote the forecast as si,t and execute a hypothetical trade based on the sign of si,t. As this is simply for evaluation purposes, we ignore transaction costs and liquidity constraints.

Following this hypothetical strategy, we consider the (excess-returns-adjusted) P&L metric defined by

P&Ldk=1Nd∑i=1NdR~i,tk×signsi,t, 51

The P&L is defined above for each day d, which yields a vector P&L=P&L1,P&L2,⋯,P&LT-1 of daily P&L’s, which measures the outcome of the hypothetical strategy over the entire time horizon under consideration. A measure of the long-term performance of a strategy is the annualized Sharpe ratio (hereafter SR) [47], defined as

SR=mean(P&L)×252sd(P&L). 52

Lastly, we define the P&L per dollar traded (PPD) as

PPD=mean(P&L), 53

which assumes that every day, the total allocated capital to the portfolio remains constant at 1 USD.

We employ the SR significance test by [48]. As returns are known to exhibit heavier tails than a normal distribution, this test is an extension of a traditional t-test, adjusted to account for the skewness and kurtosis of the distribution of the returns.

A higher magnitude forecast should naturally signify a higher confidence. For each trading day, we consider the quintiles of the forecast magnitudes {|si,t|}i=1N, in order to define five quintile portfolios, of decreasing size. In particular, we define Q1 to be the portfolio consisting of all assets, Q2 to be the portfolio consisting of the top 80% assets with the highest magnitude, and so on, up to Q5 which consists of the 20% highest magnitude assets.

As naive benchmarks, we follow two naive strategies. The first we call Buy_SPY, which includes buying and holding the SPY ETF. The other, we call Buy_all, which includes buying and holding all of the ETFs for the duration of the test sets.

Daily changes in trading volume: Denote the volume of instrument i as Vi,d, which is defined as the total number of shares traded during day d. Note that this quantity is non-stationary and generally increases over time, across most instruments. To this end, we instead consider the ’log-volume-returns’, defined as

δi,dk=log(Vi,d+k)-log(Vi,d)log(Vi,d). 54

Features: The embedding built is common for the two forecasting tasks and is built using a feature matrix consisting of the following

  • 1, 2 and 3-day returns for each of the instruments, i.e Ri,d1, Ri,d2, Ri,d3

  • 1, 2 and 3-day absolute returns for each of the instruments, i.e |Ri,d1|, |Ri,d2|, |Ri,d3|

  • 1, 2 and 3-day log-volume returns for each of the instruments, i.e δi,d1,δi,d2,δi,d3

  • the three Fama & French daily market factors

  • the daily returns of 49 different industry portfolios11

  • daily returns of the VIX index

Evaluation metrics

To evaluate the forecasting models in this section we make use of the following evaluation metrics. Denote the vector of predicted values y^ and the observed vector y.

Root Mean Squared Error (RMSE):

RMSE=1T∑t=1Tyt-y^t2. 55

Mean Absolute Error (MAE):

MAE=1T∑t=1Tyt-y^t. 56

Spearman Correlation: The Spearman Correlation between y^t and y is the Pearson correlation between the ranks of the two vectors. This allows this metric to capture nonlinear monotonic relations. The Pearson correlation between y^ and y is given by

C=∑t=1T(yt-y¯)(y^t-y^¯)∑t=1T(yt-y¯)2(y^t-y^¯)2. 57

In addition, we use the Diebold-Mariano (DM) test to compare two different sets of forecasts, which we denote by {y^t}t=1T (for the model considered) and {nt}t=1T (for the naive forecasts). When y corresponds to a change (such as the daily return, or change in volumes) the naive forecast is set to nt=0. Otherwise, the naive forecast is set to nt=yt-1. The DM test is a popular variant of the paired t-test introduced in [50]. When using loss function g, the difference in the loss of the two forecasts at time point t is given by dt=g(nt-yt)-g(y^t-yt). The one-tailed version of DM that we use tests whether the considered forecasts {y^t}t=1T outperform the naive forecasts {nt}t=1T. In particular it tests the null hypothesis

H0:Edt=0 58

versus the alternative hypothesis

H1:Edt≥0. 59

In our case, we use the squared error loss, i.e g(e)=e2, and a significance level of 5%.

Lastly, we use an instance of the Theil-U statistic (TU) [51]. As pointed out by [52], it is recommended to use the second version of this statistic, which is defined as

U=∑tyt-y^t2∑tyt-nt2. 60

Numerical results

We begin with a discussion of the running time of OFTER. In Table 1, we provide the average running time of the algorithm for each of the three considered data sets. We notice that all four configurations of OFTER are significantly faster than LSTM, Bi-LSTM, and GRU, while at the same time significantly slower than the OLS, LASSO, PCR, and SVM, as expected. It is also clear that among the OFTER configurations, OFTER-FT is the slowest as each feature is transformed separately without first reducing the dimensionality of the feature space. The time complexity of OFTER and OFTER-DR are more comparable, with the latter being slightly more computationally intensive.

Table 1.

For each forecasted quantity in each of the three multivariate time series the running time for each of the 12 mentioned methods is recorded

Data Set T d LM PCR LASSO Random
Forests
SVM LSTM Bi-LSTM GRU OFTER OFTER-DR OFTER-FT OFTER-DR-FT
Synthetic 3000 15 0.01 0.02 0.64 33.90 1.81 173.45 202.99 184.81 7.87 9.68 37.52 24.53
Financial 5022 154 0.37 0.48 5.38 3,144.02 0.17 442.86 503.78 549.30 17.58 22.25 222.87 153.06
Air Quality 1461 228 0.10 0.31 2.23 132.05 1.00 165.48 152.22 184.85 3.25 20.18 157.95 62.64

The average running time (in seconds) of each of the 12 methods across the different forecasted quantities is given, where T denotes the length of the time series, and d denotes the dimensionality of each data set. Note that the Air Quality dataset mentioned here is explored in Section E

For the numerical experiments concerning forecasting returns, we employ economic-driven metrics typical of this literature, as discussed in Sect. 4.3. For all the remaining experiments, we base the performance comparisons on RMSE and the other metrics defined in Sect. 4.4.

Synthetic data

For this task, we use L=800,cmin=0.05 and cOriginal=0.05,LD=500. The results are given in Table 2 with the RMSE scores for M1-1, M2-1 and M3-1 visualized in Fig. 3. Importantly, in most cases OFTER has a p-value of zero for the DM test, and TU statistics that are significantly lower than 1. Two exceptions are M1.3 (which is structurally a very low signal-to-ratio model), and M2.1 for which the OFTER configurations that do not use the feature transformation component score very poorly (similar to other linear models).

Table 2.

In this table, we summarize the performance of 14 models for each of the three synthetic models described in Sect. 4.2

M1 M1.1 M1.2 M1.3 M1.4 M1.5
MSE MAE TU DM MSE MAE TU DM MSE MAE TU DM MSE MAE TU DM MSE MAE TU DM
LM 0.932 0.745 0.882 0.000 0.978 0.774 0.860 0.000 1.017 0.820 0.992 0.031 0.965 0.756 0.824 0.000 0.978 0.777 0.983 0.000
PCR 0.931 0.744 0.880 0.000 0.979 0.774 0.861 0.000 1.015 0.820 0.991 0.012 0.969 0.763 0.827 0.000 0.977 0.777 0.982 0.000
LASSO 0.928 0.740 0.877 0.000 0.977 0.772 0.859 0.000 1.014 0.818 0.989 0.027 0.965 0.759 0.824 0.000 0.976 0.776 0.981 0.000
Random Forests 0.965 0.766 0.913 0.000 0.979 0.781 0.860 0.000 1.034 0.832 1.009 0.200 0.972 0.765 0.829 0.000 0.990 0.784 0.995 0.010
SVM 0.955 0.764 0.903 0.000 1.029 0.812 0.904 0.000 1.061 0.854 1.035 0.131 1.013 0.804 0.865 0.000 1.001 0.796 1.006 0.029
XGBOOST 1.027 0.820 0.972 0.000 1.073 0.856 0.943 0.000 1.114 0.893 1.086 0.480 1.079 0.859 0.921 0.000 1.087 0.871 1.093 0.123
LSTM 0.923 0.728 1.000 0.091 0.946 0.755 0.982 0.002 1.010 0.821 1.001 0.866 0.975 0.772 1.003 0.135 0.980 0.787 0.998 0.039
Bi-LSTM 1.073 0.859 1.163 0.605 1.054 0.851 1.093 0.967 1.141 0.913 1.131 0.599 1.094 0.883 1.125 0.003 1.084 0.860 1.105 0.346
GRU 0.945 0.748 1.024 0.012 0.933 0.747 0.968 0.000 1.012 0.826 1.003 0.683 0.938 0.742 0.965 0.000 1.002 0.804 1.020 0.416
TCN 1.107 0.892 0.980 0.000 1.163 0.921 0.963 0.000 1.009 0.805 0.996 0.000 1.158 0.921 0.969 0.000 1.021 0.816 1.000 0.000
OFTER 0.943 0.753 0.892 0.000 0.990 0.786 0.869 0.000 1.024 0.828 0.998 0.300 0.971 0.763 0.829 0.000 0.986 0.783 0.991 0.002
OFTER-DR 0.941 0.750 0.890 0.000 0.987 0.782 0.867 0.000 1.019 0.826 0.995 0.060 0.970 0.762 0.828 0.000 0.980 0.779 0.985 0.003
OFTER-FT 0.937 0.747 0.886 0.000 0.981 0.779 0.861 0.000 1.020 0.825 0.995 0.073 0.965 0.756 0.824 0.000 0.977 0.774 0.982 0.000
OFTER-DR-FT 0.947 0.756 0.896 0.000 0.984 0.781 0.864 0.000 1.020 0.826 0.995 0.021 0.963 0.760 0.822 0.000 0.979 0.777 0.984 0.001
M2 M2.1 M2.2 M2.3 M2.4 M2.5
MSE MAE TU DM MSE MAE TU DM MSE MAE TU DM MSE MAE TU DM MSE MAE TU DM
LM 1.157 0.918 1.004 0.590 1.374 1.113 0.999 0.261 1.520 1.141 0.879 0.000 1.025 0.822 0.815 0.000 1.036 0.827 0.991 0.001
PCR 1.157 0.917 1.004 0.542 1.376 1.113 1.001 0.248 1.553 1.172 0.898 0.000 1.052 0.843 0.837 0.000 1.036 0.827 0.991 0.001
LASSO 1.155 0.915 1.003 0.500 1.373 1.112 0.998 0.485 1.519 1.140 0.879 0.000 1.025 0.821 0.815 0.000 1.033 0.825 0.988 0.000
Random Forests 1.002 0.802 0.869 0.000 1.040 0.832 0.757 0.000 1.066 0.832 0.617 0.000 1.067 0.860 0.848 0.000 1.043 0.837 0.998 0.001
SVM 1.201 0.949 1.042 0.741 1.249 1.005 0.908 0.000 1.253 0.985 0.725 0.000 1.066 0.863 0.848 0.000 1.069 0.849 1.023 0.002
XGBOOST 1.068 0.853 0.927 0.000 1.153 0.920 0.840 0.000 1.125 0.886 0.651 0.000 1.152 0.920 0.916 0.000 1.125 0.904 1.076 0.069
LSTM 0.991 0.787 1.002 0.285 0.990 0.805 1.002 0.072 1.029 0.781 1.006 0.215 1.030 0.820 1.002 0.470 1.040 0.838 1.000 0.356
Bi-LSTM 1.078 0.864 1.090 0.601 1.104 0.877 1.116 0.323 1.130 0.921 1.104 0.170 1.130 0.903 1.098 0.277 1.145 0.921 1.100 0.108
GRU 0.998 0.793 1.010 0.568 1.002 0.814 1.013 0.011 1.021 0.778 0.998 0.010 1.013 0.808 0.985 0.000 1.048 0.842 1.008 0.932
TCN 1.202 0.957 1.000 0.000 1.463 1.151 0.997 0.000 1.541 1.199 0.946 0.000 1.236 0.984 0.993 0.000 1.022 0.825 1.001 0.000
OFTER 0.981 0.790 0.542 0.000 0.965 0.763 0.422 0.000 1.012 0.811 0.697 0.000 0.995 0.797 0.364 0.000 0.998 0.804 0.495 0.000
OFTER-DR 0.981 0.791 0.542 0.000 0.961 0.760 0.420 0.000 1.009 0.807 0.694 0.000 0.995 0.800 0.364 0.000 0.995 0.803 0.494 0.000
OFTER-FT 0.983 0.791 0.543 0.000 0.972 0.769 0.425 0.000 1.008 0.804 0.694 0.000 0.992 0.802 0.363 0.000 0.995 0.800 0.493 0.000
OFTER-DR-FT 0.982 0.791 0.542 0.000 0.979 0.778 0.428 0.000 1.014 0.809 0.698 0.000 1.001 0.806 0.366 0.000 0.999 0.802 0.495 0.000
M3 M3.1 M3.2 M3.3 M3.4 M3.5
MSE MAE TU DM MSE MAE TU DM MSE MAE TU DM MSE MAE TU DM MSE MAE TU DM
LM 0.980 0.787 0.541 0.000 0.965 0.765 0.422 0.000 1.005 0.807 0.692 0.000 1.000 0.801 0.366 0.000 0.996 0.799 0.494 0.000
PCR 1.070 0.851 0.591 0.044 1.081 0.854 0.473 0.000 1.077 0.860 0.742 0.900 1.204 0.955 0.440 0.018 1.195 0.968 0.593 0.000
LASSO 0.981 0.787 0.542 0.000 0.965 0.764 0.422 0.000 1.004 0.806 0.691 0.000 1.001 0.803 0.366 0.000 0.995 0.799 0.494 0.000
Random Forests 1.018 0.820 0.562 0.000 1.021 0.806 0.446 0.000 1.038 0.826 0.714 0.000 1.041 0.833 0.381 0.000 1.031 0.833 0.512 0.000
SVM 1.056 0.840 0.583 0.000 1.108 0.874 0.484 0.000 1.056 0.843 0.727 0.000 1.148 0.888 0.420 0.000 1.076 0.856 0.534 0.000
XGBOOST 1.102 0.883 0.608 0.000 1.123 0.893 0.491 0.000 1.119 0.894 0.769 0.000 1.140 0.909 0.417 0.000 1.097 0.890 0.545 0.000
LSTM 1.070 0.852 1.021 0.538 1.080 0.859 1.026 0.404 0.978 0.787 0.932 0.202 1.105 0.889 1.050 0.602 1.087 0.875 1.019 0.004
Bi-LSTM 1.157 0.933 1.104 0.981 1.146 0.918 1.089 0.040 1.166 0.942 1.112 0.642 1.128 0.912 1.072 0.049 1.157 0.946 1.084 0.000
GRU 0.819 0.648 0.781 0.000 0.899 0.714 0.854 0.000 1.034 0.828 0.985 0.363 0.881 0.698 0.837 0.198 0.906 0.723 0.849 0.035
TCN 1.437 1.138 0.850 0.475 1.679 1.327 0.883 0.000 1.208 0.972 0.885 0.000 1.810 1.433 0.796 1.778 1.512 1.173 0.820 0.000
OFTER 0.981 0.790 0.542 0.000 0.965 0.763 0.422 0.000 1.012 0.811 0.697 0.000 0.995 0.797 0.364 0.000 0.998 0.804 0.495 0.000
OFTER-DR 0.981 0.791 0.542 0.000 0.961 0.760 0.420 0.000 1.009 0.807 0.694 0.000 0.995 0.800 0.364 0.000 0.995 0.803 0.494 0.000
OFTER-FT 0.983 0.791 0.543 0.000 0.972 0.769 0.425 0.000 1.008 0.804 0.694 0.000 0.992 0.802 0.363 0.000 0.995 0.800 0.493 0.000
OFTER-DR-FT 0.982 0.791 0.542 0.000 0.979 0.778 0.428 0.000 1.014 0.809 0.698 0.000 1.001 0.806 0.366 0.000 0.999 0.802 0.495 0.000
Fig. 3.

Fig. 3

Grouped barplot showing a performance comparison of all methods for the synthetic data set. The metric of the comparison is the RMSE between the target values and the forecasts. The bootstrapped standard errors are also displayed

For M1, the best-performing models are generally the linear models LM, PCR, and LASSO which correspond to linear models. GRU and LSTM also outperform the OFTER configurations in a number of cases, with differences being small in most cases. On the other hand, OFTER generally outperforms random forests, XGBoost and SVM. In the case of M2, which is a nonlinear multivariate model, the configurations of OFTER that employ the feature transformation component generally perform the best, with the exception of random forests, LSTM, and GRU. In this case, OFTER outperforms the linear models as well as XGBoost. Lastly, in the case of M3, which regards a vector autoregressive (VAR) model, OFTER is performing particularly well, outperforming all other models, with the exception of GRU, and having similar performances to the LM and LASSO models.

ETF volumes

For both financial tasks, we use L=800 and set cmin=cOriginal=0.01 and LD=300, as typically, these are problems with a lower signal-to-noise ratio. For the task of predicting the delta-volumes of ETF instruments Eq. (54), OFTER outperforms all other benchmark methods. As demonstrated in Table 3, the best performing model is an OFTER configuration in seven out of ten cases, with random forests being the best performing for XLB and XLP, and LASSO being the best performing for XLU. In addition, in all cases, for all OFTER configurations, the p-value corresponding to the DM test is equal to zero up to four decimal places.

Table 3.

In this table, we summarize the performance of 14 models for the delta volume forecasting task for each of the ETFs

SPY XLF XLB XLK XLV
MSE MAE TU DM MSE MAE TU DM MSE MAE TU DM MSE MAE TU DM MSE MAE TU DM
LM 0.016 0.013 0.860 0.000 0.020 0.015 0.938 0.000 0.025 0.020 0.947 0.000 0.022 0.017 0.881 0.000 0.023 0.019 0.967 0.000
PCR 0.016 0.013 0.861 0.000 0.019 0.014 0.883 0.000 0.024 0.019 0.903 0.000 0.022 0.017 0.857 0.000 0.022 0.018 0.920 0.000
LASSO 0.016 0.013 0.864 0.000 0.018 0.014 0.867 0.000 0.023 0.018 0.886 0.000 0.022 0.017 0.859 0.000 0.022 0.017 0.909 0.000
Random Forests 0.016 0.013 0.865 0.000 0.019 0.014 0.875 0.000 0.023 0.018 0.860 0.000 0.022 0.017 0.864 0.000 0.022 0.017 0.908 0.000
SVM 0.019 0.015 1.003 0.010 0.021 0.017 0.997 0.000 0.030 0.023 1.124 0.000 0.030 0.025 1.176 0.000 0.033 0.026 1.354 0.000
XGBOOST 0.017 0.014 0.915 0.000 0.021 0.016 0.969 0.000 0.026 0.020 0.973 0.000 0.024 0.019 0.963 0.000 0.026 0.020 1.058 0.000
LSTM 0.980 0.774 0.996 0.007 0.509 0.396 1.001 0.255 0.452 0.355 1.009 0.023 0.629 0.487 1.000 0.011 0.372 0.291 1.018 0.024
Bi-LSTM 1.100 0.882 1.117 0.669 0.704 0.586 1.384 0.008 0.665 0.560 1.483 0.078 0.797 0.653 1.267 0.069 0.632 0.550 1.729 0.835
GRU 0.962 0.760 0.978 0.000 0.520 0.409 1.023 0.000 0.470 0.364 1.050 0.014 0.640 0.497 1.018 0.528 0.391 0.308 1.069 0.016
TCN 0.045 0.034 2.089 0.000 0.100 0.078 4.665 0.000 0.059 0.046 2.154 0.000 0.105 0.080 4.075 0.000 0.083 0.063 3.390 0.000
OFTER 0.016 0.013 0.862 0.000 0.019 0.015 0.883 0.000 0.023 0.018 0.893 0.000 0.022 0.017 0.883 0.000 0.022 0.017 0.915 0.000
OFTER-DR 0.016 0.012 0.844 0.000 0.018 0.014 0.860 0.000 0.023 0.018 0.886 0.000 0.022 0.016 0.851 0.000 0.022 0.017 0.905 0.000
OFTER-FT 0.016 0.012 0.853 0.000 0.018 0.014 0.862 0.000 0.023 0.018 0.881 0.000 0.022 0.017 0.859 0.000 0.022 0.017 0.888 0.000
OFTER-DR-FT 0.016 0.012 0.856 0.000 0.018 0.014 0.858 0.000 0.023 0.018 0.888 0.000 0.022 0.017 0.860 0.000 0.022 0.017 0.915 0.000
XLI XLU XLY XLP XLE
MSE MAE TU DM MSE MAE TU DM MSE MAE TU DM MSE MAE TU DM MSE MAE TU DM
LM 0.025 0.019 1.046 0.000 0.021 0.016 0.958 0.000 0.025 0.020 0.956 0.000 0.023 0.018 0.902 0.000 0.020 0.015 0.993 0.000
PCR 0.022 0.017 0.937 0.000 0.020 0.015 0.902 0.000 0.023 0.018 0.901 0.000 0.022 0.018 0.866 0.000 0.018 0.015 0.925 0.000
LASSO 0.021 0.017 0.906 0.000 0.019 0.014 0.862 0.000 0.023 0.018 0.889 0.000 0.022 0.017 0.857 0.000 0.018 0.014 0.898 0.000
Random Forests 0.021 0.017 0.912 0.000 0.019 0.015 0.876 0.000 0.022 0.018 0.868 0.000 0.022 0.017 0.856 0.000 0.017 0.014 0.881 0.000
SVM 0.030 0.024 1.278 0.000 0.030 0.024 1.379 0.000 0.033 0.026 1.260 0.000 0.028 0.022 1.085 0.000 0.027 0.022 1.397 0.000
XGBOOST 0.026 0.020 1.115 0.000 0.022 0.018 1.039 0.000 0.027 0.021 1.032 0.000 0.026 0.020 1.004 0.000 0.020 0.016 1.012 0.000
LSTM 0.310 0.243 1.015 0.987 0.389 0.303 1.025 0.166 0.360 0.279 1.041 0.874 0.469 0.353 0.999 0.001 0.404 0.318 1.031 0.081
Bi-LSTM 0.604 0.537 1.976 0.844 0.628 0.543 1.652 0.686 0.616 0.539 1.779 0.168 0.687 0.585 1.462 0.001 0.639 0.550 1.632 0.797
GRU 0.323 0.255 1.057 0.000 0.406 0.319 1.068 0.058 0.370 0.288 1.068 0.002 0.498 0.381 1.060 0.288 0.410 0.325 1.048 0.003
TCN 0.077 0.059 3.241 0.000 0.062 0.047 2.752 0.000 0.070 0.054 2.500 0.000 0.052 0.040 1.783 0.024 0.056 0.044 2.829 0.000
OFTER 0.022 0.017 0.935 0.000 0.019 0.015 0.887 0.000 0.023 0.018 0.886 0.000 0.023 0.018 0.901 0.000 0.018 0.014 0.898 0.000
OFTER-DR 0.022 0.017 0.929 0.000 0.019 0.014 0.863 0.000 0.023 0.018 0.880 0.000 0.023 0.018 0.888 0.000 0.017 0.013 0.876 0.000
OFTER-FT 0.021 0.017 0.904 0.000 0.019 0.014 0.868 0.000 0.022 0.018 0.858 0.000 0.022 0.017 0.859 0.000 0.017 0.014 0.880 0.000
OFTER-DR-FT 0.022 0.017 0.932 0.000 0.019 0.014 0.871 0.000 0.022 0.018 0.866 0.000 0.023 0.018 0.885 0.000 0.017 0.014 0.876 0.000

ETF market excess returns

We simulate a daily strategy based on trading ten ETF instruments for the Q1-Q5 portfolios, and summarize the results in Table 4. For three out of four OFTER strategies, the SR is considered statistically significant.12 As a visual demonstration of the results, we also plot the cumulative P&L for the Q1 strategy of each method in Fig. 4, clearly demonstrating that OFTER-DR and OFTER-DR-FT are outperforming the other methods. With the exception of the Q4-Q5 Bi-LSTM strategy, none of the other benchmark methods result in strategies with a statistically significant SR. Across Q1 and Q2, OFTER-DR scores the highest performance, both in terms of SR and PPD. In Fig. 4, we plot the cumulative P&L for the OFTER-DR strategy, clearly demonstrating a consistently well-performing set of strategies across different quantiles.

Table 4.

In this table, we summarize the performance of 14 models for the ETF price movement forecasting task

Q1 Q2 Q3 Q4 Q5
SR SR (costs) PPD PPD (costs) p-value SR SR (costs) PPD PPD (costs) p-value SR SR (costs) PPD PPD (costs) p-value SR SR (costs) PPD PPD (costs) p-value SR SR (costs) PPD PPD (costs) p-value
LM 0.275 −0.148 1.300 −0.700 0.540 0.204 −0.202 1.005 −0.995 0.650 0.301 −0.068 1.631 −0.369 0.502 0.380 0.026 2.148 0.148 0.395 0.476 0.165 3.066 1.066 0.287
PCR 0.063 −0.355 0.301 −1.699 0.889 0.011 −0.385 0.055 −1.945 0.980 0.003 −0.362 0.015 −1.985 0.995 0.018 −0.329 0.102 −1.898 0.968 0.116 −0.193 0.748 −1.252 0.796
LASSO −0.149 −0.571 −0.706 −2.706 0.739 −0.164 −0.566 −0.819 −2.819 0.713 −0.158 −0.524 −0.866 −2.866 0.723 −0.180 −0.529 −1.037 −3.037 0.687 −0.495 −0.780 −3.462 −5.462 0.270
Random Forests 0.309 −0.202 1.209 −0.791 0.489 0.349 −0.140 1.428 −0.572 0.435 0.325 −0.103 1.519 −0.481 0.468 0.305 −0.092 1.536 −0.464 0.495 0.460 0.141 2.887 0.887 0.303
SVM 0.288 −0.149 1.317 −0.683 0.520 0.161 −0.260 0.766 −1.234 0.719 0.286 −0.085 1.540 −0.460 0.524 0.232 −0.121 1.315 −0.685 0.604 −0.025 −0.332 −0.160 −2.160 0.956
XGBoost −0.333 −1.114 −0.852 −2.852 0.458 −0.298 −0.996 −0.853 −2.853 0.507 −0.403 −0.992 −1.369 −3.369 0.371 −0.347 −0.884 −1.289 −3.289 0.442 −0.237 −0.624 −1.224 −3.224 0.598
LSTM 0.266 −0.606 0.609 −1.386 0.551 0.523 −0.281 1.297 −0.698 0.238 −0.078 −0.753 −0.230 −2.225 0.862 −0.193 −0.776 −0.661 −2.656 0.666 0.443 0.048 2.236 0.241 0.321
Bi-LSTM −0.951 −1.298 −5.476 −7.471 0.036 −0.868 −1.214 −4.993 −6.989 0.056 −0.867 −1.205 −5.121 −7.116 0.056 −0.921 −1.255 −5.516 −7.512 0.042 −0.982 −1.294 −6.269 −8.264 0.031
GRU 0.212 −0.599 0.522 −1.473 0.633 0.239 −0.517 0.631 −1.365 0.590 0.121 −0.506 0.386 −1.610 0.786 0.050 −0.516 0.177 −1.819 0.911 −0.006 −0.417 −0.030 −2.025 0.989
TCN 0.212 −0.599 0.522 −1.473 0.633 0.239 −0.517 0.631 −1.365 0.590 0.121 −0.506 0.386 −1.610 0.786 0.050 −0.516 0.177 −1.819 0.911 −0.006 −0.417 −0.030 −2.025 0.989
OFTER 1.163 0.576 3.967 1.967 0.009 1.103 0.548 3.970 1.970 0.014 1.126 0.633 4.564 2.564 0.012 1.099 0.640 4.782 2.782 0.015 0.479 0.129 2.737 0.737 0.285
OFTER-DR 1.310 0.730 4.515 2.515 0.003 1.235 0.683 4.477 2.477 0.005 0.894 0.415 3.730 1.730 0.041 0.677 0.215 2.929 0.929 0.128 0.669 0.301 3.634 1.634 0.136
OFTER-FT 1.143 0.559 3.915 1.915 0.011 1.151 0.610 4.254 2.254 0.011 0.947 0.466 3.938 1.938 0.035 0.769 0.314 3.383 1.383 0.087 0.461 0.111 2.634 0.634 0.302
OFTER-DR-FT 1.163 0.576 3.967 1.967 0.009 1.103 0.548 3.970 1.970 0.014 1.126 0.633 4.564 2.564 0.012 1.099 0.640 4.782 2.782 0.015 0.479 0.129 2.737 0.737 0.285

Here, p-value denotes the p-value obtained from the one-tailed SR significance test of [48]. Q1-Q5 correspond to the quantile portfolios as defined in Sect. 4.3. Costs include a 2 basis point round-trip trading cost

Fig. 4.

Fig. 4

Cumulative P&L plot of the daily strategies corresponding to the 14 methods for the ETF price movement forecasting task. Here, p-value denotes the p-value as obtained from the one-tailed Sharpe Ratio significance test of [48]. The performance metrics for each method are given in Table 4

An application to an air pollution data set is given in Section E.

Applications to feature importance and outlier detection

In this section, we discuss additional applications of OFTER to two tasks of interest in the machine learning community. In particular, we consider a feature importance component that boosts the interpretative power of OFTER, and an application to outlier detection.

Feature importance

In the OFTER pipeline, one can put forth a natural approach for estimating the contribution of each feature to the forecasting task. In particular, we aim to find a proxy for the importance of each of the input features. To this end, consider two points in the initial feature space x1 and x2, and denote by x1′=UTx1 and x2′=UTx2 the transformed variables. Denote by D′=||x1′-x2′||v the distance in the reduced space (used for calculating the nearest neighbors), and let Dj=x1,j-x2,j such that ||x1-x2||2=∑jDj2.

A metric for the importance of a variable in determining the relative distance of data points in the embedding space can be modeled as the sensitivity of the distance D′ on the individual distance dj, i.e ∂D′∂Dj. For our goal, it is natural to take the derivative at a point where D1=⋯=Dd=1. We begin by writing

D′2=‖x1′-x2′‖v=‖UT(x1-x2)‖v=∑j=1pvj∑k=1dUk,j(x1-x2)k2=∑j=1pvj∑k=1dUk,jDk2. 61

We then compute

∂D′2∂Dk|d=ed=2∑j=1pvj∑k′=1dUk′,jDk′Uk,j, 62

which, using ⊙ to denote the Hadamard product, can be written as

∇D′2(ed)=2U(UTed)⊙v. 63

Keeping in mind Eq. (42), we also augment the embedding space with the original features that are highly correlated with the target. Consider the vector v2 containing the weight given to the original feature if used, and zero otherwise, i.e

graphic file with name 41060_2026_1302_Equ87_HTML.gif

This now leads to

D′2=∑j=1pvj∑k=1dUk,jDk2+∑l=1dv2,lDl2, 64

and thus the derivative is instead given by

∇D′2(ed)=2U(UTed)⊙v+v2. 65

As an illustration, we consider the task of forecasting the first feature of each of the three synthetic data sets (M1-M3), using OFTER-DR, OFTER-FT, and OFTER-DR-FT. In Fig. 5, we show a grid of the feature importance of each individual feature. As we ignore the unimportant features via the calculation of v in Eq. (44), OFTER-FT attaches a non-zero importance weight only to a subset of the features. On the other hand, OFTER-DR assigns a non-zero weight to all of the original features, as they all contribute to the estimation of each principal component. This also holds true for OFTER-DR-FT, where dimensionality reduction is also performed. However, in the case of M2 where most of the predictability is present in a single feature (M2.1 - Lag1), OFTER-DR-FT assigns a zero importance weight to most of the features, similarly to OFTER-FT. Therefore, for the task of feature importance, we recommend the user to rely on either OFTER–FT or OFTER-DR-FT.

Fig. 5.

Fig. 5

In this 3x3 plot grid, we show the feature importance weights, as obtained in Sect. 5.1. The first feature of each of M1, M2, and M3 is forecasted in the first, second, and third row, respectively. In each case, there are 15 features corresponding to three lags of each of the five features. This is repeated for three of OFTER’s configurations, corresponding to the three columns of the grid

Outlier detection

A byproduct of the OFTER pipeline is that it can facilitate the task of outlier detection, by considering the pairwise distance between time points in the embedding space. More specifically, points whose nearest neighbors are still quite “far" in the embedding space could be labeled as outliers, in the same spirit as the one-class SVM algorithm [53]. We demonstrate this using the following example.

Define the minimum distance between the current time point t and the time points in its recent history in the reduced space as

dtmin=min({dt-L,t,⋯,dt-1,t}). 66

Comparing dtmin with the distribution of (dt-Lmin,⋯,dt-1min) may constitute input for any outlier detection algorithm.13 Denoting by qt,1min and qt,3min the first and third quantiles of {dt-Lmin,⋯,dt-1min}, we classify a time point t as an outlier if djmin>qt,3min+κqt,3min-qt,1min for some κ>0.

In Fig. 6, we plot the minimum distance between each trading day and its L=600 preceding days, by using κ=5. From this figure, one could infer several different regimes, as there are periods where the levels of dmin are low, and periods where these are high, such as the periods around the 2008 financial crisis. The fact that almost all labeled outliers fall in the immediate vicinity of days significant in the financial history, does indeed indicate that the algorithm can successfully be used to uncover abnormality signals.

Fig. 6.

Fig. 6

Plot showing the minimum distance djmin obtained using the suggested outlier detection algorithm for OFTER-DR, L=600 and κ=5. All numbered points are identified as outliers. 1. 18 September 2001 - Aftermath of the 9/11 Attack 2. 24 July 2002 - Stock market downturn of 2002 (12th consecutive day of falling prices) 3. 29 July 2002 - Stock market downturn of 2002 (3rd day of rising prices after sharp price rises following (2)) 4. 28 February 2007 - Big drop in US and China stocks 5. 10 October 2008 - Market Crash across Europe and Asia 6. 7 May 2010 - Following the Flash Crash of May 6 7. 4 August 2011 - Preceding the Black Monday (8 August) 8. 15 April 2013 - One of the biggest drops in 2013 for DJIA, SPX 9. 8 November 2016 - US election

Finally, we remark that selecting a larger value of L would result in a large number of anomalies being highlighted. In practice, if this outlier detection approach is used in a trading application, a smaller κ would be desirable, as the outlier warning could possibly be qualitatively analyzed. Note that the above quantile-based outlier detection approach is just a sample algorithm to illustrate the potential of OFTER, as the pipeline is amenable to be incorporated into any other outlier detection algorithm.

Conclusion and future work

In this paper, we have introduced OFTER, a complete pipeline for online multivariate time series forecasting. By leveraging kNN and GRNN, both simple well-understood methods with trivial training complexities, OFTER manages to outperform a number of baselines, for mid-sized data sets. In particular, an extensive set of numerical experiments demonstrated that OFTER performed competitively with random forests and GRU in the synthetic data set, and outperformed all other methods in the real-world applications considered, with a running time much lower than those of deep learning methods. The shortcomings due to the curse of dimensionality are overcome via dimensionality reduction and the use of a weighted norm when comparing distances in the embedding space.

Furthermore, OFTER brings additional advantages, including its flexible nature, with the ability to use or omit many of its components. As a byproduct, OFTER can be integrated seamlessly into an outlier detection pipeline, in an online manner. Lastly, OFTER is naturally equipped to return the user a feature importance score for all the input variables.

Future work. Future extensions of this work could include the utilization of other machine learning methods in the model selection step of the algorithm, for example, LASSO models with different regularization parameters. One disadvantage of OFTER is that it struggles to discover nonlinear interaction effects between covariates, even though this is a general issue with models and data sets of this size. One potential extension would be to include a pre-screening component, where a number of potential interaction terms are tested in order to augment the feature space, either prior to or after the embedding step. Additionally, it would be interesting to see the performance of OFTER in other mid-sized data sets and assess whether other dimensionality reduction algorithms are able to attain improved performance, relative to the use of PCA (this was not the case for the data sets used in this project). Yet another interesting direction concerns an adaptation of OFTER for probabilistic forecasting. Probabilistic models have recently gained in popularity, being able to provide not only forecasts but also associated uncertainty estimates, which is of crucial importance in certain applications. In addition, multi-step probabilistic forecasting is another area which could provide a natural extension for the pipeline presented in this paper. For the financial applications, we evaluate primarily the predictive quality of the generated signals rather than fully implementable trading performance. While we report results incorporating a simple transaction-cost adjustment, we do not account for other important trading frictions such as price slippage and market impact. Incorporating these effects is an important direction for future work. Lastly, we note that the OSMC metric we introduced is of independent interest, both as an alternative to the maximal correlation but also as a computationally fast additional step for other simple regression methods.

Appendix A: A convexifying approach for solving the secular equation

In this section, we give a brief description of the method we use to solve the secular equation described in Sect. 3.1, which amounts to finding the roots of

f(κ)=1+ρ∑j=1dzj2λj-κ. A1

The main difficulty in directly solving Eq. (A1) lies in the multitude of discontinuities in the domain of f. An efficient approach to find the ith root of the equation, would be to consider the reparameterizations κ=λi+ρξ and δj=λj-λiρ, which leads to the formulation of Eq. (A1) as

fi(ξ)=1+∑j=1dzj2δj-ξ. A2

By assuming that each eigenvalue is distinct (a reasonable assumption when dealing with real data), we notice that

δ1<δ2<⋯<δi=0<⋯<δn. A3

Therefore, we look for solutions in the set 0,δi+1, for i<n, and in R+ for i=n. We can further transform fi(x) into a convex function, by considering Fi(γ)=fi(γ-1/2), which can be shown to transform Fi into a convex function in the interval (1δi+1,∞) for i<n and (0,∞) for i=n.

Finally, by using the fact that, for a decreasing convex function, the Newton method14 monotonically converges to a solution [54], it can be established that, if γ∗ is the solution to Fi(γ)=0, then the Newton method converges monotonically to γ∗ with any starting point in 1δi+12,γ∗. For a more detailed explanation and an alternative based on the secant method, we refer the reader to [42].

Appendix B: Brief summary of baseline methods

The following methods are used as baselines against OFTER. We provide a short description of each one.

Ordinary least squares (OLS)

Ordinary least squares (OLS) is by far the most well-known regression method, where the target variable y is modeled as a linear combination of the features

yi=β0+∑j=1dβjXi,j+ϵi. B4

The coefficient vector β=(β0,⋯,βd), is chosen as the one maximizing ∑ϵi2, and can be found using the closed-form formula

β=(XTX)-1XTy. B5

Since we include lagged features in the feature matrix, this method is very similar to a Vector Autoregressive Regression (VAR) model.

Principal component regression

To combat the high correlation present in the features, Principal Component Regression (PCR) first identifies the principal components of X, obtaining X~, and then a number of components p<d is retained. OLS is then used, but on the first p columns of X~ instead of X. Similar to OFTER, we use δ=0.9 for choosing the number of components.

Least absolute shrinkage and selection operator

An alternative to reducing the dimensionality of X before OLS, is to include a regularization term in the objective function Eq. (B4). Least Absolute Shrinkage and Selection Operator (LASSO) is a widely popular method, where the modified objective function takes the following form

(y-Xβ)T(y-Xβ)+λ∑j|βj|. B6

Note that in this case, there is no closed-form solution, and thus a numerical optimization method is utilized. We choose λ using a cross-validation procedure.

Random forests

A decision tree is a simple method inspired by decision analysis, where the visualization of the model resembles a tree consisting of nodes and branches. The initial feature space constitutes the root node. The observations in the root node are partitioned into ’successor nodes’, based on a splitting rule chosen so as to optimize some criterion (usually either entropy or Gini Impurity). The process is repeated recursively on each of the successor nodes until some stopping criterion is met. For each new data point, its features are then used to determine its corresponding leaf node. Forecasts can then be obtained by averaging the target value of all observations that fall within each leaf node. This is a non-parametric method, but with a very high variance.

A Random Forest is built by fitting multiple decision trees. Each decision tree is fitted using only a random sample of observations and a random sample of features. The forecasts of the decision trees are then combined into a single forecast (usually by averaging). Random Forests are based on the idea of bagging aimed at reducing variance and avoiding overfitting.

For the benchmark task, we use 200 trees, which are built using the squared error criterion. The proportion of used features is set to 0.333, as recommended by [55].

XGBoost

Boosting is a class of ensemble models, where the weak learners usually take the form of decision trees. At each iteration, a new weak learner is fitted whose training phase focuses on the previously misclassified data points. The eXtreme Gradient Boosting (XGBoost) is one of the most widely used variants of boosting. We use the standard sklearn implementation of XGBoost, with the default parameters.

Support vector machines

SVM is another popular machine learning model that is motivated by learning theory. In particular, a vector β and a value β0 are found that minimize

12||β||2,s.t|(yi-βTxi-β0)|≤ϵ. B7

A prediction for a new point x′ is then given by β0+βTx′. We use the default settings of sklearn, by choosing ϵ=0.1.

Recurrent neural networks

Recurrent neural networks (RNN) form a class of neural networks specifically aimed at data sets with temporal structures. This is generally achieved by introducing additional skip connections that pass the output of a past layer to the current one. One issue caused is that gradients have the tendency to vanish or explode.

LSTM is a variant of RNN, specifically designed to avoid the issue of exploding or vanishing gradients. This is achieved by introducing a cell state, which contains a summary of the previous cells and is controlled by a number of different gates. Denote by xt the feature vector of a data point, ct the input of the cell state, and ht the output of the module. The formula of the basic LSTM takes the form

ft=σWfxt+Ufht-1+bf,it=σWixt+Uiht-1+bi,ot=σWoxt+Uoht-1+bo,c^t=tanhWcxt+Ucht-1+bc,ct=ft⊙ct-1+it⊙c^t.ht=ct⊙tanh(ct), B8

where Wf,Uf,bf,Wi,Ui,bi,Wo,Uo,bo,Wc,Uc and bc are trainable parameters.

We consider two more variants of LSTM. Bi-LSTM which utilizes two parallel and reverse networks of LSTMs so that information can flow in both directions. We also use Gated Recurrent Unit (GRU) which has a similar yet simpler architecture than LSTM.

For each variant, the layout consists of two layers, each with a unit size of 20, and a fully connected layer. The lookback period is set equal to 3, to match the data used for the other methods. For the training, 50 epochs appear to be enough. For optimization ADAM is used with learning parameter equal to 0.0001, and the other parameters set as default in the corresponding Keras package.

Temporal convolutional networks

Temporal Convolutional Networks (TCNs) are a class of convolutional neural networks specifically designed and widely used for time series modeling. They rely on one-dimensional dilated causal convolutions, which enforce the temporal structure, and allow the receptive field of the network to grow rapidly without a corresponding increase in the number of parameters.

The TCN architecture we employ consists of three causal convolutional layers with 32 filters and dilation rates of 1, 2, and 4, respectively, each using a kernel size of 2 and ReLU activation. The convolutional layers are followed by a global average pooling layer and a fully connected output layer. The model is trained for 100 epochs using the ADAM optimizer with a learning rate of 0.0001. The lookback period is set equal to 3.

Appendix C: Robustness analysis

In this short section, we demonstrate how changing five of the main parameters used in OFTER-DR-FT affects its performance on the synthetic data set. We fix five of the main parameters given in OFTER as follows: δ=0.9, L=800, cmin=0.05, cOriginal=0.05, and pADF=0.05. By keeping the other four parameters fixed, we vary each of these parameters in turn and note the variation in its performance. In Table 5, we show the correlation between the target and the forecasts when changing each of the noted parameters to the given value.

Table 5.

Robustness analysis of OFTER. The table displays the correlation between the target and forecasts for each of the 15 features of the synthetic data set, by varying a subset of five parameters of the algorithm

δ pADF L Cmin Coriginal
Value 0.8 0.95 0.01 0.1 500 1500 0.01 0.1 0.01 0.1
M1.1 0.470 0.459 0.467 0.467 0.441 0.477 0.464 0.464 0.465 0.461
M1.2 0.519 0.511 0.509 0.509 0.503 0.521 0.509 0.514 0.504 0.518
M1.3 0.077 0.071 0.085 0.085 0.085 0.113 0.119 0.116 0.085 0.117
M1.4 0.554 0.558 0.552 0.552 0.555 0.556 0.553 0.556 0.545 0.559
M1.5 0.094 0.107 0.101 0.101 0.147 0.120 0.102 0.110 0.101 0.113
M2.1 0.599 0.623 0.599 0.599 0.596 0.603 0.675 0.600 0.599 0.60
M2.2 0.535 0.535 0.535 0.535 0.534 0.539 0.897 0.535 0.536 0.536
M2.3 0.864 0.799 0.815 0.815 0.776 0.850 0.759 0.401 0.804 0.817
M2.4 0.962 0.964 0.963 0.963 0.963 0.963 0.962 0.963 0.963 0.963
M2.5 0.679 0.681 0.681 0.681 0.678 0.682 0.681 0.678 0.680 0.679
M3.1 0.758 0.758 0.758 0.758 0.751 0.762 0.758 0.758 0.758 0.757
M3.2 0.852 0.851 0.851 0.851 0.85 0.852 0.851 0.850 0.849 0.850
M3.3 0.669 0.664 0.665 0.665 0.662 0.668 0.665 0.666 0.664 0.667
M3.4 0.902 0.903 0.903 0.903 0.902 0.905 0.903 0.902 0.903 0.902
M3.5 0.826 0.827 0.827 0.827 0.825 0.828 0.827 0.826 0.825 0.825

In general, the performance of the algorithm does not significantly depend on the choice of parameters, as forecasting each feature has consistent performance. However, there are exceptions; for example, cmin appears to have a significant effect on the performance of the algorithm for M2.3 and M2.4.

Appendix D: Effect of ARIMA order

In Step 1 of the OFTER pipeline, the ARIMA order is selected via BIC. To assess sensitivity to this choice, we fix the ARIMA order exogenously and re-run the forecasting experiments for a representative subset of tasks. The results are reported in Table 6. The findings are broadly stable across specifications. For the synthetic tasks (M1.1, M2.1, M3.1), MSE varies only marginally across orders, with differences typically in the second or third decimal place. For the ETF return task, the Sharpe ratio fluctuates somewhat more, which is expected given the noisier nature of return forecasting—notably, ARIMA(0,0,0) performs comparably to the BIC-selected order. For the volume forecasting task, results are again stable. Overall, the choice of ARIMA order has limited impact on the conclusions.

Table 6.

Sensitivity of results to ARIMA order selection

Fixed Order
Task Metric (0,0,0) (1,0,0) (0,0,1) (2,0,0) (1,0,1) BIC-Selected
M1.1 MSE 0.912 0.915 0.914 0.927 0.924 0.928
M2.1 MSE 1.092 0.991 1.000 0.997 0.997 1.000
M3.1 MSE 1.043 1.045 1.066 1.072 1.060 1.060
SPX ETF Ret SR 0.431 −0.389 0.375 0.033 0.371 0.371
SPX ETF Vol MSE 0.0217 0.0201 0.0192 0.0195 0.0189 0.0189

Appendix E: Non-financial application

As a non-financial application we also consider the Beijing air quality data set from the UCI Machine Learning Repository. Data are collected by the Beijing Municipal Environmental Monitoring Center, and considers various air quality measurements from 12 monitoring points. We aim at forecasting each of the six types of pollution (PM2.5,PM10,03,C0,S02,N02) concentrations (in ug/m3), for each of the stations. Other features in the data set, used as predictors, include Temperature, Dewpoint Temperature, Precipitation, Pressure as well as Wind speed and Direction.

We use L=800 and set cmin=cOriginal=0.01,LD=500 In Fig. 7, we show a grid of the proportions of cases where one method outperforms another based on the RMSE metric. As it can be seen, all four OFTER configurations are outperforming all of the other ten benchmarks. In this particular case, OFTER-DR-FT outperforms the other three versions of OFTER.

Fig. 7.

Fig. 7

This heatmap is a visualization of the comparison between the different forecasting models for the air pollution data set. The proportion of the number of cases where a method (label of the vertical axis) outperforms another method (label of the horizontal axis) in terms of RMSE given in the corresponding cell

Appendix F: Theoretical results for one-sided maximal correlation

Let (xi,yi)i=1N be i.i.d. copies of a pair (x, y) with x,y∈[0,1] almost surely. Let ϕ1,…,ϕK:[0,1]→R be a fixed finite collection of measurable feature functions, and define the feature matrix Φ∈RN×K by Φi,j=ϕj(xi). Write y=(y1,…,yN)⊤, y¯=1N∑i=1Nyi, and eN=(1,…,1)⊤∈RN. The objects of interest are

A=Φ⊤ΦN-1,z=Φ⊤y,z¯=Φ⊤(y-y¯eN), F9

and the coefficient vector

cN=A-1z¯z¯⊤A-1z. F10

Their population counterparts are the K×K Gram matrix G and vectors g,μz∈RK with entries

Gjk=E[ϕj(x)ϕk(x)],gj=Cov(ϕj(x),y),μz,j=E[ϕj(x)y].

Assumption 1

(i.i.d. bounded observations) (x1,y1),…, (xN,yN) are i.i.d. with xi,yi∈[0,1] almost surely.

Assumption 2

(Bounded feature functions) There exists C<∞ such that |ϕj(v)|≤C for all v∈[0,1] and all j=1,…,K.

Assumption 3

(Invertibility) The population Gram matrix G is invertible.

Assumptions 1 and 2 together ensure all products ϕj(xi)ϕk (xi) and ϕj(xi)yi are bounded and square-integrable. Assumption 3 holds whenever ϕ1,…,ϕK are linearly independent in their function space, i.e. no nontrivial linear combination vanishes almost everywhere under the distribution of x.

Lemma 1

(Convergence of the empirical Gram matrix) Under Assumptions 1–2, A→pG in the Frobenius norm as N→∞.

Proof

The (j, k) entry of A is 1N-1∑i=1Nϕj(xi)ϕk(xi), a sample mean of i.i.d. bounded random variables with population mean Gjk. Entry-wise convergence in probability to Gjk follows from the Weak Law of Large Numbers (WLLN) and the N/(N-1)→1 correction via Slutsky’s theorem. Since K is fixed, this implies Frobenius convergence. □

Lemma 2

(Convergence of the centered cross-moment vector) Under Assumptions 1–2, z¯/(N-1)→pg as N→∞.

Proof

The j-th entry of z¯/(N-1) decomposes as

1N-1∑i=1Nϕj(xi)(yi-y¯)=1N-1∑i=1Nϕj(xi)(yi-μy)-(y¯-μy)·1N-1∑i=1Nϕj(xi),

where μy=E[y]. The first term converges in probability to gj by the WLLN, the summands being i.i.d. and bounded by 2C. The second term vanishes in probability since y¯-μy→p0 by the WLLN and 1N-1∑iϕj(xi) is bounded in probability. Slutsky’s theorem gives the result entry-wise, and vector convergence follows since K is fixed. □

Lemma 3

(Convergence of the uncentred cross-moment vector) Under Assumptions 1–2, z/(N-1)→pμz as N→∞.

Proof

The proof is identical to that of Lemma 2 without the vanishing centering term. □

Theorem 4

(Consistency of cN) Under Assumptions 1–3, with N>K and g⊤G-1μz>0,

cN→pC∗≡G-1gg⊤G-1μzasN→∞.

Proof

Setting z~=z¯/(N-1) and u~=z/(N-1), we have cN=A-1z~/z~⊤A-1u~. Lemmas 1–3 give joint convergence (A,z~,u~)→p(G,g,μz). The continuous mapping theorem applied to M↦M-1, (M,v)↦Mv, and (M,v,u)↦v⊤Mu then yields A-1→pG-1, A-1z~→pG-1g, and z~⊤A-1u~→pg⊤G-1μz, respectively. Since the denominator converges to the strictly positive constant g⊤G-1μz, Slutsky’s theorem concludes the proof. □

Theorem 5

(Op(N-1/2) convergence rate) Under Assumptions 1–3, with K fixed, N>K, and g⊤G-1μz>0, there exists a constant M<∞, depending only on C, K, ‖G-1‖F, and g⊤G-1μz, such that

cN-c∗=Op(N-1/2)

Proof

Write z~=z¯/(N-1), u~=z/(N-1), and f(A,z~,u~) for the cN map, so that OSMC∗=f(G,g,μz) is the probability limit established in Theorem 4.

Since all summands are i.i.d. and bounded, Hoeffding’s inequality gives exponential tail bounds for each entry of A, z~, and u~. A union bound over all K2+2K entries gives

‖A-G‖F=Op(N-1/2),‖z~-g‖=Op(N-1/2),‖u~-μz‖=Op(N-1/2), F11

with constants depending on C and K.

Let λmin(G)>0 denote the smallest eigenvalue of G, which is positive by Assumption 3. On the event EN={‖A-G‖F≤λmin(G)/2}, which has probability tending to one by (F11), A is itself invertible and the identity A-1-G-1=A-1(G-A)G-1 gives

‖A-1-G-1‖F≤‖A-1‖F‖G-A‖F‖G-1‖F.

On EN, all eigenvalues of A are at least λmin(G)/2>0, so ‖A-1‖F≤2/λmin(G), and similarly ‖G-1‖F≤K/λmin(G). Substituting,

‖A-1-G-1‖F≤2λmin(G)2‖A-G‖F=Op(N-1/2),

where the last equality uses (F11) and the constants are absorbed into M.

Since f is continuously differentiable in a neighborhood of (G,g,μz), a first-order Taylor expansion gives

f(A,z~,u~)-f(G,g,μz)=∇f|(G,g,μz)·A-Gz~-gu~-μz+opA-Gz~-gu~-μz.

The gradient ∇f evaluated at the population point has finite norm, depending on λmin(G)-1 (through G-1) and (g⊤G-1μz)-1/2 (through the denominator of f), both of which are finite by Assumption 3 and the positivity condition. Combined with (F11), the linear term is Op(N-1/2) and the remainder is op(N-1/2), giving cN-c∗=Op(N-1/2). □

Remark 6

(Bernstein polynomial features) A natural choice satisfying all three assumptions is the Bernstein basis on [0, 1], with K basis functions. Since each basis function maps [0, 1] into [0, 1], Assumption 2 holds with C=1. Assumption 3 holds whenever the distribution of x has support of positive length in [0, 1], since the Bernstein basis spans the same space as the polynomials of matching degree, and no non-zero polynomial can vanish almost everywhere under that condition. The results hold for any compact interval [a, b] by a rescaling of x, with C remaining bounded.

Author Contributions

N.M. conceptualized and conducted the research and wrote the main manuscript text. M.C. and S.H. supervised the project, provided critical feedback on the manuscript, and contributed to the overall study design. All authors reviewed and approved the final version of the manuscript.

Funding

This work was supported by the UK Engineering and Physical Sciences Research Council (EPSRC) Grant Nos. EP/R513295/1 and EP/V520202/1. For the purpose of open access, the author has applied a CC BY public copyright licence to any author accepted manuscript arising from this submission.

Data Availability

No datasets were generated or analyzed during the current study.

Declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Footnotes

1

For a common illustration of this problem, consider points that lie uniformly on a d-dimensional hypercube of side length (1+ϵ)r. In this setup, only a proportion of (1+ϵ)-d data points lie in the central inner hypercube of side length r, with the rest of the points lying in the outer shell. This demonstrates that the distance between data points becomes unsuitable for a meaningful description of the structure of high-dimensional data sets.

2

Using a QR-decomposition algorithm, we can express X=QR, where Q is an orthogonal matrix and R is an upper-triangular matrix. Then, we remove any feature i, where |Ri,i|<ϵ for some small ϵ>0.

3

If F is chosen to be the class of all functions, then the solution to the above problem can easily be shown to have the trivial solution ϕ(V1)=V2-EV2Var(V2).

4

In its most usual form it says that for any real continuous function f on the interval a,b and ϵ>0,∃ a polynomial function g such that ∀x∈a,b, we have |f(x)-g(x)|<ϵ.

5

This is due to PCA consisting of a covariance estimation step with complexity O(nd2) and a spectral decomposition step of complexity O(d3).

6

Note that this is a pattern for this specific toy data set and not a general pattern.

7

Alternatively, we can take a weighted average of the forecasts of each model, but the performance was inferior.

8

We use a significance level of 0.001. We consider a specific lag effect significant if the confidence interval of either the ACF or the PACF is above or below zero. It is important to note that in some cases, the ACF and PACF values can fail to identify the need of an ARIMA model. However, including this criterion can make the algorithm significantly faster, when forecasting targets like price returns.

9

To avoid look-ahead bias, the steps at lines 1, 3, 4, 6, 7, 8, 11, and 14 of Algorithm 1 use only observations available up to the training cutoff L0. During the online phase, predictions at time t (line 16) are generated using observations from t-L up to t. The OLS model is subsequently re-fitted using only observations from t-L up to t, while the steps at lines 17-19 perform one-step updates of the previous states. Hence, neither prediction nor model fitting uses observations from future time-steps.

10

The returns considered are adjusted for splits and dividends.

11

The industry portfolio returns and the daily market factors are taken directly from the Kenneth R. French library [49]. Based on a market portfolio, the three factors include small minus big (SMB) based on firm size, high minus low (HML) based on the book-to-market ratio, and the market excess return of the portfolio.

12

Using the Sharpe Ratio significance test of [48]. This is based on a generalization of the t-test, that accounts for the non-normality of returns, by taking into account the kurtosis and skewness of the P&L distribution.

13

Instead of dtmin, one could employ the average distance d¯t=∑j=t-Lt-1dj,tt.

14
We remind the reader that the Newton method searches for a solution to f(x)=0, starting from point x0, and then considers the sequence
xn+1=xn-f(xn)f′(xn),
until a solution is obtained.

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

  • 1.Ahmed, N.K., Atiya, A.F., Gayar, N.E., El-Shishiny, H.: An empirical comparison of machine learning models for time series forecasting. Economet. Rev. 29(5–6), 594–621 (2010). 10.1080/07474938.2010.481556 [DOI] [Google Scholar]
  • 2.Hochreiter, S., Schmidhuber, J.: Long short-term memory. Neural Comput. 9(8), 1735–1780 (1997). 10.1162/neco.1997.9.8.1735 [DOI] [PubMed] [Google Scholar]
  • 3.Cornegruta, S., Bakewell, R., Withey, S., Montana, G.: Modelling radiological language with bidirectional long short-term memory networks. In: Proceedings of the Seventh International Workshop on Health Text Mining and Information Analysis, pp. 17–27. Association for Computational Linguistics, Auxtin, TX (2016). 10.18653/v1/W16-6103 [DOI]
  • 4.Chung, J., Gulcehre, C., Cho, K., Bengio, Y.: Empirical evaluation of gated recurrent neural networks on sequence modeling. In: NIPS 2014 Workshop on Deep Learning, (2014)
  • 5.Flunkert, V., Salinas, D., Gasthaus, J.: Deepar: probabilistic forecasting with autoregressive recurrent networks. Int. J. Forecast. (2017). 10.1016/j.ijforecast.2019.07.001 [DOI] [Google Scholar]
  • 6.Lim, B., Arık, S.O., Loeff, N., Pfister, T.: Temporal fusion transformers for interpretable multi-horizon time series forecasting. Int. J. Forecast. 37(4), 1748–1764 (2021). 10.1016/j.ijforecast.2021.03.012 [DOI] [Google Scholar]
  • 7.de O. Santos Júnior, D.S., de Oliveira, J.F.L., de Mattos Neto, P.S.G.: An intelligent hybridization of arima with machine learning models for time series forecasting. Knowl. -Based Syst. 175, 72–86 (2019) 10.1016/j.knosys.2019.03.011 [DOI]
  • 8.Firmino, P.R.A., de Mattos Neto, P.S.G., Ferreira, T.A.E.: Correcting and combining time series forecasters. Neural Netw. 50, 1–11 (2014) 10.1016/j.neunet.2013.10.008 [DOI] [PubMed]
  • 9.Panigrahi, S., Behera, H.S.: A hybrid ets–ann model for time series forecasting. Engineering Appl. Artif. Intell. 66, 49–59 (2017) 10.1016/j.engappai.2017.07.007 [DOI]
  • 10.Pai, P.-F., Lin, C.-S.: A hybrid arima and support vector machines model in stock price forecasting. Omega 33(6), 497–505 (2005). 10.1016/j.omega.2004.07.024 [DOI] [Google Scholar]
  • 11.Zhang, G.P.: Time series forecasting using a hybrid arima and neural network model. Neurocomputing 50, 159–175 (2003). 10.1016/S0925-2312(01)00702-0 [DOI] [Google Scholar]
  • 12.Zyga, K., Price, R., Williams, B.: A generalized regression neural network for logo recognition. In: KES’2000. Fourth International Conference on Knowledge-Based Intelligent Engineering Systems and Allied Technologies. Proceedings (Cat. No.00TH8516), vol. 2, pp. 475–478 (2000). 10.1109/KES.2000.884092 [DOI]
  • 13.Amanda, J.C., Gary, A.R., Tami, M.B.-B., Joseph, P.C., Brittney, N.K.: Feed-forward and generalised regression neural networks in modelling feeding behaviour of pigs in the grow-finish phase. Biosystems Engineering 173, 124–133 (2018) 10.1016/j.biosystemseng.2018.02.005 . Advances in the Engineering of Sensor-based Monitoring and Management Systems for Precision Livestock Farming [DOI]
  • 14.Pal, M.: Modelling pile capacity using generalised regression neural network. In: Proceedings of Indian Geotechnical Conference December, pp. 15–17. (2011)
  • 15.Al-Mahasneh, A.J., Anavatti, S., Garratt, M., Pratama, M.: Applications of general regression neural networks in dynamic systems. In: Asadpour, V. (ed.) Digital Systems, pp. 133–154. IntechOpen, Rijeka (2018). Chap. 8. 10.5772/intechopen.80258 [DOI]
  • 16.J. Wang, J.Z., M. Xu, H.W.: Classification of imbalanced data by using the smote algorithm and locally linear embedding. Signal Processing, 2006 8th International Conference on. Vol. 3. IEEE (2007)
  • 17.Tenenbaum, J.B., Silva, V., Langford, J.C.: A Global Geometric Framework for Nonlinear Dimensionality Reduction. Science 290(5500), 2319–2323 (2000) [DOI] [PubMed] [Google Scholar]
  • 18.Donoho, D.L., Grimes, C.: Hessian eigenmaps: locally linear embedding techniques for high-dimensional data. Proc. Natl. Acad. Sci. 100(10), 5591–5596 (2003) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Belkin, M., Niyogi, P.: Laplacian eigenmaps for dimensionality reduction and data representation. Neural Comput. 15(6), 1373–1396 (2003). 10.1162/089976603321780317 [DOI] [Google Scholar]
  • 20.Coifman, R.R., S., L.: Diffusion maps. Appl. Comput. Harm. Anal. 21(1), 5–30 (2006) 10.1016/j.acha.2006.04.006. Special Issue: Diffusion Maps and Wavelets [DOI]
  • 21.Kramer, M.A.: Nonlinear principal component analysis using autoassociative neural networks. AIChE J. 37(2), 233–243 (1991). 10.1002/aic.690370209 [DOI] [Google Scholar]
  • 22.Pulgar, F.J., Charte, F., Rivera, A.J., Jesus, M.J.: Aeknn: an autoencoder KNN-based classifier with built-in dimensionality reduction. Int. J. Comput. Intell. Syst. 12, 436–452 (2019). 10.2991/ijcis.2018.125905686 [DOI] [Google Scholar]
  • 23.Huang, D., Jiang, F., Li, K., Tong, G., Zhou, G.: Scaled pca: A new approach to dimension reduction. Manage. Sci. 68(3), 1678–1695 (2022). 10.1287/mnsc.2021.4020 [DOI] [Google Scholar]
  • 24.Chiavazzo, E., Gear, C., Dsilva, C., Rabin, N., Kevrekidis, I.: Reduced models in chemical kinetics via nonlinear data-mining. Processes 2, (2013). 10.3390/pr2010112 [DOI]
  • 25.Papaioannou, P.G., Talmon, R., Kevrekidis, I.G., Siettos, C.: Time-series forecasting using manifold learning, radial basis function interpolation, and geometric harmonics. Chaos: An Interdiscipl. J. Nonlinear Sci. 32(8), 083113 (2022) 10.1063/5.0094887 [DOI] [PubMed]
  • 26.Yan, X., Bai, J., Li, X., Chen, Z.: Can dimensional reduction technology make better use of the information of uncertainty indices when predicting volatility of chinese crude oil futures? Resources Policy 75, 102521 (2022) 10.1016/j.resourpol.2021.102521 [DOI]
  • 27.Joseph, K., Babajide Wintoki, M., Zhang, Z.: Forecasting abnormal stock returns and trading volume using investor sentiment: Evidence from online search. Int. J. Forecast. 27(4), 1116–1127 (2011). 10.1016/j.ijforecast.2010.11.001 [DOI] [Google Scholar]
  • 28.Liu, X., Lai, K.: Intraday volume percentages forecasting using a dynamic svm-based approach. J. Syst. Sci. Complexity 30, 421–433 (2017) [Google Scholar]
  • 29.Libman, D., Haber, S., Schaps, M.: Volume prediction with neural networks. Front. Artif. Intell. (2019). 10.3389/frai.2019.00021 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Fix, E., Hodges, J.L.: Discriminatory analysis. nonparametric discrimination: Consistency properties. Int. Stat. Rev. / Revue Internationale de Statistique 57(3), 238–247 (1989). Accessed 2022-06-04
  • 31.Specht, D.F.: A general regression neural network. IEEE Trans. Neural Netw. 2(6), 568–576 (1991). 10.1109/72.97934 [DOI] [PubMed] [Google Scholar]
  • 32.Nadaraya, E.A.: On estimating regression. Theory Probab. Appl. 9(1), 141–142 (1964). 10.1137/1109020 [DOI] [Google Scholar]
  • 33.Watson, G.S.: Smooth regression analysis. Sankhyā: The Indian J. Stati., Series A (1961–2002) 26(4), 359–372 (1964). Accessed 2024-03-02
  • 34.Bouchaud, J.-P., Potters, M.: Financial applications of random matrix theory: a short review. In: The Oxford Handbook of Random Matrix Theory. Oxford University Press, Oxford (2015). 10.1093/oxfordhb/9780198744191.013.40 [DOI]
  • 35.Breiman, L., Friedman, J.H.: Estimating optimal transformations for multiple regression and correlation. J. Am. Stat. Assoc. 80(391), 580–598 (1985). 10.1080/01621459.1985.10478157 [DOI] [Google Scholar]
  • 36.Lorentz, G.G.: Bernstein Polynomials. AMS Chelsea Publishing Series. Chelsea Publishing Company (1986). https://books.google.co.uk/books?id=nXiRAKzpdjUC
  • 37.Hosaka, M.: Bézier Curves and Control Points, pp. 117–139. Springer, Berlin, Heidelberg (1992). 10.1007/978-3-642-76598-8_9 [DOI]
  • 38.Piegl, L., Tiller, W.: B-spline Curves and Surfaces, pp. 81–116. Springer, Berlin and Heidelberg (1997). 10.1007/978-3-642-59223-2_3 [DOI]
  • 39.Mitz, R., Shkolnisky, Y.: ROIPCA: an online PCA algorithm based on rank-one updates. CoRR abs/1911.11049 (2019) arXiv: 1911.11049
  • 40.Bunch, J.R., Nielsen, C.P., Sorensen, D.C.: Rank-one modification of the symmetric eigenproblem. Phys. Scr., (1978)
  • 41.Mitz, R., Sharon, N., Shkolnisky, Y.: Symmetric rank-one updates from partial spectrum with an application to out-of-sample extension. SIAM J. Matrix Anal. Appl. 40, 973–997 (2017) [Google Scholar]
  • 42.Melman, A.: Numerical solution of a secular equation. Numer. Math., (1995)
  • 43.Bergmeir, C., Benítez, J.M.: On the use of cross-validation for time series predictor evaluation. Inform. Sci. 191, 192–213 (2012) 10.1016/j.ins.2011.12.028. Data Mining for Software Trustworthiness [DOI]
  • 44.Moura, T.J.M., Cavalcanti, G.D.C., Oliveira, L.S.: Evaluating Competence Measures for Dynamic Regressor Selection, (2019)
  • 45.Silva, E.G., Cavalcanti, G.D.C., Oliveira, J.F.L., Mattos Neto, P.S.G.: On the evaluation of dynamic selection parameters for time series forecasting. In: 2020 International Joint Conference on Neural Networks (IJCNN), pp. 1–7 (2020). 10.1109/IJCNN48605.2020.9207222 [DOI]
  • 46.Nicolaou, N., Constandinou, T.: A nonlinear causality estimator based on non-parametric multiplicative regression. Front. Neuroinform. (2016). 10.3389/fninf.2016.00019 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Sharpe, W.F.: The sharpe ratio. J. Portfolio Manag. 21(1), 49–58 (1994) [Google Scholar]
  • 48.Bailey, D., Prado, M.: The deflated sharpe ratio: Correcting for selection bias, backtest overfitting, and non-normality. J. Portf. Manag. 40, 94–107 (2014) [Google Scholar]
  • 49.Kenneth R. French - Data Library. http://mba.tuck.dartmouth.edu/pages/faculty/ken.french/data_library.html. Accessed: 2023-02-02
  • 50.Diebold, F., Mariano, R.: Comparing predictive accuracy. J. Bus. Econ. Stat. 13(3), 253–63 (1995) [Google Scholar]
  • 51.Rudd, R.W.: Theil, henri, applied economic forecasting. Am. J. Agr. Econ. 49, 241–243 (1967) [Google Scholar]
  • 52.Bliemel, F.: Theil’s forecast accuracy coefficient: A clarification. J. Mark. Res. 10(4), 444–446 (1973). 10.1177/002224377301000413 [DOI] [Google Scholar]
  • 53.Schölkopf, B., Williamson, R., Smola, A., Shawe-Taylor, J., Platt, J.: Support vector method for novelty detection. In: Proceedings of the 12th International Conference on Neural Information Processing Systems. NIPS’99, pp. 582–588. MIT Press, Cambridge, MA, USA (1999)
  • 54.Godfrey, M.D.: Elements of Numerical Analysis, by Peter Henrici (John Wiley and Sons, New York, 1964), pp. 328. Naval Research Logistics Quarterly 12(2), 195–195 (1965) 10.1002/nav.3800120209 [DOI]
  • 55.Hastie, T., Tibshirani, R., Friedman, J.: The Elements of Statistical Learning. Springer Series in Statistics. Springer, New York, NY, USA (2001)

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

No datasets were generated or analyzed during the current study.


Articles from International Journal of Data Science and Analytics are provided here courtesy of Springer

RESOURCES