Stochastic path integrals can be derived like quantum mechanical path integrals