I have a dataset containing the daily sum of news articles for specific topics since 1995 (for this example, I'm trying to analyze the topic "Soccer, Football"). I am trying to use the fast fourier transform (fft) but am not sure how to interpret the results. How am I supposed to convert the frequency to a daily scale?
from scipy.fftpack import fft
N = 8335 # lenth of times series (days)
# Nyquist Sampling Criteria
T = 1/8335 # inverse of the sampling rate
x = np.linspace(0.0, 1.0/(2.0*T), int(N/2))
# FFT algorithm
yr = fft(array) # "raw" FFT with both + and - frequencies
y = 2/N * np.abs(yr[0:np.int(N/2)]) # positive freqs only
# Plotting the results
plt.plot(x, y)
plt.figsize=(25,10)
plt.ylim(0,.08)
plt.xlabel('Frequency (Hz)')
plt.ylabel('Vibration (g)')
plt.title('Soccer,Football');
The results: See here 3 spikes in the power spectrum but in audio frequency terms
How can I convert the three frequencies to understand the lengths of the cycles in days?