Linear functions and predictions