TSA Project Python Code
TSA Project Python Code
Since the plot shows a clear upwards trend, the data is not stationary. Hence we will use
differencing to make the data stationary since SARIMA Model assumes stationarity.
Based on the ACF and PACF plots, there was no clear evidence of strong seasonality, and the
spikes were not strong enough to infer a definitive seasonal component. The PACF plot
showed a small spike at lag 6, but there were no other strong or consistent spikes that
suggest a clear pattern in the autocorrelations. Thus, the SARIMA(1,1,1)(1,0,1)12 model
parameters were chosen as a starting point.
Non-seasonal component:
Autoregressive term (p=1): This accounts for the direct relationship between the current
value and the previous value in the time series.
Differencing term (d=1): This makes the time series stationary by taking the first difference of
the series.
Moving average term (q=1): This captures the relationship between the current value and
the residual error from the previous value.
Seasonal component:
Seasonal autoregressive term (P=1): This accounts for the direct relationship between the
current seasonal value and the seasonal value from the previous cycle.
Seasonal moving average term (Q=1): This captures the relationship between the current
seasonal value and the residual error from the previous seasonal value.
Seasonal period (s=12): This sets the seasonal period to 12 months, which is typical for
monthly data with potential yearly seasonality.
Null hypothesis (H0): There is no significant difference between the mean returns
of January and the mean returns of other months. In other words, the January Effec
t does not exist.
t-statistic: -0.1618069189156481
p-value: 0.8804849944025712
The January effect does not exist for the predicted values
In [ ]: