[Paper Review] A Shift Test for Independence in Generic Time Series
This paper introduces a conservative nonparametric test for independence between two autocorrelated time series, where one must be stationary. It uses a shift-based permutation approach: the observed association in the unshifted series is compared to associations computed after time-shifting the stationary series by ±N steps; if the unshifted value ranks in the top α(N+1) of shifted values, independence is rejected at significance level α, with power approximately half that of an asymptotic test.
We describe a family of conservative statistical tests for independence of two autocorrelated time series. The series may take values in any sets, and one of them must be stationary. A user-specified function quantifying the association of a segment of the two series is compared to an ensemble obtained by time-shifting the stationary series -N to N steps. If the series are independent, the unshifted value is in the top m shifted values with probability at most m/(N+1). For large N, the probability approaches m/(2N+1). A conservative test rejects independence at significance α if the unshifted value is in the top α(N+1), and has half the power of an approximate test valid in the large N limit. We illustrate this framework with a test for correlation of autocorrelated categorical time series.
Motivation & Objective
- To develop a statistical test for independence between two time series when both are autocorrelated and one is stationary.
- To provide a method that is valid for time series with arbitrary values (not just continuous or Gaussian) and does not assume specific distributional forms.
- To offer a conservative test with controlled Type I error rate under the null of independence, even with small sample sizes.
- To enable testing of association in categorical or discrete time series where standard correlation tests may be invalid.
- To establish a framework that can be adapted to various association measures via user-defined functions.
Proposed method
- The test uses a user-specified function to quantify the association between segments of the two time series.
- The observed association from the unshifted series is compared to an ensemble of associations computed by shifting the stationary series by N steps forward and backward (from -N to N).
- Under the null hypothesis of independence, the unshifted association value is expected to be in the top m of (2N+1) shifted values with probability at most m/(2N+1).
- A conservative p-value is computed as the proportion of shifted associations that are greater than or equal to the unshifted value.
- The test rejects the null at significance level α if the unshifted value is in the top α(N+1) of the shifted values.
- The method is nonparametric and does not require distributional assumptions, making it applicable to categorical, ordinal, or continuous time series.
Experimental results
Research questions
- RQ1Can a nonparametric test for independence be constructed that remains valid under general dependence structures in time series?
- RQ2How can a conservative test be designed to control Type I error when testing independence in autocorrelated time series?
- RQ3What is the relationship between the number of shifts N and the power of the shift test?
- RQ4Can the method be applied to categorical time series where standard correlation measures are not appropriate?
- RQ5How does the shift test compare in power to asymptotic approximations in large-sample settings?
Key findings
- The shift test controls the Type I error rate conservatively, with the probability of rejecting independence under the null bounded by α.
- For large N, the p-value converges to m/(2N+1), ensuring asymptotic validity under the null.
- The test has approximately half the power of an asymptotic test in large-sample settings, making it a reliable conservative alternative.
- The method is applicable to time series with arbitrary values, including categorical data, as long as one series is stationary.
- The framework allows flexible use of any association function, enabling adaptation to various types of dependence.
- Empirical illustration shows the test is effective for detecting correlation in autocorrelated categorical time series.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.