Forecast Time Series
The Forecast Time Series assistant is specifically for time series data to predict the next value of a sequence of data. The result is both a predicted value and a measure of the uncertainty of that prediction.
Forecasting is similar to prediction, however forecasting is attempting to tell the future, where prediction is used to validate test data that you already have currently.
Algorithm
- State-space method using Kalman filter
Workflow
The basic steps for forecasting a time series are as follows:
- Enter a search to retrieve your data, then click the search button to run it.
- Select the field you want to forecast. This list of fields is populated by the search you just ran.
- Select a forecasting method. These algorithms consider subsets of features such as local level (an average of recent values), trend (a slope of line that fits through recent values), and seasonality (repeating patterns).
- Specify a value for the number of values to withhold, which indicates how many search results to use for validating the quality of the forecast. The larger the withholding, the less you have to train your model.
- Specify a value for the number of values to forecast, which indicates how far beyond the data to try to predict. The size of the confidence interval is used to gauge how confident the algorithm is in its forecast.
- Select a value for the confidence interval, which is the percentage of the future data you expect to fall inside of the confidence envelope.
- Select a value for period, which indicates the period of any known repeating patterns in the data to assist the algorithm. For example, if your data includes monthly sales data that follows annual patterns, specify "12" for the period.
- Click Forecast.
Interpret and validate
- Raw Data Preview: Displays the raw data from the search.
- Forecast: In shades of brown and beige, a graph displays the actual value as a solid line and the predicted value as a dotted line, surrounded by a confidence envelope. Values that fall outside the confidence envelope are outliers. A vertical line indicates where training data stops and test data begins. When the real data ends, forecasted values are displayed in shades of green.
- R2 Statistic: Explains how well the model explains the variability of the result. 100% (a value of 1) means the model fits perfectly.
- Root Mean Squared Error: Explains the variability of the result, which is essentially the standard deviation of the residual. The formula takes the difference between actual and predicted values, squares this value, takes an average, and then takes a square root.
- Prediction Outliers: Shows the total number of outliers that were detected.
Interpretation: The larger the envelope, the less confidence we have about forecasts around that time. The size of the envelope is directly related to the specified confidence interval percentage.
Interpretation: The closer the value is to 1 (100%), the better the result.
Interpretation: This value can be arbitrarily large and just gives you an idea of how close or far the model is. These values only make sense within one dataset however, and shouldn't be compared to values outside of it.
Refine the forecast
After you have created a forecast, you can select a different algorithm to see whether a different choice yields better results, but the quality of the forecast mostly depends on how predictable the data is.
Deploy the forecast
Once you have validated and refined a forecast and are satisfied with it, you can take the following actions:
- Click the Open in Search button next to the Forecast button to open a new Search tab with the search query.
- Click the Show SPL button next to the Open in Search button to see the search query that was used to calculate the forecast. For example, you could use this same query on a different data set.
- Click the Schedule Alert button in a panel to set up an alert when a future prediction meets criteria you set. After you save the alert, you can access it from the Scheduled Jobs > Alerts menu.
- Click any title to go to a new Search tab, filled out with the search query used for the visualization.
Detect Categorical Outliers | What's new |
This documentation applies to the following versions of Splunk® Machine Learning Toolkit: 1.3.0, 2.0.0
Feedback submitted, thanks!