【问题标题】:What is the difference between trend and adjusted on seasonal?趋势和季节性调整之间有什么区别?
【发布时间】:2018-05-18 15:04:36
【问题描述】:

我尝试了季节性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

调整和趋势之间有什么区别?

【问题讨论】:

    标签: python-3.x statistics time-series


    【解决方案1】:

    这是“季节性调整”的数据;即提取了季节性成分的数据。如果信号是Y,分解写成Y = S + T + R,其中S是季节性分量,T是趋势,R是残差,那么“季节性调整”的结果就是@ 987654326@。

    【讨论】:

      猜你喜欢
      • 2019-08-07
      • 1970-01-01
      • 2019-09-03
      • 1970-01-01
      • 2022-08-19
      • 1970-01-01
      • 2018-05-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多