Zum Inhalt springen

Designmatrix

aus Wikipedia, der freien Enzyklopädie
Dies ist eine alte Version dieser Seite, zuletzt bearbeitet am 12. Mai 2012 um 07:49 Uhr durch Helpful Pixie Bot (Diskussion | Beiträge) (ISBNs (Build KH)). Sie kann sich erheblich von der aktuellen Version unterscheiden.

In statistics, a design matrix is a matrix of explanatory variables, often denoted by X, that is used in certain statistical models, e.g., the general linear model.[1][2] It can contain indicator variables (ones and zeros) that indicate group membership in an ANOVA.

The design matrix represents the independent variables in statistical models which describe observed data (often called dependent variables) in terms of other known variables (explanatory variables). The theory relating to such models makes substantial use of matrix manipulations involving the design matrix: see for example linear regression. A notable feature of the concept of 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.

Definition

In a regression model, written in matrix-vector form as

the matrix X is the design matrix.

Examples

Simple Regression

Example of simple linear regression with 7 observations. Suppose there are 7 data points {yi, xi}, where i = 1, 2, …, 7. The model simple linear regression model is

where is the y-intercept and is the slope of the regression line. This model can be represented in matrix form as

where the first column of ones in the design matrix represents the y-intercept term while the second column is the x-values associated with the y-value.

Multiple Regression

Example of multiple regression with covariates and . Again suppose that the data are 7 observations, and for each observed value to be predicted (), there are two covariates that were also observed and . The model to be considered is

This model can be written in matrix terms as

One-way ANOVA (Cell Means Model)

Example with a one-way analysis of variance (ANOVA) with 3 groups and 7 observations. The given data set has the first three observations belonging to the first group, the following two observations belong to the second group and the final two observations are from the third group. If the model to be fit is just the mean of each group, then the model is

which can be written

It should be emphasized that in this model represents the mean of the th group.

One-way ANOVA (offset from reference group)

The ANOVA model could be equivalently written as each group parameter Fehler beim Parsen (SVG (MathML kann über ein Browser-Plugin aktiviert werden): Ungültige Antwort („Math extension cannot connect to Restbase.“) von Server „http://localhost:6011/de.wikipedia.org/v1/“:): {\displaystyle \tau_i} being an offset from some overall reference. Typically this reference point is taken to be one of the groups under consideration. This makes sense in the context of comparing multiple treatment groups to a control group and the control group is considered the "reference". In this example, group 1 was chosen to be the reference group. As such the model to be fit is

with the constraint that is zero.

In this model is the mean of the reference group and is the difference from group to the reference group. and is not included in the matrix because its difference from the reference group (itself) is necessarily zero.

See also

References

  1. Everitt,B.S. (2002) Cambridge Dictionary of Statistics, CUP. ISBN 0-521-91099-X Vorlage:Please check ISBN
  2. Box, G.E.P., Tiao, G.C. (1973) Bayesian Inference in Statistical Analysis, Wiley. ISBN 0-471-57427-7 Vorlage:Please check ISBN (Section 8.1.1)