Professional Documents
Culture Documents
I.
INTRODUCTION
BACKGROUND
modulus yields the value "c mod n = 5 mod 2 = 1". If there are
n choices, each choice is numbered consecutively from 0 and
up to n-1. Therefore, the second choice is selected from the
result of the modulus operation, i.e. "(<signal>) and
(<signal>)". This is then substituted into the original string in
place of the "<signal>" symbol in the "if(<signal>)" string,
which yields the resulting string "if((<signal>) and
(<signal>)) {<forecast>;} else {<forecast>;}". This process is
repeated until all the non-terminals have been replaced by
terminals.
Selection, crossover and mutation on the bit string
(genotype) is handled in the same way as in the traditional
genetic algorithm (GA). Likewise, the population size and the
number of generations are used to control the evolutionary
process as in the genetic algorithm.
Since grammatical evolution (GE) produces transparent
models, it was selected as the evolutionary strategy for our
study. Version 2.0 of the freely available GE software GEVA
(Grammatical Evolution in jaVA) [7] was used to evolve our
trading models. A comprehensive list of research relating to
GE can be found in [8].
III.
RELATED WORK
METHOD
Setting
Generations
Population Size
Selection Operator
Tournament Size
Crossover Operator
Crossover Probability
Mutation Operator
Mutation Probability
Replacement Type
Elitism
Elite Size
50
1000
Tournament Selection
3
Single Point Crossover
0.8
Bit Flip
0.01
Generational
True
1
TABLE II
Training
Validation
Test
Training
Validation
Test
Training
Validation
Test
Training
Validation
Test
Training
Validation
Test
Return ($)
RESULTS
Dataset
SR
MD
WINDOW 1
19,596
2.28
-0.52
17
2.21
-3.47
113
2.05
-1.77
WINDOW 2
20,937
2.16
-0.50
85
2.37
-0.50
957
122.4
-0.15
WINDOW 3
21,166
2.29
-0.50
3
0.00
-6.50
65
0.69 -35.28
WINDOW 4
21,104
2.38
-0.40
27
2.26
0.00
2,568
4,49 -32.22
TOTAL AVERAGE
20,701
2.28
-0.48
33
1.71
-2.62
926
41.71 -17.35
TC
TF
TIM
44
12
3
2.76
1.54
2.25
59.91
330.10
11.10
51
4
3
3.18
0.50
0.77
61.24
12.00
46.74
47
22
6
2.91
2.75
1.57
56.55
0.36
135.52
41
6
7
2.58
0.75
1.75
62.82
11.17
51.83
46
11
5
2.85
1.39
1.58
60.13
88.41
61.30
TABLE III
663,477
220,720
-33,517
Train
Valid
Test
721,852
143,972
90,727
Train
Valid
Test
728,823
14,990
317,502
Train
Valid
Test
917,570
199,594
-99,742
Train
Valid
Test
757,931
144,819
68,742
SR
MD
TC
WINDOW 1
0.18 -220,176 20077
0.22
-51130
9993
-0.02 -244264
5017
WINDOW 2
0.17 -243995 19888
0.07 -220008 15370
0.13
-72281
4727
WINDOW 3
0.17 -242237 19207
0.01 -218548
9949
0.43
-35126
4711
WINDOW 4
0.20 -242469 19613
0.21
-72918
9970
-0,09 -260013
5148
TOTAL AVERAGE
0.18 -237219 19697
0.13 -140651 11321
0.11 -152921
4901
TF
TIM
1254
1249
1254
74.23
72.15
87.93
1242
1921
1181
65.75
90.95
56.92
1200
1243
1177
66.28
88.65
60.49
1225
1246
1286
62.75
64.36
117.91
1231
1415
1225
67.25
79.03
16.24
TABLE V
TABLE IV
-15,604
-5,108
-1,519
Train
Valid
Test
-4,867
-7,792
-3,437
Train
Valid
Test
-6,684
-6,144
-6,477
Train
Valid
Test
1,690
-1,902
828
Train
Valid
Test
-6,366
-5,237
-2,651
SR
MD
TC
WINDOW 1
0.00 -230,204 14917
0.00
-49577
7448
0.00
-23455
3714
WINDOW 2
0.00 -214128 14923
0.00
-49279 11309
0.00
-87205
3649
WINDOW 3
0.00 -163740 14957
0.00
-91101
7453
0.00
-23782
3754
WINDOW 4
0.00 -170134 14933
0.00
-74506
7432
0,00
-30553
3694
TOTAL AVERAGE
0.00 -194552 14933
0.00
-66116
8411
0.00
-41249
3703
TF
TIM
932
930
928
51.80
47.77
18.00
932
1413
912
49.23
45.97
55.00
934
931
938
42.73
52.50
17.00
933
929
923
56.63
44.40
26.00
933
1051
925
50.09
47.67
29.00
Dataset
Return ($)
RiskAdj
Return
Random
87.0
-2.730.50
-1,519.50
RiskAdj
Return
Random
1,934.00
75860.00
-3,437.00
RiskAdj
444.00
Return 282308.00
Random -6,477.00
RiskAdj
1,634.00
Return -78,907.50
Random
828.00
RiskAdj
1,024.75
Return 93,086.83
Random -2,651.37
SR
MD
TEST WINDOW 1
87.0
0.00
0.00 -239339.50
-0.00 -23455.50
TEST WINDOW 2
1.65
-0.50
0.07 -90408.00
-0.00 -87205.50
TEST WINDOW 3
0.47
-77.50
0.50 -34345.50
-0.01 -23782.50
TEST WINDOW 4
0,88
-25.50
-0.07 -228615.50
0.00 -30553.00
TOTAL AVERAGE
29.71
-25.87
0.13 -148177.13
0.00 -41249.13
TC
TF
TIM
1
0.25 4.00
5536 1384.00 77.97
3714 928.50 18.00
7
1.75 48.29
5505 1376.25 44.52
3649 912.25 55.00
12
3009
3754
3.00 37.50
752.25 85.78
938.50 17.00
7
1.75 31.71
5190 1297.50 100.44
3694 923.50 26.00
7
1.69 30.37
4810 1202.50 77.18
3703 925.69 29.00
VI.