In mathematics, a Hadamard matrix, named after the French mathematician Jacques Hadamard, is a square matrix whose entries are either +1 or −1 and whose rows are mutually orthogonal. In geometric terms, this means that each pair of rows in a Hadamard matrix represents two perpendicular vectors, while in combinatorial terms, it means that each pair of rows has matching entries in exactly half of their columns and mismatched entries in the remaining columns. It is a consequence of this definition that the corresponding properties hold for columns as well as rows. The n-dimensional parallelotope spanned by the rows of an n × n Hadamard matrix has the maximum possible n-dimensional volume among parallelotopes spanned by vectors whose entries are bounded in absolute value by 1. Equivalently, a Hadamard matrix has maximal determinant among matrices with entries of absolute value less than or equal to 1 and so is an extremal solution of Hadamard's maximal determinant problem. Certain Hadamard matrices can almost directly be used as an error-correcting code using a Hadamard code (generalized in Reed–Muller codes), and are also used in balanced repeated replication (BRR), used by statisticians to estimate the variance of a parameter estimator.
Properties Let H be a Hadamard matrix of order n. The transpose of H is closely related to its inverse. In fact:
HH𝖳=nIn where In is the n × n identity matrix and HT is the transpose of H. To see that this is true, notice that the rows of H are all orthogonal vectors over the field of real numbers and each have length n. Dividing H through by this length gives an orthogonal matrix whose transpose is thus its inverse:
1nH𝖳=nH−1 Multiplying by the length again gives the equality above. As a result,
det(H)=±nn/2, where det(H) is the determinant of H. Suppose that M is a complex matrix of order n, whose entries are bounded by |Mij| ≤ 1, for each i, j between 1 and n. Then Hadamard's determinant bound states that
|det(M)|≤nn/2. Equality in this bound is attained for a real matrix M if and only if M is a Hadamard matrix. The order of a Hadamard matrix must be 1, 2, or a multiple of 4.
Proof The proof of the nonexistence of Hadamard matrices with dimensions other than 1, 2, or a multiple of 4 follows: If n>1, then there is at least one scalar product of 2 rows which has to be 0. The scalar product is a sum of n values each of which is either 1 or −1, therefore the sum is odd for odd n, so n must be even. If n=4m+2 with m≥1, and there exists an n×n Hadamard matrix H=(hi,j)i,j∈{0,1,...,n−1}, then it has the property that for any k≠l:
∑i=0n−1hk,ihl,i=0 Now we define the matrix A=(ai,j)i,j∈{0,1,...,n−1} by setting ai,j=h0,jhi,j. Note that A has all 1s in row 0. We check that A is also a Hadamard matrix:
∑i=0n−1ak,ial,i=∑i=0n−1h0,ihk,ih0,ihl,i=∑i=0n−1h0,i2hk,ihl,i=∑i=0n−1hk,ihl,i=0. Row 1 and row 2, like all other rows except row 0, must have n/2 entries of 1 and n/2 entries of −1 each. (*) Let α denote the number of 1s of row 2 beneath 1s in row 1. Let β denote the number of −1s of row 2 beneath 1s in row 1. Let γ denote the number of 1s of row 2 beneath −1s in row 1. Let δ denote the number of −1s of row 2 beneath −1s in row 1. Row 2 has to be orthogonal to row 1, so the number of products of entries of the rows resulting in 1, α+δ, has to match those resulting in −1, β+γ. Due to (*), we also have n/2=α+γ=β+δ, from which we can express γ=n/2−α and δ=n/2−β and substitute:
α+δ=β+γ α+n2−β=β+n2−α α−β=β−α α=β But we have as the number of 1s in row 1 the odd number n/2=α+β, contradiction.
Sylvester's construction Examples of Hadamard matrices were actually first constructed by James Joseph Sylvester in 1867. Let H be a Hadamard matrix of order n. Then the partitioned matrix
[HHH−H] is a Hadamard matrix of order 2n. This observation can be applied repeatedly and leads to the following sequence of matrices, also called Walsh matrices.
H1=[1],H2=[111−1],H4=[11111−11−111−1−11−1−11], and
H2k=[H2k−1H2k−1H2k−1−H2k−1]=H2⊗H2k−1, for 2≤k∈N, where ⊗ denotes the Kronecker product. In this manner, Sylvester constructed Hadamard matrices of order 2k for every non-negative integer k. Sylvester's matrices have a number of special properties. They are symmetric and, when k ≥ 1 (2k > 1), have trace zero. The elements in the first column and the first row are all positive. The elements in all the other rows and columns are evenly divided between positive and negative. Sylvester matrices are closely connected with Walsh functions.
Alternative construction If we map the elements of the Hadamard matrix using the group homomorphism ({1,−1},×)→({0,1},+), where ({0,1},+) is the additive group of the field GF(2) with two elements, we can describe an alternative construction of Sylvester's Hadamard matrix. First consider the matrix Fn, the n×2n matrix whose columns consist of all n-bit numbers arranged in ascending counting order. We may define Fn recursively by
F1=[01]Fn=[Fn−1Fn−101×2n−111×2n−1]. It can be shown by mathematical induction that the image of the Hadamard matrix under the above homomorphism is given by
H2n↦Fn𝖳Fn, where the matrix arithmetic is done over GF(2). This construction demonstrates that the rows of the Hadamard matrix H2n can be viewed as a length 2n linear error-correcting code of rank n, and minimum distance 2n−1 with generating matrix Fn. This code is also referred to as a Walsh code. The Hadamard code, by contrast, is constructed from the Hadamard matrix H2n by a slightly different procedure.
Hadamard conjecture
… excerpt ends here. Continue reading the full article.


