ar1_fit (pyleoclim.utils.tsmodel.ar1_fit)

pyleoclim.utils.tsmodel.ar1_fit(y, t=None)[source]

Returns the lag-1 autocorrelation from AR(1) fit OR persistence from tauest.

Parameters
  • y (array) – the time series

  • t (array) – the time axis of that series

Returns

g – lag-1 autocorrelation coefficient (for evenly-spaced time series) OR estimated persistence (for unevenly-spaced time series)

Return type

float