In statistics, particularly in the analysis of variance and linear regression, a contrast is a linear combination of variables (parameters or statistics) whose coefficients add up to zero, allowing comparison of different treatments.
Definitions Let θ1,…,θt be a set of variables, either parameters or statistics, and a1,…,at be known constants. The quantity ∑i=1taiθi is a linear combination. It is called a contrast if ∑i=1tai=0. Furthermore, two contrasts, ∑i=1taiθi and ∑i=1tbiθi, are orthogonal if ∑i=1taibi=0.
Examples Let us imagine that we are comparing four means, μ1,μ2,μ3,μ4. The following table describes three possible contrasts:
The first contrast allows comparison of the first mean with the second, the second contrast allows comparison of the third mean with the fourth, and the third contrast allows comparison of the average of the first two means with the average of the last two. In a balanced one-way analysis of variance, using orthogonal contrasts has the advantage of completely partitioning the treatment sum of squares into non-overlapping additive components that represent the variation due to each contrast. Consider the numbers above: each of the rows sums up to zero (hence they are contrasts). If we multiply each element of the first row by the corresponding element of the second row and add those up, this again results in zero, thus the first and second contrast are orthogonal and so on.
Sets of contrast Orthogonal contrasts are a set of contrasts in which, for any distinct pair, the sum of the cross-products of the coefficients is zero (assume sample sizes are equal). Although there are potentially infinite sets of orthogonal contrasts, within any given set there will always be a maximum of exactly k – 1 possible orthogonal contrasts (where k is the number of group means available). Polynomial contrasts are a special set of orthogonal contrasts that test polynomial patterns in data with more than two means (e.g., linear, quadratic, cubic, quartic, etc.). Orthonormal contrasts are orthogonal contrasts which satisfy the additional condition that, for each contrast, the sum squares of the coefficients add up to one.
… excerpt ends here. Continue reading the full article.