# R in Time Series: Seasonal Decomposition By Moving Average

This tutorial tells about how to do seasonal decomposition by moving average in R.

There are two kinds of classical decomposition models:

1. Additive model: $$x_t=m_t+s_t+\epsilon_t$$
2. Multiplicative model: $$x_t=m_t\cdot s_t+\epsilon_t$$