What does Jing-Well Press Needles and Post-Stroke Cognition conclude, in numbers, about “Proposed Analyses: Microstates, the Phase Lag Index and Transfer Entropy”?
Answer: The thesis did no connectivity analysis, so this chapter only proposes a plan. Synthetic data show that zero-lag mixing alone can push the coherence of two independent sources to 0.87 while PLI and wPLI are unaffected; a genuine 12-ms lagged drive raises wPLI to 0.95. Transfer entropy can be misled by unobserved common drivers, zero-lag mixing and too coarse an embedding: a hidden driver produces "information flow" almost as large as a real drive. Microstates use the spatial information of all electrodes, but the number of classes and the state (eyes open or closed, drowsiness) change conclusions. Any connectivity measure should be fixed in advance, computed in source space and tested against surrogates; none can by itself prove "cognitive network reconstruction".
Scope of the numbers: Marked boxes separate published evidence, runnable Python calculations (16 programs), classical sources and the author's models and hypotheses; apart from cited literature data, all data in the book are synthetic.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 12
| case | coherence | PLV | imag.coh | PLI | wPLI |
|---|---|---|---|---|---|
| A independent, m = 0 | 0.035 | 0.014 | 0.034 | 0.019 | 0.069 |
| B independent, m = 0.6 | 0.868 | 0.788 | 0.019 | 0.031 | 0.077 |
| C 12-ms lagged drive, m = 0 | 0.746 | 0.644 | 0.718 | 0.730 | 0.949 |
| D 12-ms lagged drive, m = 0.6 | 1.000 | 0.998 | 0.029 | 0.713 | 0.947 |
| 12 ms at 10 Hz is a phase lag of 43 degrees |
Show the full program
# Chapter 5. Volume conduction and phase connectivity on synthetic data. Two 10-Hz
# AR(2) sources (fs 250 Hz); sensors x1 = s1 + m s2 + noise, x2 = m s1 + s2 + noise
# (m = zero-lag mixing). Phases by complex demodulation (100-ms moving average).
# Coherence, PLV, imaginary coherence, PLI (Stam et al. 2007), wPLI (Vinck et al. 2011).
# Cases: A independent, m = 0; B independent, m = 0.6; C s2 driven by s1 with a 12-ms
# lag, m = 0; D the same drive, m = 0.6.
import math, random, cmath
FS, F0, N, L = 250.0, 10.0, 30000, 25
def ar2(rng, n, drive=None, lag=3, k=0.5):
a1, a2 = 2 * 0.97 * math.cos(2 * math.pi * F0 / FS), -0.97 ** 2
x = [0.0, 0.0]
for t in range(2, n + 2):
v = a1 * x[-1] + a2 * x[-2] + rng.gauss(0, 1)
if drive is not None and t - 2 - lag >= 0:
v += k * drive[t - 2 - lag]
x.append(v)
return x[2:]
def demod(x):
z = [x[t] * cmath.exp(-2j * math.pi * F0 * t / FS) for t in range(len(x))]
c, out = [0j], []
for v in z:
c.append(c[-1] + v)
return [(c[t + L] - c[t]) / L for t in range(len(z) - L)]
def measures(x1, x2):
z1, z2 = demod(x1), demod(x2)
cr = [a * b.conjugate() for a, b in zip(z1, z2)]
n = len(cr)
p1 = math.fsum(abs(a) ** 2 for a in z1) / n
p2 = math.fsum(abs(b) ** 2 for b in z2) / n
mre = math.fsum(c.real for c in cr) / n; mim = math.fsum(c.imag for c in cr) / n
coh = abs(complex(mre, mim)) / math.sqrt(p1 * p2)
icoh = abs(mim) / math.sqrt(p1 * p2)
u = [c / abs(c) for c in cr if abs(c) > 0]
plv = abs(complex(math.fsum(c.real for c in u),
math.fsum(c.imag for c in u))) / len(u)
pli = abs(math.fsum(math.copysign(1.0, c.imag) for c in cr if c.imag != 0)) / n
wpli = abs(mim) / (math.fsum(abs(c.imag) for c in cr) / n)
return coh, plv, icoh, pli, wpli
if __name__ == "__main__":
rng = random.Random(2007)
print("case coherence PLV imag.coh PLI wPLI")
for lab, coupled, m in (("A independent, m = 0", False, 0.0),
("B independent, m = 0.6", False, 0.6),
("C 12-ms lagged drive, m = 0", True, 0.0),
("D 12-ms lagged drive, m = 0.6", True, 0.6)):
s1 = ar2(rng, N)
s2 = ar2(rng, N, drive=s1 if coupled else None)
sd = math.sqrt(math.fsum(v * v for v in s1) / N)
x1 = [a + m * b + rng.gauss(0, 0.3 * sd) for a, b in zip(s1, s2)]
x2 = [m * a + b + rng.gauss(0, 0.3 * sd) for a, b in zip(s1, s2)]
r = measures(x1, x2)
print(f"{lab:30s}" + "".join(f"{v:9.3f}" for v in r))
print(f"12 ms at 10 Hz is a phase lag of {360 * F0 * 0.012:.0f} degrees")Single source and citation
Fan, Y. (2026). Finger–Brain Cortical Magnification, Distal Microneedle Afference and Computational Neurology of Post-Stroke Cognitive Network Reconstruction (Version 1.0.0), Chapter 5: Proposed Analyses: Microstates, the Phase Lag Index and Transfer Entropy. 5D Library. https://doi.org/10.5281/zenodo.23839915
DOI: 10.5281/zenodo.23839915 · Read the monograph · 5DL-B-052 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026052,
author = {Fan, Yafu},
title = {Finger–Brain Cortical Magnification, Distal Microneedle Afference and Computational Neurology of Post-Stroke Cognitive Network Reconstruction},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.23839915},
url = {https://doi.org/10.5281/zenodo.23839915}
}Other chapter answers in this book
- Chapter 1 · Acupoint Co-occurrence Networks and Pinning Control of Brain Networks
- Chapter 2 · Press Needles, Skin and Cortical Magnification of the Fingertip
- Chapter 3 · Cortico-Striato-Thalamic Loops, Stochastic Resonance and Plasticity
- Chapter 4 · Alpha Oscillations: the Welch Estimate, the Jansen–Rit Model and Six EEG Recordings
- Chapter 6 · Drift Diffusion, Ceiling Effects and a Check of the Thesis Data
- Chapter 7 · Reading the Classics: Well Points, the Five Transport Points and Pricking the Twelve Wells
- Chapter 8 · Practice and a Pre-registered Test