Modeling of failure probability and statistical design of spin-torque transfer magnetic random access memory (STT MRAM) array fo