Autocorrelation plots for stationary time series

2 ビュー (過去 30 日間)
Hamza Ali
Hamza Ali 2019 年 8 月 1 日
回答済み: Aman 2024 年 9 月 26 日
Hello,
Please, i have stationnarized times series (removing trends and seasonality using differencing) in order to find most significant lagged values for forecasting model.
Questions about PACF and ACF plots:
The PACF and ACF are for stationary time series or i need to more stationnarize data ?
Thank you.

回答 (1 件)

Aman
Aman 2024 年 9 月 26 日
Hi Hamza,
From the information you shared, I think you are having doubts regarding the usage of PACF and ACF for stationary data.
The ACF and PACF are suitable for stationarized data; if the data is not stationarized, then the output of the ACF and PACF may be misleading. If you've already removed trends and seasonality and the series appears stationary, additional stationarization may not be necessary. You can check stationarization of the data using the Augmented Dickey-Fuller (ADF) test. You can refer to the below code snippet for reference.
% Assuming 'data' is your differenced time series
[h, pValue] = adftest(data);
if h == 0
disp('The series is not stationary. Consider further differencing.');
else
disp('The series is stationary.');
end
figure;
autocorr(data);
title('Autocorrelation Function (ACF)');
figure;
parcorr(data);
title('Partial Autocorrelation Function (PACF)');
I hope it helps you to proceed ahead with your workflow.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by