Statistics for Learning in large-scale spiking neural networks