{"id":5,"date":"2020-08-21T05:38:36","date_gmt":"2020-08-21T05:38:36","guid":{"rendered":"http:\/\/www.jeremywhittaker.com\/?p=5"},"modified":"2021-09-22T20:59:19","modified_gmt":"2021-09-22T20:59:19","slug":"predict-sp-using-google-colab-facebook-prophet","status":"publish","type":"post","link":"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/","title":{"rendered":"Predict S&#038;P Using Google Colab &#038; Facebook Prophet"},"content":{"rendered":"\n<p>A few years ago Facebook decided to open source Prophet. This is their analytics algorithm that uses an additive model to fit non-linear data with seasonality. I started to wonder, &#8220;If this algorithm were in place in March when the stock market&#8217;s crashed what would it have advised?&#8221; So I decided to give it a spin. <\/p>\n\n\n\n<p>Let&#8217;s assume you had a significant amount of money invested in S&amp;P index funds on March 23, 2020. Since the beginning of the year, you would have lost 31% of your money. At this point you might be thinking, &#8220;Oh shit, what do I do, sell, buy, hold?&#8221;. A lot of investors would panic and sell. The market thrives and two psychologies, fear and greed. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"458\" data-src=\"http:\/\/www.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-1024x458.png\" alt=\"\" class=\"wp-image-6 lazyload\" data-srcset=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-1024x458.png 1024w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-300x134.png 300w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-768x343.png 768w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-1200x537.png 1200w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image.png 1212w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/458;\" \/><\/figure>\n\n\n\n<p>But let&#8217;s take an analytics approach to this problem. What would Facebook&#8217;s Prophet algorithm advise you do to? Here is how you can approach that problem. <\/p>\n\n\n\n<p>The first thing I did was fire up Google Colab. The entire notebook can be found <a rel=\"noreferrer noopener\" href=\"https:\/\/colab.research.google.com\/drive\/1bb9LykqXq3FV8snTlWrPTHzB3amP9YFH?usp=sharing\" target=\"_blank\">here<\/a>.<\/p>\n\n\n\n<p>The first part of this code uses a Python DataReader to pull SPY from Yahoo Finance. I created an end date of 3\/23\/2020. This only gives Facebook&#8217;s Prophet access to data up until this point. We are then going to have it predict where it thinks the price would be today 8\/20\/2020 without feeding it any future data. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Python\nimport pandas as pd\nfrom fbprophet import Prophet\n\nfrom pandas_datareader import data as web\nimport datetime\n\nimport pandas as pd\nimport matplotlib.pyplot as plt\n\nstock = 'spy'\nendDate = datetime.datetime(2020, 3, 23)\n#start_date = (datetime.datetime.now() - datetime.timedelta(days=2000)).strftime(\"%m-%d-%Y\")\nstart_date = (endDate - datetime.timedelta(days=2000)).strftime(\"%m-%d-%Y\")\n#print(start_date)\ndf = web.DataReader(stock, data_source='yahoo', start=start_date,end=endDate)\n#date is the index so you need to make it a column\ndf&#91;\"Date\"] = df.index\n\nimport matplotlib.pyplot as plt\n\nplt.plot(df&#91;'Close'])\ndf.head()\ndf.tail()<\/code><\/pre>\n\n\n\n<p>The next part of code renames the imported columns from &#8220;Date&#8221; to &#8220;ds&#8221; and &#8220;Close&#8221; to &#8220;y&#8221;. DS and Y are the two variables that Prophet will be looking for. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Python\ndf = df.rename(columns={\"Date\": \"ds\", \"Close\": \"y\"}, errors=\"raise\")<\/code><\/pre>\n\n\n\n<p>This next part of the code starts to set up Prophet. The only variable you should be concerned with is 151. This is telling the algorithm to look out 151 days. Then it forecasts three variables yhat, yhat_lower, and yhat_upper. Yhat is the predicted price with upper and lower being the bounds in which it assumes the price will fall in. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Python\nm = Prophet()\nm.fit(df)\nfuture = m.make_future_dataframe(periods=151)\nforecast = m.predict(future)\nforecast&#91;&#91;'ds', 'yhat', 'yhat_lower', 'yhat_upper']].tail()<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"409\" height=\"183\" data-src=\"http:\/\/www.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-2.png\" alt=\"\" class=\"wp-image-8 lazyload\" data-srcset=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-2.png 409w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-2-300x134.png 300w\" data-sizes=\"(max-width: 409px) 100vw, 409px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 409px; --smush-placeholder-aspect-ratio: 409\/183;\" \/><\/figure>\n\n\n\n<p>You can see that it predicts the closing price for tomorrow will be 331.52. Remember it is only using data from March 23rd to make this calculation. Given the wild gyrations in the market, this is extremely close to being accurate. The SPY closed today at 338. Prophet predicted it would close at 331. It was off by 2%. This is using a 5-month look ahead forecasting model. <\/p>\n\n\n\n<p>Here is the visual representation of what that looks like. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from fbprophet.plot import plot_plotly, plot_components_plotly\n\nplot_plotly(m, forecast)<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"799\" height=\"495\" data-src=\"http:\/\/www.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-3.png\" alt=\"\" class=\"wp-image-9 lazyload\" data-srcset=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-3.png 799w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-3-300x186.png 300w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-3-768x476.png 768w\" data-sizes=\"(max-width: 799px) 100vw, 799px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 799px; --smush-placeholder-aspect-ratio: 799\/495;\" \/><\/figure>\n\n\n\n<p>And more charts&#8230;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>plot_components_plotly(m, forecast)<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"858\" height=\"486\" data-src=\"http:\/\/www.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-4.png\" alt=\"\" class=\"wp-image-10 lazyload\" data-srcset=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-4.png 858w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-4-300x170.png 300w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-4-768x435.png 768w\" data-sizes=\"(max-width: 858px) 100vw, 858px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 858px; --smush-placeholder-aspect-ratio: 858\/486;\" \/><\/figure>\n\n\n\n<p>Finally here is the visualization of the predicted price vs. the actual price chart. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"483\" data-src=\"http:\/\/www.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-6.png\" alt=\"\" class=\"wp-image-12 lazyload\" data-srcset=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-6.png 800w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-6-300x181.png 300w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-6-768x464.png 768w\" data-sizes=\"(max-width: 800px) 100vw, 800px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 800px; --smush-placeholder-aspect-ratio: 800\/483;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"451\" data-src=\"http:\/\/www.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-5-1024x451.png\" alt=\"\" class=\"wp-image-11 lazyload\" data-srcset=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-5-1024x451.png 1024w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-5-300x132.png 300w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-5-768x338.png 768w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-5-1200x528.png 1200w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-5.png 1218w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/451;\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few years ago Facebook decided to open source Prophet. This is their analytics algorithm that uses an additive model to fit non-linear data with seasonality. I started&#8230;<\/p>\n","protected":false},"author":1,"featured_media":9,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-5","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-algorithmic-trading"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Predict S&amp;P Using Google Colab &amp; Facebook Prophet - Jeremy Whittaker<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Predict S&amp;P Using Google Colab &amp; Facebook Prophet\" \/>\n<meta property=\"og:description\" content=\"A few years ago Facebook decided to open source Prophet. This is their analytics algorithm that uses an additive model to fit non-linear data with seasonality. I started...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/\" \/>\n<meta property=\"og:site_name\" content=\"Jeremy Whittaker\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/WhittakerJeremy\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/WhittakerJeremy\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-21T05:38:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-22T20:59:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"799\" \/>\n\t<meta property=\"og:image:height\" content=\"495\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"JeremyWhittaker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Predict S&amp;P Using Google Colab &amp; Facebook Prophet\" \/>\n<meta name=\"twitter:description\" content=\"Predict S&amp;P Using Google Colab &amp; Facebook Prophet\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-3.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"JeremyWhittaker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/\"},\"author\":{\"name\":\"JeremyWhittaker\",\"@id\":\"https:\/\/new.jeremywhittaker.com\/#\/schema\/person\/ed0edfdefb3e180693efef453372980c\"},\"headline\":\"Predict S&#038;P Using Google Colab &#038; Facebook Prophet\",\"datePublished\":\"2020-08-21T05:38:36+00:00\",\"dateModified\":\"2021-09-22T20:59:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/\"},\"wordCount\":414,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/#\/schema\/person\/ed0edfdefb3e180693efef453372980c\"},\"image\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-3.png\",\"articleSection\":[\"Algorithmic Trading\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/\",\"url\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/\",\"name\":\"Predict S&P Using Google Colab & Facebook Prophet - Jeremy Whittaker\",\"isPartOf\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-3.png\",\"datePublished\":\"2020-08-21T05:38:36+00:00\",\"dateModified\":\"2021-09-22T20:59:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/#primaryimage\",\"url\":\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-3.png\",\"contentUrl\":\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-3.png\",\"width\":799,\"height\":495},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/new.jeremywhittaker.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Predict S&#038;P Using Google Colab &#038; Facebook Prophet\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/new.jeremywhittaker.com\/#website\",\"url\":\"https:\/\/new.jeremywhittaker.com\/\",\"name\":\"Jeremy Whittaker\",\"description\":\"Research, software, markets, housing, and energy\",\"publisher\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/#\/schema\/person\/ed0edfdefb3e180693efef453372980c\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/new.jeremywhittaker.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/new.jeremywhittaker.com\/#\/schema\/person\/ed0edfdefb3e180693efef453372980c\",\"name\":\"JeremyWhittaker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/c8ac20e6dfa86b5f27ce9bffee4851099770cbea5ae7338a274865bfbc8c0218?s=96&d=retro&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c8ac20e6dfa86b5f27ce9bffee4851099770cbea5ae7338a274865bfbc8c0218?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c8ac20e6dfa86b5f27ce9bffee4851099770cbea5ae7338a274865bfbc8c0218?s=96&d=retro&r=g\",\"caption\":\"JeremyWhittaker\"},\"logo\":{\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/c8ac20e6dfa86b5f27ce9bffee4851099770cbea5ae7338a274865bfbc8c0218?s=96&d=retro&r=g\"},\"sameAs\":[\"http:\/\/www.jeremywhittaker.com\",\"https:\/\/www.facebook.com\/WhittakerJeremy\",\"https:\/\/www.linkedin.com\/in\/jeremywhittaker\/\"],\"url\":\"https:\/\/new.jeremywhittaker.com\/index.php\/author\/jeremywhittaker\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Predict S&P Using Google Colab & Facebook Prophet - Jeremy Whittaker","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Predict S&P Using Google Colab & Facebook Prophet","og_description":"A few years ago Facebook decided to open source Prophet. This is their analytics algorithm that uses an additive model to fit non-linear data with seasonality. I started...","og_url":"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/","og_site_name":"Jeremy Whittaker","article_publisher":"https:\/\/www.facebook.com\/WhittakerJeremy","article_author":"https:\/\/www.facebook.com\/WhittakerJeremy","article_published_time":"2020-08-21T05:38:36+00:00","article_modified_time":"2021-09-22T20:59:19+00:00","og_image":[{"width":799,"height":495,"url":"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-3.png","type":"image\/png"}],"author":"JeremyWhittaker","twitter_card":"summary_large_image","twitter_title":"Predict S&P Using Google Colab & Facebook Prophet","twitter_description":"Predict S&P Using Google Colab & Facebook Prophet","twitter_image":"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-3.png","twitter_misc":{"Written by":"JeremyWhittaker","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/#article","isPartOf":{"@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/"},"author":{"name":"JeremyWhittaker","@id":"https:\/\/new.jeremywhittaker.com\/#\/schema\/person\/ed0edfdefb3e180693efef453372980c"},"headline":"Predict S&#038;P Using Google Colab &#038; Facebook Prophet","datePublished":"2020-08-21T05:38:36+00:00","dateModified":"2021-09-22T20:59:19+00:00","mainEntityOfPage":{"@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/"},"wordCount":414,"commentCount":0,"publisher":{"@id":"https:\/\/new.jeremywhittaker.com\/#\/schema\/person\/ed0edfdefb3e180693efef453372980c"},"image":{"@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/#primaryimage"},"thumbnailUrl":"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-3.png","articleSection":["Algorithmic Trading"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/","url":"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/","name":"Predict S&P Using Google Colab & Facebook Prophet - Jeremy Whittaker","isPartOf":{"@id":"https:\/\/new.jeremywhittaker.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/#primaryimage"},"image":{"@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/#primaryimage"},"thumbnailUrl":"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-3.png","datePublished":"2020-08-21T05:38:36+00:00","dateModified":"2021-09-22T20:59:19+00:00","breadcrumb":{"@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/#primaryimage","url":"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-3.png","contentUrl":"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2020\/08\/image-3.png","width":799,"height":495},{"@type":"BreadcrumbList","@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2020\/08\/21\/predict-sp-using-google-colab-facebook-prophet\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/new.jeremywhittaker.com\/"},{"@type":"ListItem","position":2,"name":"Predict S&#038;P Using Google Colab &#038; Facebook Prophet"}]},{"@type":"WebSite","@id":"https:\/\/new.jeremywhittaker.com\/#website","url":"https:\/\/new.jeremywhittaker.com\/","name":"Jeremy Whittaker","description":"Research, software, markets, housing, and energy","publisher":{"@id":"https:\/\/new.jeremywhittaker.com\/#\/schema\/person\/ed0edfdefb3e180693efef453372980c"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/new.jeremywhittaker.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/new.jeremywhittaker.com\/#\/schema\/person\/ed0edfdefb3e180693efef453372980c","name":"JeremyWhittaker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c8ac20e6dfa86b5f27ce9bffee4851099770cbea5ae7338a274865bfbc8c0218?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c8ac20e6dfa86b5f27ce9bffee4851099770cbea5ae7338a274865bfbc8c0218?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c8ac20e6dfa86b5f27ce9bffee4851099770cbea5ae7338a274865bfbc8c0218?s=96&d=retro&r=g","caption":"JeremyWhittaker"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/c8ac20e6dfa86b5f27ce9bffee4851099770cbea5ae7338a274865bfbc8c0218?s=96&d=retro&r=g"},"sameAs":["http:\/\/www.jeremywhittaker.com","https:\/\/www.facebook.com\/WhittakerJeremy","https:\/\/www.linkedin.com\/in\/jeremywhittaker\/"],"url":"https:\/\/new.jeremywhittaker.com\/index.php\/author\/jeremywhittaker\/"}]}},"_links":{"self":[{"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/posts\/5","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/comments?post=5"}],"version-history":[{"count":0,"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/posts\/5\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/media\/9"}],"wp:attachment":[{"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/media?parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/categories?post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/tags?post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}