<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/time-series-analysis-with-documentation-and-steps-i-follow-for-analytics-projects/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://laranikalranalytics.blogspot.com/2018/07/time-series-analysis-with-documentation.html"> R-Analytics</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>To do this I will create a prediction of the open values for Bitcoin in the next 3 days.</p>
<p>The process I follow is based on CRISP-DM methodology: <a rel="nofollow" href="https://www.datasciencecentral.com/profiles/blogs/crisp-dm-a-standard-methodology-to-ensure-a-good-outcome" target="_blank">https://www.datasciencecentral.com/profiles/blogs/crisp-dm-a-standard-methodology-to-ensure-a-good-outcome</a></p>
<p>1.- Planning the activities.</p>
<p>To plan the activities I use a spread sheet document, below I show the spread sheet sample, if you would like the document, please go to the next link:<br><a rel="nofollow" href="https://github.com/LaranIkal/R-ANALYTICS/blob/master/BitCoinPredictionsAdmin%26FollowUp.ods" target="_blank">https://github.com/LaranIkal/R-ANALYTICS/blob/master/BitCoinPredictionsAdmin%26FollowUp.ods</a></p>

<p></p>
<table border="0" cellspacing="0">
<colgroup width="306"></colgroup>
<colgroup width="393"></colgroup>
<colgroup width="100"></colgroup>
<colgroup width="171"></colgroup>
<colgroup width="93"></colgroup>
<colgroup width="450"></colgroup>
<tbody>
<tr>
<td valign="bottom" align="left" height="21"><b><span>Activity</span></b></td>
<td valign="bottom" align="left"><b><span>Activity Description</span></b></td>
<td valign="bottom" align="left"><b><span>DueDate</span></b></td>
<td valign="bottom" align="left"><b><span>Activity Owner</span></b></td>
<td valign="bottom" align="left"><b><span>Status</span></b></td>
<td valign="bottom" align="left"><b><span>Comments</span></b></td>
</tr>
<tr>
<td valign="bottom" align="left" height="38"><span>Functional Requirement Specification</span></td>
<td valign="bottom" align="left"><span>A Text Document explaining the objectives of this project.</span></td>
<td valign="bottom" align="right"><span>4/19/2018</span></td>
<td valign="bottom" align="left"><span>Carlos Kassab</span></td>
<td valign="bottom" align="left"><span>Done</span></td>
<td valign="bottom" align="left"><span><br></span></td>
</tr>
<tr>
<td valign="bottom" align="left" height="18"><span>Get Data For Analysis</span></td>
<td valign="bottom" align="left"><span>Get initial data to create feasibility analysis</span></td>
<td valign="bottom" align="right"><span>4/19/2018</span></td>
<td valign="bottom" align="left"><span>Carlos Kassab</span></td>
<td valign="bottom" align="left"><span>Done</span></td>
<td valign="bottom" align="left"><span><br></span></td>
</tr>
<tr>
<td valign="bottom" align="left" height="56"><span>ETL Development</span></td>
<td valign="bottom" align="left"><span>ETL to get final data for next analysis</span></td>
<td valign="bottom" align="right"><span>4/20/2018</span></td>
<td valign="bottom" align="left"><span>Carlos Kassab</span></td>
<td valign="bottom" align="left"><span>Done</span></td>
<td valign="bottom" align="left"><span>2018/04/19: In this case, there is not ETL needed, the dataset was downloaded from kaggle: <a rel="nofollow" href="https://www.kaggle.com/vivekchamp/bitcoin/data" target="_blank">https://www.kaggle.com/vivekchamp/bitcoin/data</a></span></td>
</tr>
<tr>
<td valign="bottom" align="left" height="38"><span>Exploratory Data Analysis</span></td>
<td valign="bottom" align="left"><span>Dataset summary and histogram to know the data normalization</span></td>
<td valign="bottom" align="right"><span>4/20/2018</span></td>
<td valign="bottom" align="left"><span>Carlos Kassab</span></td>
<td valign="bottom" align="left"><span>In progress</span></td>
<td valign="bottom" align="left"><span><br></span></td>
</tr>
<tr>
<td valign="bottom" align="left" height="38"><span>Variables frequency</span></td>
<td valign="bottom" align="left"><span>Frequency of variable occurrence( frequency of values change, etc. )</span></td>
<td valign="bottom" align="right"><span>4/20/2018</span></td>
<td valign="bottom" align="left"><span>Carlos Kassab</span></td>
<td valign="bottom" align="left"><span>Done</span></td>
<td valign="bottom" align="left"><span>2018/04/19: We have already seen that our values change every day.</span></td>
</tr>
<tr>
<td valign="bottom" align="left" height="38"><span>Outliers Analysis</span></td>
<td valign="bottom" align="left"><span>Analysis of variability in numeric variables, show it in charts and grids..</span></td>
<td valign="bottom" align="right"><span>4/20/2018</span></td>
<td valign="bottom" align="left"><span>Carlos Kassab</span></td>
<td valign="bottom" align="left"><span>In progress</span></td>
<td valign="bottom" align="left"><span><br></span></td>
</tr>
<tr>
<td valign="bottom" align="left" height="38"><span>Time Series Decomposition</span></td>
<td valign="bottom" align="left"><span>– Getting metric charts, raw data, seasonality, trend and remainder.</span></td>
<td valign="bottom" align="right"><span>4/20/2018</span></td>
<td valign="bottom" align="left"><span>Carlos Kassab</span></td>
<td valign="bottom" align="left"><span>In progress</span></td>
<td valign="bottom" align="left"><span><br></span></td>
</tr>
<tr>
<td valign="bottom" align="left" height="20"><span>Modelling</span></td>
<td valign="bottom" align="left"><span>Create the analytics model</span></td>
<td valign="bottom" align="right"><span>4/25/2018</span></td>
<td valign="bottom" align="left"><span>Carlos Kassab</span></td>
<td valign="bottom" align="left"><span>Not Started</span></td>
<td valign="bottom" align="left"><span><br></span></td>
</tr>
<tr>
<td valign="bottom" align="left" height="38"><span>SQL View Development</span></td>
<td valign="bottom" align="left"><span>For Training, Validation And Testing</span></td>
<td valign="bottom" align="left"><span>NA</span></td>
<td valign="bottom" align="left"><span>Carlos Kassab</span></td>
<td valign="bottom" align="left"><span>Not Started</span></td>
<td valign="bottom" align="left"><span>2018/04/19: No SQL view needed, everything is done inside the R script.</span></td>
</tr>
<tr>
<td valign="bottom" align="left" height="38"><span>Model Selection</span></td>
<td valign="bottom" align="left"><span>By using random parameters search algorithm, to find the right model to be used for this data.</span></td>
<td valign="bottom" align="right"><span>4/25/2018</span></td>
<td valign="bottom" align="left"><span>Carlos Kassab</span></td>
<td valign="bottom" align="left"><span>Not Started</span></td>
<td valign="bottom" align="left"><span><br></span></td>
</tr>
<tr>
<td valign="bottom" align="left" height="38"><span>Model fine tunning.</span></td>
<td valign="bottom" align="left"><span>After finding the right algorithm, find the right model parameters to be used.</span></td>
<td valign="bottom" align="right"><span>4/25/2018</span></td>
<td valign="bottom" align="left"><span>Carlos Kassab</span></td>
<td valign="bottom" align="left"><span>Not Started</span></td>
<td valign="bottom" align="left"><span><br></span></td>
</tr>
<tr>
<td valign="bottom" align="left" height="20"><span>Chart Development</span></td>
<td valign="bottom" align="left"><span>Final data chart development</span></td>
<td valign="bottom" align="right"><span>4/25/2018</span></td>
<td valign="bottom" align="left"><span>Carlos Kassab</span></td>
<td valign="bottom" align="left"><span>Not Started</span></td>
<td valign="bottom" align="left"><span><br></span></td>
</tr>
<tr>
<td valign="bottom" align="left" height="38"><span>Data Validation</span></td>
<td valign="bottom" align="left"><span>Run the analytics model at least 2 weeks daily in order to see its behavior.</span></td>
<td valign="bottom" align="left"><span>NA</span></td>
<td valign="bottom" align="left"><span>Carlos Kassab</span></td>
<td valign="bottom" align="left"><span>Not Started</span></td>
<td valign="bottom" align="left"><span><br></span></td>
</tr>
<tr>
<td valign="bottom" align="left" height="20"><span>Deployment</span></td>
<td valign="bottom" align="left"><span>Schedule the automatic execution of the R code.</span></td>
<td valign="bottom" align="left"><span>NA</span></td>
<td valign="bottom" align="left"><span>Carlos Kassab</span></td>
<td valign="bottom" align="left"><span>Not Started</span></td>
<td valign="bottom" align="left"><span><br></span></td>
</tr>
</tbody>
</table>
<p>The first activity is the functional specification, this would be similar to business understanding in the crisp-dm methodology.</p>
<p>I use a text document, for this analysis, you can get the document from this link:<br> <a rel="nofollow" href="https://github.com/LaranIkal/R-ANALYTICS/blob/master/BitCoinPredictionRequirementSpecification.odt" target="_blank">https://github.com/LaranIkal/R-ANALYTICS/blob/master/BitCoinPredictionRequirementSpecification.odt</a></p>
<p>Now, the next step is to get the data for analysis and create the ETL script, in this case we just got the data from kaggle.com as mentioned in the documentation but, no ETL script was needed.</p>
<p>So, we have our data, now we are going to analyze it, we will do all the activities mentioned in yellow in the grid above. I did this in a MarkDown document, here you can see the HTML output:</p>
<p><a rel="nofollow" href="https://github.com/LaranIkal/R-ANALYTICS/blob/master/BitcoinDataAnalysis.html" target="_blank">https://github.com/LaranIkal/R-ANALYTICS/blob/master/BitcoinDataAnalysis.html</a></p>
<p>Note. At the end, in order to have everything together I included the time series algorithms in the same rmd file that creates BitcoinDataAnalysis.html file.</p>
<p>You can get all the sources from:</p>
<p><a rel="nofollow" href="https://github.com/LaranIkal/R-ANALYTICS" target="_blank">https://github.com/LaranIkal/R-ANALYTICS</a></p>
<p></p>
<div><span>Enjoy it!!!.</span>
<p><span>Carlos Kassab</span></div>
<div><a rel="nofollow" href="https://www.linkedin.com/in/carlos-kassab-48b40743/" target="_blank">https://www.linkedin.com/in/carlos-kassab-48b40743/</a>
<p><span>More information about R:</span></div>
<div><a rel="nofollow" href="https://www.r-bloggers.com/" target="_blank">https://www.r-bloggers.com</a></div>
<div></div>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://laranikalranalytics.blogspot.com/2018/07/time-series-analysis-with-documentation.html"> R-Analytics</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/8l2OZucl28g" height="1"></a></div>