https://mathpn.com/notes/hamming-prediction/