{"id":1919,"date":"2018-02-24T22:06:55","date_gmt":"2018-02-24T22:06:55","guid":{"rendered":"http:\/\/intelligentonlinetools.com\/blog\/?p=1919"},"modified":"2018-03-08T01:29:12","modified_gmt":"2018-03-08T01:29:12","slug":"prediction-next-stock-market-correction","status":"publish","type":"post","link":"http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/24\/prediction-next-stock-market-correction\/","title":{"rendered":"Prediction on Next Stock Market Correction"},"content":{"rendered":"<p>On Feb. 6, 2018, the stock market officially entered &#8220;correction&#8221; territory. A stock market correction is defined as a drop of at least 10% or more for an index or stock from its recent high. [1]  During one week the stock data prices (closed price) were decreasing for many stocks.   Are there any signals that can be used to predict next stock market correction?  <\/p>\n<p>I pulled historical data from 20 stocks selected randomly and then created python program that counts how many stocks (closed price) were decreased, increased or did not change for each day  (comparing with previous day). The numbers then converted into percentage. So if all 20 stock closed prices decreased at some day it would be 100%. For now I was just looking at % of decreased stocks per day.  Below is the graph for decreasing stocks. Highlighted zone A is when we many decreasing stocks during the correction.   <\/p>\n<figure id=\"attachment_1953\" aria-describedby=\"caption-attachment-1953\" style=\"width: 1229px\" class=\"wp-caption alignnone\"><img data-attachment-id=\"1953\" data-permalink=\"http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/24\/prediction-next-stock-market-correction\/number-of-decreasing-stocks-per-day\/#main\" data-orig-file=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/Number-of-decreasing-stocks-per-day.png\" data-orig-size=\"1239,363\" 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=\"Number of decreasing stocks per day in %\" data-image-description=\"&lt;p&gt;Number of decreasing stocks per day in %&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Number of decreasing stocks per day in %&lt;\/p&gt;\n\" data-medium-file=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/Number-of-decreasing-stocks-per-day-300x88.png\" data-large-file=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/Number-of-decreasing-stocks-per-day-1024x300.png\" decoding=\"async\" loading=\"lazy\" src=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/Number-of-decreasing-stocks-per-day.png\" alt=\"Number of decreasing stocks per day in %\" width=\"1239\" height=\"363\" class=\"size-full wp-image-1953\" srcset=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/Number-of-decreasing-stocks-per-day.png 1239w, http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/Number-of-decreasing-stocks-per-day-300x88.png 300w, http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/Number-of-decreasing-stocks-per-day-768x225.png 768w, http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/Number-of-decreasing-stocks-per-day-1024x300.png 1024w\" sizes=\"(max-width: 1239px) 100vw, 1239px\" \/><figcaption id=\"caption-attachment-1953\" class=\"wp-caption-text\">Number of decreasing stocks per day in %<\/figcaption><\/figure>\n<h3>Observations<\/h3>\n<p>I did not find good strong signal to predict market correction but probably more analysis needed. However before this correction there was some increasing trend for number of stocks that close at lower prices. This is shown below. On this graph the trend line can be viewed as indicator of stock market direction. <\/p>\n<figure id=\"attachment_1954\" aria-describedby=\"caption-attachment-1954\" style=\"width: 576px\" class=\"wp-caption alignnone\"><img data-attachment-id=\"1954\" data-permalink=\"http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/24\/prediction-next-stock-market-correction\/number-of-decreasing-stocks-per-day-6-days-before-huge-decreasing\/#main\" data-orig-file=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/Number-of-decreasing-stocks-per-day-6-days-before-huge-decreasing.png\" data-orig-size=\"586,362\" 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=\"Number of decreasing stocks per day 6 days before huge decreasing\" data-image-description=\"&lt;p&gt;Number of decreasing -stocks per day before correction in %&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Number of decreasing stocks per day before correction in %&lt;\/p&gt;\n\" data-medium-file=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/Number-of-decreasing-stocks-per-day-6-days-before-huge-decreasing-300x185.png\" data-large-file=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/Number-of-decreasing-stocks-per-day-6-days-before-huge-decreasing.png\" decoding=\"async\" loading=\"lazy\" src=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/Number-of-decreasing-stocks-per-day-6-days-before-huge-decreasing.png\" alt=\"Number-of-decreasing-stocks-per-day-before-correction\" width=\"586\" height=\"362\" class=\"size-full wp-image-1954\" srcset=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/Number-of-decreasing-stocks-per-day-6-days-before-huge-decreasing.png 586w, http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/Number-of-decreasing-stocks-per-day-6-days-before-huge-decreasing-300x185.png 300w\" sizes=\"(max-width: 586px) 100vw, 586px\" \/><figcaption id=\"caption-attachment-1954\" class=\"wp-caption-text\">Number of decreasing stocks per day before correction in %<\/figcaption><\/figure>\n<h3>Python Source Code to download Stock Data<\/h3>\n<p>Here is the script that was used to download data:<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nfrom pandas_datareader import data as pdr \r\nimport time   \r\n\r\n# put below actual symbols as many as you need\r\nsymbols=['XXX','XXX', 'XXX', ...... 'XXX']\r\n \r\n\r\ndef get_data (symbol):\r\n    \r\n    data = pdr.get_data_google(symbol,'1970-01-01','2018-02-19')\r\n    path=&quot;C:\\\\Users\\\\stocks\\\\&quot;\r\n    data.to_csv( path + symbol+&quot;.csv&quot;)\r\n \r\n    return data\r\n\r\n\r\n    \r\nfor symbol in symbols:\r\n        get_data(symbol)    \r\n        time.sleep(7)\r\n<\/pre>\n<h3>Script for Stock Data Analysis<\/h3>\n<p>Here is the program that takes downloaded data and counts the number of decreased\/increased\/same stocks per day. The results are saved in the file and also plotted. Plots are shown after source code below.<\/p>\n<p>And <a href=\"http:\/\/intelligentonlinetools.com\/blog\/prediction-next-stock-market-correction-data-file\/\"  target=\"_blank\">here<\/a> is the link to the data output from the below program.<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n# -*- coding: utf-8 -*-\r\n\r\nimport os\r\n\r\npath=&quot;C:\\\\Users\\\\stocks\\\\&quot;\r\nfrom datetime import datetime\r\nimport pandas as pd\r\nimport numpy as np\r\n\r\ndef days_between(d1, d2):\r\n    d1 = datetime.strptime(d1, &quot;%Y-%m-%d&quot;)\r\n    d2 = datetime.strptime(d2, &quot;%Y-%m-%d&quot;)\r\n    print (d1)\r\n    print (d2)\r\n    return abs((d2 - d1).days)\r\n\r\n\r\ni=10000   # index to replace date\r\nj=20      # index for stock symbols\r\nk=5       # other attributes\r\ndata = np.zeros((i,j,k))           \r\nsymbols=[]           \r\n\r\ncount=0        \r\n\r\n# get index of previous trade day\r\n# because there is no trades on weekend or holidays\r\n# need to calculate prvious trade day index instead\r\n# of just subracting 1\r\ndef get_previous_ind(row_ind, col_count ):\r\n    \r\n    k=1\r\n    print (str(row_ind) + &quot;   &quot; + str(col_count))\r\n    while True:\r\n        if  data[row_ind-k][col_count][0] == 1:\r\n            return row_ind-k\r\n        else:\r\n            k=k+1\r\n    \r\n        if k &gt; 1000 :\r\n            print (&quot;ERROR: PREVIOUS ROW IS NOT FOUND&quot;)\r\n            return -1\r\n\r\ndates=[&quot;&quot; for i in range(10000) ]          \r\n# read the entries\r\nlistOfEntries = os.scandir(path)\r\nfor entry in  listOfEntries: \r\n        \r\n     if entry.is_file():\r\n            print(entry.name)\r\n            stock_data = pd.read_csv (str(path) + str(entry.name))\r\n            symbols.append (entry.name)\r\n\r\n                     \r\n            for index, row in stock_data.iterrows():\r\n                 ind=days_between(row['Date'], &quot;2002-01-01&quot;) \r\n                \r\n                 dates[ind] = row['Date']\r\n                 data[ind][count][0] = 1\r\n                 data[ind][count][1] = row['Close']\r\n                 \r\n                 if (index &gt; 1):\r\n                     print(entry.name)\r\n                     prev_ind=get_previous_ind(ind, count)\r\n                     delta= 1000*(row['Close'] - data[prev_ind][count][1])\r\n                     change=0\r\n                     if (delta &gt; 0) :\r\n                          change = 1\r\n                     if (delta &lt; 0) :\r\n                          change = -1\r\n                     data[ind][count][3] = change  \r\n                     data[ind][count][4] = 1   \r\n                \r\n                 \r\n            count=count+1                      \r\n\r\n    \r\nupchange=[0 for i in range(10000)]\r\ndownchange=[0 for i in range(10000)]\r\nzerochange=[0 for i in range(10000)]\r\ndatesnew = [&quot;&quot; for i in range(10000) ]\r\nicount=0\r\nfor i in range(10000):\r\n       total=0 \r\n       for j in range (count):\r\n           \r\n           if data[i][j][4] == 1 :\r\n               datesnew[icount]=dates[i]\r\n               total=total+1\r\n               if (data[i][j][3] ==0):\r\n                       zerochange[icount]=zerochange[icount]+1\r\n               if (data[i][j][3] ==1):\r\n                       upchange[icount]=upchange[icount] + 1\r\n               if (data[i][j][3] == - 1):\r\n                       downchange[icount]=downchange[icount] + 1\r\n         \r\n           \r\n       if (total != 0) :\r\n               upchange[icount]=100* upchange[icount] \/ total\r\n               downchange[icount]=100* downchange[icount] \/ total\r\n               zerochange[icount]=100* zerochange[icount] \/ total    \r\n               print (str(upchange[icount]) + &quot;  &quot; +  str(downchange[icount]) + &quot;  &quot; + str(zerochange[icount]))\r\n               icount=icount+1\r\n\r\n            \r\n\r\ndf=pd.DataFrame({'Date':datesnew, 'upchange':upchange, 'downchange':downchange, 'zerochange':zerochange })\r\nprint (df)\r\ndf.to_csv(&quot;changes.csv&quot;, encoding='utf-8', index=False)               \r\n            \r\n\r\nimport matplotlib.pyplot as plt\r\n\r\ndownchange=downchange[icount-200:icount]\r\nupchange=upchange[icount-200:icount]\r\nzerochange=zerochange[icount-200:icount]\r\n\r\n\r\n# Two subplots, the axes array is 1-d\r\nf, axarr = plt.subplots(3, sharex=True)\r\naxarr[0].plot(downchange)\r\naxarr[0].set_title('downchange')\r\naxarr[1].plot(upchange)\r\naxarr[1].set_title('upchange')\r\naxarr[2].plot(zerochange)\r\naxarr[2].set_title('zerochange')\r\nplt.show()\r\n<\/pre>\n<figure id=\"attachment_1956\" aria-describedby=\"caption-attachment-1956\" style=\"width: 385px\" class=\"wp-caption alignnone\"><img data-attachment-id=\"1956\" data-permalink=\"http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/24\/prediction-next-stock-market-correction\/output_for_number_of_stocks_increasing_decreasing_same\/#main\" data-orig-file=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/output_for_number_of_stocks_increasing_decreasing_same.png\" data-orig-size=\"395,259\" 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=\"Number of stocks increasing decreasing same in %\" data-image-description=\"&lt;p&gt;Number of stocks increasing decreasing same in %&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Number of stocks increasing decreasing same in %&lt;\/p&gt;\n\" data-medium-file=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/output_for_number_of_stocks_increasing_decreasing_same-300x197.png\" data-large-file=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/output_for_number_of_stocks_increasing_decreasing_same.png\" decoding=\"async\" loading=\"lazy\" src=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/output_for_number_of_stocks_increasing_decreasing_same.png\" alt=\"Number of stocks increasing decreasing same in %\" width=\"395\" height=\"259\" class=\"size-full wp-image-1956\" srcset=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/output_for_number_of_stocks_increasing_decreasing_same.png 395w, http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/output_for_number_of_stocks_increasing_decreasing_same-300x197.png 300w\" sizes=\"(max-width: 395px) 100vw, 395px\" \/><figcaption id=\"caption-attachment-1956\" class=\"wp-caption-text\">Number of stocks increasing decreasing same in %<\/figcaption><\/figure>\n<p><strong>References<\/strong><br \/>\n1. <a href=https:\/\/www.fool.com\/knowledge-center\/6-things-you-should-know-about-a-stock-market-corr.aspx target=\"_blank\">6 Things You Should Know About a Stock Market Correction<\/a><br \/>\n2. <a href=https:\/\/www.thestreet.com\/story\/14443578\/1\/how-to-predict-the-next-stock-market-correction-before-anyone-else.html  target=\"_blank\">How to Predict the Eventual Stock Market Correction Before Anyone Else <\/a><br \/>\n3. <a href=https:\/\/www.investopedia.com\/articles\/07\/mean_reversion_martingale.asp  target=\"_blank\">4 Ways To Predict Market Performance<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>On Feb. 6, 2018, the stock market officially entered &#8220;correction&#8221; territory. A stock market correction is defined as a drop of at least 10% or more for an index or stock from its recent high. [1] During one week the stock data prices (closed price) were decreasing for many stocks. Are there any signals that &#8230; <a title=\"Prediction on Next Stock Market Correction\" class=\"read-more\" href=\"http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/24\/prediction-next-stock-market-correction\/\">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,10,3,60],"tags":[27,61,62],"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 on Next Stock Market Correction - Machine Learning Applications<\/title>\n<meta name=\"description\" content=\"Prediction on next stock market correction using the number of decreasing stocks per day. Python script has been created for this task.\" \/>\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\/2018\/02\/24\/prediction-next-stock-market-correction\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Prediction on Next Stock Market Correction - Machine Learning Applications\" \/>\n<meta property=\"og:description\" content=\"Prediction on next stock market correction using the number of decreasing stocks per day. Python script has been created for this task.\" \/>\n<meta property=\"og:url\" content=\"http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/24\/prediction-next-stock-market-correction\/\" \/>\n<meta property=\"og:site_name\" content=\"Machine Learning Applications\" \/>\n<meta property=\"article:published_time\" content=\"2018-02-24T22:06:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-03-08T01:29:12+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/Number-of-decreasing-stocks-per-day.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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/24\/prediction-next-stock-market-correction\/\",\"url\":\"http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/24\/prediction-next-stock-market-correction\/\",\"name\":\"Prediction on Next Stock Market Correction - Machine Learning Applications\",\"isPartOf\":{\"@id\":\"http:\/\/intelligentonlinetools.com\/blog\/#website\"},\"datePublished\":\"2018-02-24T22:06:55+00:00\",\"dateModified\":\"2018-03-08T01:29:12+00:00\",\"author\":{\"@id\":\"http:\/\/intelligentonlinetools.com\/blog\/#\/schema\/person\/7a886dc5eb9758369af2f6d2cb342478\"},\"description\":\"Prediction on next stock market correction using the number of decreasing stocks per day. Python script has been created for this task.\",\"breadcrumb\":{\"@id\":\"http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/24\/prediction-next-stock-market-correction\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/24\/prediction-next-stock-market-correction\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/24\/prediction-next-stock-market-correction\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/intelligentonlinetools.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Prediction on Next Stock Market Correction\"}]},{\"@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 on Next Stock Market Correction - Machine Learning Applications","description":"Prediction on next stock market correction using the number of decreasing stocks per day. Python script has been created for this task.","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\/2018\/02\/24\/prediction-next-stock-market-correction\/","og_locale":"en_US","og_type":"article","og_title":"Prediction on Next Stock Market Correction - Machine Learning Applications","og_description":"Prediction on next stock market correction using the number of decreasing stocks per day. Python script has been created for this task.","og_url":"http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/24\/prediction-next-stock-market-correction\/","og_site_name":"Machine Learning Applications","article_published_time":"2018-02-24T22:06:55+00:00","article_modified_time":"2018-03-08T01:29:12+00:00","og_image":[{"url":"http:\/\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/02\/Number-of-decreasing-stocks-per-day.png"}],"author":"owygs156","twitter_card":"summary_large_image","twitter_misc":{"Written by":"owygs156","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/24\/prediction-next-stock-market-correction\/","url":"http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/24\/prediction-next-stock-market-correction\/","name":"Prediction on Next Stock Market Correction - Machine Learning Applications","isPartOf":{"@id":"http:\/\/intelligentonlinetools.com\/blog\/#website"},"datePublished":"2018-02-24T22:06:55+00:00","dateModified":"2018-03-08T01:29:12+00:00","author":{"@id":"http:\/\/intelligentonlinetools.com\/blog\/#\/schema\/person\/7a886dc5eb9758369af2f6d2cb342478"},"description":"Prediction on next stock market correction using the number of decreasing stocks per day. Python script has been created for this task.","breadcrumb":{"@id":"http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/24\/prediction-next-stock-market-correction\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/24\/prediction-next-stock-market-correction\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/intelligentonlinetools.com\/blog\/2018\/02\/24\/prediction-next-stock-market-correction\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/intelligentonlinetools.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Prediction on Next Stock Market Correction"}]},{"@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-uX","jetpack-related-posts":[{"id":1628,"url":"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/17\/time-series-analysis-python-prophet\/","url_meta":{"origin":1919,"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":1682,"url":"http:\/\/intelligentonlinetools.com\/blog\/2017\/12\/26\/prediction-data-stock-price-prophet-report\/","url_meta":{"origin":1919,"position":1},"title":"Prediction Data Stock Prices with Prophet","date":"December 26, 2017","format":false,"excerpt":"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\u2026","rel":"","context":"In &quot;Data Mining&quot;","img":{"alt_text":"prediction data stock prices with Prophet - accuracy vs used data range","src":"https:\/\/i0.wp.com\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2017\/12\/prediction-data-stock-prices-with-Prophet-accuracy-vs-used-data-range-1-e1514396944169.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2117,"url":"http:\/\/intelligentonlinetools.com\/blog\/2018\/06\/16\/fibonacci-stock-trading-using-fibonacci-retracement-stock-market-prediction\/","url_meta":{"origin":1919,"position":2},"title":"Fibonacci Stock Trading &#8211; Using Fibonacci Retracement for Stock Market Prediction","date":"June 16, 2018","format":false,"excerpt":"As stated on allstarcharts.com by expert with more than 10 years, Fibonacci Analysis is one of the most valuable and easy to use tools for stock market technical analysis. And Fibonacci tools can be applied to longer-term as well as to short-term. [3] In this post we will take a\u2026","rel":"","context":"In &quot;Fibonacci Numbers&quot;","img":{"alt_text":"Fibonacci numbers","src":"https:\/\/i0.wp.com\/intelligentonlinetools.com\/blog\/wp-content\/uploads\/2018\/06\/fibonacci-1601158_640.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":1919,"position":3},"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":1783,"url":"http:\/\/intelligentonlinetools.com\/blog\/2018\/01\/19\/machine-learning-stock-prediction-lstm-keras\/","url_meta":{"origin":1919,"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":1919,"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\/1919"}],"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=1919"}],"version-history":[{"count":14,"href":"http:\/\/intelligentonlinetools.com\/blog\/wp-json\/wp\/v2\/posts\/1919\/revisions"}],"predecessor-version":[{"id":1971,"href":"http:\/\/intelligentonlinetools.com\/blog\/wp-json\/wp\/v2\/posts\/1919\/revisions\/1971"}],"wp:attachment":[{"href":"http:\/\/intelligentonlinetools.com\/blog\/wp-json\/wp\/v2\/media?parent=1919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/intelligentonlinetools.com\/blog\/wp-json\/wp\/v2\/categories?post=1919"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/intelligentonlinetools.com\/blog\/wp-json\/wp\/v2\/tags?post=1919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}