2017-12-05 16 views
0

私は季節https://github.com/welch/seasonalの "使用例"を試しました。コードは以下の通りです。トレンドと季節調整済みの違いは何ですか?

import math 
from seasonal import fit_seasons,adjust_seasons 
import pandas as pd 
import matplotlib.pyplot as plt 
import numpy as np 

s = [10 * math.sin(i * 2 * math.pi/25) + i * i /100.0 for i in range(100)] 
seasons,trend = fit_seasons(s) 

adjusted = adjust_seasons(s,seasons=seasons) 

residual = adjusted -trend 

調整とトレンドの違いは何ですか?

答えて

0

これは「季節調整済み」のデータです。すなわち季節成分が抽出されたデータである。信号がYであり、分解がであり、Sが季節成分である場合、Tがトレンドであり、Rが残差である場合、「季節調整済み」の結果はちょうどT + Rです。

関連する問題