3.3 Partitioning the Variation
We can take an analysis of variance approach to the main model for yt above and decompose the total variation in yt as ∑t(yt−ˉy)2 into a residual sum of squares and the variation attributable to the various frequencies.
n−1∑t=0(yt−ˉy)2=n−1∑t=0[n/2∑p=1apcos(2πpt/n)+bpsin(2πpt/n)]2=n−1∑t=0n/2∑p=1(apcos(2πpt/n)+bpsin(2πpt/n))2 The second line is possible because all of the cross terms of the square are equal to zero, i.e. for all p≠q, ∑tsin(2πpt/n)sin(2πqt/n)=0∑tcos(2πpt/n)cos(2πqt/n)=0∑tcos(2πpt/n)sin(2πqt/n)=0
This then gives us
n−1∑t=0(yt−ˉy)2=n−1∑t=0n/2∑p=1a2pcos(2πpt/n)2+b2psin(2πpt/n)2+2apbpcos(2πpt/n)sin(2πpt/n)=n/2∑p=1[a2pn−1∑t=0cos(2πpt/n)2+b2pn−1∑t=0sin(2πpt/n)2+2apbpn−1∑t=0cos(2πpt/n)sin(2πpt/n)] Again, the last cross term is equal to zero when we sum over t. Flipping the two summations gives us n−1∑t=0(yt−ˉy)2=n/2−1∑p=1n2(a2p+b2p)+na2n/2 For p≠n/2 we can write R2p=a2p+b2p. Then, if we divide through by n we can then write
1nn−1∑t=0(yt−ˉy)2=n/2−1∑p=1R2p/2+a2n/2 If we interpret R2p/2 is the amount of “energy” associated with variation at frequency p, then the above equation states that the total variance of yt is equal to the sum of the “energies” R2p/2 associated with each frequency of variation. This is Parseval’s theorem.