dirconn.analytic_pdc_test#
- dirconn.analytic_pdc_test(estimator: PDC, data: TimeSeries, *, alpha: float = 0.05) AsymptoticTestResult#
Test PDC at every frequency with its asymptotic distribution (Schelter et al. 2006).
In the paper’s indices (
itarget,jsource) the squared PDC|pi_ij(f)|^2is significant at levelalphawhen:|pi_ij(f)|^2 > C_ij(f) chi2_{1, 1-alpha} / (N sum_k |Abar_kj(f)|^2),
with
C_ij(f)fromdirconn.methods.spectral.pdc_null_scale(). The statistic isN |Abar_ij(f)|^2 / C_ij(f); it does not depend on the scale of the channels, so the p-values are the same with and withoutstandardize, while the threshold on the PDC values is not. Forsquared=Falsethe threshold is the square root; the p-values are unchanged.- Parameters:
estimator (PDC) – Must have
ridge=0. Its frequency grid is the tested family; give it thefreqsorfmaxof 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:
- Raises:
TypeError – If
estimatoris not aPDC(gPDC included).ValueError – With a ridge penalty.