Preparing to act follows Bayesian inference rules | Synapse