Effects of noise on gradient computation