stochastic variance derivation