statsmodels.tsa.stattools.pacf_yw#
- statsmodels.tsa.stattools.pacf_yw(x, nlags=None, method='adjusted')[source]#
Partial autocorrelation estimated with Yule-Walker
- Parameters:
- xarray_like
The observations of time series for which pacf is calculated.
- nlags
int,optional Number of lags to return autocorrelation for. If not provided, uses min(10 * np.log10(nobs), nobs - 1).
- method{“adjusted”, “mle”},
optional The method for the autocovariance calculations in yule walker.
- Returns:
ndarrayThe partial autocorrelations, maxlag+1 elements.
See also
statsmodels.tsa.stattools.pacfPartial autocorrelation estimation.
statsmodels.tsa.stattools.pacf_olsPartial autocorrelation estimation using OLS.
statsmodels.tsa.stattools.pacf_burgPartial autocorrelation estimation using Burg’s method.
Notes
The value at lag k is the last coefficient of the AR(k) model estimated by
yule_walker. All lags are computed from one autocovariance sequence using the Levinson-Durbin recursion.yule_walkeris used for the lags where the recursion is not known to be stable, which are those where the Toeplitz matrix of the autocovariances is not positive definite.