General Linear Model
General Linear Model
The general linear model or general multivariate regression model is a compact way of simultaneously
writing several multiple linear regression models. In that sense it is not a separate statistical linear model.
The various multiple linear regression models may be compactly written as[1]
where Y is a matrix with series of multivariate measurements (each column being a set of measurements on
one of the dependent variables), X is a matrix of observations on independent variables that might be a
design matrix (each column being a set of observations on one of the independent variables), B is a matrix
containing parameters that are usually to be estimated and U is a matrix containing errors (noise). The errors
are usually assumed to be uncorrelated across measurements, and follow a multivariate normal distribution.
If the errors do not follow a multivariate normal distribution, generalized linear models may be used to relax
assumptions about Y and U.
The general linear model incorporates a number of different statistical models: ANOVA, ANCOVA,
MANOVA, MANCOVA, ordinary linear regression, t-test and F-test. The general linear model is a
generalization of multiple linear regression to the case of more than one dependent variable. If Y, B, and U
were column vectors, the matrix equation above would represent multiple linear regression.
Hypothesis tests with the general linear model can be made in two ways: multivariate or as several
independent univariate tests. In multivariate tests the columns of Y are tested together, whereas in univariate
tests the columns of Y are tested independently, i.e., as multiple univariate tests with the same design
matrix.
or more compactly
In the formula above we consider n observations of one dependent variable and p independent variables.
Thus, Yi is the ith observation of the dependent variable, Xij is ith observation of the jth independent
variable, j = 1, 2, ..., p. The values βj represent parameters to be estimated, and εi is the ith independent
identically distributed normal error.
In the more general multivariate linear regression, there is one equation of the above form for each of m > 1
dependent variables that share the same set of explanatory variables and hence are estimated simultaneously
with each other:
or more compactly
for all observations indexed as i = 1, ... , n and for all dependent variables indexed as j = 1, ... , m.
Note that, since each dependent variable has its own set of regression parameters to be fitted, from a
computational point of view the general multivariate regression is simply a sequence of standard multiple
linear regressions using the same explanatory variables.
The main difference between the two approaches is that the general linear model strictly assumes that the
residuals will follow a conditionally normal distribution,[4] while the GLM loosens this assumption and
allows for a variety of other distributions from the exponential family for the residuals.[2] Of note, the
general linear model is a special case of the GLM in which the distribution of the residuals follow a
conditionally normal distribution.
The distribution of the residuals largely depends on the type and distribution of the outcome variable;
different types of outcome variables lead to the variety of models within the GLM family. Commonly used
models in the GLM family include binary logistic regression[5] for binary or dichotomous outcomes,
Poisson regression[6] for count outcomes, and linear regression for continuous, normally distributed
outcomes. This means that GLM may be spoken of as a general family of statistical models or as specific
models for specific outcome types.
General linear model Generalized linear model
Typical
Least squares, best linear unbiased
estimation Maximum likelihood or Bayesian
prediction
method
Extensions and
MANOVA, MANCOVA, linear mixed generalized linear mixed model (GLMM), generalized
related
model estimating equations (GEE)
methods
lm() (https://stat.ethz.ch/R-manual/R
R package and glm() (https://stat.ethz.ch/R-manual/R-devel/library/sta
-devel/library/stats/html/lm.html) in
function ts/html/glm.html) in stats package (base R)
stats package (base R)
regression (https://stats.idre.ucla.ed
u/spss/output/regression-analysis/),
SPSS
glm (https://stats.idre.ucla.edu/spss/ genlin, logistic
command
library/spss-librarymanova-and-glm-
2/)
Wolfram
Language &
Mathematica LinearModelFit[][8] GeneralizedLinearModelFit[][9]
function
EViews
command ls[10] glm[11]
Applications
An application of the general linear model appears in the analysis of multiple brain scans in scientific
experiments where Y contains data from brain scanners, X contains experimental design variables and
confounds. It is usually tested in a univariate way (usually referred to a mass-univariate in this setting) and
is often referred to as statistical parametric mapping.[12]
See also
Bayesian multivariate linear regression
F-test
t-test
Notes
1. K. V. Mardia, J. T. Kent and J. M. Bibby (1979). Multivariate Analysis. Academic Press.
ISBN 0-12-471252-5.
2. McCullagh, P.; Nelder, J. A. (1989), "An outline of generalized linear models", Generalized
Linear Models, Springer US, pp. 21–47, doi:10.1007/978-1-4899-3242-6_2 (https://doi.org/1
0.1007%2F978-1-4899-3242-6_2), ISBN 9780412317606
3. Fox, J. (2015). Applied regression analysis and generalized linear models. Sage
Publications.
4. Cohen, J., Cohen, P., West, S. G., & Aiken, L. S. (2003). Applied multiple
regression/correlation analysis for the behavioral sciences.
5. Hosmer Jr, D. W., Lemeshow, S., & Sturdivant, R. X. (2013). Applied logistic regression (Vol.
398). John Wiley & Sons.
6. Gardner, W.; Mulvey, E. P.; Shaw, E. C. (1995). "Regression analyses of counts and rates:
Poisson, overdispersed Poisson, and negative binomial models". Psychological Bulletin.
118 (3): 392–404. doi:10.1037/0033-2909.118.3.392 (https://doi.org/10.1037%2F0033-2909.
118.3.392). PMID 7501743 (https://pubmed.ncbi.nlm.nih.gov/7501743).
7. McCullagh, Peter; Nelder, John (1989). Generalized Linear Models, Second Edition. Boca
Raton: Chapman and Hall/CRC. ISBN 978-0-412-31760-6.
8. LinearModelFit (http://reference.wolfram.com/language/ref/LinearModelFit.html), Wolfram
Language Documentation Center.
9. GeneralizedLinearModelFit (http://reference.wolfram.com/language/ref/GeneralizedLinearM
odelFit.html), Wolfram Language Documentation Center.
10. ls (http://www.eviews.com/help/helpintro.html#page/content%2Fcommandcmd-ls.html),
EViews Help.
11. glm (http://www.eviews.com/help/helpintro.html#page/content%2Fcommandcmd-glm.html),
EViews Help.
12. K.J. Friston; A.P. Holmes; K.J. Worsley; J.-B. Poline; C.D. Frith; R.S.J. Frackowiak (1995).
"Statistical Parametric Maps in functional imaging: A general linear approach". Human Brain
Mapping. 2 (4): 189–210. doi:10.1002/hbm.460020402 (https://doi.org/10.1002%2Fhbm.460
020402). S2CID 9898609 (https://api.semanticscholar.org/CorpusID:9898609).
References
Christensen, Ronald (2020). Plane Answers to Complex Questions: The Theory of Linear
Models (Fifth ed.). New York: Springer. ISBN 978-3-030-32096-6.
Wichura, Michael J. (2006). The coordinate-free approach to linear models. Cambridge
Series in Statistical and Probabilistic Mathematics. Cambridge: Cambridge University Press.
pp. xiv+199. ISBN 978-0-521-86842-6. MR 2283455 (https://mathscinet.ams.org/mathscinet-
getitem?mr=2283455).
Rawlings, John O.; Pantula, Sastry G.; Dickey, David A., eds. (1998). Applied Regression
Analysis. Springer Texts in Statistics. doi:10.1007/b98890 (https://doi.org/10.1007%2Fb9889
0). ISBN 0-387-98454-2.