Dean Fantazzini
Sat Apr 02 14:21:09 2016
This App downloads the last five years of prices for a selected group of commodity Exchange-Traded Funds (ETF) prices and forecasts the prices for the next year using
the auto.arima function from the forecast R package.
Any user who has no knowledge of R programming can easily download the ETF data, plot them and compute 1-year ahead forecats.
Links:
App url: https://deanfantazzini.shinyapps.io/Forecasting_commodity_ETF/
GitHub url: https://github.com/deanfantazzini/ForecastingcommodityETF
You can select one of this commodity ETFs:
| ETF | Ticker |
|---|---|
| United States Oil Fund | USO |
| United States Natural Gas Fund | UNG |
| United States Gasoline Fund | UGA |
| SPDR Gold Shares | GLD |
| iShares Silver Trust | SLV |
| iPath Bloomberg Copper | JJC |
App interface:
Prices Plot: it shows a price plot for the selected commodity ETF price, together with a smoothing method: either a linear fit or loess fit
Prices Table: it shows the price table data for the selected commodity ETF price.
Price forecast plot:
it shows the ARIMA
forecast for the next 365 days as a blue line, 80% confidence interval is displayed in orange, while 90% is in yellow.
Price forecast table:
it displays the forecasted prices in a table format.
Autocorrelations residuals:
it plots the Auto-Correlation Function (ACF) and the Partial ACF (PACF) for the ARIMA model residuals.
Best ARIMA model:
it shows the estimated model using the auto.arima function from the forecast package.
First differences plot:
It plots the first differences for the selected commodity ETF price and the first differences for the logarithm base 10.