In statistics, particularly in 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.
Let be a set of variables, either parameters or statistics, and be known constants. The quantity is a linear combination. It is called a contrast if . Furthermore, two contrasts, and , are orthogonal if .