[PYTHON] Time series analysis related memo

from statsmodels.tsa.stattools import acf,acovf,ccf , ccovf

・ Acf: autocorrelation function Autocorrelation function ・ Acovf: autocovariance function Autocovariance function ・ Ccf: cross-correlation function Cross-correlation function ・ Ccovf: cross-covariance function Mutual covariance function

from scipy import signal
x, y = signal.periodogram(taiyo["sunspot"])

・ Periodogram

AIC=n*np.log(2*np.pi*RSS/n)+2*(1+1)+n

RSS: Residual sum of squares https://www.iwanttobeacat.com/entry/2018/02/24/123626

from scipy.stats import boxcox,shapiro
p_ = []
for i in np.arange(-1, 1, 0.1):
    henkan = boxcox(taiyo["sunspot"]+1, lmbda=i)
    W, p=shapiro(henkan)
    p_.append(W)

・ How to get normality

Recommended Posts

Time series analysis related memo
Python: Time Series Analysis
RNN_LSTM1 Time series analysis
Time series analysis 1 Basics
Time series analysis part 4 VAR
Time series analysis Part 3 Forecast
Time series analysis Part 1 Autocorrelation
Python: Time Series Analysis: Preprocessing Time Series Data
Time series analysis practice sales forecast
Time series analysis 3 Preprocessing of time series data
I tried time series analysis! (AR model)
Time Series Decomposition
Time series analysis Part 2 AR / MA / ARMA
Time series analysis 4 Construction of SARIMA model
Time series analysis # 6 Spurious regression and cointegration
Power of forecasting methods in time series data analysis Semi-optimization (SARIMA) [Memo]
Python: Time Series Analysis: Building a SARIMA Model
Python: Time Series Analysis: Stationarity, ARMA / ARIMA Model
Python time series question
Display TOPIX time series
Time series plot / Matplotlib
Python 3.4 Create Windows7-64bit environment (for financial time series analysis)
Python execution time measurement memo
Challenge to future sales forecast: ② Time series analysis using PyFlux
A study method for beginners to learn time series analysis
[Python] Plot time series data
Challenge to future sales forecast: ⑤ Time series analysis by Prophet
Challenges for future sales forecasts: (1) What is time series analysis?
[Statistics] [Time series analysis] Plot the ARMA model and grasp the tendency.
Calculation of time series customer loyalty
Easy time series prediction with Prophet
Tensorflow memo [updated from time to time]
Time series plot started ~ python edition ~
About time series data and overfitting
Differentiation of time series data (discrete)
Movement statistics for time series forecasting
LSTM (1) for time series forecasting (for beginners)
Instantly illustrate the predominant period in time series data using spectrum analysis