ClusteredObservationTesting

Many windows from few samples are not many samples: test at the level where independence holds

Infrastructure · Verification · brainference 1.0.0

Mechanism

Sliding windows over a recording yield many observations, but windows from the same sample (colony, subject, session) share its identity and history and are not independent. First measure how much variance sits between samples with the intraclass correlation coefficient (ICC); a high ICC means apparent clusters may just be sample identity. Then test group differences with methods that respect the clustering: generalised estimating equations (GEE) with sample as cluster and a multivariate Wald test for the joint effect, followed by pairwise contrasts; or block permutation tests that shuffle group labels between whole samples, never between windows. Quantify parameter uncertainty by bootstrap resampling. The effective sample size is closer to the number of samples than to the number of windows.

Invariants

Preconditions

Failure modes

Where this came from

Used by

Identity