In mathematics, a weighing matrix of order n {\displaystyle n} and weight w {\displaystyle w} is a matrix W {\displaystyle W} with entries from the set { 0 , 1 , − 1 } {\displaystyle \{0,1,-1\}} such that:
Where W T {\displaystyle W^{\mathsf {T}}} is the transpose of W {\displaystyle W} and I n {\displaystyle I_{n}} is the identity matrix of order n {\displaystyle n} . The weight w {\displaystyle w} is also called the degree of the matrix. For convenience, a weighing matrix of order n {\displaystyle n} and weight w {\displaystyle w} is often denoted by W ( n , w ) {\displaystyle W(n,w)} .
Weighing matrices are so called because of their use in optimally measuring the individual weights of multiple objects. When the weighing device is a balance scale, the statistical variance of the measurement can be minimized by weighing multiple objects at once, including some objects in the opposite pan of the scale where they subtract from the measurement.