Stochastic Optimal Prediction with Application to Averaged Euler Equations