I have some epidemiological data. The data is inherently periodic, and so I would like to visualize the power spectra so as to gain insight into the frequency of oscillations.
The book I am reading outlines a method to visualize the power spectra:
- De-trend the data
- Compute the fourier transform of the autocorrelation function of the detrended data.
- smooth with suitable spectral window such as Tukey WIndow or Bartlett window.
(Book is Mathematical Epidemiology, page 311-312).
I was wondering if there is a function in python to do this? If not, what functions and libraries can I use?