Kalpana Kalpana (Editor)

Cochran's theorem

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In statistics, Cochran's theorem, devised by William G. Cochran, is a theorem used to justify results relating to the probability distributions of statistics that are used in the analysis of variance.

Contents

Statement

Suppose U1, ..., Un are i.i.d. standard normally distributed random variables, and an identity of the form

i = 1 n U i 2 = Q 1 + + Q k

can be written, where each Qi is a sum of squares of linear combinations of the Us. Further suppose that

r 1 + + r k = n

where ri is the rank of Qi. Cochran's theorem states that the Qi are independent, and each Qi has a chi-squared distribution with ri degrees of freedom. Here the rank of Qi should be interpreted as meaning the rank of the matrix B(i), with elements Bj,k(i), in the representation of Qi as a quadratic form:

Q i = j = 1 n k = 1 n U j B j , k ( i ) U k .

Less formally, it is the number of linear combinations included in the sum of squares defining Qi, provided that these linear combinations are linearly independent.

Proof

We first show that the matrices B(i) can be simultaneously diagonalized and that their non-zero eigenvalues are all equal to +1. We then use the vector basis that diagonalize them to simplify their characteristic function and show their independence and distribution.

Each of the matrices B(i) has rank ri and thus ri non-zero eigenvalues. For each i, the sum C ( i ) j i B ( j ) has at most rank j i r j = N r i . Since B ( i ) + C ( i ) = I N × N , it follows that C(i) has exactly rank N − ri.

Therefore B(i) and C(i) can be simultaneously diagonalized. This can be shown by first diagonalizing B(i). In this basis, it is of the form:

[ λ 1 0 0 0 0 λ 2 0 0 0 0 0 λ r i 0 0 0 0 0 0 ] .

Thus the lower ( N r i ) rows are zero. Since C ( i ) = I B ( i ) , it follows that these rows in C(i) in this basis contain a right block which is a ( N r i ) × ( N r i ) unit matrix, with zeros in the rest of these rows. But since C(i) has rank N − ri, it must be zero elsewhere. Thus it is diagonal in this basis as well. It follows that all the non-zero eigenvalues of both B(i) and C(i) are +1. Moreover, the above analysis can be repeated in the diagonal basis for C ( 1 ) = B ( 2 ) + j > 2 B ( j ) . In this basis C ( 1 ) is the identity of an ( N r 1 ) × ( N r 1 ) vector space, so it follows that both B(2) and j > 2 B ( j ) are simultaneously diagonalizable in this vector space (and hence also together B(1)). By iteration it follows that all B-s are simultaneously diagonalizable.

Thus there exists an orthogonal matrix S such that for all i, S T B ( i ) S is diagonal with 1-s between r 1 , , r i .

Let U i denote some specific linear combination of all U i after transformation by S . Note that i = 1 n ( U i ) 2 = i = 1 n U i 2 due to the length preservation of the orthogonal matrix S.

The characteristic function of Qi is:

φ i ( t ) = ( 2 π ) N / 2 d u 1 d u 2 d u N e i t Q i e u 1 2 2 e u 2 2 2 e u N 2 2 = ( 2 π ) N / 2 ( j = 1 N d u j ) e i t Q i e j = 1 N u j 2 2 = ( 2 π ) N / 2 ( j = 1 N d u j ) e i t m = r 1 + + r i 1 + 1 r 1 + + r i ( u m ) 2 e j = 1 N u j 2 2 = ( 2 π ) N / 2 ( e u 2 ( i t 1 2 ) d u ) r i ( e u 2 2 d u ) N r i = ( 1 2 i t ) r i / 2

This is the Fourier transform of the chi-squared distribution with ri degrees of freedom. Therefore this is the distribution of Qi.

Moreover, the characteristic function of the joint distribution of all the Qis is:

φ ( t 1 , t 2 , , t k ) = ( 2 π ) N / 2 ( j = 1 N d U j ) e i i = 1 k t i Q i e j = 1 N U j 2 2 = ( 2 π ) N / 2 ( j = 1 N d U j ) e i i = 1 k t i k = r 1 + + r i 1 + 1 r 1 + + r i ( U k ) 2 e j = 1 N U j 2 2 = ( 2 π ) N / 2 i = 1 k ( e u 2 ( i t i 1 2 ) d u ) r i = i = 1 k ( 1 2 i t i ) r i / 2 = i = 1 k φ i ( t i )

From this it follows that all the Qis are i.i.d.

Sample mean and sample variance

If X1, ..., Xn are independent normally distributed random variables with mean μ and standard deviation σ then

U i = X i μ σ

is standard normal for each i. It is possible to write

i = 1 n U i 2 = i = 1 n ( X i X ¯ σ ) 2 + n ( X ¯ μ σ ) 2

(here X ¯ is the sample mean). To see this identity, multiply throughout by σ 2 and note that

( X i μ ) 2 = ( X i X ¯ + X ¯ μ ) 2

and expand to give

( X i μ ) 2 = ( X i X ¯ ) 2 + ( X ¯ μ ) 2 + 2 ( X i X ¯ ) ( X ¯ μ ) .

The third term is zero because it is equal to a constant times

( X ¯ X i ) = 0 ,

and the second term has just n identical terms added together. Thus

( X i μ ) 2 = ( X i X ¯ ) 2 + n ( X ¯ μ ) 2 ,

and hence

( X i μ σ ) 2 = ( X i X ¯ σ ) 2 + n ( X ¯ μ σ ) 2 = Q 1 + Q 2 .

Now the rank of Q2 is just 1 (it is the square of just one linear combination of the standard normal variables). The rank of Q1 can be shown to be n − 1, and thus the conditions for Cochran's theorem are met.

Cochran's theorem then states that Q1 and Q2 are independent, with chi-squared distributions with n − 1 and 1 degree of freedom respectively. This shows that the sample mean and sample variance are independent. This can also be shown by Basu's theorem, and in fact this property characterizes the normal distribution – for no other distribution are the sample mean and sample variance independent.

Distributions

The result for the distributions is written symbolically as

( X i X ¯ ) 2 σ 2 χ n 1 2 . n ( X ¯ μ ) 2 σ 2 χ 1 2 ,

Both these random variables are proportional to the true but unknown variance σ2. Thus their ratio does not depend on σ2 and, because they are statistically independent. The distribution of their ratio is given by

n ( X ¯ μ ) 2 1 n 1 ( X i X ¯ ) 2 χ 1 2 1 n 1 χ n 1 2 F 1 , n 1

where F1,n − 1 is the F-distribution with 1 and n − 1 degrees of freedom (see also Student's t-distribution). The final step here is effectively the definition of a random variable having the F-distribution.

Estimation of variance

To estimate the variance σ2, one estimator that is sometimes used is the maximum likelihood estimator of the variance of a normal distribution

σ ^ 2 = 1 n ( X i X ¯ ) 2 .

Cochran's theorem shows that

n σ ^ 2 σ 2 χ n 1 2

and the properties of the chi-squared distribution show that

E ( n σ ^ 2 σ 2 ) = E ( χ n 1 2 ) n σ 2 E ( σ ^ 2 ) = ( n 1 ) E ( σ ^ 2 ) = σ 2 ( n 1 ) n

the expected value of σ ^ 2 is σ2(n − 1)/n.

Alternative formulation

The following version is often seen when considering linear regression. Suppose that Y N n ( 0 , σ 2 I n ) is a standard multivariate normal random vector (here I n denotes the n-by-n identity matrix), and if A 1 , , A k are all n-by-n symmetric matrices with i = 1 k A i = I n . Then, on defining r i = Rank ( A i ) , any one of the following conditions implies the other two:

  • i = 1 k r i = n ,
  • Y T A i Y σ 2 χ r i 2 (thus the A i are positive semidefinite)
  • Y T A i Y is independent of Y T A j Y for i j .
  • References

    Cochran's theorem Wikipedia