Jump to content

Design matrix

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fnielsen (talk | contribs) at 11:59, 1 September 2004 (Initial version with an one-way ANOVA example). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

A design matrix is a matrix that is used in the certain statistical models, e.g., the general linear model. It can contain indicator variables (ones and zeros) that indicates group membership in an ANOVA and it represents the independent variables. The advantage with a design matrix is that it is able to represent a number of different experimental designs and statistical models, e.g., ANOVA, ANCOVA, and linear regression

Example

One-way ANOVA

Example with a one-way ANOVA with 3 groups and 7 observations. The first column in the design matrix models the grand mean of the ys, while the 3 remaining columns indicate the group membership of each observation. Here the first group consists of the 3 first observations and the next two groups each consist of two observations.