Algebraic models for probability measures associated with stochastic processes