The Pattern Theory adaptive expectations