Video | Tableau | Analytics | AI & ML | Data visualisation

Predictive model improvements

Tableau 2020.4 lets you run regularised linear and gaussian predictive models in a calculation, and it's far simpler than wrangling R.

  • MODEL_QUANTILE and MODEL_PERCENTILE let you run predictive analysis in a Tableau calculated field, with linear regression as the default model
  • Use a quantile of 0.5 to predict the median, so roughly half the values fall above and half below the line
  • Fix the 'cannot mix aggregate and non-aggregate arguments' error by wrapping the date predictor in ATTR() so everything is aggregated
  • Specify a model explicitly with the model = '...' syntax, using 'rl' for regularised linear regression and 'gp' for the gaussian process model
  • Tableau's documentation gives clear guidance on when to pick each model, and these calculations are far simpler to set up than the equivalent in R

Alongside linear regressions, Tableau has added regularised linear regression and gaussian process regression to the model types you can run in the Model Quantil and Model Percentile functions in the calculation window.

Tableau Release Notes

In 2020.3, we introduced the MODEL_QUANTILE and MODEL_PERCENTILE table calculation functions. By default, these functions use linear regression to generate predictions and explore relationships within your data. Now in 2020.4, you’ll be able to leverage two more models: Gaussian process regression and regularized linear regression. With more models supported, you have greater flexibility and can choose the model that best fits your use case.Documentation. https://help.tableau.com/current/pro/desktop/en-us/predictions\_choosing\_model.htm