当前位置:网站首页>ARIMA模型选择与残差
ARIMA模型选择与残差
2022-07-27 14:42:00 【吃胡萝卜的鳄鱼】
%load_ext autoreload
%autoreload 2
%matplotlib inline
%config InlineBackend.figure_format='retina'
import pandas as pd
import numpy as np
import statsmodels.api as sm
import statsmodels.formula.api as smf
import statsmodels.tsa.api as smt
#Display and Plotting
import matplotlib.pylab as plt
import seaborn as sns
# pandas与numpy属性设置
pd.set_option('display.float_format',lambda x:'%.5f'%x)#pandas
np.set_printoptions(precision=5,suppress=True) #numpy
pd.set_option('display.max_columns',100)
pd.set_option('display.max_rows',100)
#seaborn.plotting style
sns.set(style='ticks',context='poster')
filename_ts='series1.csv'#数据地址
ts_df=pd.read_csv(filename_ts,index_col=0,parse_dates=[0])#index_col=0设置日期为索引,时间序列模型构建的要求
n_sample=ts_df.shape[0]#获取数据的行数
print(ts_df.shape)
print(ts_df.head())
(120, 1)
value
2006-06-01 0.2150
边栏推荐
- 传音控股披露被华为起诉一事:已立案,涉案金额2000万元
- 逗号操作符你有用过吗?
- Mlx90640 infrared thermal imager temperature sensor module development notes (VII)
- 线程中死锁的成因及解决方案
- go语言慢速入门——包
- Binder initialization process
- Ncnn reasoning framework installation; Onnx to ncnn
- Interview focus - TCP protocol of transport layer
- The risk of multithreading -- thread safety
- [sword finger offer] interview question 56-i: the number of numbers in the array I
猜你喜欢

无线网络分析有关的安全软件(aircrack-ng)
![[sword finger offer] interview question 41: median in data flow - large and small heap implementation](/img/c3/7caf008b3bd4d32a00b74f2c508c65.png)
[sword finger offer] interview question 41: median in data flow - large and small heap implementation

网络原理(1)——基础原理概述

openwrt 增加RTC(MCP7940 I2C总线)驱动详解

Network principle (1) - overview of basic principles

QT (VI) value and string conversion

: 0xC0000005: 写入位置 0x01458000 时发生访问冲突----待解

DRF学习笔记(二):数据反序列化

C language: dynamic memory function
![[sword finger offer] interview question 53-i: find the number 1 in the sorted array -- three templates for binary search](/img/4b/460ac517e9a5d840a0961f5d7d8c9d.png)
[sword finger offer] interview question 53-i: find the number 1 in the sorted array -- three templates for binary search
随机推荐
It can carry 100 people! Musk releases the strongest "starship" in history! Go to Mars as early as next year!
The risk of multithreading -- thread safety
[sword finger offer] interview question 42: the maximum sum of continuous subarrays -- with 0x80000000 and int_ MIN
逗号操作符你有用过吗?
单机高并发模型设计
Ncnn reasoning framework installation; Onnx to ncnn
[regular expression] single character matching
C language: Sanzi game
[regular expression] match the beginning and end
Sword finger offer 51. reverse pairs in the array
Penetration test - dry goods | 80 + network security interview experience post (interview)
DRF学习笔记(二):数据反序列化
[sword finger offer] interview question 45: arrange the array into the smallest number
[sword finger offer] interview question 49: ugly number
centos上mysql5.7主从热备设置
Addition, deletion, query and modification of MySQL table data
Flask连接mysql数据库已有表
Openwrt new platform compilation
makefile 中指定程序运行时加载的库文件路径
C language realizes the conversion between byte stream and hexadecimal string