Statistics for Biologically motivated reinforcement learning in spiking neural networks