Skip to main content
QUICK REVIEW

[Paper Review] Scalable visualisation methods for modern Generalized Additive Models

Matteo Fasiolo, Raphaël Nedellec|Bristol Research (University of Bristol)|Sep 27, 2018
Probabilistic and Robust Engineering DesignDecision Sciences26 citations
TL;DR

This paper proposes scalable, interactive visualization tools for modern Generalized Additive Models (GAMs) that exploit additive structure, handle large datasets (up to 10^8 observations), and support diverse response distributions. Implemented in the mgcViz R package, the methods enable fast, uncertainty-quantified residual checks and smooth effect visualization, significantly improving model development and validation in complex, real-world applications like electricity load forecasting.

ABSTRACT

In the last two decades the growth of computational resources has made it possible to handle Generalized Additive Models (GAMs) that formerly were too costly for serious applications. However, the growth in model complexity has not been matched by improved visualisations for model development and results presentation. Motivated by an industrial application in electricity load forecasting, we identify the areas where the lack of modern visualisation tools for GAMs is particularly severe, and we address the shortcomings of existing methods by proposing a set of visual tools that a) are fast enough for interactive use, b) exploit the additive structure of GAMs, c) scale to large data sets and d) can be used in conjunction with a wide range of response distributions. All the new visual methods proposed in this work are implemented by the mgcViz R package, which can be found on the Comprehensive R Archive Network.

Motivation & Objective

  • To address the lack of modern, scalable visualization tools for complex GAMs, especially in large-scale industrial applications.
  • To develop visualization methods that are fast enough for interactive use with datasets of 10^7 to 10^8 observations.
  • To support a wide range of response distributions, including non-exponential family and GAMLSS models, beyond simple mean regression.
  • To facilitate interactive model building and validation by quantifying uncertainty in smooth effects and residual patterns.
  • To improve model interpretability and practitioner confidence in high-stakes forecasting environments like electricity load prediction.

Proposed method

  • Binning and summarizing large datasets into compact, display-friendly forms using principles from Wickham (2013) for efficient rendering.
  • Implementing layer-based, object-oriented visualization components in the mgcViz R package for extensibility and modularity.
  • Using quantile residuals and worm plots to assess goodness-of-fit and detect deviations from distributional assumptions.
  • Applying confidence surfaces and randomization with transparency to visualize uncertainty in smooth effects across covariates.
  • Employing bivariate smooths via tensor product splines with cyclic bases for time-of-day and time-of-year effects, with uncertainty quantification.
  • Utilizing advanced GAM frameworks (e.g., Wood et al., 2016) to model multiple distributional parameters (location, scale, shape) simultaneously.

Experimental results

Research questions

  • RQ1How can visualization tools for GAMs be made scalable and efficient enough for interactive use with datasets exceeding 10^7 observations?
  • RQ2In what ways can uncertainty be effectively visualized in smooth effects and residual patterns across complex, non-exponential family models?
  • RQ3How do modern visualization techniques improve interactive model development and validation in high-stakes forecasting applications?
  • RQ4What role do residual diagnostics like worm plots and heatmaps play in identifying model misspecification in GAMs with complex error structures?
  • RQ5Can visualization tools enhance practitioner understanding and confidence in model outputs, particularly in industrial settings like electricity load forecasting?

Key findings

  • The mgcViz package enables interactive visualization of GAMs with up to 10^8 observations in under a few seconds, significantly reducing rendering time compared to model fitting.
  • Residual diagnostics such as worm plots revealed over-dispersion in residuals between midnight and 2am, suggesting limitations in the cyclic basis for time-of-day effects.
  • Binned kernel density estimates indicated multimodal residual patterns, likely due to unmodeled day-of-week effects and missing tariff information.
  • The SHASH distribution with δ=1 provided a better fit than Gaussian or t-distributions, with AIC of 1.608×10^6 and all terms significant at the 0.01 level.
  • Smooth effects for temperature and thermal inertia (T and Ts) showed strong, physically plausible patterns: immediate heating effects during the day and delayed storage heater effects at night.
  • Three-dimensional rgl visualizations with 66% confidence surfaces clearly illustrated uncertainty and significance of bivariate smooths, especially for the time-of-year effect, which showed four distinct peaks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.