be consistent in shape of alpha_r
extra code for dealing with GP priors