Generalized additive model for location, scale and shape

Last updated

The generalized additive model for location, scale and shape (GAMLSS) is a distributional regression model in which a parametric statistical distribution is assumed for the response (target) variable but the parameters of this distribution can vary according to explanatory variables. Therefore the shape of this distribution for the target variable can change with explanatory variables.

Contents

GAMLSS is an input output model, i.e. but differs from the classical model in that the input X effects the distribution of the target variable as a whole not just the mean, i.e. .

GAMLSS allows flexible regression by using smoothing or machine learning techniques to model the parameters of the target variable (response). GAMLSS assumes the response variable could follows any theoretical parametric distribution, which might be heavy or light-tailed, and positively or negatively skewed. In addition, all the parameters of the distribution which often are location (e.g., mean), scale (e.g., variance) and shape (skewness and kurtosis) – can be modelled as linear, nonlinear or using algorithm modelling functions of the explanatory variables. The distributional assumption for the target variables can be checked through diagnostic plots like Q–Q plot or worm plot. GAMLSS is a supervised machine learning model since the target value (the output) is always present.


Overview of the model

The generalized additive model for location, scale and shape (GAMLSS) is a statistical model intoduced by Rigby and Stasinopoulos (2025) [1] to overcome some of the limitations associated with the popular generalized linear models (GLMs) of Nelder and Wedderburn (1972) [2] and generalized additive models (GAMs) of Hastie and Tibshirani. [3] Most of the limitations arise from the limited choice of distributions for the response. Both GLM and GAM assumed that the response comes from the exponential family a family reach enough to allow continuous and discrete responses (and very good for modelling the mean of the distribution as a function of the explanatory variables) but not very flexible enough to model other characteristics of the distribution i.e tails.

In GAMLSS the exponential family distribution assumption for the response variable, (), (essential in GLMs and GAMs), is relaxed and replaced by a general distribution family, including highly skew and/or kurtotic continuous and discrete distributions.

The systematic part of the model is expanded to allow modelling not only of the mean (or location) but possibly other parameters of the distribution of response as linear and/or nonlinear, parametric and/or additive non-parametric functions of explanatory variables and/or random effects.

GAMLSS, for continuous responses, is especially suited for modelling a leptokurtic or platykurtic and/or positively or negatively skewed variables therefor modelling the tails of the distribution. For count type response variable data it deals with over-dispersion and zero-inflation by using proper over-dispersed and zero inflated distributions. Heterogeneity also is dealt with by modeling the scale or shape parameters using explanatory variables. GAMLSS allow also mixed distributions, that is, distributions which have discrete and continuous parts, i.e the zero inflated beta is one or them. Note that while the beta distribution allow value in the beta inflated allows values in .

There are several packages written in R related to GAMLSS models, [4] and tutorials for using and interpreting GAMLSS. [5]

A GAMLSS model assumes independent observations for with probability (density) function conditional on . The parameter often is a vector of four distribution parameters, each of which can be a function of the explanatory variables, for example, The first two distribution parameters and are usually characterised as location and scale parameters, while the remaining parameter(s), if any, are characterised as shape parameters, e.g. skewness and kurtosis parameters. The model may be applied more generally to the parameters of any population distribution. The most general formulation of a GAMLSS model is

where is any machine learning (mathematical or algorithmic) model and is the number of parameters in the distribution for the resposnse. The original formulation of GAMLSS in the 2005 RSS paper had only four parameters and it was written as;

where , and are vectors of length , is a parameter vector of length , is a fixed known design matrix of order and is a smooth non-parametric function of explanatory variable , for and . for are link functions to ensure that the parameter are in the correct range of values.

Applications of the model

For centile estimation, the WHO Multicentre Growth Reference Study Group have recommended GAMLSS and the Box–Cox power exponential (BCPE) distributions [6] for the construction of the WHO Child Growth Standards. [7] [8] Recent studies have used GAMLSS to predict the probability of cyanobacterial toxins exceeding critical health thresholds in lakes [9] , as well as in applications related to remote sensing [10] , biogeochemical modeling [11] and medicine [12] .

What distributions can be used

The form of the distribution assumed for the response variable y, is very general. For example, an implementation of GAMLSS in R [13] has around 100 different distributions available. Such implementations also allow use of truncated distributions and censored (or interval) response variables. [13]

References

  1. Rigby, R.A.; Stasinopoulos, D.M. (2025). "Generalized Adiitive models for Location, Scale and Shapes". Royal Statistical Society Series C: Applied Statistics. 54 (3): 507–554. doi:10.1111/j.1467-9876.2005.00510.x.
  2. Nelder, J.A.; Wedderburn, R.W.M (1972). "Generalized linear models". J. R. Stat. Soc. A. 135 (3): 370–384. doi:10.2307/2344614. JSTOR   2344614.
  3. Hastie, TJ; Tibshirani, RJ (1990). Generalized additive models. London: Chapman and Hall.
  4. Stasinopoulos, D. Mikis; Rigby, Robert A (December 2007). "Generalized additive models for location scale and shape (GAMLSS) in R". Journal of Statistical Software. 23 (7). doi: 10.18637/jss.v023.i07 .
  5. David, Bann; Liam, Wright; Tim J, Cole (2022). "Risk factors relate to the variability of health outcomes as well as the mean: A GAMLSS tutorial". eLife. 11 (11). doi: 10.7554/eLife.72357 . PMC   8791632 . PMID   34985412.
  6. Rigby, Robert; Stasinopoulos, D. Mikis (February 2004). "Smooth Centile Curves for Skew and Kurtotic data Modelled Using the Box–Cox Power Exponential Distribution". Statistics in Medicine. 23 (19): 3053–3076. doi:10.1002/sim.1861. PMID   15351960.
  7. Borghi, E.; De Onis, M.; Garza, C.; Van Den Broeck, J.; Frongillo, E. A.; Grummer-Strawn, L.; Van Buuren, S.; Pan, H.; Molinari, L.; Martorell, R.; Onyango, A. W.; Martines, J. C.; WHO Multicentre Growth Reference Study Group (2006). "Construction of the World Health Organization child growth standards: Selection of methods for attained growth curves". Statistics in Medicine. 25 (2): 247–265. doi:10.1002/sim.2227. PMID   16143968.
  8. WHO Multicentre Growth Reference Study Group (2006) WHO Child Growth Standards: Length/height-for-age, weight-for-age, weight-for-length, weight-for-height and body mass index-for-age: Methods and development. Geneva: World Health Organization.
  9. Merder, Julian; Harris, Ted; Zhao, Gang; Stasinopoulos, Dimitrios M.; Rigby, Robert A.; Michalak, Anna M. (October 2023). "Geographic redistribution of microcystin hotspots in response to climate warming". Nature Water. 1 (10): 844–854. doi:10.1038/s44221-023-00138-w. ISSN   2731-6084.
  10. Merder, Julian; Zhao, Gang; Pahlevan, Nima; Rigby, Robert A.; Stasinopoulos, Dimitrios M.; Michalak, Anna M. (1 April 2024). "A novel algorithm for ocean chlorophyll-a concentration using MODIS Aqua data". ISPRS Journal of Photogrammetry and Remote Sensing. 210: 198–211. doi:10.1016/j.isprsjprs.2024.03.014. ISSN   0924-2716.
  11. Kida, Morimaru; Merder, Julian; Dittmar, Thorsten; Pawlowsky-Glahn, Vera; Egozcue, Juan Jose (13 October 2025). "Reframing natural organic matter research through compositional data analysis". doi:10.31223/x51x7p.{{cite journal}}: Cite journal requires |journal= (help)
  12. Judah, Hannah R.; Rigby, Robert A.; Stasinopoulos, Mikis D.; Pateras, Konstantinos; Rahim, Mussarat N.; Heneghan, Michael A.; Nicolaides, Kypros H.; Kametas, Nikos A. (1 July 2025). "Reference ranges for liver function tests in pregnancy controlling for maternal characteristics". American Journal of Obstetrics & Gynecology. 0 (0). doi:10.1016/j.ajog.2025.06.056. ISSN   0002-9378. PMID   40609852.
  13. 1 2 "The R packages | gamlss". The R packages | gamlss. Retrieved 4 May 2020.

Further reading