Statistics for Modeling and managing noise in quantum error correction