Time-lagged cross-correlation of dyadic tracking data: a running preview of the full pipeline
This page is a working implementation of the study's exact analysis design: 28 observers, each tracking 6 unique targets, giving 168 separate dyadic time-series analyses at a 1000 ms sampling interval. For every dyad it computes the zero-lag Pearson baseline, the full time-lagged cross-correlation function across a uniform -5 s to +10 s window stepped at every 1000 ms increment (exactly 16 distinct coefficients per trial, asserted in code), peak extraction, and a group-level linear mixed-effects comparison of Test against Control, reported in APA statistical style.
The lag grid: 16 coefficients per trial, by construction
The window runs from -5 s to +10 s inclusive, stepped at the 1000 ms sampling interval. That is (10 - (-5)) + 1 = 16 lags, and the pipeline asserts the count rather than trusting it. Positive lag tests whether the observer trails the target; lag 0 is the conventional baseline correlation.
seconds; lag 0 = zero-lag baseline. Hover any chip.
Figure 1. Dyad explorer (interactive)
Every one of the 168 dyads is here. Pick an observer and a target trial: the left panel shows the raw 1000 ms traces, the right panel shows that dyad's 16-lag cross-correlation function with its peak circled. The Control group's story is the reason lagged analysis earns its keep: slower trackers look weakly synchronized at lag 0 and strongly synchronized at their true latency.
Raw traces
Cross-correlation function
Figure 2. Group-level pattern across all 168 dyads
Averaging the 168 cross-correlation functions by group makes the design's hypothesis visible before any model is fit: the Test group's function peaks earlier and higher, the Control group's later and lower. At lag 0 the groups look far more different than they are at their respective peaks, which is precisely the zero-lag baseline's blind spot.
Group-mean CCF (16 lags)
Peak r, every dyad
| Model (DV) | b | SE | z | p | 95% CI |
|---|
Peak correlations are Fisher z-transformed before modeling. The latency model uses each dyad's peak lag in seconds. Both models converged; full summaries are in the notebook readouts.
This paragraph is assembled programmatically from the fitted models in the same run that drew the figures above: descriptives as M and SD, fixed effects as b, SE, z, p, and 95% CI, in APA 7 statistical style.
View the per-dyad results table (168 rows)
The deliverable this previews
Milestone 2 asks for a fully documented Jupyter notebook with code cells alongside execution readouts, plus a mirror production copy auto-exported as a standard Python script. That is exactly how this page was produced, so the deliverable format can be inspected now:
Every processing step, assertion, model summary and figure, with its printed readouts inline.
.ipynb · downloadThe notebook itself, runnable end to end: seeded, asserted, and documented cell by cell.
.py · downloadThe mirror production script, auto-exported from the notebook via nbconvert, as specified.