擅长:python、mysql、java
<p>克里斯汀在这里(这是我的密码)。1实际上意味着客户不是季节性的(或者它不能提货),NULL也意味着不是季节性的。如果他们有一个季节性的使用模式(12个月的周期,这就是代码所要寻找的),它将输出[12]。你知道吗</p>
<p>您可以通过检查单个客户行为的图形,然后通过算法进行验证。我还喜欢在Python或R中交叉检查季节分解算法</p>
<p>下面是一些R代码,用于查看时间序列的分解。如果绘图中没有季节性窗口,则结果不是季节性的:</p>
<pre><code>library(forecast)
myts<-ts(mydata$SENDS, start=c(2013,1),end=c(2018,2),frequency = 12)
plot(decompose(myts))
</code></pre>
<p>另外,你提到有一些0的问题没有填写(从你的twitter对话)我没有这个问题,但我的客户有不同的任期从2年到13年不等。不知道这里有什么问题。你知道吗</p>
<p>如果我还可以帮忙,请告诉我:)</p>