Revert "added error probability function"

This reverts commit 75d348950d6392c8fbe6a8264d24b462310c8f3d.