Visualizing forecast

Forecasting is the process of trying to predict what might happen in the future based on historical data and trends.

In this recipe, we will use Tableau's forecasting feature to forecast upcoming floods using flood data from 1985 to 2014:

Visualizing forecast

Getting ready

To follow this recipe, open B05527_06 – STARTER.twbx. Use the worksheet called Forecasting and connect to the MasterTable (FlooddataMasterListrev) data source:

Getting ready

How to do it...

Here are the steps to create the view in this recipe:

  1. From Dimensions, right-click and drag the Began field to the Columns shelf. Choose continuous MONTH(Began):
    How to do it...
  2. From Measures, drag Number of Records to the Rows shelf.
  3. Right-click anywhere in the view to show additional options.
  4. Under Forecast, select Show Forecast:
    How to do it...

How it works...

Tableau's forecasting feature uses a technique called exponential smoothing, as described in the online documentation at http://bit.ly/tableau-forecasting. Typically, when forecasting, one of the axes needs to be temporal (or date-related).

To add a forecast, we simply need to right-click on the view and, under Forecast, select Show Forecast. Alternatively, this can be added from the Analysis menu.

To describe the forecast, we can also right-click on the view, and under Forecast, select Describe Forecast. The window that pops up has two panes: one for Summary and another for Models. Here is an example of the Summary window for a forecast:

How it works...

The Forecast Model provides additional information on the model used, including the model trend, seasonality, quality metrics, and smoothing coefficients:

How it works...

There are not many options to change or set in Tableau's forecasting functionality. The limited options that can be changed include the forecast length, seasonality, and prediction intervals:

How it works...

There's more...

Additional forecast results, as shown in the following screenshot, are made available through the measure in the Rows or Columns shelf that is being forecasted:

There's more...

If you want to use more complex models for your forecast, you can take advantage of R integration with Tableau.

See also

Please refer to the Performing linear regression with R recipe in this chapter

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.137.58