时间序列预测在python中

时间:2017-02-07 10:59:08

标签: python

我有一系列与每天的值相对应的数据。数据持续2周,并且有一种模式,其中一周的最后2天有所下降。

data=[2,4,6,8,10,1,1,3,5,8,11,10,2,1]

我需要在python中使用这些数据开发一个简单的预测模型来预测下周的值。该模型需要考虑季节性数据(或模式)

我尝试过使用pandas库,但无法使用它。

如果你能解释你的数学模型,那就太好了。

1 个答案:

答案 0 :(得分:0)

所以这是一种方法

runningSums(data) >>> 2

list

这是下一个可能的值。

获取有关此功能结果的列表调用Description: Stopped working Problem signature: Problem Event Name: APPCRASH Application Name: vs_setup_bootstrapper.exe Application Version: 15.0.293.51136 Application Timestamp: 588935a6 Fault Module Name: KERNELBASE.dll Fault Module Version: 6.1.7601.17514 Fault Module Timestamp: 4ce7c78c Exception Code: e0434f4d Exception Offset: 000000000000a49d OS Version: 6.1.7601.2.1.0.1296.17 Locale ID: 1033 Read our privacy statement online: http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409 If the online privacy statement is not available, please read our privacy statement offline: C:\Windows\system32\en-US\erofflps.txt

有关详细信息refer

相关问题