dirconn.analytic_rpdc_test#

dirconn.analytic_rpdc_test(estimator: RPDC, data: TimeSeries, *, alpha: float = 0.05) → AsymptoticTestResult#

Test rPDC at every frequency with its asymptotic distribution (Schelter et al. 2009).

N lambda_ij(f) is the Wald statistic of Abar_ij(f) = 0: chi-square with df = 2, or df = 1 where the covariance of the real and imaginary part has rank 1 (at order 1, and at f = 0 and the Nyquist frequency; dirconn.methods.spectral.rank_one_freqs()). A value lambda is significant at level alpha when it exceeds chi2_{df, 1-alpha} / N.

Parameters:
  • estimator (RPDC) – Its frequency grid is the tested family; give it the freqs or fmax of a band to test only that band.

  • data (TimeSeries) – Input data.

  • alpha (float) – Level of the threshold and default level for AsymptoticTestResult.significant().

Return type:

AsymptoticTestResult

Raises:

TypeError – If estimator is not an RPDC.