def stationarity_autocorrelation_test_original(data): """ Tests stationarity and autocorrelation of time series """ print('The purpose of this test is to determine the stationarity and ' 'autocorrelation\n of the original time series.') test_stationarity(data['count'], window=12, title="Original Time series") p.acf_pacf(data)
def stationarity_test_seasonal_diff(data): """ Tests stationarity and autocorrelation of seasonal difference """ print('The purpose of this test is to determine the stationarity and ' 'autocorrelation\n of the seasonal difference.') season = f.seasonal_difference(data) test_stationarity(season['count'], window=12, title="Seasonal Difference") p.acf_pacf(season)
def stationarity_autocorrelation_test_first_diff(data): """ Tests stationarity and autocorrelation of first difference """ print('The purpose of this test is to determine the stationarity and ' 'autocorrelation\n of the first difference.') first_diff = f.order_difference(data) test_stationarity(first_diff['count'], window=12, title="First Order Difference") p.acf_pacf(first_diff)
def stationarity_test_seasonal_first_diff(data): """ Tests stationarity and autocorrelation of first difference and first seasonal difference """ print('The purpose of this test is to determine the stationarity and ' 'autocorrelation\n of the seasonal difference of the first ' 'difference.') first_diff = f.order_difference(data) season_first = f.order_difference(first_diff) test_stationarity(season_first['count'], window=12, title="Seasonal Difference of First Order Difference") p.acf_pacf(season_first)