A stochastic model of neural response