computing category priors in MV