Fig. 5

Model predictions. Scatterplots depict the power increase from the baseline to the post-stimulation block predicted by the statistical models, plotted against empirically observed values. Each dot represents data of a single subject. The diagonals indicate the line of perfect prediction (predicted Δpower = observed Δpower). The distance of each data point from the diagonal indicates the residual prediction error. a Predicted and empirical power increase for the tACS group. b Predicted and empirical power increase in the sham group. c Power increase predicted for each subject in the tACS group by the cross-validated model. For each data point ni the model was trained on n − 1 observations to predict the remaining ith observation. d Individually sham-controlled tACS effect (power increase relative to baseline after tACS−power increase relative to baseline after sham) on source-level α-power predicted by measures of tACS targeting. Source data are provided as a Source Data file.