Time Series Forecasting
With past time series data as training data, it creates a model that forecasts values for future dates/times, and plots the predicted values on a Line Chart.
Input data should be a time series data. Each row should represent one observation with date/time. It should have following columns.
- Date - A Date or POSIXct column when the observation was made.
- Some measure value - Numeric column that stores observed value.
How to Use This Feature
- Click Analytics View tab.
- If necessary, click "+" button on the left of existing Analytics tabs, to create a new Analytics.
- Select "Time Series Forecasting" for Analytics Type.
- Select Date column and associated Round Function for X Axis.
- (Optional) Select Numeric column and aggregate function for Y Axis.
- (Optional) Select a column to group subjects with "Repeat By" column selector. For each group, a separate small chart will be displayed.
- Click Run button to run the analytics.
- Select view type (explained below) by clicking view type link to see each type of generated visualization.
"Forecasted" View displays how the future values look like. with a line chart. Blue line is for actual values and orange line is for forecasted values. Orange band shows uncertainty interval.
"Trend" View displays actual values (blue line), and trend line (orange line). It also displays change points of the trend line, and how much change of slope was made at each change point (green bars).
"Yearly" View displays yearly seasonality.
"Weekly" View displays weekly seasonality, when time unit is DAY or smaller.
"Data" View shows a table with both past data and forecasted data.
In Test Mode, the last part of the data for the length specified by "Forecasting Time Period" is not used for training the model, and kept for testing how well the model forecasts. Test Mode can be enabled by setting the "Test Mode" property to TRUE.
"Forecasted" View in Test Mode
Dark blue line is the part of actual data used for training, and light blue line is the part that is used for test. Orange line is the forecasted values. You can compare the orange line with the light blue line to see how close the forecast was to the actual value.
"Summary" View in Test Mode
In Test Mode, "Summary View" shows the metrics for the model's forecasting performance. For the detail of the metrics, we recommend reading this online textbook.
Time Series Forecasting Analytics View has following other properties.
- Forecasting Time Period - Length of the forecasting period.
- Yearly Seasonality - By default, whether to use yearly seasonality is automatically determined, but you can explicitly specify it here.
- Weekly Seasonality - By default, whether to use weekly seasonality is automatically determined, but you can explicitly specify it here.
- Strength of Seasonality - Controls the weight of seasonality taken into account in the forecasting.
- Capacity (Cap) Value - Largest possible value to be forecasted. e.g. Size of entire market, etc.
- Potential Changepoints - You can specify points of time at which trend could have changed, as candidates of changepoints.
- Uncertainty Interval - Probability which is covered by uncertainty interval.
Time Series Forecasting view uses
prophet R Package under the hood.
Exploratory R Package
For details about
prophet usage in Exploratory R Package, please refer to the github repository