On Tractable Computation of Expected Predictions