简体   繁体   English

按时间顺序检查季节性

[英]Check Seasonality in time series

I have 2 years of hourly data.I want to check seasonality . 我有2年的小时数据。我想检查季节性。 1.Decomposing the series shows seasonality.But since Decomposition is not enough what else can i use to check seasonality in R? 1,分解系列显示季节性,但是由于分解不够,我还能用什么检查R的季节性? 2.I tried hourly seasonality , I am not sure on the period of seasonality.How to determine the frequency in R? 2.我尝试了每小时的季节性,我不确定季节性的周期。如何确定R的频率?

Frequency is the number of observations per unit of time. 频率是每单位时间的观察次数。 But, in my short experience, the unit of time depends on the event you are studying. 但是,以我的短暂经验,时间单位取决于您正在研究的事件。 For example, if you have monthly data of a yearly seasonal event (like the flowering of some plants) and you sampled 5 times each month, frequency will be 5*12. 例如,如果您有一个年度季节性事件的月度数据(例如某些植物的开花),并且每月采样5次,则频率将为5 * 12。 I suggest you decompose your time series and and check for seasonality there. 我建议您分解时间序列,然后检查那里的季节性。 You can use ts , stl and plot.stl . 您可以使用tsstlplot.stl Try to adjust the parameters as best as you can but also try to check what happens when you change them. 尝试尽可能地调整参数,但也尝试检查更改参数时发生的情况。

Please read through below link, if you feel to keep multiple seasonal periods in data, you can also paste sample of your data here for further suggestions 请仔细阅读下面的链接,如果您认为数据中包含多个季节性周期,还可以在此处粘贴数据示例以获取更多建议

https://robjhyndman.com/hyndsight/seasonal-periods/ https://robjhyndman.com/hyndsight/seasonal-periods/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM