Understanding trial-by-trial variability in sensory-motor transformation