Function realization of prediction