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.

n1t=0(ytˉy)2=n1t=0[n/2p=1apcos(2πpt/n)+bpsin(2πpt/n)]2=n1t=0n/2p=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 pq, tsin(2πpt/n)sin(2πqt/n)=0tcos(2πpt/n)cos(2πqt/n)=0tcos(2πpt/n)sin(2πqt/n)=0

This then gives us

n1t=0(ytˉy)2=n1t=0n/2p=1a2pcos(2πpt/n)2+b2psin(2πpt/n)2+2apbpcos(2πpt/n)sin(2πpt/n)=n/2p=1[a2pn1t=0cos(2πpt/n)2+b2pn1t=0sin(2πpt/n)2+2apbpn1t=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 n1t=0(ytˉy)2=n/21p=1n2(a2p+b2p)+na2n/2 For pn/2 we can write R2p=a2p+b2p. Then, if we divide through by n we can then write

1nn1t=0(ytˉy)2=n/21p=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.