dp predict with prior