Associative Memory and Belief Formation