calc average squared error per bigram