Generalized orthogonal filters for stochastic prediction and modelling