Some conditions for stochastic equality