Classical and Bayesian Inference in Neuroimaging: Theory