{"id":5632,"date":"2015-06-28T11:48:58","date_gmt":"2015-06-28T06:18:58","guid":{"rendered":"http:\/\/ucanalytics.com\/blogs\/?p=5632"},"modified":"2017-08-01T19:13:51","modified_gmt":"2017-08-01T13:43:51","slug":"step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example","status":"publish","type":"post","link":"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/","title":{"rendered":"Step-by-Step Graphic Guide to Forecasting through ARIMA Modeling using R &#8211; Manufacturing Case Study Example (Part 4)"},"content":{"rendered":"<hr \/>\n<p>This article is a continuation of our manufacturing case study example to\u00a0forecast tractor sales through time series and ARIMA models. You can\u00a0find the previous parts at the following links:<\/p>\n<div><strong><a href=\"http:\/\/ucanalytics.com\/blogs\/forecasting-time-series-analysis-manufacturing-case-study-example-part-1\/\" target=\"_blank\" rel=\"noopener\">Part 1<\/a><\/strong>\u00a0: Introduction to time series modeling &amp; forecasting<\/div>\n<div><strong><a href=\"http:\/\/ucanalytics.com\/blogs\/time-series-decomposition-manufacturing-case-study-example-part-2\/\" target=\"_blank\" rel=\"noopener\">Part 2<\/a><\/strong>: Time series decomposition to decipher patterns and trends before forecasting<\/div>\n<p><strong><a href=\"http:\/\/ucanalytics.com\/blogs\/arima-models-manufacturing-case-study-example-part-3\/\" target=\"_blank\" rel=\"noopener\">Part 3<\/a><\/strong>: Introduction to ARIMA models for forecasting<\/p>\n<p>In this part, we will use plots and\u00a0graphs to forecast tractor sales for PowerHorse tractors through ARIMA. We will use ARIMA modeling concepts learned in the previous article for our case study example. But before we start our analysis,\u00a0let&#8217;s\u00a0have a quick discussion on forecasting:<\/p>\n<h2><span style=\"color: #3366ff;\">Trouble\u00a0with Nostradamus<\/span><\/h2>\n<div id=\"attachment_5631\" style=\"width: 323px\" class=\"wp-caption alignright\"><img aria-describedby=\"caption-attachment-5631\" data-attachment-id=\"5631\" data-permalink=\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/photo-1-5\/\" data-orig-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/photo-1.jpg?fit=412%2C336&amp;ssl=1\" data-orig-size=\"412,336\" 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=\"photo (1)\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/photo-1.jpg?fit=300%2C245&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/photo-1.jpg?fit=412%2C336&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-5631\" src=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/photo-1.jpg?resize=313%2C255\" alt=\"photo (1)\" width=\"313\" height=\"255\" srcset=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/photo-1.jpg?w=412&amp;ssl=1 412w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/photo-1.jpg?resize=250%2C204&amp;ssl=1 250w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/photo-1.jpg?resize=300%2C245&amp;ssl=1 300w\" sizes=\"(max-width: 313px) 100vw, 313px\" data-recalc-dims=\"1\" \/><p id=\"caption-attachment-5631\" class=\"wp-caption-text\">Human Obsession with\u00a0Future &amp; ARIMA &#8211; by Roopam<\/p><\/div>\n<p style=\"text-align: left;\">Humans are obsessed about their future &#8211; so much so that they worry more about their future than enjoying the present. This is precisely the reason why\u00a0horoscopists, soothsayers, and fortune tellers are always in high-demand. \u00a0Michel de Nostredame (a.k.a\u00a0Nostradamus)<strong>\u00a0<\/strong>was a French soothsayer who lived in the 16th century. In his book\u00a0<i>Les Propheties<\/i>\u00a0(The Prophecies)\u00a0he made predictions about important events to follow till the end of time.\u00a0Nostradamus&#8217; followers believe that\u00a0his predictions are irrevocably accurate about major events including the World Wars and the end of the world. For instance in one of the prophecies\u00a0in his book, which later became one of his\u00a0most debated and popular prophesies, he wrote the following<\/p>\n<blockquote><p><em>\u201cBeasts ferocious with hunger will cross the rivers<\/em><br \/>\n<em>The greater part of the battlefield will be against <strong>Hister<\/strong>.<\/em><br \/>\n<em>Into a cage of iron will the great one be drawn,<\/em><br \/>\n<em>When the child of Germany observes nothing.\u201d<\/em><\/p><\/blockquote>\n<p>His followers claim that <em>Hister<\/em> is an allusion to\u00a0<em>Adolf Hitler<\/em> where Nostradamus misspelled Hitler&#8217;s name. One of the conspicuous thing about Nostradamus&#8217; prophecies is that he never tagged these events to any date or time period. Detractors of Nostradamus believe that his book is full of cryptic pros (like the one above) and his followers try to force fit events to his writing. To dissuade detractors, one of his avid followers (based on his writing) predicted the month and the year\u00a0for the end of the world as\u00a0July 1999 &#8211; quite dramatic, isn&#8217;t it? Ok so of course nothing earth-shattering happened in that month of 1999 otherwise you would not be reading this article. However, Nostradamus will continue to be a topic of discussion because of the eternal human obsession to predict the future.<\/p>\n<p>Time series modelling and ARIMA forecasting are\u00a0scientific ways to predict the future. However, you must keep in mind that these scientific techniques are also not immune to force fitting and human biases. On this note let us return to our manufacturing case study example.<\/p>\n<h2><span style=\"color: #3366ff;\">ARIMA Model &#8211; Manufacturing Case Study Example<\/span><\/h2>\n<p>Back to our manufacturing case study example where\u00a0you are helping PowerHorse Tractors with sales forecasting for them to manage\u00a0their inventories and suppliers. The following sections in this article represent your analysis in the form of\u00a0a graphic guide.<\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"background-color: #b3d4e8;\">You could find the data shared by PowerHorse&#8217;s MIS team at the following link\u00a0<a href=\"http:\/\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/Tractor-Sales.csv\">Tractor Sales<\/a>. You may want to analyze this data to revalidate the analysis you will carry-out in the following sections.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Now you are ready to start with your analysis to forecast tractors sales for the\u00a0next 3 years.<\/p>\n<h5><span style=\"color: #ff6600;\">Step 1: Plot tractor sales data as time series<\/span><\/h5>\n<p>To begin with you have prepared a time series plot for the data. The following is the R code you have used to read the data in R and plot a time series chart.<\/p>\n<pre class=\"brush: r; title: ; notranslate\" title=\"\">\r\ndata = read.csv('http:\/\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/Tractor-Sales.csv')\r\ndata = ts(data[,2],start = c(2003,1),frequency = 12)\r\nplot(data, xlab='Years', ylab = 'Tractor Sales')<\/pre>\n<p>Clearly the above chart has an upward trend for tractors sales and there is also a seasonal component that we have already analyzed an earlier article on <a href=\"http:\/\/ucanalytics.com\/blogs\/time-series-decomposition-manufacturing-case-study-example-part-2\/\">time series decomposition<\/a>.<a href=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/1.-Tractor-Sales.jpeg\"><img data-attachment-id=\"5644\" data-permalink=\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/1-tractor-sales\/\" data-orig-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/1.-Tractor-Sales.jpeg?fit=640%2C322&amp;ssl=1\" data-orig-size=\"640,322\" 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=\"1. Tractor Sales\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/1.-Tractor-Sales.jpeg?fit=300%2C151&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/1.-Tractor-Sales.jpeg?fit=640%2C322&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-5644\" src=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/1.-Tractor-Sales.jpeg?resize=640%2C322\" alt=\"1. Tractor Sales\" width=\"640\" height=\"322\" srcset=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/1.-Tractor-Sales.jpeg?w=640&amp;ssl=1 640w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/1.-Tractor-Sales.jpeg?resize=250%2C126&amp;ssl=1 250w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/1.-Tractor-Sales.jpeg?resize=300%2C151&amp;ssl=1 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<h5><span style=\"color: #ff6600;\">Step 2:\u00a0Difference data to make data stationary on mean (remove trend)<\/span><\/h5>\n<p>The next thing to do is to make the series stationary as learned in <a href=\"http:\/\/ucanalytics.com\/blogs\/arima-models-manufacturing-case-study-example-part-3\/\">the previous article<\/a>. This to remove the upward trend through 1st order differencing the series using the following formula:<\/p>\n<table style=\"height: 5px; border-color: #c7c5c5; background-color: #f5f5f5;\" border=\"0.2\" width=\"720\">\n<tbody>\n<tr>\n<td><span style=\"font-size: 10pt;\">1st Differencing (d=1)<\/span><\/td>\n<td>\u00a0<img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=Y_%7Bt%7D%5E%7B%27%7D%3DY_t+-Y_%7Bt-1%7D+&#038;bg=ffffff&#038;fg=000&#038;s=1&#038;c=20201002\" alt=\"Y_{t}^{&#039;}=Y_t -Y_{t-1} \" class=\"latex\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The R code and output for plotting the differenced series are displayed below:<\/p>\n<pre class=\"brush: r; first-line: 4; title: ; notranslate\" title=\"\">\r\nplot(diff(data),ylab='Differenced Tractor Sales')<\/pre>\n<p>Okay so the above series is not stationary on variance i.e. variation in the plot is increasing as we move towards the right of the chart. We need to make the series stationary on variance to produce reliable forecasts through ARIMA models.<a href=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/2-Differenced-Series.jpeg\"><img data-attachment-id=\"5645\" data-permalink=\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/2-differenced-series\/\" data-orig-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/2-Differenced-Series.jpeg?fit=640%2C320&amp;ssl=1\" data-orig-size=\"640,320\" 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=\"2 Differenced Series\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/2-Differenced-Series.jpeg?fit=300%2C150&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/2-Differenced-Series.jpeg?fit=640%2C320&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-5645\" src=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/2-Differenced-Series.jpeg?resize=640%2C320\" alt=\"2 Differenced Series\" width=\"640\" height=\"320\" srcset=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/2-Differenced-Series.jpeg?w=640&amp;ssl=1 640w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/2-Differenced-Series.jpeg?resize=250%2C125&amp;ssl=1 250w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/2-Differenced-Series.jpeg?resize=300%2C150&amp;ssl=1 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<h5><span style=\"color: #ff6600;\">Step 3: log transform data\u00a0to make data stationary on variance<\/span><\/h5>\n<p>One of the best ways to make a series stationary on variance is through transforming the original series through log transform. We will go back to our original tractor sales series and log transform it to make it stationary on variance. The following equation represents the process of log transformation mathematically:<\/p>\n<table style=\"height: 14px; border-color: #c7c5c5; background-color: #f5f5f5;\" border=\"0.2\" width=\"722\">\n<tbody>\n<tr>\n<td><span style=\"font-size: 13.3333330154419px; line-height: 22.2222232818604px;\">Log of sales<\/span><\/td>\n<td>\u00a0<img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=Y_%7Bt%7D%5E%7Bnew%7D%3Dlog_%7B10%7D%28Y_t%29+&#038;bg=ffffff&#038;fg=000&#038;s=1&#038;c=20201002\" alt=\"Y_{t}^{new}=log_{10}(Y_t) \" class=\"latex\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The following is the R code for the same with the output plot. Notice, this series is not stationary on mean since we are using the original data without differencing.<\/p>\n<pre class=\"brush: r; first-line: 5; title: ; notranslate\" title=\"\">\r\nplot(log10(data),ylab='Log (Tractor Sales)')<\/pre>\n<p>Now the series looks stationary on variance.<a href=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/2.5-Log-Tractor-Sales.jpeg\"><img data-attachment-id=\"5646\" data-permalink=\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/2-5-log-tractor-sales\/\" data-orig-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/2.5-Log-Tractor-Sales.jpeg?fit=678%2C335&amp;ssl=1\" data-orig-size=\"678,335\" 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=\"2.5 Log (Tractor Sales)\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/2.5-Log-Tractor-Sales.jpeg?fit=300%2C148&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/2.5-Log-Tractor-Sales.jpeg?fit=640%2C316&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-5646\" src=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/2.5-Log-Tractor-Sales.jpeg?resize=640%2C316\" alt=\"2.5 Log (Tractor Sales)\" width=\"640\" height=\"316\" srcset=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/2.5-Log-Tractor-Sales.jpeg?w=678&amp;ssl=1 678w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/2.5-Log-Tractor-Sales.jpeg?resize=250%2C124&amp;ssl=1 250w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/2.5-Log-Tractor-Sales.jpeg?resize=300%2C148&amp;ssl=1 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<h5><span style=\"color: #ff6600;\">Step 4:\u00a0<\/span><span style=\"color: #ff6600;\">Difference\u00a0<\/span><span style=\"color: #ff6600;\">log transform data\u00a0to make data stationary on both mean and variance<\/span><\/h5>\n<p>Let us look at the differenced plot for log transformed series to reconfirm if the series is actually stationary on both mean and variance.<\/p>\n<table style=\"height: 25px; border-color: #c7c5c5; background-color: #f5f5f5;\" border=\"0.2\" width=\"722\">\n<tbody>\n<tr>\n<td><span style=\"font-size: 10pt;\">1st Differencing\u00a0(d=1) of log of sales<\/span><\/td>\n<td>\u00a0<img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=Y_%7Bt%7D%5E%7Bnew%27%7D%3Dlog_%7B10%7D%28Y_t%29+-log_%7B10%7D%28Y_%7Bt-1%7D%29+&#038;bg=ffffff&#038;fg=000&#038;s=1&#038;c=20201002\" alt=\"Y_{t}^{new&#039;}=log_{10}(Y_t) -log_{10}(Y_{t-1}) \" class=\"latex\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The following is the R code to plot the\u00a0above mathematical equation.<\/p>\n<pre class=\"brush: r; first-line: 6; title: ; notranslate\" title=\"\">\r\nplot(diff(log10(data)),ylab='Differenced Log (Tractor Sales)')<\/pre>\n<p>Yes, now this series looks stationary on both mean and variance. This also gives us the clue that I or integrated part of our ARIMA model will be equal to 1 as 1st difference is making the series stationary.<a href=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/3-Diff-Log-Series.jpeg\"><img data-attachment-id=\"5647\" data-permalink=\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/3-diff-log-series\/\" data-orig-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/3-Diff-Log-Series.jpeg?fit=640%2C321&amp;ssl=1\" data-orig-size=\"640,321\" 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=\"3 Diff Log Series\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/3-Diff-Log-Series.jpeg?fit=300%2C150&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/3-Diff-Log-Series.jpeg?fit=640%2C321&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-5647\" src=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/3-Diff-Log-Series.jpeg?resize=640%2C321\" alt=\"3 Diff Log Series\" width=\"640\" height=\"321\" srcset=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/3-Diff-Log-Series.jpeg?w=640&amp;ssl=1 640w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/3-Diff-Log-Series.jpeg?resize=250%2C125&amp;ssl=1 250w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/3-Diff-Log-Series.jpeg?resize=300%2C150&amp;ssl=1 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<h5><span style=\"color: #ff6600;\">Step 5:\u00a0<\/span><span style=\"color: #ff6600;\">Plot ACF and PACF to identify potential AR and MA model<\/span><\/h5>\n<p>Now, let us create autocorrelation factor (ACF) and partial autocorrelation factor (PACF) plots to identify patterns in the above data which is stationary on both mean and variance. The idea is to identify presence of AR and MA components in the residuals. The following is the R code to produce ACF and PACF plots.<\/p>\n<pre class=\"brush: r; first-line: 7; title: ; notranslate\" title=\"\">\r\npar(mfrow = c(1,2))\r\nacf(ts(diff(log10(data))),main='ACF Tractor Sales')\r\npacf(ts(diff(log10(data))),main='PACF Tractor Sales')<\/pre>\n<p><a href=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/5.-ACF-PACF-diff-logts.jpeg\"><img data-attachment-id=\"5648\" data-permalink=\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/5-acf-pacf-diff-logts\/\" data-orig-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/5.-ACF-PACF-diff-logts.jpeg?fit=640%2C376&amp;ssl=1\" data-orig-size=\"640,376\" 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=\"5. ACF PACF diff log(ts)\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/5.-ACF-PACF-diff-logts.jpeg?fit=300%2C176&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/5.-ACF-PACF-diff-logts.jpeg?fit=640%2C376&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-5648\" src=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/5.-ACF-PACF-diff-logts.jpeg?resize=640%2C376\" alt=\"5. ACF PACF diff log(ts)\" width=\"640\" height=\"376\" srcset=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/5.-ACF-PACF-diff-logts.jpeg?w=640&amp;ssl=1 640w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/5.-ACF-PACF-diff-logts.jpeg?resize=250%2C147&amp;ssl=1 250w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/5.-ACF-PACF-diff-logts.jpeg?resize=300%2C176&amp;ssl=1 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>Since, there are enough spikes in the plots outside the insignificant zone (dotted horizontal lines) we can conclude that the residuals are not random. This implies that\u00a0there is juice or information available in residuals to be extracted by AR and MA models. Also, there is a seasonal component available in the residuals at the lag 12 (represented by spikes at lag 12). This makes sense since we are analyzing monthly data that tends to have seasonality of 12 months because of patterns in tractor sales.<\/p>\n<h5><strong><span style=\"color: #ff6600;\">Step 6:\u00a0<\/span><span style=\"color: #ff6600;\">Identification of best fit ARIMA model<\/span><\/strong><\/h5>\n<p>Auto arima function in forecast package in R helps us identify the best fit ARIMA model on the fly. The following is the code for the same. Please install the required &#8216;forecast&#8217; package in R before executing this code.<\/p>\n<pre class=\"brush: r; first-line: 10; title: ; notranslate\" title=\"\">\r\nrequire(forecast)\r\nARIMAfit = auto.arima(log10(data), approximation=FALSE,trace=FALSE)\r\nsummary(ARIMAfit)<\/pre>\n<table style=\"height: 212px;\" border=\"1\" width=\"604\">\n<tbody>\n<tr>\n<td width=\"128\"><span style=\"font-size: 12pt;\"><strong><span style=\"font-family: 'courier new', courier, monospace;\">Time series:<\/span><\/strong><\/span><\/td>\n<td colspan=\"2\" width=\"156\"><span style=\"font-family: 'courier new', courier, monospace; font-size: 12pt;\">log<sub>10<\/sub>(Tractor Sales)<\/span><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\"><span style=\"font-family: 'courier new', courier, monospace; font-size: 12pt;\">Best fit Model:<strong> ARIMA(0,1,1)(0,1,1)[12]<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #b3d4e8;\"><span style=\"font-size: 12pt;\"><strong><span style=\"font-family: 'courier new', courier, monospace;\">\u00a0<\/span><\/strong><\/span><\/td>\n<td style=\"background-color: #b3d4e8;\"><span style=\"font-size: 12pt;\"><strong><span style=\"font-family: 'courier new', courier, monospace;\">ma1<\/span><\/strong><\/span><\/td>\n<td style=\"background-color: #b3d4e8;\"><span style=\"font-size: 12pt;\"><strong><span style=\"font-family: 'courier new', courier, monospace;\">sma1<\/span><\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #b3d4e8;\"><span style=\"font-size: 12pt;\"><strong><span style=\"font-family: 'courier new', courier, monospace;\">Coefficients:<\/span><\/strong><\/span><\/td>\n<td><span style=\"font-family: 'courier new', courier, monospace; font-size: 12pt;\">-0.4047<\/span><\/td>\n<td><span style=\"font-family: 'courier new', courier, monospace; font-size: 12pt;\">-0.5529<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #b3d4e8;\"><span style=\"font-size: 12pt;\"><strong><span style=\"font-family: 'courier new', courier, monospace;\">s.e.<\/span><\/strong><\/span><\/td>\n<td><span style=\"font-family: 'courier new', courier, monospace; font-size: 12pt;\">0.0885<\/span><\/td>\n<td><span style=\"font-family: 'courier new', courier, monospace; font-size: 12pt;\">0.0734<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #fadec3;\" colspan=\"3\"><span style=\"font-family: 'courier new', courier, monospace; font-size: 12pt;\">log likelihood=354.4<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #fadec3;\"><span style=\"font-family: 'courier new', courier, monospace; font-size: 12pt;\">AIC=-702.79<\/span><\/td>\n<td style=\"background-color: #fadec3;\"><span style=\"font-family: 'courier new', courier, monospace; font-size: 12pt;\">AICc=-702.6<\/span><\/td>\n<td style=\"background-color: #fadec3;\"><span style=\"font-family: 'courier new', courier, monospace; font-size: 12pt;\">BIC=-694.17<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The best fit model is selected based on Akaike Information Criterion (AIC) , and Bayesian Information Criterion (BIC) values. The idea is to choose a model with minimum AIC and BIC values. We will explore more about AIC and BIC in the next article. The values of AIC and BIC for our best fit model developed in R are displayed at the bottom of the following results:<\/p>\n<p>As expected,\u00a0our model has I (or integrated) component equal to 1. This represents\u00a0differencing of order 1. There is additional differencing of lag 12 in the above\u00a0best fit model. Moreover,\u00a0the best fit model has MA value of order 1. Also, there is seasonal MA with lag 12 of order 1.<\/p>\n<h5><span style=\"color: #ff6600;\">Step 6:\u00a0Forecast sales using the best fit<\/span><span style=\"color: #ff6600;\">\u00a0ARIMA model<\/span><\/h5>\n<p>The next step is to predict tractor sales for next 3 years i.e. for 2015, 2016, and 2017 through the above model. The following R code does this job for us.<\/p>\n<pre class=\"brush: r; first-line: 13; title: ; notranslate\" title=\"\">\r\npar(mfrow = c(1,1))\r\npred = predict(ARIMAfit, n.ahead = 36)\r\npred\r\nplot(data,type='l',xlim=c(2004,2018),ylim=c(1,1600),xlab = 'Year',ylab = 'Tractor Sales')\r\nlines(10^(pred$pred),col='blue')\r\nlines(10^(pred$pred+2*pred$se),col='orange')\r\nlines(10^(pred$pred-2*pred$se),col='orange')<\/pre>\n<p>The following is the output with forecasted values of tractor sales in\u00a0blue. Also, the range of expected error (i.e. 2 times standard deviation) is displayed with orange lines on either side of predicted blue line.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/7-ACF-PACF-residual.jpeg\"><img data-attachment-id=\"5649\" data-permalink=\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/6-forecast\/\" data-orig-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/6-Forecast.jpeg?fit=640%2C324&amp;ssl=1\" data-orig-size=\"640,324\" 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=\"6 Forecast\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/6-Forecast.jpeg?fit=300%2C152&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/6-Forecast.jpeg?fit=640%2C324&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-5649\" src=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/6-Forecast.jpeg?resize=640%2C324\" alt=\"6 Forecast\" width=\"640\" height=\"324\" srcset=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/6-Forecast.jpeg?w=640&amp;ssl=1 640w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/6-Forecast.jpeg?resize=250%2C127&amp;ssl=1 250w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/6-Forecast.jpeg?resize=300%2C152&amp;ssl=1 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>Now, forecasts\u00a0for a long period of 3 years is an ambitious task. The major assumption here is that the underlining patterns in the time series will continue to stay the same as predicted in the model. A short-term forecasting model, say a couple of business quarters or a year, is usually a good idea to\u00a0forecast with reasonable accuracy. A long-term model like the one above needs to evaluated on a regular interval of time (say 6 months). The idea is to incorporate the new information available with the passage of time in the model.<\/p>\n<h5><span style=\"color: #ff6600;\">Step 7: Plot ACF and PACF for residuals of ARIMA model to ensure no more information is left for extraction<\/span><\/h5>\n<p>Finally, let&#8217;s create an ACF and PACF plot of the residuals of our best fit ARIMA model i.e.\u00a0ARIMA(0,1,1)(0,1,1)[12]. The following is the R code for the same.<\/p>\n<pre class=\"brush: r; first-line: 20; title: ; notranslate\" title=\"\">\r\npar(mfrow=c(1,2))\r\nacf(ts(ARIMAfit$residuals),main='ACF Residual')\r\npacf(ts(ARIMAfit$residuals),main='PACF Residual')<\/pre>\n<p><a href=\"http:\/\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/7-ACF-PACF-residual.jpeg\"><br \/>\n<img data-attachment-id=\"5650\" data-permalink=\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/7-acf-pacf-residual\/\" data-orig-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/7-ACF-PACF-residual.jpeg?fit=640%2C368&amp;ssl=1\" data-orig-size=\"640,368\" 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=\"7 ACF PACF residual\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/7-ACF-PACF-residual.jpeg?fit=300%2C173&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/7-ACF-PACF-residual.jpeg?fit=640%2C368&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-5650\" src=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/7-ACF-PACF-residual.jpeg?resize=640%2C368\" alt=\"7 ACF PACF residual\" width=\"640\" height=\"368\" srcset=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/7-ACF-PACF-residual.jpeg?w=640&amp;ssl=1 640w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/7-ACF-PACF-residual.jpeg?resize=250%2C144&amp;ssl=1 250w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/7-ACF-PACF-residual.jpeg?resize=300%2C173&amp;ssl=1 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>Since\u00a0there are no spikes outside\u00a0the insignificant zone for both ACF and PACF plots we can conclude that residuals are random with no information or juice in them. Hence our ARIMA model is working fine.<\/p>\n<p>However, I must warn you before concluding this article that randomness is a funny thing and can be extremely confusing. We will discover this aspect about randomness and patterns in the epilogue of this forecasting case study example.<\/p>\n<h4><span style=\"color: #3366ff;\">Sign-off Note<\/span><\/h4>\n<p>I must say Nostradamus was extremely clever since he had not tagged his prophecies to any time period. So he left the world\u00a0with a book containing some cryptic sets of words to be analysed by the human imagination. This is where randomness becomes interesting. A prophesy written in \u00a0cryptic words without a defined time-period is almost 100% likely\u00a0to come true since humans are the perfect machine to make patterns out of randomness.<\/p>\n<p>Let me put my own prophesy for a major event in the future. If someone will track this for the next 1000 years I am sure this will make me go in the books next to Nostradamus.<\/p>\n<blockquote>\n<div><em>A boy of strength will rise from the home of the poor<\/em><\/div>\n<div><em>Will rule the world and have both strong friends and enemies<\/em><\/div>\n<div><em>His presence will divide the world into half<\/em><\/div>\n<div><em>The man of God will be the key figure in resolution of this conflict<\/em><\/div>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>This article is a continuation of our manufacturing case study example to\u00a0forecast tractor sales through time series and ARIMA models. You can\u00a0find the previous parts at the following links: Part 1\u00a0: Introduction to time series modeling &amp; forecasting Part 2: Time series decomposition to decipher patterns and trends before forecasting Part 3: Introduction to ARIMA<\/p>\n<p><a class=\"excerpt-more blog-excerpt\" href=\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":5631,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[74],"tags":[],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Step-by-Step Graphic Guide to Forecasting through ARIMA<\/title>\n<meta name=\"description\" content=\"This case study example presents a step by step graphic guide to forecast using ARIMA models. The case study example is to forecast tractor sales.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Step-by-Step Graphic Guide to Forecasting through ARIMA\" \/>\n<meta property=\"og:description\" content=\"This case study example presents a step by step graphic guide to forecast using ARIMA models. The case study example is to forecast tractor sales.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/\" \/>\n<meta property=\"og:site_name\" content=\"YOU CANalytics |\" \/>\n<meta property=\"article:author\" content=\"roopam\" \/>\n<meta property=\"article:published_time\" content=\"2015-06-28T06:18:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-08-01T13:43:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/photo-1.jpg?fit=412%2C336&#038;ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"412\" \/>\n\t<meta property=\"og:image:height\" content=\"336\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Roopam Upadhyay\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#organization\",\"name\":\"YOU CANalytics\",\"url\":\"https:\/\/ucanalytics.com\/blogs\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/11\/YOU-CANalytics-Logo.jpg?fit=607%2C120\",\"contentUrl\":\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/11\/YOU-CANalytics-Logo.jpg?fit=607%2C120\",\"width\":607,\"height\":120,\"caption\":\"YOU CANalytics\"},\"image\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#website\",\"url\":\"https:\/\/ucanalytics.com\/blogs\/\",\"name\":\"YOU CANalytics |\",\"description\":\"Explore the Power of Data Science\",\"publisher\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ucanalytics.com\/blogs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/photo-1.jpg?fit=412%2C336&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/photo-1.jpg?fit=412%2C336&ssl=1\",\"width\":412,\"height\":336},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#webpage\",\"url\":\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/\",\"name\":\"Step-by-Step Graphic Guide to Forecasting through ARIMA\",\"isPartOf\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#primaryimage\"},\"datePublished\":\"2015-06-28T06:18:58+00:00\",\"dateModified\":\"2017-08-01T13:43:51+00:00\",\"description\":\"This case study example presents a step by step graphic guide to forecast using ARIMA models. The case study example is to forecast tractor sales.\",\"breadcrumb\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ucanalytics.com\/blogs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Step-by-Step Graphic Guide to Forecasting through ARIMA Modeling using R &#8211; Manufacturing Case Study Example (Part 4)\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#webpage\"},\"author\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#\/schema\/person\/55961a1cea272ecdf290cb387be069b6\"},\"headline\":\"Step-by-Step Graphic Guide to Forecasting through ARIMA Modeling using R &#8211; Manufacturing Case Study Example (Part 4)\",\"datePublished\":\"2015-06-28T06:18:58+00:00\",\"dateModified\":\"2017-08-01T13:43:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#webpage\"},\"wordCount\":1931,\"commentCount\":186,\"publisher\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#organization\"},\"image\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/photo-1.jpg?fit=412%2C336&ssl=1\",\"articleSection\":[\"Manufacturing Case Study Example\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#\/schema\/person\/55961a1cea272ecdf290cb387be069b6\",\"name\":\"Roopam Upadhyay\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dd1aa0b0e813f7639800bcfad6a554f1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/dd1aa0b0e813f7639800bcfad6a554f1?s=96&d=mm&r=g\",\"caption\":\"Roopam Upadhyay\"},\"description\":\"This blog contains my personal views and thoughts on predictive Analytics and big data. - Roopam Upadhyay\",\"sameAs\":[\"roopam\"],\"url\":\"https:\/\/ucanalytics.com\/blogs\/author\/roopam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Step-by-Step Graphic Guide to Forecasting through ARIMA","description":"This case study example presents a step by step graphic guide to forecast using ARIMA models. The case study example is to forecast tractor sales.","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:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/","og_locale":"en_US","og_type":"article","og_title":"Step-by-Step Graphic Guide to Forecasting through ARIMA","og_description":"This case study example presents a step by step graphic guide to forecast using ARIMA models. The case study example is to forecast tractor sales.","og_url":"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/","og_site_name":"YOU CANalytics |","article_author":"roopam","article_published_time":"2015-06-28T06:18:58+00:00","article_modified_time":"2017-08-01T13:43:51+00:00","og_image":[{"width":412,"height":336,"url":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/photo-1.jpg?fit=412%2C336&ssl=1","type":"image\/jpeg"}],"twitter_misc":{"Written by":"Roopam Upadhyay","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/ucanalytics.com\/blogs\/#organization","name":"YOU CANalytics","url":"https:\/\/ucanalytics.com\/blogs\/","sameAs":[],"logo":{"@type":"ImageObject","@id":"https:\/\/ucanalytics.com\/blogs\/#logo","inLanguage":"en-US","url":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/11\/YOU-CANalytics-Logo.jpg?fit=607%2C120","contentUrl":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/11\/YOU-CANalytics-Logo.jpg?fit=607%2C120","width":607,"height":120,"caption":"YOU CANalytics"},"image":{"@id":"https:\/\/ucanalytics.com\/blogs\/#logo"}},{"@type":"WebSite","@id":"https:\/\/ucanalytics.com\/blogs\/#website","url":"https:\/\/ucanalytics.com\/blogs\/","name":"YOU CANalytics |","description":"Explore the Power of Data Science","publisher":{"@id":"https:\/\/ucanalytics.com\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ucanalytics.com\/blogs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#primaryimage","inLanguage":"en-US","url":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/photo-1.jpg?fit=412%2C336&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/photo-1.jpg?fit=412%2C336&ssl=1","width":412,"height":336},{"@type":"WebPage","@id":"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#webpage","url":"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/","name":"Step-by-Step Graphic Guide to Forecasting through ARIMA","isPartOf":{"@id":"https:\/\/ucanalytics.com\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#primaryimage"},"datePublished":"2015-06-28T06:18:58+00:00","dateModified":"2017-08-01T13:43:51+00:00","description":"This case study example presents a step by step graphic guide to forecast using ARIMA models. The case study example is to forecast tractor sales.","breadcrumb":{"@id":"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ucanalytics.com\/blogs\/"},{"@type":"ListItem","position":2,"name":"Step-by-Step Graphic Guide to Forecasting through ARIMA Modeling using R &#8211; Manufacturing Case Study Example (Part 4)"}]},{"@type":"Article","@id":"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#article","isPartOf":{"@id":"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#webpage"},"author":{"@id":"https:\/\/ucanalytics.com\/blogs\/#\/schema\/person\/55961a1cea272ecdf290cb387be069b6"},"headline":"Step-by-Step Graphic Guide to Forecasting through ARIMA Modeling using R &#8211; Manufacturing Case Study Example (Part 4)","datePublished":"2015-06-28T06:18:58+00:00","dateModified":"2017-08-01T13:43:51+00:00","mainEntityOfPage":{"@id":"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#webpage"},"wordCount":1931,"commentCount":186,"publisher":{"@id":"https:\/\/ucanalytics.com\/blogs\/#organization"},"image":{"@id":"https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/photo-1.jpg?fit=412%2C336&ssl=1","articleSection":["Manufacturing Case Study Example"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ucanalytics.com\/blogs\/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example\/#respond"]}]},{"@type":"Person","@id":"https:\/\/ucanalytics.com\/blogs\/#\/schema\/person\/55961a1cea272ecdf290cb387be069b6","name":"Roopam Upadhyay","image":{"@type":"ImageObject","@id":"https:\/\/ucanalytics.com\/blogs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/dd1aa0b0e813f7639800bcfad6a554f1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dd1aa0b0e813f7639800bcfad6a554f1?s=96&d=mm&r=g","caption":"Roopam Upadhyay"},"description":"This blog contains my personal views and thoughts on predictive Analytics and big data. - Roopam Upadhyay","sameAs":["roopam"],"url":"https:\/\/ucanalytics.com\/blogs\/author\/roopam\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/photo-1.jpg?fit=412%2C336&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3L0jT-1sQ","jetpack-related-posts":[{"id":5782,"url":"https:\/\/ucanalytics.com\/blogs\/how-effective-is-my-marketing-budget-regression-with-arima-errors-arimax-case-study-example-part-5\/","url_meta":{"origin":5632,"position":0},"title":"How Effective is My Marketing Budget? &#8211; Regression with ARIMA Errors, Case Study Example (Part 5)","author":"Roopam Upadhyay","date":false,"format":false,"excerpt":"So far we have covered the following topics in this case study example\u00a0on time series forecasting and ARIMA models: Part 1\u00a0: Introduction to time series modeling & forecasting Part 2: Time series decomposition to decipher patterns and trends before forecasting Part 3: Introduction to ARIMA models for forecasting Part 4:\u2026","rel":"","context":"In &quot;Manufacturing Case Study Example&quot;","block_context":{"text":"Manufacturing Case Study Example","link":"https:\/\/ucanalytics.com\/blogs\/category\/manufacturing-case-study-example\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/07\/rope-walk.jpg?fit=480%2C640&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":5374,"url":"https:\/\/ucanalytics.com\/blogs\/arima-models-manufacturing-case-study-example-part-3\/","url_meta":{"origin":5632,"position":1},"title":"ARIMA Models &#8211; Manufacturing Case Study Example (Part 3)","author":"Roopam Upadhyay","date":false,"format":false,"excerpt":"For the last couple of articles, we are working on a manufacturing case study to forecast tractor sales for a company called PowerHorse. You can\u00a0find the previous articles on the links Part 1 and Part 2.\u00a0In this part, we will start with ARIMA modeling for forecasting. ARIMA is an abbreviation\u2026","rel":"","context":"In &quot;Manufacturing Case Study Example&quot;","block_context":{"text":"Manufacturing Case Study Example","link":"https:\/\/ucanalytics.com\/blogs\/category\/manufacturing-case-study-example\/"},"img":{"alt_text":"White Nosie","src":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/White-Nosie.jpeg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/White-Nosie.jpeg?resize=350%2C200 1x, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/06\/White-Nosie.jpeg?resize=525%2C300 1.5x"},"classes":[]},{"id":10437,"url":"https:\/\/ucanalytics.com\/blogs\/python-code-time-series-forecasting-arima-models-manufacturing-case-study-example\/","url_meta":{"origin":5632,"position":2},"title":"Python Code for Time Series Forecasting &#038; ARIMA Models &#8211; Manufacturing Case Study Example","author":"Roopam Upadhyay","date":false,"format":false,"excerpt":"Business forecasting case study example\u00a0is one of the popular case\u00a0studies on YOU CANalytics. Originally, the time series analysis and forecasting for the case study were demonstrated\u00a0on R in a series of articles. One of the readers, Anindya Saha, has replicated this entire analysis in Python. You could read this python\u2026","rel":"","context":"In &quot;Manufacturing Case Study Example&quot;","block_context":{"text":"Manufacturing Case Study Example","link":"https:\/\/ucanalytics.com\/blogs\/category\/manufacturing-case-study-example\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2017\/08\/ARIMA-Python.jpg?fit=927%2C736&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2017\/08\/ARIMA-Python.jpg?fit=927%2C736&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2017\/08\/ARIMA-Python.jpg?fit=927%2C736&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2017\/08\/ARIMA-Python.jpg?fit=927%2C736&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":5051,"url":"https:\/\/ucanalytics.com\/blogs\/forecasting-time-series-analysis-manufacturing-case-study-example-part-1\/","url_meta":{"origin":5632,"position":3},"title":"Forecasting &#038; Time Series Analysis &#8211; Manufacturing Case Study Example (Part 1)","author":"Roopam Upadhyay","date":false,"format":false,"excerpt":"Today we are starting a new case study example series on YOU CANalytics involving forecasting and time series analysis. In this case study example, we will learn about\u00a0time series analysis for a manufacturing operation. Time series analysis and modeling have many business and social applications. It is extensively used to\u2026","rel":"","context":"In &quot;Manufacturing Case Study Example&quot;","block_context":{"text":"Manufacturing Case Study Example","link":"https:\/\/ucanalytics.com\/blogs\/category\/manufacturing-case-study-example\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/04\/Time-Series-Analysis-Sine-Curve.jpg?fit=480%2C597&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":5213,"url":"https:\/\/ucanalytics.com\/blogs\/time-series-decomposition-manufacturing-case-study-example-part-2\/","url_meta":{"origin":5632,"position":4},"title":"Time Series Decomposition &#8211; Manufacturing Case Study Example (Part 2)","author":"Roopam Upadhyay","date":false,"format":false,"excerpt":"In the previous\u00a0article, we started a new case study on sales forecasting for a tractor and farm\u00a0equipment manufacturing company called PowerHorse. Our final\u00a0goal is\u00a0to forecast tractor sales in the next 36 months. In this article, we will delve deeper into time series decomposition. As discussed earlier, the idea behind time\u2026","rel":"","context":"In &quot;Manufacturing Case Study Example&quot;","block_context":{"text":"Manufacturing Case Study Example","link":"https:\/\/ucanalytics.com\/blogs\/category\/manufacturing-case-study-example\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/05\/Painter1.jpg?fit=630%2C1024&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/05\/Painter1.jpg?fit=630%2C1024&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/05\/Painter1.jpg?fit=630%2C1024&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":10404,"url":"https:\/\/ucanalytics.com\/blogs\/video-case-study-example-time-series-age-big-data\/","url_meta":{"origin":5632,"position":5},"title":"Video Case Study Example &#8211; Time Series in the Age of Big Data","author":"Roopam Upadhyay","date":false,"format":false,"excerpt":"Dear readers, watch the first video case study example on YOU CANalytics. This was my first attempt at the video presentation and I must say it is damn hard to speak while staring at your computer. I have come away with a new-found respect for the folks who could effortlessly\u2026","rel":"","context":"In &quot;Video Discussion&quot;","block_context":{"text":"Video Discussion","link":"https:\/\/ucanalytics.com\/blogs\/category\/video-discussion\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2017\/07\/Video-Case-Sudy-Time-Series-in-the-Age-of-Big-Data.jpg?fit=640%2C480&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2017\/07\/Video-Case-Sudy-Time-Series-in-the-Age-of-Big-Data.jpg?fit=640%2C480&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2017\/07\/Video-Case-Sudy-Time-Series-in-the-Age-of-Big-Data.jpg?fit=640%2C480&ssl=1&resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/posts\/5632"}],"collection":[{"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/comments?post=5632"}],"version-history":[{"count":0,"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/posts\/5632\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/media\/5631"}],"wp:attachment":[{"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/media?parent=5632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/categories?post=5632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/tags?post=5632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}