Sum of Squares Decomposition Represented by Quadratic Form of a Random Vector
📂Mathematical StatisticsSum of Squares Decomposition Represented by Quadratic Form of a Random Vector
For a random vector X=(X1,⋯,Xn), an identity matrix In∈Rn×n, and an all-ones matrix Jn∈Rn×n whose elements are all 1, the following holds:
XT(In−n1Jn)X=(n−1)S2
Here, S2 is the sample variance.
Derivation
X=S2=n1k=1∑nXkn−11k=1∑n(Xk−X)2
Let the sample mean be X and the sample variance as above. The (In−Jn/n) given in the theorem is a symmetric matrix whose diagonal elements are all 1−1/n, and off-diagonal elements are all −1/n, making it a quadratic form of a random vector and can be expressed as follows:
XT(aij)X=i=1∑naiiXi2+i=j∑aijXiXj
Substituting aii=1−1/n and aij=−1/n into the equation above yields:
======XT(aij)Xi=1∑n(1−n1)Xi2+i=j∑(−n1)XiXji=1∑nXi2−n1i=1∑nXi2−n1i,j∑XiXji=1∑nXi2−n1i=1∑nXi2−n1i,j∑XiXji=1∑nXi2−n1i=1∑nXii=1∑nXii=1∑nXi2−nX2(n−1)S2
■