{"id":1682,"date":"2017-12-26T16:42:24","date_gmt":"2017-12-26T16:42:24","guid":{"rendered":"http:\/\/intelligentonlinetools.com\/blog\/?p=1682"},"modified":"2017-12-29T14:27:28","modified_gmt":"2017-12-29T14:27:28","slug":"prediction-data-stock-price-prophet-report","status":"publish","type":"post","link":"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/","title":{"rendered":"Prediction Data Stock Prices with Prophet"},"content":{"rendered":"<p>In the previous <a href=http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/17\/time-series-analysis-python-prophet\/ target=\"_blank\">post<\/a> I showed how to use the Prophet for time series analysis with python. I used Prophet for data stock price prediction. But it was used only for one stock and only for next 10 days.<\/p>\n<p>In this post we will select more data and will test how accurate can be <b>prediction data stock prices<\/b> with Prophet. <\/p>\n<p>We will select <b>5 stocks<\/b> and will do prediction stock prices based on their historical data. You will get chance to look at the report how error is distributed across different stocks or number of days in forecast. The summary report will show that we can easy get accuracy as high as <b>96.8%<\/b> for stock price prediction with Prophet for 20 days forecast. <\/p>\n<h3>Data and Parameters<\/h3>\n<p>The five stocks that we will select are the stocks in the price range between $20 &#8211; $50.  The daily historical data are taken from the web.   <\/p>\n<p>For <b>time horizon<\/b> we will use <b>20<\/b> days. That means that we will save last 20 prices for testing and will not use for forecasting.<\/p>\n<h3>Experiment<\/h3>\n<p>For this experiment we use python script  with the main loop that is iterating for each stock. Inside of the loop, Prophet is doing forecast and then error is calculated and saved for each day in forecast:<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n   model = Prophet() #instantiate Prophet\r\n   model.fit(data);\r\n   future_stock_data = model.make_future_dataframe(periods=steps_ahead, freq = 'd')\r\n   forecast_data = model.predict(future_stock_data)\r\n\r\n   step_count=0\r\n   # save actual data \r\n   for index, row in data_test.iterrows():\r\n    \r\n     results[ind][step_count][0] = row['y']\r\n     results[ind][step_count][4] = row['ds']\r\n     step_count=step_count + 1\r\n   \r\n   # save predicted data and calculate error\r\n   count_index = 0   \r\n   for index, row in forecast_data.iterrows():\r\n     if count_index &gt;= len(data)  :\r\n       \r\n        step_count= count_index - len(data)\r\n        results[ind][step_count][1] = row['yhat']\r\n        results[ind][step_count][2] = results[ind][step_count][0] -  results[ind][step_count][1]\r\n        results[ind][step_count][3] = 100 * results[ind][step_count][2] \/ results[ind][step_count][0]\r\n      \r\n     count_index=count_index + 1\r\n<\/pre>\n<p>Later on (as shown in the above python source code) we count error as <b>difference between actual closed price and predicted.<\/b>  Also error is calculated in % for each day for each stock using the formula:<\/p>\n<p>      Error(%) =  100*(Actual-Predicted)\/Actual<\/p>\n<p><strong>Results<\/strong><br \/>\nThe detailed result report can be found <a href=\"http:\/\/intelligentonlinetools.com\/blog\/prediction-data-stock-prices-prophet-report\/\" target=\"_blank\">here<\/a>. In this report you can see how error is distributed across different days. You can note that there is no significant increase in error with 20 days of forecast and the error always has the same sign for all 20 days. <\/p>\n<p>Below is the summary of error and accuracy for our selected 5 stocks.  Also added the column the year of starting point of data range that was used for forecast.  It turn out that all 5 stocks have different historical data range.  The shortest data range was starting in the middle of 2016.<\/p>\n<figure id=\"attachment_1689\" aria-describedby=\"caption-attachment-1689\" style=\"width: 540px\" class=\"wp-caption alignnone\"><img data-attachment-id=\"1689\" data-permalink=\"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/prediction-data-stock-prices-with-prophet-summary-results\/#main\" data-orig-file=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2017\/12\/prediction-data-stock-prices-with-Prophet-summary-results-e1514396088637.png\" data-orig-size=\"550,125\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"prediction data stock prices with Prophet summary results\" data-image-description=\"&lt;p&gt;prediction data stock prices with Prophet summary of results&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;prediction data stock prices with Prophet summary of results&lt;\/p&gt;\n\" data-medium-file=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2017\/12\/prediction-data-stock-prices-with-Prophet-summary-results-300x68.png\" data-large-file=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2017\/12\/prediction-data-stock-prices-with-Prophet-summary-results-e1514396088637.png\" decoding=\"async\" loading=\"lazy\" src=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2017\/12\/prediction-data-stock-prices-with-Prophet-summary-results-e1514396088637.png\" alt=\"prediction data stock prices with Prophet summary results\" width=\"550\" height=\"125\" class=\"size-full wp-image-1689\" \/><figcaption id=\"caption-attachment-1689\" class=\"wp-caption-text\">prediction data stock prices with Prophet summary of results<\/figcaption><\/figure>\n<p>Overall results for accuracy are not great. Only one stock got good accuracy <strong>96.8%<\/strong>.<br \/>\nAccuracy was varying for different stocks. To investigate variation I plot graph of accuracy and beginning year of historical data.  The plot is shown below.   Looks like there is a correlation between data range used for forecast and accuracy. This makes sense &#8211; as the data in the further past may be do more harm than good. <\/p>\n<p>Looking at the plot below we see that the shortest historical range (just about for one year) showed the best accuracy. <\/p>\n<figure id=\"attachment_1702\" aria-describedby=\"caption-attachment-1702\" style=\"width: 640px\" class=\"wp-caption alignnone\"><img data-attachment-id=\"1702\" data-permalink=\"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/prediction-data-stock-prices-with-prophet-accuracy-vs-used-data-range-2\/#main\" data-orig-file=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2017\/12\/prediction-data-stock-prices-with-Prophet-accuracy-vs-used-data-range-1-e1514396944169.png\" data-orig-size=\"650,301\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"prediction data stock prices with Prophet &#8211; accuracy vs used data range\" data-image-description=\"&lt;p&gt;prediction data stock prices with Prophet &#8211; accuracy vs used data range&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;prediction data stock prices with Prophet &#8211; accuracy vs used data range&lt;\/p&gt;\n\" data-medium-file=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2017\/12\/prediction-data-stock-prices-with-Prophet-accuracy-vs-used-data-range-1-300x139.png\" data-large-file=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2017\/12\/prediction-data-stock-prices-with-Prophet-accuracy-vs-used-data-range-1-1024x474.png\" decoding=\"async\" loading=\"lazy\" src=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2017\/12\/prediction-data-stock-prices-with-Prophet-accuracy-vs-used-data-range-1-e1514396944169.png\" alt=\"prediction data stock prices with Prophet - accuracy vs used data range\" width=\"650\" height=\"301\" class=\"size-full wp-image-1702\" \/><figcaption id=\"caption-attachment-1702\" class=\"wp-caption-text\">prediction data stock prices with Prophet &#8211; accuracy vs used data range<\/figcaption><\/figure>\n<p><strong>Conclusion<\/strong><br \/>\nWe did not get good results (except one stock) in our experiments but we got the knowledge about possible range and distribution of error over the different stocks and time horizon (up to 20 days). Also it looks promising to try do forecast with different historical data range to check how it will affect performance. It would be interesting to see if the best accuracy that we got for one stock can be achieved for other stocks too.  <\/p>\n<p>I hope you enjoyed this post about using Prophet for prediction data stock prices. If you have any tips or anything else to add, please leave a comment in the reply box below.<\/p>\n<p>Here is the script for stock data forecasting with python using Prophet.<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport pandas as pd\r\nfrom fbprophet import Prophet\r\n\r\nsteps_ahead = 20\r\nfname_path=&quot;C:\\\\Users\\\\stock data folder&quot;\r\n\r\nfnames=['fn1.csv','fn2.csv', 'fn3.csv', 'fn4.csv', 'fn5.csv']\r\n# output fields: actual, predicted, error, error in %, date\r\nfields_number = 6\r\n\r\nresults= [[[0 for i in range(len(fnames))] for j in range(steps_ahead)] for k in range(fields_number)]\r\n\r\nfor ind in range(5):\r\n \r\n   fname=fname_path + &quot;\\\\&quot; + fnames[ind]\r\n  \r\n   data = pd.read_csv (fname)\r\n\r\n   #keep only date and close\r\n   #delete Open, High,\tLow  , Adj CLose, Volume\r\n   data.drop(data.columns[[1, 2, 3,5,6]], axis=1)\r\n   data.columns = ['ds', 'y', &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;]\r\n  \r\n   data_test = data[-steps_ahead:]\r\n   print (data_test)\r\n   data = data[:-steps_ahead]\r\n   print (data)\r\n     \r\n   model = Prophet() #instantiate Prophet\r\n   model.fit(data);\r\n   future_stock_data = model.make_future_dataframe(periods=steps_ahead, freq = 'd')\r\n   forecast_data = model.predict(future_stock_data)\r\n   print (forecast_data[['ds', 'yhat', 'yhat_lower', 'yhat_upper']].tail(12))\r\n\r\n   step_count=0\r\n   for index, row in data_test.iterrows():\r\n    \r\n     results[ind][step_count][0] = row['y']\r\n     results[ind][step_count][4] = row['ds']\r\n     step_count=step_count + 1\r\n   \r\n  \r\n   count_index = 0   \r\n   for index, row in forecast_data.iterrows():\r\n     if count_index &gt;= len(data)  :\r\n       \r\n        step_count= count_index - len(data)\r\n        results[ind][step_count][1] = row['yhat']\r\n        results[ind][step_count][2] = results[ind][step_count][0] -  results[ind][step_count][1]\r\n        results[ind][step_count][3] = 100 * results[ind][step_count][2] \/ results[ind][step_count][0]\r\n      \r\n     count_index=count_index + 1\r\n\r\nfor z in range (5):        \r\n  for i in range (steps_ahead):\r\n    temp=&quot;&quot;\r\n    for j in range (5):\r\n          temp=temp + &quot; &quot; + str(results[z][i][j])\r\n    print (temp)\r\n   \r\n   \r\n  print (z)  \r\n<\/pre>\n<p><!--\n<strong>References<\/strong>\n1. <a href= target=\"_blank\"><\/a>\n1. <a href= target=\"_blank\"><\/a>\n1. <a href= target=\"_blank\"><\/a>\n--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the previous post I showed how to use the Prophet for time series analysis with python. I used Prophet for data stock price prediction. But it was used only for one stock and only for next 10 days. In this post we will select more data and will test how accurate can be prediction &#8230; <a title=\"Prediction Data Stock Prices with Prophet\" class=\"read-more\" href=\"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":[]},"categories":[2,9,10,3],"tags":[42,18,43,27,14,16],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Prediction Data Stock Prices with Prophet - Machine Learning Applications<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Prediction Data Stock Prices with Prophet - Machine Learning Applications\" \/>\n<meta property=\"og:description\" content=\"In the previous post I showed how to use the Prophet for time series analysis with python. I used Prophet for data stock price prediction. But it was used only for one stock and only for next 10 days. In this post we will select more data and will test how accurate can be prediction ... Read more\" \/>\n<meta property=\"og:url\" content=\"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/\" \/>\n<meta property=\"og:site_name\" content=\"Machine Learning Applications\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-26T16:42:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-29T14:27:28+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2017\/12\/prediction-data-stock-prices-with-Prophet-summary-results-e1514396088637.png\" \/>\n<meta name=\"author\" content=\"owygs156\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"owygs156\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/\",\"url\":\"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/\",\"name\":\"Prediction Data Stock Prices with Prophet - Machine Learning Applications\",\"isPartOf\":{\"@id\":\"http:\/\/intelligentonlinetools.com\/blog\/#website\"},\"datePublished\":\"2017-12-26T16:42:24+00:00\",\"dateModified\":\"2017-12-29T14:27:28+00:00\",\"author\":{\"@id\":\"http:\/\/intelligentonlinetools.com\/blog\/#\/schema\/person\/7a886dc5eb9758369af2f6d2cb342478\"},\"breadcrumb\":{\"@id\":\"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/intelligentonlinetools.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Prediction Data Stock Prices with Prophet\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/intelligentonlinetools.com\/blog\/#website\",\"url\":\"http:\/\/intelligentonlinetools.com\/blog\/\",\"name\":\"Machine Learning Applications\",\"description\":\"Artificial intelligence, data mining and machine learning for building web based tools and services.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/intelligentonlinetools.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/intelligentonlinetools.com\/blog\/#\/schema\/person\/7a886dc5eb9758369af2f6d2cb342478\",\"name\":\"owygs156\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/intelligentonlinetools.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/2.gravatar.com\/avatar\/b351def598609cb4c0b5bca26497c7e5?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/2.gravatar.com\/avatar\/b351def598609cb4c0b5bca26497c7e5?s=96&d=mm&r=g\",\"caption\":\"owygs156\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Prediction Data Stock Prices with Prophet - Machine Learning Applications","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":"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/","og_locale":"en_US","og_type":"article","og_title":"Prediction Data Stock Prices with Prophet - Machine Learning Applications","og_description":"In the previous post I showed how to use the Prophet for time series analysis with python. I used Prophet for data stock price prediction. But it was used only for one stock and only for next 10 days. In this post we will select more data and will test how accurate can be prediction ... Read more","og_url":"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/","og_site_name":"Machine Learning Applications","article_published_time":"2017-12-26T16:42:24+00:00","article_modified_time":"2017-12-29T14:27:28+00:00","og_image":[{"url":"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2017\/12\/prediction-data-stock-prices-with-Prophet-summary-results-e1514396088637.png"}],"author":"owygs156","twitter_card":"summary_large_image","twitter_misc":{"Written by":"owygs156","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/","url":"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/","name":"Prediction Data Stock Prices with Prophet - Machine Learning Applications","isPartOf":{"@id":"http:\/\/intelligentonlinetools.com\/blog\/#website"},"datePublished":"2017-12-26T16:42:24+00:00","dateModified":"2017-12-29T14:27:28+00:00","author":{"@id":"http:\/\/intelligentonlinetools.com\/blog\/#\/schema\/person\/7a886dc5eb9758369af2f6d2cb342478"},"breadcrumb":{"@id":"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/intelligentonlinetools.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Prediction Data Stock Prices with Prophet"}]},{"@type":"WebSite","@id":"http:\/\/intelligentonlinetools.com\/blog\/#website","url":"http:\/\/intelligentonlinetools.com\/blog\/","name":"Machine Learning Applications","description":"Artificial intelligence, data mining and machine learning for building web based tools and services.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/intelligentonlinetools.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/intelligentonlinetools.com\/blog\/#\/schema\/person\/7a886dc5eb9758369af2f6d2cb342478","name":"owygs156","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/intelligentonlinetools.com\/blog\/#\/schema\/person\/image\/","url":"http:\/\/2.gravatar.com\/avatar\/b351def598609cb4c0b5bca26497c7e5?s=96&d=mm&r=g","contentUrl":"http:\/\/2.gravatar.com\/avatar\/b351def598609cb4c0b5bca26497c7e5?s=96&d=mm&r=g","caption":"owygs156"}}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7h1IJ-r8","jetpack-related-posts":[{"id":1628,"url":"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/17\/time-series-analysis-python-prophet\/","url_meta":{"origin":1682,"position":0},"title":"Time Series Analysis with Python and Prophet","date":"December 17, 2017","format":false,"excerpt":"Recently Facebook released Prophet - open source software tool for forecasting time series data. Facebook team have implemented in Prophet two trend models that can cover many applications: a saturating growth model, and a piecewise linear model. [4] With growth model Prophet can be used for prediction growth\/decay - for\u2026","rel":"","context":"In &quot;Machine Learning&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2017\/12\/time-series-analysis-python-300x180.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1754,"url":"http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/27\/time-series-prediction-lstm-keras\/","url_meta":{"origin":1682,"position":1},"title":"Time Series Prediction with LSTM and Keras for Multiple Steps Ahead","date":"February 27, 2018","format":false,"excerpt":"In this post I will share experiment with Time Series Prediction with LSTM and Keras. LSTM neural network is used in this experiment for multiple steps ahead for stock prices data. The experiment is based on the paper [1]. The authors of the paper examine independent value prediction approach. With\u2026","rel":"","context":"In &quot;Machine Learning&quot;","img":{"alt_text":"Multiple step prediction with separate neural networks","src":"https:\/\/i0.wp.com\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/multiple-step-prediction.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1974,"url":"http:\/\/intelligentonlinetools.com\/blog\/2018\/04\/03\/machine-learning-stock-market-prediction-lstm-keras\/","url_meta":{"origin":1682,"position":2},"title":"Machine Learning Stock Market Prediction with LSTM Keras","date":"April 3, 2018","format":false,"excerpt":"In the previous posts [1,2] I created script for machine learning stock market price on next day prediction. But it was pointed by readers that in stock market prediction, it is more important to know the trend: will the stock go up or down. So I updated the script to\u2026","rel":"","context":"In &quot;Machine Learning&quot;","img":{"alt_text":"Stock Data Prices Prediction with LSTM","src":"https:\/\/i0.wp.com\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/04\/timeseries_differenced_and_inverted_back.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1446,"url":"http:\/\/intelligentonlinetools.com\/blog\/2017\/11\/06\/10-new-top-resources-on-machine-learning-from-around-the-web\/","url_meta":{"origin":1682,"position":3},"title":"10 New Top Resources on Machine Learning from Around the Web","date":"November 6, 2017","format":false,"excerpt":"For this post I put new and most interesting machine learning resources that I recently found on the web. This is the list of useful resources in such areas like stock market forecasting, text mining, deep learning, neural networks and getting data from Twitter. Hope you enjoy the reading. 1.\u2026","rel":"","context":"In &quot;Machine Learning&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1783,"url":"http:\/\/intelligentonlinetools.com\/blog\/2018\/01\/19\/machine-learning-stock-prediction-lstm-keras\/","url_meta":{"origin":1682,"position":4},"title":"Machine Learning Stock Prediction with LSTM and Keras","date":"January 19, 2018","format":false,"excerpt":"In this post I will share experiments on machine learning stock prediction with LSTM and Keras with one step ahead. I tried to do first multiple steps ahead with few techniques described in the papers on the web. But I discovered that I need fully understand and test the simplest\u2026","rel":"","context":"In &quot;Machine Learning&quot;","img":{"alt_text":"Forecasting one step ahead LSTM 60","src":"https:\/\/i0.wp.com\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/01\/Forecasting-one-step-ahead-LSTM-60-3_1_2018.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":120,"url":"http:\/\/intelligentonlinetools.com\/blog\/2016\/02\/20\/input-for-stock-data-prediction-algorithms\/","url_meta":{"origin":1682,"position":5},"title":"Input for Stock Data Prediction Algorithms","date":"February 20, 2016","format":false,"excerpt":"What can be used for input to stock data prediction system? In this post we will consider some indicator that often are used for stock data forecasting. The links to information about indicators and how to calculate will be also provided. Moving averages are often used in technical analysis. A\u2026","rel":"","context":"In &quot;Stock data analysis&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/intelligentonlinetools.com\/blog\/wp-json\/wp\/v2\/posts\/1682"}],"collection":[{"href":"http:\/\/intelligentonlinetools.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/intelligentonlinetools.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/intelligentonlinetools.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/intelligentonlinetools.com\/blog\/wp-json\/wp\/v2\/comments?post=1682"}],"version-history":[{"count":24,"href":"http:\/\/intelligentonlinetools.com\/blog\/wp-json\/wp\/v2\/posts\/1682\/revisions"}],"predecessor-version":[{"id":1715,"href":"http:\/\/intelligentonlinetools.com\/blog\/wp-json\/wp\/v2\/posts\/1682\/revisions\/1715"}],"wp:attachment":[{"href":"http:\/\/intelligentonlinetools.com\/blog\/wp-json\/wp\/v2\/media?parent=1682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/intelligentonlinetools.com\/blog\/wp-json\/wp\/v2\/categories?post=1682"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/intelligentonlinetools.com\/blog\/wp-json\/wp\/v2\/tags?post=1682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}