prediction of observed sequences