Bayesian Model Averaging (BMA) of the contextual modulation of intrinsic connectivity by attention, as well as intrinsic and extrinsic connectivity by expectation violation. Increased connectivity is showed in red, while decreased connectivity in blue. Attention increased (disinhibition) somatosensory gain, while decreasing (increased inhibition) frontal gain. Expectation violation increased the gain of contralateral primary and bilateral secondary somatosensory cortex. Further, expectation violation increased forward connectivity, in a right-lateralized fashion irrespective of violation location, while decreasing backward connectivity mostly between contralateral regions. (For interpretation of the references to color in this figure legend, the reader is referred to the web version of this article.)