Neural network linear forecasts for stock returns Angelos Kanas, страница 5

ANN

parameters

DJ index

FT index

a1

−8.41

−0.17

a2

0.87

−1.62

b1

2.89

5.50

b2

−0.95

−4.31

b3

1.12

1.49

b4

2.70

−1.09

b5

−0.06

−0.32

b6

1.91

0.10

c1,1

11.22

2.66

c1,2

−3.14

−1.13

c1,3

1.36

−0.68

c1,4

10.62

−1.88

c1,5

14.37

−1.28

c1,6

10.47

−1.12

c2,1

−7.01

−4.85

c2,2

5.05

−0.32

c2,3

−4.19

−2.17

c2,4

−57.28

−58.21

c2,5

−5.01

−0.88

c2,6

−3.66

−0.59

RMSE

0.038

0.0389

aj are the weights for the direct signals from each of the two input variables to the output variable, bi is the weight for the signal from each of the six hidden units to the output variable, and cj,i are the weights for the signals from each of the two input variables, j, to the hidden units, i. i=1, 2, . . . , 6, and j=1, 2.

where yt is the stock returns series, Z1,t−1 is the lagged percentage change in trading volume, Z2,t−1 is the lagged percentage change in dividends, and wt is the error term. The explanatory variables in the linear model are the same as those in the nonlinear ANN model in order for the nonlinear model to nest the linear model.7 Different explanatory variables in the linear and nonlinear models would entail non-nesting of the models.

The model in Equation (2) is estimated using ordinary least squares (OLS) for the same period as the ‘training’ period of the ANN. Table 3 reports the results. The lagged trading volume and lagged dividends are not statistically significant for both indices. Furthermore, according to the Ramsey’s RESET test for correct functional form, the null hypothesis that the examined (linear) functional form is correct is rejected for both indices. A comparison of the results between the linear model and the linear component of the ANN (parameters a1 and a2) reveals that the value of the estimated coefficients differs between the two models. The coefficients for the dividend variable are 0.008 (DJ) and 0.009 (FT) for the linear model whereas they are −8.41 (DJ) and −0.17 (FT) for the ANN. Similar comments apply to the trading volume variable. On the basis of these estimated coefficients, out-of-sample forecasts (i.e. linear forecasts) were generated and compared to the nonlinear forecasts for the subsequent period. The use of this traditional linear forecasting procedure and its comparison to nonlinear procedures is discussed in Clemen (1989) and Granger (1989).

4. OUT-OF-SAMPLE FORECASTING

This section focuses on the out-of-sample forecasting ability of the ANN and the linear models. It is important to note that we examine exclusively the out-of-sample forecasting ability of the two competing models and, therefore, we do not automatically favor the model with the higher flexibility of fit the data in-sample, i.e. the ANN model. The out-of-sample forecasts refer to the period January 1995–June 1999, which is the ‘testing’ period for the ANN. On the basis of the estimated coefficients of the ANN and the

Table 3. Linear model estimation: period: January 1980–December 1994