The stochastic realization problem