Title: Foundations of the theory of prediction