• No se han encontrado resultados

3. EL CUENTO COMO RECURSO DIDÁCTICO: “NEGRO Y EL CUERVO”

3.1 CONTEXTUALIZACIÓN

13.3 Genetic Programming Market Efficiency Tests 98

SamplergprbhrSORgpSORbhSOR PanelA:Transactioncosts0.1% 9799/00020.1635450.2831630.1196180.5041420.8837160.379574 9800/01030.1544620.1544620.0000000.4562850.4562850.000000 9901/02040.1100890.0653710.1754610.3379410.2092920.547233 0002/03050.0218800.1843000.1624200.0000000.8378310.837831 0103/04060.0209800.1645650.1435850.1100691.0327690.922701 0204/05070.1237350.2097260.0859910.7484161.3429230.594507 PanelB:Transactioncosts0.25% 9799/00020.3025970.2841630.0184340.9371190.8866190.050500 9800/01030.1692370.1554620.0137750.4998080.4592390.040569 9901/02040.1558000.0663710.0894280.4620510.2127720.249279 0002/03050.0134330.1833000.1967330.0362560.8329640.869220 0103/04060.1429120.1635650.0206530.8836751.0263030.142627 0204/05070.1543090.2087260.0544170.9246671.3363890.411723 PanelC:Transactioncosts0.5% 9799/00020.2866800.2858300.0008500.8972850.8914290.005856 9800/01030.1837720.1571290.0266430.5424280.4647550.077673 9901/02040.0105010.0680380.0575370.0332010.2181090.184907 0002/03050.0144790.1816340.1961120.0335320.8247350.858267 0103/04060.0769260.1618980.0849720.4712281.0169020.545674 0204/05070.1512250.2070590.0558350.9306451.3273110.396666 Table13.5b:3-yearstrainingand3-yearssout-of-sampleDAXresults.“Sample”denotesthelengthoftraining andsubsequentout-of-sampleperiod.rgpandrbhdenotetheannualizedout-of-samplereturnsfor theGPtradingruleandbuy-and-hold,respectively.risthedifferencebetweenthem.SORgp andSORbhindicatetherepectiveannualizedSortinoratiosfortheGPtradingruleandbuy-and- hold,SORmeasuresthedifferencebetweenthetwoandisequaltoSORinthepreceding table.

13.3 Genetic Programming Market Efficiency Tests 99

SampleExcessSOR#TNbNsσbσs¯rb¯rs(¯rb¯rs)(¯rb¯rm) PanelA:Transactioncosts0.1% 9701/020.2893210.7129263176760.0262350.0228740.0016870.0037290.0020430.000616 9802/030.1660920.42729541041480.0128940.0228080.0006700.0011810.0005110.000300 9903/040.1450910.7903534159970.0109960.0076730.0005630.0015160.0020790.000788 0004/050.1008270.72999711441120.0070200.0083960.0008400.0009850.0001450.000063 0105/060.0118560.073692125130.0097560.0066230.0007130.0040460.0033330.000039 0206/070.1416001.150162122490.0006460.0098000.0040230.0007250.0032980.003272 PanelB:Transactioncosts0.25% 9701/020.2914170.84187015154980.0289480.0180060.0015040.0035580.0020540.000799 9802/030.0244800.26952111401120.0136280.0246990.0014880.0003230.0011650.000518 9903/040.0627040.3660269196600.0104840.0077870.0001520.0004600.0003080.000072 0004/050.2049571.752057002560.0000000.0076370.0000000.0009030.0009030.000903 0105/060.1594690.918730142500.0112500.0097220.0008720.0007500.0001220.000120 0206/070.1285860.7475231452060.0094730.0098510.0006270.0007780.0001510.000124 PanelC:Transactioncosts0.5% 9701/020.5466561.2719631991530.0134110.0305410.0005390.0034440.0029040.001763 9802/030.2246270.7239533871650.0127000.0220420.0002730.0013380.0010650.000697 9903/040.0389180.2349821198580.0106670.0067260.0000690.0007530.0006840.000155 0004/050.0730230.5411691188680.0076430.0076710.0008110.0011600.0003490.000093 0105/060.1010900.3742191542000.0068130.0103790.0012680.0006130.0006560.000516 0206/070.1455980.8675181512000.0091940.0099240.0002390.0008820.0006420.000512 Table13.6a:5-yearstrainingand1-yearout-of-sampleDAXresults.“Sample”denotesthetrainingperiodusedfollowedbytheout-of-sampletestingperiod (forexample97-99impliesthattrainingdatafrom1997,1998and1999havebeenusedtoderiveatradingrulewhichisthenappliedout-of-sample todatafrom2000andsoon).“Excess”measuresthefitnessimpliedbyaGPtradingruledefinedasexcessreturnoverabuy-and-holdstrategy duringtheout-of-sampleperiod,i.e.(rgprbh).SORindicatestheexcessSortinoratiodefinedas(SORgpSORbh)(bothannualized)over thespecifiedout-of-sampleperiod.#Tindicatesthenumberoftradesexecutedbyatradingruleduringout-of-sampletestingwithNbandNs denotingthenumberofbuy-days(in-the-market)andsell-days(out-of-the-market),respectively.σbandσsindicatethestandarddeviationof returnsduringGP-in-market-daysandGP-out-of-market-days,respectively.¯rband¯rsdenotethemeandailymarketreturnduringGP-in-daysand GP-out-dayswith(¯rb¯rs)asthedifferencebetweenthetwo.(¯rb¯rm)measuresthedifferencebetweenmeandailyreturnsduringGP-in-days andbuy-and-hold.

13.3 Genetic Programming Market Efficiency Tests 100

SamplergprbhrSORgpSORbhSOR PanelA:Transactioncosts0.1% 9701/020.2929760.5822960.2893210.7570541.4699800.712926 9802/030.0764270.2425200.1660920.3681080.7954030.427295 9903/040.0896510.0554400.1450910.4648080.3255460.790353 0004/050.1284570.2292840.1008271.0504371.7804350.729997 0105/060.1771350.1889910.0118561.0238301.0975220.073692 0206/070.0449350.1865340.1416000.0000001.1501621.150162 PanelB:Transactioncosts0.25% 9701/020.2938790.5852960.2914170.6356841.4775540.841870 9802/030.2150390.2395200.0244801.0549360.7854150.269521 9903/040.0102640.0524400.0627040.0568200.3092060.366026 0004/050.0213270.2262840.2049570.0000001.7520571.752057 0105/060.0265220.1859910.1594690.1659541.0846840.918730 0206/070.0549480.1835340.1285860.3892271.1367500.747523 PanelC:Transactioncosts0.5% 9701/020.0436410.5902970.5466560.2182131.4901761.271963 9802/030.0098920.2345200.2246270.0478800.7718330.723953 9903/040.0085220.0474400.0389180.0457960.2807780.234982 0004/050.1482610.2212840.0730231.1614831.7026520.541169 0105/060.0799010.1809910.1010900.6796231.0538420.374219 0206/070.0329360.1785340.1455980.2426061.1101240.867518 Table13.6b:5-yearstrainingand1-yearout-of-sampleDAXresults.“Sample”denotesthelength oftrainingandsubsequentout-of-sampleperiod.rgpandrbhdenotetheannualized out-of-samplereturnsfortheGPtradingruleandbuy-and-hold,respectively.risthe differencebetweenthem.SORgpandSORbhindicatetherepectiveannualizedSortino ratiosfortheGPtradingruleandbuy-and-hold,SORmeasuresthedifferencebetween thetwoandisequaltoSORintheprecedingtable.

13.3 Genetic Programming Market Efficiency Tests 101

SampleExcessSOR#TNbNsσbσs¯rb¯rs(¯rb¯rs)(¯rb¯rm) PanelA:Transactioncosts0.1% 9701/02030.1765560.24347643911140.0229350.0220010.0002460.0014810.0012360.000279 9802/03040.1646470.21588751723370.0110350.0170810.0007480.0005540.0001940.000129 9903/04050.1659480.56484074111020.0091120.0076000.0003280.0015910.0012630.000251 0004/05060.2707650.75973711443670.0070200.0093200.0008400.0008420.0000020.000001 0105/06070.0118560.037997150330.0097560.0066230.0007560.0040460.0032900.000020 PanelB:Transactioncosts0.25% 9701/02030.2962830.411566213171880.0245230.0192510.0003460.0019920.0023380.000870 9802/03040.0672490.01661611483610.0133630.0160270.0014600.0002750.0011860.000841 9903/04050.0627040.2240329453600.0089770.0077870.0005950.0004600.0001350.000016 0004/05060.3750421.393211005110.0000000.0087270.0000000.0008410.0008410.000841 0105/06070.1594690.46159012562500.0097750.0097220.0008000.0007500.0000500.000025 PanelC:Transactioncosts0.5% 9701/02030.3610940.61492021423630.0126420.0256010.0004680.0009130.0013810.000993 9802/03040.2673960.5207703954140.0123360.0159100.0003320.0006850.0003530.000287 9903/04050.2506390.83761243291840.0098180.0067140.0001860.0012820.0010960.000393 0004/05060.2429610.68033711883230.0076430.0093110.0008110.0008590.0000480.000031 0105/06070.1010900.24590313062000.0093130.0103790.0008810.0006130.0002690.000106 Table13.7a:5-yearstrainingand2-yearsout-of-sampleDAXresults.“Sample”denotesthetrainingperiodusedfollowedbytheout-of-sampletestingperiod (forexample97-99impliesthattrainingdatafrom1997,1998and1999havebeenusedtoderiveatradingrulewhichisthenappliedout-of-sample todatafrom2000andsoon).“Excess”measuresthefitnessimpliedbyaGPtradingruledefinedasexcessreturnoverabuy-and-holdstrategy duringtheout-of-sampleperiod,i.e.(rgprbh).SORindicatestheexcessSortinoratiodefinedas(SORgpSORbh)(bothannualized)over thespecifiedout-of-sampleperiod.#Tindicatesthenumberoftradesexecutedbyatradingruleduringout-of-sampletestingwithNbandNs denotingthenumberofbuy-days(in-the-market)andsell-days(out-of-the-market),respectively.σbandσsindicatethestandarddeviationof returnsduringGP-in-market-daysandGP-out-of-market-days,respectively.¯rband¯rsdenotethemeandailymarketreturnduringGP-in-daysand GP-out-dayswith(¯rb¯rs)asthedifferencebetweenthetwo.(¯rb¯rm)measuresthedifferencebetweenmeandailyreturnsduringGP-in-days andbuy-and-hold.

13.3 Genetic Programming Market Efficiency Tests 102

SamplergprbhrSORgpSORbhSOR PanelA:Transactioncosts0.1% 9701/02030.0451800.1334580.0882780.1298940.3733700.243476 9802/03040.0743370.1566610.0823240.4138990.6297860.215887 9903/04050.0645360.1475090.0829740.4016120.9664530.564840 0004/05060.0785970.2139800.1353820.6439771.4037140.759737 0105/06070.1891770.1951050.0059281.1272811.1652780.037997 PanelB:Transactioncosts0.25% 9701/02030.0131830.1349580.1481410.0339990.3775670.411566 9802/03040.1215370.1551610.0336240.6083400.6249560.016616 9903/04050.1146570.1460090.0313520.7318080.9558400.224032 0004/05060.0249590.2124800.1875210.0000001.3932111.393211 0105/06070.1138700.1936050.0797350.6974091.1589980.461590 PanelC:Transactioncosts0.5% 9701/02030.0430890.1374580.1805470.2296280.3852920.614920 9802/03040.0189630.1526610.1336980.0938680.6146380.520770 9903/04050.0181900.1435090.1253200.1024170.9400290.837612 0004/05060.0884990.2099800.1214800.6946661.3750030.680337 0105/06070.1405600.1911050.0505450.9005111.1464140.245903 Table13.7b:5-yearstrainingand2-yearsout-of-sampleDAXresults.“Sample”denotesthelengthoftraining andsubsequentout-of-sampleperiod.rgpandrbhdenotetheannualizedout-of-samplereturnsfor theGPtradingruleandbuy-and-hold,respectively.risthedifferencebetweenthem.SORgp andSORbhindicatetherepectiveannualizedSortinoratiosfortheGPtradingruleandbuy-and- hold,SORmeasuresthedifferencebetweenthetwoandisequaltoSORinthepreceding table.

13.3 Genetic Programming Market Efficiency Tests 103

SampleExcessSOR#TNbNsσbσs¯rb¯rs(¯rb¯rs)(¯rb¯rm) PanelA:Transactioncosts0.1% 9701/02040.1765560.18727346481140.0188700.0220010.0000390.0014810.0014420.000216 9802/03050.2953490.29243393244420.0093680.0154640.0007310.0007200.0000110.000007 9903/04060.3038830.65461095771910.0093620.0083540.0003270.0016060.0012790.000318 0004/05070.4327730.80405511446190.0070200.0095000.0008400.0008240.0000160.000013 PanelB:Transactioncosts0.25% 9701/02040.2962830.316006215741880.0193810.0192510.0003140.0019920.0023060.000569 9802/03050.2978180.37483552195470.0117380.0137840.0010480.0005950.0004540.000324 9903/04060.0846200.19398411706620.0092430.0078400.0006460.0006410.0000040.000000 0004/05070.5367031.336389007630.0000000.0090800.0000000.0008270.0008270.000827 PanelC:Transactioncosts0.5% 9701/02040.2443500.28882722874750.0117410.0227730.0000400.0004330.0004720.000294 9802/03050.4855420.7271113956710.0123360.0133540.0003320.0007800.0004480.000392 9903/04060.3275650.71449454173510.0095820.0085740.0004140.0009200.0005050.000231 0004/05070.4049690.75901311885750.0076430.0095090.0008110.0008330.0000220.000016 Table13.8a:5-yearstrainingand3-yearsout-of-sampleDAXresults.“Sample”denotesthetrainingperiodusedfollowedbytheout-of-sampletestingperiod (forexample97-99impliesthattrainingdatafrom1997,1998and1999havebeenusedtoderiveatradingrulewhichisthenappliedout-of-sample todatafrom2000andsoon).“Excess”measuresthefitnessimpliedbyaGPtradingruledefinedasexcessreturnoverabuy-and-holdstrategy duringtheout-of-sampleperiod,i.e.(rgprbh).SORindicatestheexcessSortinoratiodefinedas(SORgpSORbh)(bothannualized)over thespecifiedout-of-sampleperiod.#Tindicatesthenumberoftradesexecutedbyatradingruleduringout-of-sampletestingwithNbandNs denotingthenumberofbuy-days(in-the-market)andsell-days(out-of-the-market),respectively.σbandσsindicatethestandarddeviationof returnsduringGP-in-market-daysandGP-out-of-market-days,respectively.¯rband¯rsdenotethemeandailymarketreturnduringGP-in-daysand GP-out-dayswith(¯rb¯rs)asthedifferencebetweenthetwo.(¯rb¯rm)measuresthedifferencebetweenmeandailyreturnsduringGP-in-days andbuy-and-hold.

13.3 Genetic Programming Market Efficiency Tests 104

SamplergprbhrSORgpSORbhSOR PanelA:Transactioncosts0.1% 9701/02040.0065190.0653710.0588520.0220190.2092920.187273 9802/03050.0858510.1843000.0984500.5453980.8378310.292433 9903/04060.0632700.1645650.1012940.3781591.0327690.654610 0004/05070.0654680.2097260.1442580.5388671.3429230.804055 PanelB:Transactioncosts0.25% 9701/02040.0323900.0663710.0987610.1032340.2127720.316006 9802/03050.0840280.1833000.0992730.4581290.8329640.374835 9903/04060.1353580.1635650.0282070.8323191.0263030.193984 0004/05070.0298250.2087260.1789010.0000001.3363891.336389 PanelC:Transactioncosts0.5% 9701/02040.0134120.0680380.0814500.0707180.2181090.288827 9802/03050.0197860.1816340.1618470.0976230.8247350.727111 9903/04060.0527100.1618980.1091880.3024071.0169020.714494 0004/05070.0720700.2070590.1349900.5682991.3273110.759013 Table13.8b:5-yearstrainingand3-yearsout-of-sampleDAXresults.“Sample”denotesthelengthoftraining andsubsequentout-of-sampleperiod.rgpandrbhdenotetheannualizedout-of-samplereturnsfor theGPtradingruleandbuy-and-hold,respectively.risthedifferencebetweenthem.SORgp andSORbhindicatetherepectiveannualizedSortinoratiosfortheGPtradingruleandbuy-and- hold,SORmeasuresthedifferencebetweenthetwoandisequaltoSORinthepreceding table.

13.3 Genetic Programming Market Efficiency Tests 105

1-yearout-of-sample2-yearsout-of-sample3-yearsout-of-sample TradingRuleExcessSORExcessSORExcessSOR 3-yearsin-sample9799/...c050.0325980.1359170.0058630.011110 9901/...c050.5930671.4960940.2760500.3869050.1726120.184907 0406/...c050.0161280.090852 5-yearsin-sample9701/...c0250.2914170.8418700.2962830.4115660.2962380.316006 9802/...c0250.0244800.269521 9701/...c050.5466561.2719630.3610940.6149200.2443500.288827 Table13.9:BestGeneticProgrammingtradingrulesfortheDAX.

13.3 Genetic Programming Market Efficiency Tests 106

13.3.2 Testing the Hang Seng 13.3.2.1 Test Results

Hang Seng results have been compiled in Tables 13.11a - 13.16a and adopt the already familiar table layout from the DAX scenarios. As already pointed out before, all scenarios under unrealistcally low transaction costs of c = 0.1 will not be addressed in-depth and only serve for comparative statics.

Two GP rules manage to outperform buy-and-hold under c = 0.25 in Table 13.11a. The first rule (97-99/00) is one of the rare instances where GP always stays out-of-the-market. This might reflect the aftermath of the Asian crisis starting in 1997 which coincides with the training period of the GP algorithm98.

Rolling the time window forward by one year results once more in an out-performance compared to buy-and-hold, this time with a real timing strategy.

Interestingly, the strategy starts with a prolonged out-of-the-market position and switches into the market shortly before Sept. 11th99. As this is the only trade the rule executes, it remains in-the-market even after Sept. 11th. Despite the unfortunate timing the rule yields just a small negative absolute return (-0.015305 p.a. see Table 13.11b) vs. a massive -0.270973 p.a. loss for buy-and-hold which at first sight seems puzzling. Some further analysis showed that the market was already down roughly 23% before Sept. 11th so this event did not add up much to the losses already incurred in the Hang Seng100. This explains the surprisingly good performance of the rule despite the, from an intuitive point of view, unfortunate timing101. Furthermore, volatility during buy-days is higher than during sell-days and timing abilities of the rule are insignificant. A replication of buy-and-hold is suggested for the 99-01/02 and 01-03/04 scenarios.

Focusing on the c = 0.5 panel, two rules emerge that beat buy-and-hold on

98The impact of the Asian crisis is easily spotted in Figure 13.2.

99As a general remark, GP investment positions can be easily superimposed on the respective

time series using Matlab, however the author chose not to include these charts in order to save space.

100The heavy losses may be attributed to a massive outbreak of Severe Acute Respiratory

Syn-drome (SARS) also known as bird flu in 2001.

101As a sidenote, it is interesting that the DAX (and most likely all western stock indices) were

far more affected by Sept. 11th than the Hang Seng.

13.3 Genetic Programming Market Efficiency Tests 107

a risk-adjusted basis. The 98-00/01c05 rule repeats the unfortunate timing of the rule discussed above (staying out and then switching in shortly before Sept.

11th) once more but switches out-of-the-market after 51 days rather than stay-ing in until the end of the year. As most of the total loss in 2001 already occurred before Sept. 11th, the rule manages to cut losses considerably (-0.165865 p.a.

vs. -0.275973 p.a., see Table 13.11b). Volatility during buy-days is once more higher than during sell days (0.025094 vs. 0.015039). The 99-01/02c05 rule yields positive results as well. It only takes a single in-the-market position in the mid of the trading year to cut losses considerably (-0.143000 vs. -0.206992 see Table 13.11b). Unfortunately, the difference (¯rb− ¯rs) and (¯rb− ¯rm) are in neither case statistically significant. Leaving aside the c = 0.1 rules, the remain-ing GP rules clearly underperform the benchmark. Similar to the results from the DAX, trading frequencies seems to be quite unaffected by transaction costs.

The impact of transaction costs will become more visible in the later scenarios with a 5-year training horizon.

Stretching the horizon to two years out-of-sample yields similar results (Ta-ble 13.12a). The rules obtained during the 97-99 and 98-00 training sample outperform buy-and-hold in terms of excess return and excess Sortino ratio for both transaction costs scenarios (c = 0.25 and c = 0.5). Interestingly, the same rules execute at most a single trade during the first out-of-sample year (see Table 13.11a) whereas trading activity picks up during the second year. As already observed before, volatility during in-days is higher than during out-days.

Returning to Table 13.12a, some brief remarks on the c = 0.1 rules are in order.

Despite the unrealistically low transaction cost, the algorithm did not find any successful trading rule in scenarios where the c = 0.25 and c = 0.5 rules failed as well to beat buy-and-hold. This might hint at market efficiency for these partic-ular periods in the market since even with extremely low transaction costs (and thus the possibility of almost zero transaction costs), no technical trading rule could be found that beats the benchmark. This applies to both the 3:1 and the 3:2 scenarios illustrated in Tables 13.11a and 13.12a. The 03-05/06(-07) case is an exception that yields positive returns while the same scenario under higher

13.3 Genetic Programming Market Efficiency Tests 108

transaction costs does not. However, as the rule is inexistent under realistic transaction costs, this does not contradict market efficiency. Speaking of the c = 0.1 rules in Table 13.12a, the 02-04/05-06 rule manages to forecast market returns at a statistically significant level (α = 0.05) despite a marginally nega-tive risk-adjusted performance.

As a final observation, it is worth mentioning that neither of the successful rules yields positive absolute returns p.a. (Table 13.12b). The rules rather seem to rely on their power to switch out-of-the-market at the “right time” to cut losses instead. However (¯rb− ¯rm) and (¯rb− ¯rs) are mostly insignificant in the cases discussed so far.

Stretching the out-of-sample horizon further, Table 13.13a is in line with the result discussed so far. Three rules are still successful for c = 0.25 and c = 0.5.

Interestingly, σb is roughly equal to σs for these rules which has not been the case in shorter out-of-sample scenarios.

Extending the training periods to 5 years, things look slightly different (Ta-ble 13.14a). There are only two succesful rules in total, both of them in the c = 0.25 panel. The 97-01/02 rule yields a considerably better Sortino ratio as does the 00-04/05 rule. Both rules execute just a single trade and volatility is almost equal during buy- and sell-days. All other rules fail to beat a buy-and-hold strategy, even the c = 0.1 scenarios. As another observation, the negative correlation between transaction costs and trading frequency can be seen in Ta-ble 13.14a though the effect will become more visiTa-ble later.

The results do not change much for a 2-year out-of-sample horizon (Table 13.15a). The only successful rules are the 99-03/04-05 (which was just buy-and-hold in Table 13.14a) and the 00-04/05-06 rule for c = 0.25 with the latter consisting of just a single trade. Volatility during buy-days is once more slightly higher than during sell-days. Another point is the now clearly negative rela-tionship between transaction costs and trading frequencies.

13.3 Genetic Programming Market Efficiency Tests 109

Stretching the out-of-sample period to 3 years (Table 13.16a) yields two suc-cessful rules. The 97-01/02-04c025 rule comes back into positive territory (it yielded negative returns for 2-years out-of-sample) and the 00-04/05-07c025 rule is still profitable. However, a look at the Sortino ratio shows that outperfor-mance is at most marginal for both rules. The other rule severly underperform the benchmark.

Summarizing the most important results for the Hang Seng, the following points can be made:

• GP-optimized rules largely fail at beating the buy-and-hold benchmark on a risk-adjusted basis...

• but several rules outperform the benchmark during the years 2000-2002 (technology bubble burst, bird flu, Sept. 11th)

• one rule outperforms the benchmark in later years despite a sustained rise in the index (which favours buy-and-hold)

• the rules have no statistically significant forecasting power.

A list of successful trading rules for the Hang Seng has been compiled in Table 13.17. As usual, the c = 0.1 rules will not be addressed further. In general, the power of the GP rules seems to decline over time both in terms of excess returns and excess Sortino ratios. Therefore, as pointed out before in the case of the DAX, a 1-year out-of-sample period seems to work best when using GP.

Concerning the 00-04/...c025 rule, it might seem puzzling as to why the excess return remains the same over all out-of-sample periods. Upon closer inspection of the rule (see Tables 13.14a-13.16a) it turns out that it executes a single deal during the first out-of-sample year and simply stays in-the-market afterwards when the out-of-sample period is extended to up to 3 years. The singular trade in the first year outperforms the benchmark earning 0.053836 and this return is carried throughout the subsequent periods during which the rule simply takes a sustained buy-and-hold position which does not add or subtract anything from the first year returns. Therefore, performance in excess of buy-and-hold remains the same. As already pointed out before, most of the rules (6 out of 8) beat the

13.3 Genetic Programming Market Efficiency Tests 110

market during the years 2000-2002 where the market retreated due to the burst of the dot-com bubble, bird flu in Hong Kong (which probably had the hardest impact on the Hang Seng) and the events of Sept. 11th.

13.3.2.2 Structure of Trading Rules

A set of successful rules for the Hang Seng is illustrated in Figure 13.6. The set is not exhaustive (see Table 13.17) since some rules are quite complex and do not have an easy-to-grasp economic interpretation. First of all, all rules shown have a surprisingly easy structure. A particularly easy rule was obtained during the 97-99c025 in-sample period (Figure 13.6a). The rule simply checks whether the closing price lagged by 200 days is less than the closing price lagged by 250 days102. If this is true, an in-position is taken, else the rules stays out-of-the-market.

The second tree (Figure 13.6b) depicts the rule obtained from the 98-00c025 sample and first checks whether the minimum over the last 150 trading days is less than the closing price 150 days ago and then checks whether the minimum over the last 200 trading days is less than the result from the aforementioned subtree (either 0=false or 1=true). If the rule evaluates as true, an in-the-market position is set up, else the rule stays out-of-the in-the-market. A mirrored version of this rule is shown in Figure 13.6c depicting the rule obtained for the 99-01c05 sample. It first checks whether the maximum over the last 50 trading days is greater than 1.02 and then checks whether the result from the subtree (either 0 or 1) is greater than the 150-day moving average.

Figure 13.6d features the boolean operator “and”. Basically, the “and” opera-tor evaluates as 1=true as long as both arguments related to it are both true.

Therefore, the rule first checks whether the closing price lagged by 200 days is less than the closing price lagged by 100 days. Once more the result from this subtree is either 0=false or 1=true. The rule is in the market only if the

sub-102As a reminder, all price data used in this study have been normalized by dividing the

clos-ing price by its respective 250-day movclos-ing average. All indicators have been derived from normalized prices. Therefore, when speaking of prices, moving averages etc. the respective indicators based on normalized prices rather than the original data is meant.

13.3 Genetic Programming Market Efficiency Tests 111

a)

Lag(t)(200) Lag(t)(250)

<

b)

Min(t)(200)

Min(t)(150) Lag(t)(150)

<

<

c)

Max(t)(50) 1.02

>

MA(t)(150) >

d)

Min(t)(150)

Lag(t)(200) Lag(t)(100)

<

and

Figure 13.6: Tree structure of successful Hang Seng trading rules.

13.3 Genetic Programming Market Efficiency Tests 112

tree yields 1 and the left-hand side min150 is 6= 0, else the rule stays out-of-the market103.

As a final observation, it is noteworthy that the rules illustrated in Figure 13.6 have a tendency to pick up long term indicators (100, 150, 200 and 250 trading days time span) as was the case for the DAX trading rules104. These building blocks might imply that the GP algorithm relies on long-term trends in the mar-ket rather than reacting to short-lived (white) noise. The noticeable presence of long-term indicators in successful trading rules might also imply that tech-nical trading rules should be generally based on long- rather than short-term variables.

13.3.2.3 Long Term Genetic Programming Performance

For the the sake of completeness, equity curves for 3:1 and 5:1 revolving GP strategies in the Hang Seng are illustrated in Figure 13.7. It is easily seen that GP fails to consistently beat the benchmark in all cases except the 3:1c025 sce-nario. However, one has to bear in mind that the Hang Seng showed a strong and sustained upward trend throughout the last couple of years as seen in Fig-ure 13.2 making it very hard for GP to beat buy-and-hold105. Returning to the 3:1c025 scenario in Figure 13.7, it is remarkable how well GP stays above the benchmark. It partly avoids severe losses during the years 2000-2002 and still manages to keep its head above water in the following years. The tide finally turns against GP in 2007 when the benchmark continues to rise in a sustained upward trend with the benchmark overtaking GP. The most important question arising from this picture is of course whether the EMH still holds. To check this, summary statistics for the scenario are provided in Table 13.10.

It is noteworthy that GP (possibly due to some prolonged out-of-the-market periods) results in lower volatility (0.0078 vs. 0.0136) but higher skewness in absolute terms and a way higher excess kurtosis compared to the benchmark.

103The case min150=0 occurs during the first 149 trading days as min150 has not been initialized

yet.

104The same applies to the more complex rules that have not been illustrated in Figure 13.6.

105This is of course a direct consequence of the choice of buy-and-hold as benchmark. A different

benchmark might have resulted in a more favorable outcome for GP.

13.3 Genetic Programming Market Efficiency Tests 113

In terms of total return, GP lacks behind buy-and-hold (0.2846 vs. 0.4498) but most importantly, it is on par with the benchmark in terms of Sortino ratio.

Therefore, it may be concluded that the Hang Seng was overall efficient during the years 2000-2007.

As a last exercise, the related kernel density estimates for the equity curves are shown in Figure 13.8. Three out of four scenarios feature a high spike around zero mirroring prolonged out-of-the-market positions (which tend to gather many tiny positive returns from the money market) and very small GP in-market returns. Only the 3:1c05 scenario spreads out a little more but still finishes well below the benchmark in terms of total return and Sortino Ratio (statistics not shown).

2000 2001 2002 2003 2004 2005 2006 2007

−1.2

2000 2001 2002 2003 2004 2005 2006 2007

−1.2

2002 2003 2004 2005 2006 2007

−1.2

2002 2003 2004 2005 2006 2007

−1.2

Figure 13.7: Equity curves for 3:1 and 5:1 revolving Genetic Programming strategies for the Hang Seng for c=0.25 and c=0.5.

13.3 Genetic Programming Market Efficiency Tests 114

Table 13.10: Hang Seng 3:1 c = 0.25 revolving strategy results.

−0.120 −0.1 −0.08 −0.06 −0.04 −0.02 0 0.02 0.04 0.06 0.08

Figure 13.8: Kernel smoothing density estimates for 3:1 and 5:1 Hang Seng scenarios for c=0.25 and c=0.5.

13.3 Genetic Programming Market Efficiency Tests 115

SampleExcessSOR#TNbNsσbσs¯rb¯rs(¯rb¯rs)(¯rb¯rm) PanelA:Transactioncosts0.1% 9799/000.0198130.0799681179670.0201460.0187230.0007580.0000680.0006910.000188 9800/010.0511600.2862702151910.0195570.0137550.0015070.0004210.0010860.000408 9901/020.0000000.000000124600.0122090.0000000.0008090.0000000.0008090.000000 0002/030.2631771.7235283711760.0116940.0102640.0004170.0015070.0010900.000777 0103/040.1011710.660709002480.0000000.0102770.0000000.0005770.0005770.000419 0204/050.0158330.331433002460.0000000.0072580.0000000.0001780.0001780.000178 0305/060.0773750.5589351211350.0091960.0086510.0009800.0023690.0013890.000198 0406/070.0170070.1023221145990.0192920.0114980.0020630.0000080.0020710.000840 PanelB:Transactioncosts0.25% 9799/000.2027310.446743002460.0000000.0197330.0000000.0005700.0005700.000570 9800/010.2556690.9352841921500.0207650.0153610.0004070.0015230.0011160.000692 9901/020.0000000.000000124600.0122130.0000000.0008010.0000000.0008010.000000 0002/030.2799311.896715002470.0000000.0106810.0000000.0011930.0011930.001193 0103/040.0000000.000000124800.0102780.0000000.0004270.0000000.0004270.000000 0204/050.0128330.305865002460.0000000.0072580.0000000.0001780.0001780.000178 0305/060.0433830.3597421196500.0095420.0072930.0012170.0010230.0001940.000039 0406/070.2367971.106381112430.0000000.0165690.0202720.0011440.0191280.019049 PanelC:Transactioncosts0.5% 9799/000.0175000.0207531180660.0202710.0182920.0009600.0004920.0014520.000390 9800/010.1101080.5907801511910.0249610.0150250.0036560.0004160.0032390.002557 9901/020.0639920.3788511631830.0112970.0124990.0023170.0002790.0020390.001516 0002/030.2591441.69642511021450.0109890.0104520.0003060.0018170.0015110.000887 0103/040.2991341.82238331301180.0097430.0105390.0013400.0023730.0037130.001766 0204/050.0078330.263583002460.0000000.0072580.0000000.0001780.0001780.000178 0305/060.0790270.5301413225210.0093240.0063850.0010100.0029650.0019550.000167 0406/070.0401820.2806562146980.0193040.0114320.0017260.0004730.0012530.000503 Table13.11a:3-yearstrainingand1-yearout-of-sampleHangSengresults.“Sample”denotesthetrainingperiodusedfollowedbytheout-of-sampletesting period(forexample97-99impliesthattrainingdatafrom1997,1998and1999havebeenusedtoderiveatradingrulewhichisthenapplied out-of-sampletodatafrom2000andsoon).“Excess”measuresthefitnessimpliedbyaGPtradingruledefinedasexcessreturnoverabuy-and- holdstrategyduringtheout-of-sampleperiod,i.e.(rgprbh).SORindicatestheexcessSortinoratiodefinedas(SORgpSORbh)(both annualized)overthespecifiedout-of-sampleperiod.#Tindicatesthenumberoftradesexecutedbyatradingruleduringout-of-sampletesting withNbandNsdenotingthenumberofbuy-days(in-the-market)andsell-days(out-of-the-market),respectively.σbandσsindicatethestandard deviationofreturnsduringGP-in-market-daysandGP-out-of-market-days,respectively.¯rband¯rsdenotethemeandailymarketreturnduring GP-in-daysandGP-out-dayswith(¯rb¯rs)asthedifferencebetweenthetwo.(¯rb¯rm)measuresthedifferencebetweenmeandailyreturns duringGP-in-daysandbuy-and-hold.

13.3 Genetic Programming Market Efficiency Tests 116

SamplergprbhrSORgpSORbhSOR PanelA:Transactioncosts0.1% 9799/000.1225120.1423250.0198130.3577860.4377530.079968 9800/010.2168130.2679730.0511600.6825430.9688130.286270 9901/020.1989920.1989920.0000001.0857681.0857680.000000 0002/030.0295740.2927510.2631770.1928251.9163531.723528 0103/040.0026300.1038010.1011710.0000000.6607090.660709 0204/050.0260710.0419040.0158330.0000000.3314330.331433 0305/060.2102310.2876050.0773751.3281381.8870730.558935 0406/070.3133550.2963470.0170071.0163721.1186940.102322 PanelB:Transactioncosts0.25% 9799/000.0574060.1453250.2027310.0000000.4467430.446743 9800/010.0153050.2709730.2556690.0434960.9787800.935284 9901/020.2019920.2019920.0000001.1021371.1021370.000000 0002/030.0098200.2897510.2799310.0000001.8967151.896715 0103/040.1008010.1008010.0000000.6416140.6416140.000000 0204/050.0260710.0389040.0128330.0000000.3058650.305865 0305/060.2412230.2846050.0433831.5065781.8663210.359742 0406/070.0565500.2933470.2367970.0000001.1063811.106381 PanelC:Transactioncosts0.5% 9799/000.1678250.1503250.0175000.4824170.4616640.020753 9800/010.1658650.2759730.1101080.4043430.9951230.590780 9901/020.1430000.2069920.0639920.7505681.1294190.378851 0002/030.0256060.2847510.2591440.1752111.8716361.696425 0103/040.2033330.0958010.2991341.2101630.6122201.822383 0204/050.0260710.0339040.0078330.0000000.2635830.263583 0305/060.2005780.2796050.0790271.3006741.8308150.530141 0406/070.2481660.2883470.0401820.8050801.0857360.280656 Table13.11b:3-yearstrainingand1-yearout-of-sampleHangSengresults.“Sample”denotesthe lengthoftrainingandsubsequentout-of-sampleperiod.rgpandrbhdenotethean- nualizedout-of-samplereturnsfortheGPtradingruleandbuy-and-hold,respectively. risthedifferencebetweenthem.SORgpandSORbhindicatetherepectiveannu- alizedSortinoratiosfortheGPtradingruleandbuy-and-hold,SORmeasuresthe differencebetweenthetwoandisequaltoSORintheprecedingtable.

13.3 Genetic Programming Market Efficiency Tests 117

SampleExcessSOR#TNbNsσbσs¯rb¯rs(¯rb¯rs)(¯rb¯rm) PanelA:Transactioncosts0.1% 9799/00010.3383230.57805111793100.0201460.0177960.0007580.0009210.0001630.000103 9800/01020.0511600.1388282398910.0153850.0137550.0010770.0004210.0006560.000122 9901/02030.2461530.69825332602340.0120540.0107950.0005720.0010730.0016450.000779 0002/03040.3841071.2358333714250.0116940.0102940.0004170.0009150.0004980.000427 0103/04050.1554080.5425734214740.0065670.0089740.0012640.0003730.0016370.001568 0204/05060.0241090.00401211393540.0085380.0080790.0019450.0001910.0017540.001260 0305/06070.0273830.2400053399920.0122800.0172780.0015600.0001890.0017490.000328 PanelB:Transactioncosts0.25% 9799/00010.0670990.14690381423470.0197070.0182020.0027490.0000890.0026600.001888 9800/01020.2486480.54221193221670.0151610.0149610.0006420.0015590.0009170.000313 9901/02030.2537400.71124112492450.0122510.0106220.0006450.0010740.0017190.000853 0002/03040.4008611.330793004960.0000000.0104950.0000000.0008430.0008430.000843 0103/04050.0000000.000000149500.0088860.0000000.0003030.0000000.0003030.000000 0204/05060.0481640.25771912432500.0091100.0072940.0010830.0003000.0007840.000397 0305/06070.0433830.1443091441500.0138830.0072930.0012560.0010230.0002330.000024 PanelC:Transactioncosts0.5% 9799/00010.3012390.52349322052840.0196160.0179920.0007810.0009200.0001390.000081 9800/01020.0582900.19465952212680.0158670.0143960.0018330.0002310.0016010.000878 9901/02030.0807440.23749021393550.0109610.0117090.0000890.0002540.0001650.000119 0002/03040.3799751.22076211023940.0109890.0103730.0003060.0009820.0006760.000537 0103/04050.3491521.18847743481470.0083030.0099060.0005010.0022080.0027090.000805 0204/05060.0481640.25354912432500.0091100.0072940.0010830.0003000.0007840.000397 0305/06070.0790270.1853153470210.0135830.0063850.0011550.0029650.0018100.000077 Table13.12a:3-yearstrainingand2-yearsout-of-sampleHangSengresults.“Sample”denotesthetrainingperiodusedfollowedbytheout-of-sampletesting period(forexample97-99impliesthattrainingdatafrom1997,1998and1999havebeenusedtoderiveatradingrulewhichisthenapplied out-of-sampletodatafrom2000andsoon).“Excess”measuresthefitnessimpliedbyaGPtradingruledefinedasexcessreturnoverabuy-and- holdstrategyduringtheout-of-sampleperiod,i.e.(rgprbh).SORindicatestheexcessSortinoratiodefinedas(SORgpSORbh)(both annualized)overthespecifiedout-of-sampleperiod.#Tindicatesthenumberoftradesexecutedbyatradingruleduringout-of-sampletesting withNbandNsdenotingthenumberofbuy-days(in-the-market)andsell-days(out-of-the-market),respectively.σbandσsindicatethestandard deviationofreturnsduringGP-in-market-daysandGP-out-of-market-days,respectively.¯rband¯rsdenotethemeandailymarketreturnduring GP-in-daysandGP-out-dayswith(¯rb¯rs)asthedifferencebetweenthetwo.(¯rb¯rm)measuresthedifferencebetweenmeandailyreturns duringGP-in-daysandbuy-and-hold.(*)indicatessignificanceforα=0.05.

13.3 Genetic Programming Market Efficiency Tests 118

SamplergprbhrSORgpSORbhSOR PanelA:Transactioncosts0.1% 9799/00010.0425160.2116770.1691610.1249260.7029770.578051 9800/01020.2089400.2345200.0255800.8594650.9982930.138828 9901/02030.0728300.0502460.1230770.4027340.2955190.698253 0002/03040.0161100.2081640.1920530.1046191.3404521.235833 0103/04050.0035950.0741090.0777040.0269670.5156060.542573 0204/05060.1559920.1680470.0120541.1988121.2028240.004012 0305/06070.3152450.3015540.0136911.6147891.3747840.240005 PanelB:Transactioncosts0.25% 9799/00010.1796280.2131770.0335500.5607940.7076970.146903 9800/01020.1116970.2360200.1243240.4619561.0041670.542211 9901/02030.0781230.0487460.1268700.4245430.2866970.711241 0002/03040.0062330.2066640.2004300.0000001.3307931.330793 0103/04050.0726090.0726090.0000000.5046600.5046600.000000 0204/05060.1424650.1665460.0240820.9323281.1900460.257719 0305/06070.2783630.3000540.0216911.2226971.3670060.144309 PanelC:Transactioncosts0.5% 9799/00010.0650580.2156770.1506200.1919900.7154830.523493 9800/01020.2093750.2385200.0291450.8192051.0138640.194659 9901/02030.0058750.0462460.0403720.0350310.2725210.237490 0002/03040.0141760.2041640.1899880.0966091.3173721.220762 0103/04050.1044670.0701090.1745760.7021380.4863401.188477 0204/05060.1399650.1640460.0240820.9146091.1681580.253549 0305/06070.2580400.2975540.0395141.1685841.3538990.185315 Table13.12b:3-yearstrainingand2-yearsout-of-sampleHangSengresults.“Sample”denotesthelengthof trainingandsubsequentout-of-sampleperiod.rgpandrbhdenotetheannualizedout-of-sample returnsfortheGPtradingruleandbuy-and-hold,respectively.risthedifferencebetween them.SORgpandSORbhindicatetherepectiveannualizedSortinoratiosfortheGPtrading ruleandbuy-and-hold,SORmeasuresthedifferencebetweenthetwoandisequaltoSOR intheprecedingtable.

13.3 Genetic Programming Market Efficiency Tests 119

SampleExcessSOR#TNbNsσbσs¯rb¯rs(¯rb¯rs)(¯rb¯rm) PanelA:Transactioncosts0.1% 9799/00020.5376610.69427521835530.0199480.0155940.0008340.0008500.0000160.000012 9800/01030.0511600.0818622646910.0138010.0137550.0002000.0004210.0002210.000027 9901/02040.4126050.80058643164270.0117740.0105490.0006080.0009790.0015870.000912 0002/03050.4012620.9153263716720.0116940.0092910.0004170.0006450.0002280.000206 0103/04060.4101900.9258574217210.0065670.0090200.0012640.0006530.0019180.001863 0204/05070.2955410.25744911515870.0089510.0122780.0018240.0006440.0011800.000938 PanelB:Transactioncosts0.25% 9799/00020.0884980.097996122844520.0163800.0169880.0019640.0001430.0018210.001118 9800/01030.1870400.291989145571800.0134920.0146520.0001010.0012420.0013420.000328 9901/02040.3746830.72105512494940.0122510.0104630.0006450.0007830.0014280.000950 0002/03050.4180161.036792007430.0000000.0095380.0000000.0006230.0006230.000623 0103/04060.0000000.000000174200.0089620.0000000.0005990.0000000.0005990.000000 0204/05070.0481640.20859514882500.0133770.0072940.0011860.0003000.0008860.000300 PanelC:Transactioncosts0.5% 9799/00020.2779100.36054443613750.0166450.0169060.0010270.0006710.0003560.000181 9800/01030.3007080.400234213254120.0143790.0132890.0009590.0003490.0013080.000731 9901/02040.2016870.40557221396040.0109610.0111480.0000890.0003540.0002650.000216 0002/03050.3971310.89770911026410.0109890.0092950.0003060.0006730.0003670.000316 0103/04060.4202450.95628055721700.0085660.0100240.0000960.0022930.0021970.000503 0204/05070.0481640.20650814882500.0133770.0072940.0011860.0003000.0008860.000300 Table13.13a:3-yearstrainingand3-yearsout-of-sampleHangSengresults.“Sample”denotesthetrainingperiodusedfollowedbytheout-of-sampletesting period(forexample97-99impliesthattrainingdatafrom1997,1998and1999havebeenusedtoderiveatradingrulewhichisthenapplied out-of-sampletodatafrom2000andsoon).“Excess”measuresthefitnessimpliedbyaGPtradingruledefinedasexcessreturnoverabuy-and- holdstrategyduringtheout-of-sampleperiod,i.e.(rgprbh).SORindicatestheexcessSortinoratiodefinedas(SORgpSORbh)(both annualized)overthespecifiedout-of-sampleperiod.#Tindicatesthenumberoftradesexecutedbyatradingruleduringout-of-sampletesting withNbandNsdenotingthenumberofbuy-days(in-the-market)andsell-days(out-of-the-market),respectively.σbandσsindicatethestandard deviationofreturnsduringGP-in-market-daysandGP-out-of-market-days,respectively.¯rband¯rsdenotethemeandailymarketreturnduring GP-in-daysandGP-out-dayswith(¯rb¯rs)asthedifferencebetweenthetwo.(¯rb¯rm)measuresthedifferencebetweenmeandailyreturns duringGP-in-daysandbuy-and-hold.

13.3 Genetic Programming Market Efficiency Tests 120

SamplergprbhrSORgpSORbhSOR PanelA:Transactioncosts0.1% 9799/00020.0289200.2081410.1792200.0858750.7801500.694275 9800/01030.0394650.0565190.0170530.1827410.2646030.081862 9901/02040.0628450.0746900.1375350.3510210.4495650.800586 0002/03050.0198270.1535810.1337540.1289271.0442530.915326 0103/04060.0107390.1474690.1367300.0805961.0064520.925857 0204/05070.1186850.2171990.0985140.8674891.1249380.257449 PanelB:Transactioncosts0.25% 9799/00020.1796420.2091410.0294990.6857080.7837040.097996 9800/01030.0048280.0575190.0623470.0228190.2691690.291989 9901/02040.0512050.0736900.1248940.2775100.4435450.721055 0002/03050.0132420.1525810.1393390.0000001.0367921.036792 0103/04060.1464690.1464690.0000000.9994390.9994390.000000 0204/05070.2001440.2161990.0160550.9099761.1185710.208595 PanelC:Transactioncosts0.5% 9799/00020.1181710.2108070.0926370.4290470.7895910.360544 9800/01030.1594220.0591850.1002360.6773410.2771070.400234 9901/02040.0047940.0720230.0672290.0285110.4340830.405572 0002/03050.0185380.1509140.1323770.1265021.0242100.897709 0103/04060.0047200.1448020.1400820.0313040.9875840.956280 0204/05070.1984770.2145320.0160550.9012551.1077630.206508 Table13.13b:3-yearstrainingand3-yearsout-of-sampleHangSengresults.“Sample”denotesthelengthof trainingandsubsequentout-of-sampleperiod.rgpandrbhdenotetheannualizedout-of-sample returnsfortheGPtradingruleandbuy-and-hold,respectively.risthedifferencebetween them.SORgpandSORbhindicatetherepectiveannualizedSortinoratiosfortheGPtrading ruleandbuy-and-hold,SORmeasuresthedifferencebetweenthetwoandisequaltoSOR intheprecedingtable.

13.3 Genetic Programming Market Efficiency Tests 121

SampleExcessSOR#TNbNsσbσs¯rb¯rs(¯rb¯rs)(¯rb¯rm) PanelA:Transactioncosts0.1% 9701/020.0319450.15529431321140.0116540.0127900.0017640.0003140.0020780.000963 9802/030.1725031.2667141631840.0114710.0104220.0017970.0009870.0008100.000604 9903/040.2036441.19678631101380.0111010.0094880.0008640.0014550.0023190.001291 0004/050.0716450.565159101391070.0074270.0070440.0001590.0006160.0007750.000337 0105/060.2479801.887073002460.0000000.0091160.0000000.0011770.0011770.001177 0206/070.2553421.118694002440.0000000.0165800.0000000.0012230.0012230.001223 PanelB:Transactioncosts0.25% 9701/020.0728290.4028611149970.0121410.0123850.0008770.0006830.0001940.000077 9802/030.1673361.2387001781690.0116650.0102280.0015250.0010400.0004850.000332 9903/040.0000000.000000124800.0102780.0000000.0004270.0000000.0004270.000000 0004/050.0538360.4441151152940.0073170.0071460.0006090.0005170.0011260.000430 0105/060.1058820.6140693771690.0090810.0091240.0021550.0007320.0014240.000978 0206/070.2523421.106381002440.0000000.0165800.0000000.0012230.0012230.001223 PanelC:Transactioncosts0.5% 9701/020.0580520.2980352202440.0119680.0132480.0012280.0011620.0023900.000427 9802/030.0761840.6412021971500.0109110.0105180.0021750.0005590.0016160.000981 9903/040.0000000.000000124800.0102780.0000000.0004270.0000000.0004270.000000 0004/050.0078330.263583002460.0000000.0072580.0000000.0001780.0001780.000178 0105/060.1292610.8796652501960.0092290.0090660.0027630.0007730.0019900.001586 0206/070.2473421.085736002440.0000000.0165800.0000000.0012230.0012230.001223 Table13.14a:5-yearstrainingand1-yearout-of-sampleHangSengresults.“Sample”denotesthetrainingperiodusedfollowedbytheout-of-sampletesting period(forexample97-99impliesthattrainingdatafrom1997,1998and1999havebeenusedtoderiveatradingrulewhichisthenapplied out-of-sampletodatafrom2000andsoon).“Excess”measuresthefitnessimpliedbyaGPtradingruledefinedasexcessreturnoverabuy-and- holdstrategyduringtheout-of-sampleperiod,i.e.(rgprbh).SORindicatestheexcessSortinoratiodefinedas(SORgpSORbh)(both annualized)overthespecifiedout-of-sampleperiod.#Tindicatesthenumberoftradesexecutedbyatradingruleduringout-of-sampletesting withNbandNsdenotingthenumberofbuy-days(in-the-market)andsell-days(out-of-the-market),respectively.σbandσsindicatethestandard deviationofreturnsduringGP-in-market-daysandGP-out-of-market-days,respectively.¯rband¯rsdenotethemeandailymarketreturnduring GP-in-daysandGP-out-dayswith(¯rb¯rs)asthedifferencebetweenthetwo.(¯rb¯rm)measuresthedifferencebetweenmeandailyreturns duringGP-in-daysandbuy-and-hold.

13.3 Genetic Programming Market Efficiency Tests 122

SamplergprbhrSORgpSORbhSOR PanelA:Transactioncosts0.1% 9701/020.2309370.1989920.0319451.2410621.0857680.155294 9802/030.1202480.2927510.1725030.6496391.9163531.266714 9903/040.0998430.1038010.2036440.5360770.6607091.196786 0004/050.0297410.0419040.0716450.2337260.3314330.565159 0105/060.0396250.2876050.2479800.0000001.8870731.887073 0206/070.0410060.2963470.2553420.0000001.1186941.118694 PanelB:Transactioncosts0.25% 9701/020.1291630.2019920.0728290.6992761.1021370.402861 9802/030.1224140.2897510.1673360.6580141.8967151.238700 9903/040.1008010.1008010.0000000.6416140.6416140.000000 0004/050.0927400.0389040.0538360.7499800.3058650.444115 0105/060.1787240.2846050.1058821.2522511.8663210.614069 0206/070.0410060.2933470.2523420.0000001.1063811.106381 PanelC:Transactioncosts0.5% 9701/020.2650440.2069920.0580521.4274541.1294190.298035 9802/030.2085660.2847510.0761841.2304341.8716360.641202 9903/040.0958010.0958010.0000000.6122200.6122200.000000 0004/050.0260710.0339040.0078330.0000000.2635830.263583 0105/060.1503440.2796050.1292610.9511491.8308150.879665 0206/070.0410060.2883470.2473420.0000001.0857361.085736 Table13.14b:5-yearstrainingand1-yearout-of-sampleHangSengresults.“Sample”denotesthe lengthoftrainingandsubsequentout-of-sampleperiod.rgpandrbhdenotethean- nualizedout-of-samplereturnsfortheGPtradingruleandbuy-and-hold,respectively. risthedifferencebetweenthem.SORgpandSORbhindicatetherepectiveannu- alizedSortinoratiosfortheGPtradingruleandbuy-and-hold,SORmeasuresthe differencebetweenthetwoandisequaltoSORintheprecedingtable.

13.3 Genetic Programming Market Efficiency Tests 123

SampleExcessSOR#TNbNsσbσs¯rb¯rs(¯rb¯rs)(¯rb¯rm) PanelA:Transactioncosts0.1% 9701/02030.1822290.524252162192750.0114950.0114970.0002940.0006070.0009010.000502 9802/03040.3422321.13933152182780.0111920.0099160.0003360.0012410.0009050.000507 9903/04050.2695180.897080132342610.0091330.0086170.0004740.0010010.0014750.000778 0004/05060.1556890.565335143331600.0082530.0082330.0005620.0009440.0003820.000124 0105/06070.5450401.2432381594320.0127180.0134440.0001910.0014270.0016180.001424 PanelB:Transactioncosts0.25% 9701/02030.0300890.09758242402540.0117990.0112180.0003050.0001150.0001890.000097 9802/03040.0645900.18905922942020.0103880.0106530.0011910.0003370.0008540.000348 9903/04050.0011670.00151173741210.0092390.0077120.0004560.0001690.0006260.000153 0004/05060.0538360.1733701399940.0084610.0071460.0009690.0005170.0014860.000283 0105/06070.1058820.35949733221690.0151180.0091240.0014950.0007320.0007640.000263 PanelC:Transactioncosts0.5% 9701/02030.0553380.16435543751190.0112740.0122060.0001870.0002720.0000850.000021 9802/03040.2437350.84170952792170.0109730.0098700.0007360.0009820.0002460.000108 9903/04050.0166680.06952043871080.0093340.0070780.0004000.0000430.0004430.000097 0004/05060.2625801.168158004930.0000000.0082400.0000000.0006860.0006860.000686 0105/06070.1292610.44058122951960.0155750.0090660.0015380.0007730.0007650.000305 Table13.15a:5-yearstrainingand2-yearsout-of-sampleHangSengresults.“Sample”denotesthetrainingperiodusedfollowedbytheout-of-sampletesting period(forexample97-99impliesthattrainingdatafrom1997,1998and1999havebeenusedtoderiveatradingrulewhichisthenapplied out-of-sampletodatafrom2000andsoon).“Excess”measuresthefitnessimpliedbyaGPtradingruledefinedasexcessreturnoverabuy-and- holdstrategyduringtheout-of-sampleperiod,i.e.(rgprbh).SORindicatestheexcessSortinoratiodefinedas(SORgpSORbh)(both annualized)overthespecifiedout-of-sampleperiod.#Tindicatesthenumberoftradesexecutedbyatradingruleduringout-of-sampletesting withNbandNsdenotingthenumberofbuy-days(in-the-market)andsell-days(out-of-the-market),respectively.σbandσsindicatethestandard deviationofreturnsduringGP-in-market-daysandGP-out-of-market-days,respectively.¯rband¯rsdenotethemeandailymarketreturnduring GP-in-daysandGP-out-dayswith(¯rb¯rs)asthedifferencebetweenthetwo.(¯rb¯rm)measuresthedifferencebetweenmeandailyreturns duringGP-in-daysandbuy-and-hold.

13.3 Genetic Programming Market Efficiency Tests 124

SamplergprbhrSORgpSORbhSOR PanelA:Transactioncosts0.1% 9701/02030.0408680.0502460.0911150.2287320.2955190.524252 9802/03040.0370480.2081640.1711160.2011211.3404521.139331 9903/04050.0606500.0741090.1347590.3814730.5156060.897080 0004/05060.0902020.1680470.0778450.6374891.2028240.565335 0105/06070.0290340.3015540.2725200.1315461.3747841.243238 PanelB:Transactioncosts0.25% 9701/02030.0337020.0487460.0150440.1891150.2866970.097582 9802/03040.1743690.2066640.0322951.1417341.3307930.189059 9903/04050.0731920.0726090.0005840.5061710.5046600.001511 0004/05060.1934640.1665460.0269181.3634171.1900460.173370 0105/06070.2471130.3000540.0529411.0075091.3670060.359497 PanelC:Transactioncosts0.5% 9701/02030.0185770.0462460.0276690.1081660.2725210.164355 9802/03040.0822960.2041640.1218680.4756621.3173720.841709 9903/04050.0617750.0701090.0083340.4168190.4863400.069520 0004/05060.0327560.1640460.1312900.0000001.1681581.168158 0105/06070.2329230.2975540.0646310.9133181.3538990.440581 Table13.15b:5-yearstrainingand2-yearsout-of-sampleHangSengresults.“Sample”denotesthelengthof trainingandsubsequentout-of-sampleperiod.rgpandrbhdenotetheannualizedout-of-sample returnsfortheGPtradingruleandbuy-and-hold,respectively.risthedifferencebetween them.SORgpandSORbhindicatetherepectiveannualizedSortinoratiosfortheGPtrading ruleandbuy-and-hold,SORmeasuresthedifferencebetweenthetwoandisequaltoSOR intheprecedingtable.

13.3 Genetic Programming Market Efficiency Tests 125

SampleExcessSOR#TNbNsσbσs¯rb¯rs(¯rb¯rs)(¯rb¯rm) PanelA:Transactioncosts0.1% 99701/02040.3031670.596732162195240.0114950.0109410.0002940.0005540.0008490.000598 9802/03050.3441640.80166474303130.0094430.0096610.0002710.0011060.0008350.000352 9903/04060.4003460.916821184303120.0090150.0088610.0001250.0012510.0011260.000473 0004/05070.2982760.548746165152230.0121340.0105640.0006870.0013450.0006590.000199 PanelB:Transactioncosts0.25% 9701/02040.0116650.02247154093340.0110950.0111270.0005950.0000510.0006460.000290 9802/03050.1100720.24478624013420.0095920.0094830.0008210.0003900.0004300.000198 9903/04060.1854200.426435185132290.0092700.0082490.0006160.0005610.0000550.000017 0004/05070.0538360.0439951644940.0121910.0071460.0010900.0005170.0016070.000205 PanelC:Transactioncosts0.5% 9701/02040.1244090.25098554632800.0109540.0113730.0002860.0003340.0000480.000018 9802/03050.3437450.79909094433000.0098240.0091060.0004110.0009360.0005260.000212 9903/04060.2330370.550238125511910.0094080.0075470.0005430.0007590.0002160.000056 0004/05070.5375231.107763007380.0000000.0116790.0000000.0008860.0008860.000886 Table13.16a:5-yearstrainingand3-yearsout-of-sampleHangSengresults.“Sample”denotesthetrainingperiodusedfollowedbytheout-of-sampletesting period(forexample97-99impliesthattrainingdatafrom1997,1998and1999havebeenusedtoderiveatradingrulewhichisthenapplied out-of-sampletodatafrom2000andsoon).“Excess”measuresthefitnessimpliedbyaGPtradingruledefinedasexcessreturnoverabuy-and- holdstrategyduringtheout-of-sampleperiod,i.e.(rgprbh).SORindicatestheexcessSortinoratiodefinedas(SORgpSORbh)(both annualized)overthespecifiedout-of-sampleperiod.#Tindicatesthenumberoftradesexecutedbyatradingruleduringout-of-sampletesting withNbandNsdenotingthenumberofbuy-days(in-the-market)andsell-days(out-of-the-market),respectively.σbandσsindicatethestandard deviationofreturnsduringGP-in-market-daysandGP-out-of-market-days,respectively.¯rband¯rsdenotethemeandailymarketreturnduring GP-in-daysandGP-out-dayswith(¯rb¯rs)asthedifferencebetweenthetwo.(¯rb¯rm)measuresthedifferencebetweenmeandailyreturns duringGP-in-daysandbuy-and-hold.

13.3 Genetic Programming Market Efficiency Tests 126

SamplergprbhrSORgpSORbhSOR PanelA:Transactioncosts0.1% 9701/02040.0263660.0746900.1010560.1471680.4495650.596732 9802/03050.0388600.1535810.1147210.2425891.0442530.801664 9903/04060.0140200.1474690.1334490.0896311.0064520.916821 0004/05070.1177730.2171990.0994250.5761921.1249380.548746 PanelB:Transactioncosts0.25% 9701/02040.0775780.0736900.0038880.4660170.4435450.022471 9802/03050.1158900.1525810.0366910.7920071.0367920.244786 9903/04060.0846620.1464690.0618070.5730050.9994390.426435 0004/05070.2341440.2161990.0179451.1625661.1185710.043995 PanelC:Transactioncosts0.5% 9701/02040.0305540.0720230.0414700.1830990.4340830.250985 9802/03050.0363330.1509140.1145820.2251201.0242100.799090 9903/04060.0671230.1448020.0776790.4373460.9875840.550238 0004/05070.0353580.2145320.1791740.0000001.1077631.107763 Table13.16b:5-yearstrainingand3-yearsout-of-sampleHangSengresults.“Sample”denotesthelengthof trainingandsubsequentout-of-sampleperiod.rgpandrbhdenotetheannualizedout-of-sample returnsfortheGPtradingruleandbuy-and-hold,respectively.risthedifferencebetween them.SORgpandSORbhindicatetherepectiveannualizedSortinoratiosfortheGPtrading ruleandbuy-and-hold,SORmeasuresthedifferencebetweenthetwoandisequaltoSOR intheprecedingtable.

13.3 Genetic Programming Market Efficiency Tests 127

1-yearout-of-sample2-yearsout-of-sample3-yearsout-of-sample TradingRuleExcessSORExcessSORExcessSOR 3-yearsin-sample

9799/...c0250.2027310.4467430.0670990.1469030.0884980.097996 9800/...c0250.2556690.9352840.2486480.5422110.1849070.291989 9799/...c050.3012390.5234930.2779100.360544 9800/...c050.1101080.5907800.0582900.194659 9901/...c050.0639920.378851 5-yearsin-sample9701/...c0250.0728290.4028610.0116650.022471 9903/...c0250.0011670.001511 0004/...c0250.0538360.4441150.0538360.1733700.0538360.043995 Table13.17:BestGeneticProgrammingtradingrulesfortheHangSeng.

13.4 Conclusions about Market Efficiency in the DAX and the Hang Seng128

13.4 Conclusions about Market Efficiency in the DAX and the Hang Seng

Jensen (1978) considered markets to be efficient if there are no gains from trad-ing based on available information after risk adjustment and transaction costs.

In the thesis at hand, GP was tasked to find trading rules based on the most common set of information, i. e. closing prices106 therefore testing for weak market efficiency. Appropriate transaction costs (c = 0.25, 0.5) were included in the analysis and the Sortino ratio acted as a measure for risk-adjusted returns.

In the thesis at hand, GP was tasked to find trading rules based on the most common set of information, i. e. closing prices106 therefore testing for weak market efficiency. Appropriate transaction costs (c = 0.25, 0.5) were included in the analysis and the Sortino ratio acted as a measure for risk-adjusted returns.

Documento similar