A mathematically rigorous development of spectral analysis which accommodates conventional methods of statistical inference. The problems of spurious regression and spurious correlation are addressed.
Example Python programs are included.
The complete paper can be downloaded here.