0
$\begingroup$

According to a journal I've read, in determining the K in fourier series term the lowest AIC must be picked, but what AIC are they talking about? How would we determine K? BTW, we are using r.

$\endgroup$
  • $\begingroup$ Pretty please include a reference to the article. Otherwise, it is much harder to guess what 'they' are going on about. Seriously, give us a chance to help you with this, and without the article it gets 10X harder to help. $\endgroup$ – Carl Nov 19 '16 at 2:35
2
$\begingroup$

They refer to the Aikaike information criterion. Roughly, it is a measure that can be used for comparing candidate models and choose the one that is more likely to have generated the data. The better the quality of the fit (the higher the likelihood of the model), the more are the chances that the model is close to the true model. This measure includes a penalty term that prevents overfitting; see for example this post for more comments about overfitting. The function AIC of R returns the AIC value for several types of models.

As regards $K$, they most likely refer to the number of Fourier terms (sine-cosine waves) to be included in the model. Basically, these terms consist of sine waves of different amplitudes and frequencies that allow the model to capture cycles of certain periodicites that may be present in the dynamic of the data. For further details you may search for information about harmonic regression; some examples in R: here and here.

Typically, the procedure is to propose and fit different models containing different cycles or regressor variables; then choose the one with the lowest AIC as the most plausible model given the data.

$\endgroup$
  • $\begingroup$ Sine -- and cosine, too. $\endgroup$ – Richard Hardy Oct 24 '16 at 18:56
  • $\begingroup$ I added the cosine too. Although a cosine wave is a shifted sine wave, in this context they are usually represented as sine and cosine terms, so it may be better to mention both of them explicitly. $\endgroup$ – javlacalle Oct 25 '16 at 6:55
  • $\begingroup$ You did not mention phase shifts (only variations in amplitudes and frequencies) in your original answer, which necessitated including cosines, too. $\endgroup$ – Richard Hardy Oct 25 '16 at 9:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.