On the linear prediction problem for certain stochastic processes