Skip to content

Commit

Permalink
help.Rmd
Browse files Browse the repository at this point in the history
  • Loading branch information
EnriquePH committed Dec 21, 2015
1 parent 8b3b12d commit 26b1f90
Show file tree
Hide file tree
Showing 5 changed files with 276 additions and 1 deletion.
1 change: 1 addition & 0 deletions Readme.Md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* [Email](mailto:[email protected])
* [GNU GENERAL PUBLIC LICENSE Version 2, June 1991](https://github.com/EnriquePH/Precious-Metals-Prediction)
* [GitHub url](https://github.com/EnriquePH/Precious-Metals-Prediction)
* [Slidify url](http://enriqueph.github.io/Precious-Metals-Slidify/)

## Description:
The app downloads the last five years prices from [Oanda](http://www.oanda.com)
Expand Down
83 changes: 83 additions & 0 deletions help.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Precious Metals Price ARIMA Forecast
## Coursera - Developing Data Products
* Author: Enrique Pérez Herrero
* Date: 20/Dec/2016
* [Email](mailto:[email protected])
* [GNU GENERAL PUBLIC LICENSE Version 2, June 1991](https://github.com/EnriquePH/Precious-Metals-Prediction)
* [App url](https://kikesoft.shinyapps.io/Precious-Metals-Prediction)
* [GitHub url](https://github.com/EnriquePH/Precious-Metals-Prediction)
* [Slidify url](http://enriqueph.github.io/Precious-Metals-Slidify/)

## Description:
Precious Metals Price ARIMA Forecast App downloads the last five years prices
from [Oanda](http://www.oanda.com) and forecast the next year prices using
`auto.arima` function from `forecast` R package.


## App Side Bar Panel

### Select Metal Input

Select one of the known as precious metals:

| Metal | Ticker |
|-----------|---------|
| Gold | XAU |
| Silver | XAG |
| Palladium | XPD |
| Platinum | XPT |


### Select Currency Input

One between US Dollars, British Pound, or Euro can be selected.

## App Tab Panels

App Tab panels are located above and can be selected like a menu.

### - Prices Plot
Shows a price plot for the selected metal and currency, and a control to change
adjusted statistics: `linear` or `loess`

![Gold prices plot](img/gold-prices.png)

### - Prices Table
Shows the price table data for the selected metal and several currencies

### - Forecast Plot
Shows the
[ARIMA](https://en.wikipedia.org/wiki/Autoregressive_integrated_moving_average)
forecast for the next 365 days as a blue line, 80% confidence interval is
displayed in orange, while 90% is in yellow.

![Gold ARIMA plot](img/gold-arima.png)

### - Forecast Table
Displays forecasted data table

### - Arima model
Shows adjusted model using `auto.arima` from the `forecast` package

### - Differences Plot
Plots first differences for the selected metal price and the differences of
base 10 logarithm of data

### - Residuals Plot
Plots the ACF and the
[PACF](https://en.wikipedia.org/wiki/Partial_autocorrelation_function)


## Links

* [Autoplot: Graphical Methods with ggplot2](http://librestats.com/2012/06/11/autoplot-graphical-methods-with-ggplot2/)
* [More blackbox analysis - Arima modeling in R](http://businessforecastblog.com/more-blackbox-analysis-arima-modeling-in-r/)
* [Precious Metals - Wikipedia](https://en.wikipedia.org/wiki/Precious_metal)
* [Palladium as an investment - Wikipedia](https://en.wikipedia.org/wiki/Palladium_as_an_investment)
* Step-by-Step Graphic Guide to Forecasting through ARIMA Modeling in R,
Manufacturing Case Study Example
[(Part 4)](http://ucanalytics.com/blogs/step-by-step-graphic-guide-to-forecasting-through-arima-modeling-in-r-manufacturing-case-study-example/)
* Automatic Time Series Forecasting: The forecast Package for R
[Journal of Statistical Software July 2008, Volume 27, Issue 3.](http://www.jstatsoft.org/article/view/v027i03)
* [Forecasting: principles and practice](https://www.otexts.org/fpp)
* [OANDA](http://www.oanda.com/)
190 changes: 190 additions & 0 deletions help.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* [GNU GENERAL PUBLIC LICENSE Version 2, June 1991](https://github.com/EnriquePH/Precious-Metals-Prediction)
* [App url](https://kikesoft.shinyapps.io/Precious-Metals-Prediction)
* [GitHub url](https://github.com/EnriquePH/Precious-Metals-Prediction)
* [Slidify url](http://enriqueph.github.io/Precious-Metals-Slidify/)

## Description:
Precious Metals Price ARIMA Forecast App downloads the last five years prices
Expand Down
2 changes: 1 addition & 1 deletion ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ shinyUI(fluidPage(
plotOutput('diff.plot')
),
tabPanel('Residuals Plot', plotOutput('residuals.plot')),
tabPanel('Help', includeMarkdown('index.Rmd'))
tabPanel('Help', includeMarkdown('help.Rmd'))
))
)
))

0 comments on commit 26b1f90

Please sign in to comment.