Reader small image

You're reading from  R Statistics Cookbook

Product typeBook
Published inMar 2019
Reading LevelExpert
PublisherPackt
ISBN-139781789802566
Edition1st Edition
Languages
Tools
Concepts
Right arrow
Author (1)
Francisco Juretig
Francisco Juretig
author image
Francisco Juretig

Francisco Juretig has worked for over a decade in a variety of industries such as retail, gambling and finance deploying data-science solutions. He has written several R packages, and is a frequent contributor to the open source community.
Read more about Francisco Juretig

Right arrow

Spectral decomposition of time series

Time series can be decomposed as the sum of several components, each one of them having a different frequency. Using this approach, we can see which are the frequencies that dominate: for example, there might be a yearly component and a weekly component.

This spectral decomposition is useful for understanding cycles, and the dynamics of a time series. It can also be used as a preliminary tool for studying seasonality in detail. This knowledge can then be used to choose the right seasonality structure for removal from the series.

Getting ready

In order to run this recipe, the timesboot package needs to be installed using install.packages().

...
lock icon
The rest of the page is locked
Previous PageNext Chapter
You have been reading a chapter from
R Statistics Cookbook
Published in: Mar 2019Publisher: PacktISBN-13: 9781789802566

Author (1)

author image
Francisco Juretig

Francisco Juretig has worked for over a decade in a variety of industries such as retail, gambling and finance deploying data-science solutions. He has written several R packages, and is a frequent contributor to the open source community.
Read more about Francisco Juretig