{"id":58431,"date":"2020-09-03T10:20:44","date_gmt":"2020-09-03T14:20:44","guid":{"rendered":"https:\/\/ibkrcampus.com\/?p=58431"},"modified":"2022-11-21T09:46:14","modified_gmt":"2022-11-21T14:46:14","slug":"time-series-classification-synthetic-vs-real-financial-time-series-part-v","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-v\/","title":{"rendered":"Time Series Classification Synthetic vs Real Financial Time Series \u2013 Part V"},"content":{"rendered":"\n<p><em>See&nbsp;<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;,<em>&nbsp;<\/em><a href=\"\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-iii\/\">Part III<\/a><\/em>&nbsp;<em>and <a href=\"\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-iv\/\">Part IV<\/a> in this article for instructions from Matthew Smith on which R packages and data sets you need.<\/em><\/p>\n\n\n\n<p>An important note in the code here is that I randomly sample by&nbsp;<em>group<\/em>, that is, I do not take a random sample from all observations across all groups. Instead I&nbsp;<code>group_by<\/code>&nbsp;each time series (each of the 6,000 observations after I filtered by the&nbsp;<code>class == 0<\/code>, likewise when I filter by the&nbsp;<code>class == 1<\/code>), I then&nbsp;<code>nest()<\/code>&nbsp;the data to collapse the daily time series for each asset into a&nbsp;<code>list<\/code>. From here I will have 6,000 observations, each of which has their time series nested inside a list. Thus, I can sample 1 of the 6,000 observations and then&nbsp;<code>unnest()<\/code>&nbsp;and obtain a full time series set of one of the random assets selected, &#8211; instead of sampling randomly over all assets time series data (which would be completely wrong).<\/p>\n\n\n\n<p>For example the following commented out code&nbsp;<code>group_by()<\/code>&nbsp;the ID variable and&nbsp;<code>nest()<\/code>&nbsp;the data, takes a random&nbsp;<code>sample_n()<\/code>&nbsp;of the grouped data and then&nbsp;<code>unnest()<\/code>&nbsp;the data to its original form, this time with a random sample of the IDs.<\/p>\n\n\n\n<p style=\"background-color:#fcfcdb;font-size:11px\" class=\"has-background\">\n#  group_by(row_id) %&gt;%<br>\n#  nest() %&gt;%<br>\n#  ungroup() %&gt;% <br>\n#  sample_n(1) %&gt;%<br>\n#  unnest() %&gt;%\n<\/p>\n\n\n\n<p>Next I compute the Dickey Fuller test on both series for a single random observation, hence the&nbsp;<code>sample_n(1)<\/code>&nbsp;argument (it\u2019s too computationally expensive to compute it on all 12,000 observations).<\/p>\n\n\n\n<p>For the synthetically created series.<\/p>\n\n\n\n<p style=\"background-color:#fcfcdb;font-size:11px\" class=\"has-background\">\n# Dickey Fuller test on the 0 class<br>\n# I only randomly sample 1 of the assets for the 0 class to save on output space<br><br>\n\ndf %&gt;%<br>\n  filter(class == 0) %&gt;%<br>\n  group_by(row_id) %&gt;%<br>\n  nest() %&gt;%<br>\n  ungroup() %&gt;% <br>\n  sample_n(1) %&gt;%<br>\n  unnest() %&gt;%<br>\n  nest(-row_id) %&gt;%<br>\n  mutate(adf_res = map(data, ~ adf.test(.x$value))) %&gt;%<br>\n  unnest(adf_res)\n<\/p>\n\n\n\n<p style=\"background-color:#fcfcdb;font-size:11px\" class=\"has-background\">\n## Augmented Dickey-Fuller Test <br>\n## alternative: stationary <br>\n##  \n## Type 1: no drift no trend <br>\n##      lag    ADF p.value<br>\n## [1,]   0 -17.94    0.01<br>\n## [2,]   1 -11.75    0.01<br>\n## [3,]   2  -8.66    0.01<br>\n## [4,]   3  -7.62    0.01<br>\n## [5,]   4  -7.13    0.01<br>\n## Type 2: with drift no trend <br>\n##      lag    ADF p.value<br>\n## [1,]   0 -17.94    0.01<br>\n## [2,]   1 -11.76    0.01<br>\n## [3,]   2  -8.67    0.01<br>\n## [4,]   3  -7.64    0.01<br>\n## [5,]   4  -7.15    0.01<br>\n## Type 3: with drift and trend <br>\n##      lag    ADF p.value<br>\n## [1,]   0 -18.00    0.01<br>\n## [2,]   1 -11.83    0.01<br>\n## [3,]   2  -8.77    0.01<br>\n## [4,]   3  -7.74    0.01<br>\n## [5,]   4  -7.26    0.01<br>\n## &#8212;- <br>\n## Note: in fact, p.value = 0.01 means p.value <= 0.01\n<\/p>\n\n\n\n<p style=\"background-color:#fcfcdb;font-size:11px\" class=\"has-background\">\n## # A tibble: 3 x 3<br>\n##   row_id           data adf_res   <br>       \n##    <int> <list<df[,4]>> <named list>   <br>  \n## 1   7807      [260 x 4] <dbl[,3] [5 x 3]><br>\n## 2   7807      [260 x 4] <dbl[,3] [5 x 3]><br>\n## 3   7807      [260 x 4] <dbl[,3] [5 x 3]>\n<\/p>\n\n\n\n<p>The same but on the real financial series.<\/p>\n\n\n\n<p style=\"background-color:#fcfcdb;font-size:11px\" class=\"has-background\">\n# Dickey Fuller test on the 1 class<br>\n# I only randomly sample 1 of the assets for the 1 class to save on output space<br><br>\n\ndf %&gt;%<br>\n  filter(class == 1) %&gt;%<br>\n  group_by(row_id) %&gt;%<br>\n  nest() %&gt;%<br>\n  ungroup() %&gt;% <br>\n  sample_n(1) %&gt;%<br>\n  unnest() %&gt;%<br>\n  nest(-row_id) %&gt;%<br>\n  mutate(adf_res = map(data, ~ adf.test(.x$value))) %&gt;%<br>\n  unnest(adf_res)\n<\/p>\n\n\n\n<p style=\"background-color:#fcfcdb;font-size:11px\" class=\"has-background\">\n## Augmented Dickey-Fuller Test <br>\n## alternative: stationary <br>\n##  <br>\n## Type 1: no drift no trend <br>\n##      lag    ADF p.value<br>\n## [1,]   0 -15.99    0.01<br>\n## [2,]   1 -10.71    0.01<br>\n## [3,]   2  -9.12    0.01<br>\n## [4,]   3  -8.74    0.01<br>\n## [5,]   4  -7.58    0.01<br>\n## Type 2: with drift no trend <br>\n##      lag    ADF p.value<br>\n## [1,]   0 -16.10    0.01<br>\n## [2,]   1 -10.84    0.01<br>\n## [3,]   2  -9.27    0.01<br>\n## [4,]   3  -8.93    0.01<br>\n## [5,]   4  -7.81    0.01<br>\n## Type 3: with drift and trend <br>\n##      lag    ADF p.value<br>\n## [1,]   0 -16.27    0.01<br>\n## [2,]   1 -10.99    0.01<br>\n## [3,]   2  -9.46    0.01<br>\n## [4,]   3  -9.18    0.01<br>\n## [5,]   4  -8.06    0.01<br>\n## &#8212;- <br>\n## Note: in fact, p.value = 0.01 means p.value <= 0.01\n<\/p>\n\n\n\n<p style=\"background-color:#fcfcdb;font-size:11px\" class=\"has-background\">\n## # A tibble: 3 x 3<br>\n##   row_id           data adf_res    <br>      \n##    <int> <list<df[,4]>> <named list>     <br>\n## 1  10833      [260 x 4] <dbl[,3] [5 x 3]><br>\n## 2  10833      [260 x 4] <dbl[,3] [5 x 3]><br>\n## 3  10833      [260 x 4] <dbl[,3] [5 x 3]>\n<\/p>\n\n\n\n<p><em>Stay tuned for the next installment, in which Matthew will review he Jarque-Bera tests for normality.<\/em><\/p>\n\n\n\n<p>Visit&nbsp;<a href=\"https:\/\/lf0.com\/post\/synth-real-time-series\/financial-time-series\/\">Matthew Smith \u2013 R Blog<\/a>&nbsp;to see the next step in his analysis.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Matthew Smith computes the Dickey Fuller test on synthetically created series and  real financial series.<\/p>\n","protected":false},"author":372,"featured_media":58432,"comment_status":"closed","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[339,343,338,341,351,344,342],"tags":[6989,8343,806,8344,8342,6613,6988,6614,852,7811,1044,1045,5519,2536],"contributors-categories":[13694],"class_list":{"0":"post-58431","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-box-plot","16":"tag-data-science","17":"tag-dickey-fuller-test","18":"tag-durbin-watson","19":"tag-financial-data","20":"tag-financial-markets","21":"tag-jupyter-notebook","22":"tag-machine-learning","23":"tag-r-rstats","24":"tag-tidyquant","25":"tag-tidyverse","26":"tag-time-series","27":"tag-visualization","28":"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.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Time Series Classification Synthetic vs Real Financial Time Series \u2013 Part V<\/title>\n<meta name=\"description\" content=\"Matthew Smith computes the Dickey Fuller test on synthetically created series and real financial series.\" \/>\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\/58431\/\" \/>\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 V | IBKR Quant Blog\" \/>\n<meta property=\"og:description\" content=\"Matthew Smith computes the Dickey Fuller test on synthetically created series and real financial series.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-v\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2020-09-03T14:20:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-21T14:46:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/09\/time-space.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"550\" \/>\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=\"2 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-v\\\/#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-v\\\/\"\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 V\",\n\t            \"datePublished\": \"2020-09-03T14:20:44+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:46:14+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-v\\\/\"\n\t            },\n\t            \"wordCount\": 381,\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-v\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/09\\\/time-space.jpg\",\n\t            \"keywords\": [\n\t                \"Asset Pricing\",\n\t                \"Box Plot\",\n\t                \"Data Science\",\n\t                \"Dickey-Fuller Test\",\n\t                \"Durbin Watson\",\n\t                \"financial data\",\n\t                \"Financial Markets\",\n\t                \"Jupyter Notebook\",\n\t                \"Machine Learning\",\n\t                \"R rstats\",\n\t                \"tidyquant\",\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-v\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/time-series-classification-synthetic-vs-real-financial-time-series-part-v\\\/\",\n\t            \"name\": \"Time Series Classification Synthetic vs Real Financial Time Series \u2013 Part V | 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-v\\\/#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-v\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/09\\\/time-space.jpg\",\n\t            \"datePublished\": \"2020-09-03T14:20:44+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:46:14+00:00\",\n\t            \"description\": \"Matthew Smith computes the Dickey Fuller test on synthetically created series and real financial series.\",\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-v\\\/\"\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-v\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/09\\\/time-space.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/09\\\/time-space.jpg\",\n\t            \"width\": 900,\n\t            \"height\": 550,\n\t            \"caption\": \"Time Series\"\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 V","description":"Matthew Smith computes the Dickey Fuller test on synthetically created series and real financial series.","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\/58431\/","og_locale":"en_US","og_type":"article","og_title":"Time Series Classification Synthetic vs Real Financial Time Series \u2013 Part V | IBKR Quant Blog","og_description":"Matthew Smith computes the Dickey Fuller test on synthetically created series and real financial series.","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-v\/","og_site_name":"IBKR Campus US","article_published_time":"2020-09-03T14:20:44+00:00","article_modified_time":"2022-11-21T14:46:14+00:00","og_image":[{"width":900,"height":550,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/09\/time-space.jpg","type":"image\/jpeg"}],"author":"Matthew Smith","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Matthew Smith","Est. reading time":"2 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-v\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-v\/"},"author":{"name":"Matthew Smith","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/34d673c6a3e7243a03707c66ba7a46f6"},"headline":"Time Series Classification Synthetic vs Real Financial Time Series \u2013 Part V","datePublished":"2020-09-03T14:20:44+00:00","dateModified":"2022-11-21T14:46:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-v\/"},"wordCount":381,"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-v\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/09\/time-space.jpg","keywords":["Asset Pricing","Box Plot","Data Science","Dickey-Fuller Test","Durbin Watson","financial data","Financial Markets","Jupyter Notebook","Machine Learning","R rstats","tidyquant","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-v\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-v\/","name":"Time Series Classification Synthetic vs Real Financial Time Series \u2013 Part V | 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-v\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-v\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/09\/time-space.jpg","datePublished":"2020-09-03T14:20:44+00:00","dateModified":"2022-11-21T14:46:14+00:00","description":"Matthew Smith computes the Dickey Fuller test on synthetically created series and real financial series.","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-v\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/time-series-classification-synthetic-vs-real-financial-time-series-part-v\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/09\/time-space.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/09\/time-space.jpg","width":900,"height":550,"caption":"Time Series"},{"@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\/09\/time-space.jpg","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/58431","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=58431"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/58431\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/58432"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=58431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=58431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=58431"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=58431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}