Estadísticas de Effects of confinement and vaccination on an epidemic outburst: a statistical mechanics approach