{"id":92166,"date":"2021-06-18T12:10:41","date_gmt":"2021-06-18T16:10:41","guid":{"rendered":"https:\/\/ibkrcampus.com\/?p=92166"},"modified":"2023-02-23T14:21:56","modified_gmt":"2023-02-23T19:21:56","slug":"time-series-classification-synthetic-vs-real-financial-time-series-part-ix","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\/","title":{"rendered":"Time Series Classification Synthetic vs Real Financial Time Series \u2013 Part IX"},"content":{"rendered":"\n<p><em>Learn which R packages and data sets you need<\/em> <em>by reviewing<\/em> <em><a href=\"\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series\/\">Part I<\/a>,&nbsp;<a href=\"\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-ii\/\">Part II<\/a>&nbsp;,<a href=\"\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-iii\/\">Part III<\/a><\/em>,<em>&nbsp;<a href=\"\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-iv\/\">Part IV,<\/a>&nbsp;<a href=\"\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-v\/\">Part V<\/a> ,&nbsp;<a href=\"\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-vi\/\">Part VI<\/a>,&nbsp;<a href=\"\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-vii\/\">Part VII<\/a><\/em> <em>and <a href=\"\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-viii\/\">Part VIII<\/a> of this series.<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-the-training-x-input-variables-data-looks\">How the training X (input variables) data looks:<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><\/th><th>ac_9_ac_9<\/th><th>acf_features_x_acf1<\/th><th>acf_features_x_acf10<\/th><th>acf_features_diff1_acf1<\/th><th>acf_features_diff1_acf10<\/th><th>acf_features_diff2_acf1<\/th><th>acf_features_diff2_acf10<\/th><th>ARCH.LM<\/th><th>autocorr_features_embed2_incircle_1<\/th><th>autocorr_features_embed2_incircle_2<\/th><th>autocorr_features_ac_9<\/th><th>autocorr_features_firstmin_ac<\/th><th>autocorr_features_trev_num<\/th><th>autocorr_features_motiftwo_entro3<\/th><th>autocorr_features_walker_propcross<\/th><th>binarize_mean_binarize_mean<\/th><th>binarize_mean_NA<\/th><th>compengine_embed2_incircle_1<\/th><th>compengine_embed2_incircle_2<\/th><th>compengine_ac_9<\/th><th>compengine_firstmin_ac<\/th><th>compengine_trev_num<\/th><th>compengine_motiftwo_entro3<\/th><th>compengine_walker_propcross<\/th><th>compengine_localsimple_mean1<\/th><th>compengine_localsimple_lfitac<\/th><th>compengine_sampen_first<\/th><th>compengine_std1st_der<\/th><th>compengine_spreadrandomlocal_meantaul_50<\/th><th>compengine_spreadrandomlocal_meantaul_ac2<\/th><th>compengine_histogram_mode_10<\/th><th>compengine_outlierinclude_mdrmd<\/th><th>compengine_fluctanal_prop_r1<\/th><th>crossing_points<\/th><th>dist_features_histogram_mode_10<\/th><th>dist_features_outlierinclude_mdrmd<\/th><th>embed2_incircle<\/th><th>entropy<\/th><th>firstmin_ac<\/th><th>firstzero_ac<\/th><th>flat_spots<\/th><th>fluctanal_prop_r1_fluctanal_prop_r1<\/th><th>arch_acf<\/th><th>garch_acf<\/th><th>arch_r2<\/th><th>garch_r2<\/th><th>histogram_mode<\/th><th>alpha<\/th><th>beta<\/th><th>hurst<\/th><th>hw_parameters_hw_parameters<\/th><th>hw_parameters_NA<\/th><th>localsimple_taures<\/th><th>lumpiness<\/th><th>max_kl_shift<\/th><th>time_kl_shift<\/th><th>max_level_shift<\/th><th>time_level_shift<\/th><th>max_var_shift<\/th><th>time_var_shift<\/th><th>motiftwo_entro3<\/th><th>nonlinearity<\/th><th>outlierinclude_mdrmd<\/th><th>x_pacf5<\/th><th>diff1x_pacf5<\/th><th>diff2x_pacf5<\/th><th>pred_features_localsimple_mean1<\/th><th>pred_features_localsimple_lfitac<\/th><th>pred_features_sampen_first<\/th><th>sampen_first_sampen_first<\/th><th>sampenc<\/th><th>scal_features_fluctanal_prop_r1<\/th><th>spreadrandomlocal_meantaul<\/th><th>stability<\/th><th>station_features_std1st_der<\/th><th>station_features_spreadrandomlocal_meantaul_50<\/th><th>station_features_spreadrandomlocal_meantaul_ac2<\/th><th>std1st_der_std1st_der<\/th><th>nperiods<\/th><th>seasonal_period<\/th><th>trend<\/th><th>spike<\/th><th>linearity<\/th><th>curvature<\/th><th>e_acf1<\/th><th>e_acf10<\/th><th>trev_num<\/th><th>tsfeatures_frequency<\/th><th>tsfeatures_nperiods<\/th><th>tsfeatures_seasonal_period<\/th><th>tsfeatures_trend<\/th><th>tsfeatures_spike<\/th><th>tsfeatures_linearity<\/th><th>tsfeatures_curvature<\/th><th>tsfeatures_e_acf1<\/th><th>tsfeatures_e_acf10<\/th><th>tsfeatures_entropy<\/th><th>tsfeatures_x_acf1<\/th><th>tsfeatures_x_acf10<\/th><th>tsfeatures_diff1_acf1<\/th><th>tsfeatures_diff1_acf10<\/th><th>tsfeatures_diff2_acf1<\/th><th>tsfeatures_diff2_acf10<\/th><th>unitroot_kpss<\/th><th>unitroot_pp<\/th><th>walker_propcross<\/th><\/tr><\/thead><tbody><tr><td>6801<\/td><td>0.0498492<\/td><td>-0.0642025<\/td><td>0.0542648<\/td><td>-0.4423482<\/td><td>0.2575236<\/td><td>-0.5981303<\/td><td>0.4149592<\/td><td>0.0271444<\/td><td>0.4710425<\/td><td>0.7181467<\/td><td>0.0498492<\/td><td>2<\/td><td>0.8754566<\/td><td>2.057333<\/td><td>0.5598456<\/td><td>0<\/td><td>1<\/td><td>0.4710425<\/td><td>0.7181467<\/td><td>0.0498492<\/td><td>2<\/td><td>0.8754566<\/td><td>2.057333<\/td><td>0.5598456<\/td><td>1<\/td><td>1<\/td><td>1.704503<\/td><td>1.460466<\/td><td>1.33<\/td><td>1.00<\/td><td>-0.50<\/td><td>0.1115385<\/td><td>0.8604651<\/td><td>139<\/td><td>-0.50<\/td><td>0.1115385<\/td><td>0.4710425<\/td><td>0.9888208<\/td><td>2<\/td><td>1<\/td><td>3<\/td><td>0.8604651<\/td><td>0.0332257<\/td><td>0.0244434<\/td><td>0.0370423<\/td><td>0.0287773<\/td><td>-0.50<\/td><td>0.0001000<\/td><td>0.0001000<\/td><td>0.5000458<\/td><td>NA<\/td><td>NA<\/td><td>1<\/td><td>0.7769640<\/td><td>3.827223<\/td><td>209<\/td><td>1.027671<\/td><td>131<\/td><td>3.254518<\/td><td>195<\/td><td>2.057333<\/td><td>0.0695918<\/td><td>0.1115385<\/td><td>0.0474059<\/td><td>0.5669070<\/td><td>1.0663179<\/td><td>1<\/td><td>1<\/td><td>1.704503<\/td><td>1.704503<\/td><td>1.704503<\/td><td>0.8604651<\/td><td>1.41<\/td><td>0.0639649<\/td><td>1.460466<\/td><td>1.42<\/td><td>1.00<\/td><td>1.460466<\/td><td>0<\/td><td>1<\/td><td>0.0069481<\/td><td>0.0000643<\/td><td>-0.8628963<\/td><td>0.2636951<\/td><td>-0.0719026<\/td><td>0.0587799<\/td><td>0.8754566<\/td><td>1<\/td><td>0<\/td><td>1<\/td><td>0.0069481<\/td><td>0.0000643<\/td><td>-0.8628963<\/td><td>0.2636951<\/td><td>-0.0719026<\/td><td>0.0587799<\/td><td>0.9888208<\/td><td>-0.0642025<\/td><td>0.0542648<\/td><td>-0.4423482<\/td><td>0.2575236<\/td><td>-0.5981303<\/td><td>0.4149592<\/td><td>0.1777957<\/td><td>-246.9618<\/td><td>0.5598456<\/td><\/tr><tr><td>4209<\/td><td>-0.0037257<\/td><td>-0.0166400<\/td><td>0.0302609<\/td><td>-0.5444182<\/td><td>0.3391695<\/td><td>-0.7025401<\/td><td>0.5898760<\/td><td>0.0369855<\/td><td>0.3976834<\/td><td>0.6409266<\/td><td>-0.0037257<\/td><td>1<\/td><td>0.0772589<\/td><td>2.065480<\/td><td>0.5598456<\/td><td>1<\/td><td>1<\/td><td>0.3976834<\/td><td>0.6409266<\/td><td>-0.0037257<\/td><td>1<\/td><td>0.0772589<\/td><td>2.065480<\/td><td>0.5598456<\/td><td>1<\/td><td>1<\/td><td>1.752028<\/td><td>1.427591<\/td><td>1.39<\/td><td>1.00<\/td><td>-0.25<\/td><td>-0.1000000<\/td><td>0.4651163<\/td><td>137<\/td><td>-0.25<\/td><td>-0.1000000<\/td><td>0.3976834<\/td><td>0.9866480<\/td><td>1<\/td><td>1<\/td><td>4<\/td><td>0.4651163<\/td><td>0.0328564<\/td><td>0.0286941<\/td><td>0.0369855<\/td><td>0.0347972<\/td><td>-0.25<\/td><td>0.0008843<\/td><td>0.0008843<\/td><td>0.5000458<\/td><td>NA<\/td><td>NA<\/td><td>1<\/td><td>0.2267605<\/td><td>3.549229<\/td><td>215<\/td><td>1.390319<\/td><td>3<\/td><td>2.017745<\/td><td>143<\/td><td>2.065480<\/td><td>0.0236440<\/td><td>-0.1000000<\/td><td>0.0060988<\/td><td>0.4859730<\/td><td>1.0685267<\/td><td>1<\/td><td>1<\/td><td>1.752028<\/td><td>1.752028<\/td><td>1.752028<\/td><td>0.4651163<\/td><td>1.49<\/td><td>0.0831999<\/td><td>1.427591<\/td><td>1.53<\/td><td>1.00<\/td><td>1.427591<\/td><td>0<\/td><td>1<\/td><td>0.0431696<\/td><td>0.0000288<\/td><td>-0.6356332<\/td><td>1.0362897<\/td><td>-0.0608160<\/td><td>0.0358936<\/td><td>0.0772589<\/td><td>1<\/td><td>0<\/td><td>1<\/td><td>0.0431696<\/td><td>0.0000288<\/td><td>-0.6356332<\/td><td>1.0362897<\/td><td>-0.0608160<\/td><td>0.0358936<\/td><td>0.9866480<\/td><td>-0.0166400<\/td><td>0.0302609<\/td><td>-0.5444182<\/td><td>0.3391695<\/td><td>-0.7025401<\/td><td>0.5898760<\/td><td>0.0372919<\/td><td>-268.4757<\/td><td>0.5598456<\/td><\/tr><tr><td>11168<\/td><td>0.0236704<\/td><td>-0.0269749<\/td><td>0.0299079<\/td><td>-0.4943006<\/td><td>0.2640054<\/td><td>-0.6626027<\/td><td>0.4906038<\/td><td>0.1265569<\/td><td>0.4401544<\/td><td>0.6640927<\/td><td>0.0236704<\/td><td>2<\/td><td>-0.4569401<\/td><td>2.075666<\/td><td>0.4633205<\/td><td>1<\/td><td>1<\/td><td>0.4401544<\/td><td>0.6640927<\/td><td>0.0236704<\/td><td>2<\/td><td>-0.4569401<\/td><td>2.075666<\/td><td>0.4633205<\/td><td>1<\/td><td>1<\/td><td>1.709466<\/td><td>1.431144<\/td><td>1.52<\/td><td>1.00<\/td><td>0.25<\/td><td>-0.0961538<\/td><td>0.1627907<\/td><td>122<\/td><td>0.25<\/td><td>-0.0961538<\/td><td>0.4401544<\/td><td>0.9882937<\/td><td>2<\/td><td>1<\/td><td>4<\/td><td>0.1627907<\/td><td>0.1453674<\/td><td>0.1490540<\/td><td>0.1265569<\/td><td>0.1247021<\/td><td>0.25<\/td><td>0.0411075<\/td><td>0.0001000<\/td><td>0.5000458<\/td><td>NA<\/td><td>NA<\/td><td>1<\/td><td>0.3863291<\/td><td>2.834691<\/td><td>227<\/td><td>1.096209<\/td><td>123<\/td><td>2.760158<\/td><td>197<\/td><td>2.075666<\/td><td>0.1218026<\/td><td>-0.0961538<\/td><td>0.0088598<\/td><td>0.4643608<\/td><td>1.0505751<\/td><td>1<\/td><td>1<\/td><td>1.709466<\/td><td>1.709466<\/td><td>1.709466<\/td><td>0.1627907<\/td><td>1.61<\/td><td>0.0691848<\/td><td>1.431144<\/td><td>1.50<\/td><td>1.00<\/td><td>1.431144<\/td><td>0<\/td><td>1<\/td><td>0.0134781<\/td><td>0.0000342<\/td><td>-0.6468298<\/td><td>-1.1770328<\/td><td>-0.0419291<\/td><td>0.0376999<\/td><td>-0.4569401<\/td><td>1<\/td><td>0<\/td><td>1<\/td><td>0.0134781<\/td><td>0.0000342<\/td><td>-0.6468298<\/td><td>-1.1770328<\/td><td>-0.0419291<\/td><td>0.0376999<\/td><td>0.9882937<\/td><td>-0.0269749<\/td><td>0.0299079<\/td><td>-0.4943006<\/td><td>0.2640054<\/td><td>-0.6626027<\/td><td>0.4906038<\/td><td>0.1743418<\/td><td>-260.0758<\/td><td>0.4633205<\/td><\/tr><tr><td>5794<\/td><td>-0.0007087<\/td><td>0.1194830<\/td><td>0.0616705<\/td><td>-0.4062897<\/td><td>0.2206195<\/td><td>-0.6016700<\/td><td>0.4137913<\/td><td>0.1556551<\/td><td>0.4806202<\/td><td>0.6782946<\/td><td>-0.0007087<\/td><td>2<\/td><td>-0.5797405<\/td><td>2.066637<\/td><td>0.4787645<\/td><td>1<\/td><td>0<\/td><td>0.4806202<\/td><td>0.6782946<\/td><td>-0.0007087<\/td><td>2<\/td><td>-0.5797405<\/td><td>2.066637<\/td><td>0.4787645<\/td><td>1<\/td><td>1<\/td><td>1.558307<\/td><td>1.328565<\/td><td>2.03<\/td><td>1.18<\/td><td>-0.25<\/td><td>-0.3000000<\/td><td>0.2325581<\/td><td>120<\/td><td>-0.25<\/td><td>-0.3000000<\/td><td>0.4806202<\/td><td>0.9815963<\/td><td>2<\/td><td>2<\/td><td>5<\/td><td>0.2325581<\/td><td>0.2198692<\/td><td>0.0941053<\/td><td>0.1406280<\/td><td>0.0756639<\/td><td>-0.25<\/td><td>0.0125856<\/td><td>0.0001000<\/td><td>0.5477543<\/td><td>NA<\/td><td>NA<\/td><td>1<\/td><td>0.7772726<\/td><td>8.411092<\/td><td>48<\/td><td>1.573682<\/td><td>146<\/td><td>3.802986<\/td><td>149<\/td><td>2.066637<\/td><td>0.1381103<\/td><td>-0.3000000<\/td><td>0.0193037<\/td><td>0.3959500<\/td><td>0.9255264<\/td><td>1<\/td><td>1<\/td><td>1.558307<\/td><td>1.558307<\/td><td>1.558307<\/td><td>0.2325581<\/td><td>1.98<\/td><td>0.1331827<\/td><td>1.328565<\/td><td>2.01<\/td><td>1.27<\/td><td>1.328565<\/td><td>0<\/td><td>1<\/td><td>0.0139233<\/td><td>0.0000358<\/td><td>-0.8988748<\/td><td>0.9389128<\/td><td>0.1079346<\/td><td>0.0661260<\/td><td>-0.5797405<\/td><td>1<\/td><td>0<\/td><td>1<\/td><td>0.0139233<\/td><td>0.0000358<\/td><td>-0.8988748<\/td><td>0.9389128<\/td><td>0.1079346<\/td><td>0.0661260<\/td><td>0.9815963<\/td><td>0.1194830<\/td><td>0.0616705<\/td><td>-0.4062897<\/td><td>0.2206195<\/td><td>-0.6016700<\/td><td>0.4137913<\/td><td>0.1182423<\/td><td>-224.0670<\/td><td>0.4787645<\/td><\/tr><tr><td>8693<\/td><td>-0.0814496<\/td><td>-0.0984498<\/td><td>0.1142883<\/td><td>-0.4688008<\/td><td>0.3181153<\/td><td>-0.6166136<\/td><td>0.4555893<\/td><td>0.1508792<\/td><td>0.4054054<\/td><td>0.6602317<\/td><td>-0.0814496<\/td><td>2<\/td><td>0.3988370<\/td><td>2.060571<\/td><td>0.5250965<\/td><td>0<\/td><td>1<\/td><td>0.4054054<\/td><td>0.6602317<\/td><td>-0.0814496<\/td><td>2<\/td><td>0.3988370<\/td><td>2.060571<\/td><td>0.5250965<\/td><td>1<\/td><td>1<\/td><td>1.651243<\/td><td>1.484233<\/td><td>1.19<\/td><td>1.00<\/td><td>-0.50<\/td><td>-0.0576923<\/td><td>0.3488372<\/td><td>136<\/td><td>-0.50<\/td><td>-0.0576923<\/td><td>0.4054054<\/td><td>0.9745764<\/td><td>2<\/td><td>1<\/td><td>6<\/td><td>0.3488372<\/td><td>0.0946062<\/td><td>0.0937635<\/td><td>0.1057152<\/td><td>0.1052409<\/td><td>-0.50<\/td><td>0.0269522<\/td><td>0.0001000<\/td><td>0.5000458<\/td><td>NA<\/td><td>NA<\/td><td>1<\/td><td>0.5495742<\/td><td>7.853783<\/td><td>195<\/td><td>1.039641<\/td><td>191<\/td><td>4.458772<\/td><td>187<\/td><td>2.060571<\/td><td>0.1164590<\/td><td>-0.0576923<\/td><td>0.0467339<\/td><td>0.5896074<\/td><td>1.1095330<\/td><td>1<\/td><td>1<\/td><td>1.651243<\/td><td>1.651243<\/td><td>1.651243<\/td><td>0.3488372<\/td><td>1.24<\/td><td>0.0998210<\/td><td>1.484233<\/td><td>1.35<\/td><td>1.00<\/td><td>1.484233<\/td><td>0<\/td><td>1<\/td><td>0.0033231<\/td><td>0.0000574<\/td><td>0.1887497<\/td><td>0.4564879<\/td><td>-0.1022983<\/td><td>0.1171558<\/td><td>0.3988370<\/td><td>1<\/td><td>0<\/td><td>1<\/td><td>0.0033231<\/td><td>0.0000574<\/td><td>0.1887497<\/td><td>0.4564879<\/td><td>-0.1022983<\/td><td>0.1171558<\/td><td>0.9745764<\/td><td>-0.0984498<\/td><td>0.1142883<\/td><td>-0.4688008<\/td><td>0.3181153<\/td><td>-0.6166136<\/td><td>0.4555893<\/td><td>0.0391658<\/td><td>-262.9010<\/td><td>0.5250965<\/td><\/tr><tr><td>1073<\/td><td>-0.1253873<\/td><td>0.1511912<\/td><td>0.0608605<\/td><td>-0.3832523<\/td><td>0.2048003<\/td><td>-0.5832067<\/td><td>0.3861283<\/td><td>0.0876692<\/td><td>0.4031008<\/td><td>0.6356589<\/td><td>-0.1253873<\/td><td>2<\/td><td>0.2463431<\/td><td>2.061698<\/td><td>0.4594595<\/td><td>1<\/td><td>1<\/td><td>0.4031008<\/td><td>0.6356589<\/td><td>-0.1253873<\/td><td>2<\/td><td>0.2463431<\/td><td>2.061698<\/td><td>0.4594595<\/td><td>1<\/td><td>1<\/td><td>1.763381<\/td><td>1.304792<\/td><td>2.44<\/td><td>1.13<\/td><td>-0.25<\/td><td>0.1230769<\/td><td>0.1395349<\/td><td>121<\/td><td>-0.25<\/td><td>0.1230769<\/td><td>0.4031008<\/td><td>0.9867903<\/td><td>2<\/td><td>2<\/td><td>4<\/td><td>0.1395349<\/td><td>0.0779468<\/td><td>0.0618625<\/td><td>0.0695878<\/td><td>0.0601294<\/td><td>-0.25<\/td><td>0.0778294<\/td><td>0.0001000<\/td><td>0.5663347<\/td><td>NA<\/td><td>NA<\/td><td>1<\/td><td>0.3151884<\/td><td>7.528904<\/td><td>185<\/td><td>2.069230<\/td><td>177<\/td><td>2.340804<\/td><td>169<\/td><td>2.061698<\/td><td>0.0279574<\/td><td>0.1230769<\/td><td>0.0310540<\/td><td>0.3527793<\/td><td>0.8978003<\/td><td>1<\/td><td>1<\/td><td>1.763381<\/td><td>1.763381<\/td><td>1.763381<\/td><td>0.1395349<\/td><td>2.45<\/td><td>0.0816322<\/td><td>1.304792<\/td><td>2.35<\/td><td>1.23<\/td><td>1.304792<\/td><td>0<\/td><td>1<\/td><td>0.0213244<\/td><td>0.0000306<\/td><td>-0.5577693<\/td><td>0.6111726<\/td><td>0.1329904<\/td><td>0.0758345<\/td><td>0.2463431<\/td><td>1<\/td><td>0<\/td><td>1<\/td><td>0.0213244<\/td><td>0.0000306<\/td><td>-0.5577693<\/td><td>0.6111726<\/td><td>0.1329904<\/td><td>0.0758345<\/td><td>0.9867903<\/td><td>0.1511912<\/td><td>0.0608605<\/td><td>-0.3832523<\/td><td>0.2048003<\/td><td>-0.5832067<\/td><td>0.3861283<\/td><td>0.0849681<\/td><td>-208.4546<\/td><td>0.4594595<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-the-training-y-predictor-variable-data-looks\">How the training Y (predictor variable) data looks:<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>.<\/th><\/tr><\/thead><tbody><tr><td>1<\/td><\/tr><tr><td>0<\/td><\/tr><tr><td>1<\/td><\/tr><tr><td>0<\/td><\/tr><tr><td>0<\/td><\/tr><tr><td>1<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>I set the data up for an XGBoost model:<\/p>\n\n\n\n<p>I create a grid search in order search over a parameter space to locate the optimal parameters for the data set. It needs a little more work but it\u2019s a pretty good starting point. I can just add code to the <code>expand.grid<\/code> function. That is, say I want to increase the depth of the tree I can add to <code>max_depth = c(5, 8, 14)<\/code> more parameters such as <code>max_depth = c(5, 8, 14, 1, 2, 3, 4, 6, 7)<\/code>. <strong>Note<\/strong> Adding parameters to the grid search increases computational time exponentially. Every parameter you add a value to, the model has to search all possible combinations associated with that parameter. That is, adding an <code>eta = c(0.1)<\/code> and <code>max_depth = c(5)<\/code> would give me the optimal parameter for one iteration\/loop through the training model, i.e.&nbsp;an <code>eta = c(0.1)<\/code> mapped onto a <code>max_depth = c(5)<\/code>. Adding an additional value to the <code>eta = c(0.1, 0.3)<\/code> and <code>max_depth = c(5)<\/code> would map <code>eta = 0.1<\/code> onto <code>max_depth = 5<\/code> and <code>eta = 0.3<\/code> onto <code>max_depth = 5<\/code>. If I add another value such that <code>eta = c(0.1, 0.3, 0.4)<\/code> then all 3 of these values will be mapped to <code>max_depth = c(5)<\/code>. Adding values to the <code>max_depth = c(5)<\/code> parameter would add an extra layer of complexity to the grid search. This added into the fact that there are many parameters to optimize in an XGBoost model can drastically increase computational complexity. Thus, understanding the statistics behind the models in Machine Learning is important when trying to avoid getting stuck in a local minimum (which any greedy algorithm using gradient descent optimisation can do: <a href=\"https:\/\/en.wikipedia.org\/wiki\/Greedy_algorithm\">greedy algorithm<\/a>).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>######################################################################\n################# XGBoost Grid Search to locate Optimal Parameters ###\n\n##############################################################################################################################\n# NOTE: This section was taken from the first chapter of my PhD where I needed to search over a parameter space to locate the\n# most optimal parameters - I have just adapted it for this problem of Time Series Classification.\n# Its simple enough to add parameters and different values - I just optimise a few important parameters from domain knowledge\n# of the XGBoost model for this task, i.e depth and eta are quite important in gradient boosting.\n\n# 1) I create a \"grid\" with different parameter values or combinations of parameter values\n# 2) I apply cross validation over the parameter space to fine the most optimal values for the XGBoost model.\n# 3) I print the model parameters which give the best train \/ (in-sample test) results in a data table.\n##############################################################################################################################\n\n# Grid Search Parameters:\n# 1)\nsearchGridSubCol &lt;- expand.grid(subsample = c(1), #Range (0,1], default = 1, set to 0.5 will prevent overfitting\n                                colsample_bytree = c(1), #Range (0,1], default = 1\n                                max_depth = c(5, 8, 14), #Range (0, inf], default = 6\n                                min_child = c(1), #Range (0, inf], default = 1\n                                eta = c(0.1, 0.05, 0.3), #Range (0,1], default = 0.3\n                                gamma = c(0), #Range (0, inf], default = 0\n                                lambda = c(1), #Default = 1, L2 regularisation on weights, higher the more conservative the model\n                                alpha = c(0), #Default = 0, L1 regularisation on weights, higher the more conservative the model\n                                max_delta_step = c(0), #Range (0, inf], default = 0 (Helpful for logisitc regression when class is extremely imbalanced, set to value 1-10 may help control the update)\n                                colsample_bylevel = c(1) #Range (0,1], default = 1\n                                )\n\nntrees = 200\nnfold &lt;- 10                             # I use nfold = 10 which is probably too many folds, 5 should be sufficient.\nwatchlist &lt;- list(train = dtrain, test = dval)\n\n# 2)\nsystem.time(\n  AUCHyperparameters &lt;- apply(searchGridSubCol, 1, function(parameterList){\n    #Extract Parameters to test\n    currentSubsampleRate &lt;- parameterList&#91;&#91;\"sub_sample\"]]\n    currentColsampleRate &lt;- parameterList&#91;&#91;\"colsample_bytree\"]]\n    currentDepth &lt;- parameterList&#91;&#91;\"max_depth\"]]\n    currentEta &lt;- parameterList&#91;&#91;\"eta\"]]\n    currentMinChild &lt;- parameterList&#91;&#91;\"min_child\"]]\n    gamma &lt;- parameterList&#91;&#91;\"gamma\"]]\n    lambda &lt;- parameterList&#91;&#91;\"lambda\"]]\n    alpha &lt;- parameterList&#91;&#91;\"alpha\"]]\n    max_delta_step &lt;- parameterList&#91;&#91;\"max_delta_step\"]]\n    colsample_bylevel &lt;- parameterList&#91;&#91;\"colsample_bylevel\"]]\n    xgboostModelCV &lt;- xgb.cv(data =  dtrain,\n                             nrounds = ntrees,\n                             nfold = nfold,\n                             showsd = TRUE,\n                             metrics = c(\"auc\", \"logloss\", \"error\"),\n                             verbose = TRUE,\n                             \"eval_metric\" = c(\"auc\", \"logloss\", \"error\"),\n                             \"objective\" = \"binary:logistic\", #Outputs a probability \"binary:logitraw\" - outputs score before logistic transformation\n                             \"max.depth\" = currentDepth,\n                             \"eta\" = currentEta,\n                             \"gamma\" = gamma,\n                             \"lambda\" = lambda,\n                             \"alpha\" = alpha,\n                             \"subsample\" = currentSubsampleRate,\n                             \"colsample_bytree\" = currentColsampleRate,\n                             print_every_n = 50, # print ever 50 trees to reduce the outputs printed.\n                             \"min_child_weight\" = currentMinChild,\n                             booster = \"gbtree\", #booster = \"dart\"  #using dart can help improve accuracy.\n                             early_stopping_rounds = 10,\n                             watchlist = watchlist,\n                             seed = 1234)\n    xvalidationScores &lt;&lt;- as.data.frame(xgboostModelCV$evaluation_log)\n    train_auc_mean &lt;- tail(xvalidationScores$train_auc_mean, 1)\n    test_auc_mean &lt;- tail(xvalidationScores$test_auc_mean, 1)\n    train_logloss_mean &lt;- tail(xvalidationScores$train_logloss_mean, 1)\n    test_logloss_mean &lt;- tail(xvalidationScores$test_logloss_mean, 1)\n    train_error_mean &lt;- tail(xvalidationScores$train_error_mean, 1)\n    test_error_mean &lt;- tail(xvalidationScores$test_error_mean, 1)\n    output &lt;- return(c(train_auc_mean, test_auc_mean, train_logloss_mean, test_logloss_mean, train_error_mean, test_error_mean, xvalidationScores, currentSubsampleRate, currentColsampleRate, currentDepth, currentEta, gamma, lambda, alpha, max_delta_step, colsample_bylevel, currentMinChild))\n    hypemeans &lt;- which.max(AUCHyperparameters&#91;&#91;1]]$test_auc_mean)\n    output2 &lt;- return(hypemeans)\n    }))<\/code><\/pre>\n\n\n\n<p>The output of the grid search can be set into a nice data frame using the following code. However I did not save this output to file and therefore cannot read it in. You can view the output on the original Jupyter Notebook <code>In [49]<\/code> <a href=\"https:\/\/nbviewer.jupyter.org\/github\/msmith01\/time_series_detection\/blob\/master\/Time_Series_Classification_Financial_Markets.ipynb\">here<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># 3)\noutput &lt;- as.data.frame(t(sapply(AUCHyperparameters, '&#91;', c(1:6, 20:29))))\nvarnames &lt;- c(\"TrainAUC\", \"TestAUC\", \"TrainLogloss\", \"TestLogloss\", \"TrainError\", \"TestError\", \"SubSampRate\", \"ColSampRate\", \"Depth\", \"eta\", \"gamma\", \"lambda\", \"alpha\", \"max_delta_step\", \"col_sample_bylevel\", \"currentMinChild\")\ncolnames(output) &lt;- varnames\ndata.table(output)<\/code><\/pre>\n\n\n\n<p>According to the results at the time the optimal parameters were:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ntrees = 95,<\/li>\n\n\n\n<li>eta = 0.1,<\/li>\n\n\n\n<li>max_depth = 5,<\/li>\n<\/ul>\n\n\n\n<p>With the other parameters left to default settings for simplicity.<\/p>\n\n\n\n<p>Visit&nbsp;Matthew Smith \u2013 R Blog&nbsp;to download the complete R code and see additional details featured in this tutorial:&nbsp;<a href=\"https:\/\/lf0.com\/post\/synth-real-time-series\/financial-time-series\/\">https:\/\/lf0.com\/post\/synth-real-time-series\/financial-time-series\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Matthew Smith demonstrates how to generate the financial time series features using the tsfeatures package.<\/p>\n","protected":false},"author":372,"featured_media":36372,"comment_status":"closed","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[339,343,338,341,351,344,342],"tags":[6989,806,6613,6988,6614,852,7811,6612,1045,5519,2536],"contributors-categories":[13694],"class_list":{"0":"post-92166","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-data-science","8":"category-programing-languages","9":"category-ibkr-quant-news","10":"category-quant-development","11":"category-quant-europe","12":"category-quant-regions","13":"category-r-development","14":"tag-asset-pricing","15":"tag-data-science","16":"tag-financial-data","17":"tag-financial-markets","18":"tag-jupyter-notebook","19":"tag-machine-learning","20":"tag-r-rstats","21":"tag-synthetic-time-series","22":"tag-tidyverse","23":"tag-time-series","24":"tag-visualization","25":"contributors-categories-matthew-smith-r-blog"},"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v27.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Time Series Classification Synthetic vs Real Financial Time Series \u2013 Part IX<\/title>\n<meta name=\"description\" content=\"Matthew Smith demonstrates how to generate the financial time series features using the tsfeatures package. Read Part IX!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/92166\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Time Series Classification Synthetic vs Real Financial Time Series \u2013 Part IX | IBKR Quant Blog\" \/>\n<meta property=\"og:description\" content=\"Matthew Smith demonstrates how to generate the financial time series features using the tsfeatures package. Read Part IX!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-18T16:10:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-23T19:21:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/02\/tech-background.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"540\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Matthew Smith\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Matthew Smith\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\\\/\\\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"NewsArticle\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Matthew Smith\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/34d673c6a3e7243a03707c66ba7a46f6\"\n\t            },\n\t            \"headline\": \"Time Series Classification Synthetic vs Real Financial Time Series \u2013 Part IX\",\n\t            \"datePublished\": \"2021-06-18T16:10:41+00:00\",\n\t            \"dateModified\": \"2023-02-23T19:21:56+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\\\/\"\n\t            },\n\t            \"wordCount\": 799,\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/02\\\/tech-background.jpg\",\n\t            \"keywords\": [\n\t                \"Asset Pricing\",\n\t                \"Data Science\",\n\t                \"financial data\",\n\t                \"Financial Markets\",\n\t                \"Jupyter Notebook\",\n\t                \"Machine Learning\",\n\t                \"R rstats\",\n\t                \"synthetic time series\",\n\t                \"tidyverse\",\n\t                \"Time Series\",\n\t                \"Visualization\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Data Science\",\n\t                \"Programming Languages\",\n\t                \"Quant\",\n\t                \"Quant Development\",\n\t                \"Quant Europe\",\n\t                \"Quant Regions\",\n\t                \"R Development\"\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\\\/\",\n\t            \"name\": \"Time Series Classification Synthetic vs Real Financial Time Series \u2013 Part IX | IBKR Quant Blog\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/02\\\/tech-background.jpg\",\n\t            \"datePublished\": \"2021-06-18T16:10:41+00:00\",\n\t            \"dateModified\": \"2023-02-23T19:21:56+00:00\",\n\t            \"description\": \"Matthew Smith demonstrates how to generate the financial time series features using the tsfeatures package. Read Part IX!\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\\\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/02\\\/tech-background.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/02\\\/tech-background.jpg\",\n\t            \"width\": 900,\n\t            \"height\": 540,\n\t            \"caption\": \"Quant\"\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"name\": \"IBKR Campus US\",\n\t            \"description\": \"Financial Education from Interactive Brokers\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\",\n\t            \"name\": \"Interactive Brokers\",\n\t            \"alternateName\": \"IBKR\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\",\n\t                \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"width\": 669,\n\t                \"height\": 669,\n\t                \"caption\": \"Interactive Brokers\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\"\n\t            },\n\t            \"publishingPrinciples\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/about-ibkr-campus\\\/\",\n\t            \"ethicsPolicy\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/cyber-security-notice\\\/\"\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/34d673c6a3e7243a03707c66ba7a46f6\",\n\t            \"name\": \"Matthew Smith\",\n\t            \"sameAs\": [\n\t                \"https:\\\/\\\/lf0.com\\\/\"\n\t            ],\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/author\\\/matthewsmith\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Time Series Classification Synthetic vs Real Financial Time Series \u2013 Part IX","description":"Matthew Smith demonstrates how to generate the financial time series features using the tsfeatures package. Read Part IX!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/92166\/","og_locale":"en_US","og_type":"article","og_title":"Time Series Classification Synthetic vs Real Financial Time Series \u2013 Part IX | IBKR Quant Blog","og_description":"Matthew Smith demonstrates how to generate the financial time series features using the tsfeatures package. Read Part IX!","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\/","og_site_name":"IBKR Campus US","article_published_time":"2021-06-18T16:10:41+00:00","article_modified_time":"2023-02-23T19:21:56+00:00","og_image":[{"width":900,"height":540,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/02\/tech-background.jpg","type":"image\/jpeg"}],"author":"Matthew Smith","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Matthew Smith","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\/"},"author":{"name":"Matthew Smith","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/34d673c6a3e7243a03707c66ba7a46f6"},"headline":"Time Series Classification Synthetic vs Real Financial Time Series \u2013 Part IX","datePublished":"2021-06-18T16:10:41+00:00","dateModified":"2023-02-23T19:21:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\/"},"wordCount":799,"publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/02\/tech-background.jpg","keywords":["Asset Pricing","Data Science","financial data","Financial Markets","Jupyter Notebook","Machine Learning","R rstats","synthetic time series","tidyverse","Time Series","Visualization"],"articleSection":["Data Science","Programming Languages","Quant","Quant Development","Quant Europe","Quant Regions","R Development"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\/","name":"Time Series Classification Synthetic vs Real Financial Time Series \u2013 Part IX | IBKR Quant Blog","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/02\/tech-background.jpg","datePublished":"2021-06-18T16:10:41+00:00","dateModified":"2023-02-23T19:21:56+00:00","description":"Matthew Smith demonstrates how to generate the financial time series features using the tsfeatures package. Read Part IX!","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-ix\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/02\/tech-background.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/02\/tech-background.jpg","width":900,"height":540,"caption":"Quant"},{"@type":"WebSite","@id":"https:\/\/ibkrcampus.com\/campus\/#website","url":"https:\/\/ibkrcampus.com\/campus\/","name":"IBKR Campus US","description":"Financial Education from Interactive Brokers","publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ibkrcampus.com\/campus\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ibkrcampus.com\/campus\/#organization","name":"Interactive Brokers","alternateName":"IBKR","url":"https:\/\/ibkrcampus.com\/campus\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","width":669,"height":669,"caption":"Interactive Brokers"},"image":{"@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/"},"publishingPrinciples":"https:\/\/www.interactivebrokers.com\/campus\/about-ibkr-campus\/","ethicsPolicy":"https:\/\/www.interactivebrokers.com\/campus\/cyber-security-notice\/"},{"@type":"Person","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/34d673c6a3e7243a03707c66ba7a46f6","name":"Matthew Smith","sameAs":["https:\/\/lf0.com\/"],"url":"https:\/\/www.interactivebrokers.com\/campus\/author\/matthewsmith\/"}]}},"jetpack_featured_media_url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/02\/tech-background.jpg","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/92166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/users\/372"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=92166"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/92166\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/36372"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=92166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=92166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=92166"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=92166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}