Party loyalty and the likelihood of deviating elections