在季节性分解中,季节性情节似乎已经消失了

发布于 2025-01-26 19:05:12 字数 467 浏览 3 评论 0原文

当我分解时间序列时,季节性情节看起来像这样,我会做错什么?这是我用于分解的代码,

import statsmodels.api as sm

decomposition = sm.tsa.seasonal_decompose(temp_df['depth_to_groundwater'], model='additive', freq=12)

fig = decomposition.plot()
fig.set_figwidth(12)
fig.set_figheight(8)
fig.suptitle('Decomposition of time series')
plt.show()

谈论我的时间序列数据,这是负面的,也许它可能影响了情节 在此处输入图像描述

When I decompose my time-series Seasonal plot looks like this, what have I could do wrong? Here is code that i used for decomposition

import statsmodels.api as sm

decomposition = sm.tsa.seasonal_decompose(temp_df['depth_to_groundwater'], model='additive', freq=12)

fig = decomposition.plot()
fig.set_figwidth(12)
fig.set_figheight(8)
fig.suptitle('Decomposition of time series')
plt.show()

Talking about my time series data it is negative, , maybe it could have influenced the plot
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甜心小果奶 2025-02-02 19:05:12

尝试增加频率。对于您的模型来说,12可能太低了。像365这样的频率可以解决它

Try to increase your freq. 12 is probably too low for your model. A freq like 365 would solve it

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文