Measure how strongly repeated items attract incoming transitions from temporal neighbors.
The incoming (“clean backward”) repetition CRP reverses each recall sequence before computing the standard repetition CRP. This measures the conditional probability of transitioning to a repeated item as a function of lag from each of its study positions, rather than transitioning from a repeated item. The analysis reveals how strongly repeated items attract incoming transitions from their temporal neighbors.
/Users/jordangunn/workspace/.venv/lib/python3.12/site-packages/scipy/_lib/_util.py:440: DegenerateDataWarning: The BCa confidence interval cannot be calculated. This problem is known to occur when the distribution is degenerate or the statistic is np.min.
return fun(*args, **kwargs)
/Users/jordangunn/workspace/.venv/lib/python3.12/site-packages/scipy/stats/_resampling.py:141: RuntimeWarning: invalid value encountered in subtract
U_ji = [(n - 1) * (theta_hat_dot - theta_hat_i)
/Users/jordangunn/workspace/jaxcmr/jaxcmr/analyses/cleanbackrepcrp.py:266: SmallSampleWarning: After omitting NaNs, one or more sample arguments is too small; all returned values will be NaN. See documentation for sample size requirements.
t_stat, t_pval = stats.ttest_rel(obs_col, ctrl_col, nan_policy="omit")
/Users/jordangunn/workspace/jaxcmr/jaxcmr/analyses/cleanbackrepcrp.py:277: RuntimeWarning: Mean of empty slice
mean_diffs[lag_idx] = np.nanmean(diff)
/Users/jordangunn/workspace/jaxcmr/jaxcmr/analyses/cleanbackrepcrp.py:322: RuntimeWarning: invalid value encountered in subtract
control_diff = control_crp[:, 0, :] - control_crp[:, 1, :]
/Users/jordangunn/workspace/jaxcmr/jaxcmr/analyses/cleanbackrepcrp.py:336: SmallSampleWarning: After omitting NaNs, one or more sample arguments is too small; all returned values will be NaN. See documentation for sample size requirements.
t_stat, t_pval = stats.ttest_rel(obs_d, ctrl_d, nan_policy="omit")
/Users/jordangunn/workspace/jaxcmr/jaxcmr/analyses/cleanbackrepcrp.py:347: RuntimeWarning: Mean of empty slice
mean_diffs[lag_idx] = np.nanmean(diff_of_diff)
Interpretation
Two plots are produced: one for observed (mixed-list) data and one for the shuffled control. Each shows incoming transition curves by presentation index. Key patterns:
Incoming contiguity: peaks near the repeated item’s study positions indicate that neighbors attract transitions toward the repetition.
First vs. second presentation: differences between curves reveal whether one occurrence attracts more incoming transitions than the other.