Statistics for From statistical mechanics to machine learning: effective models for neural activity