Stochastic realization problems