Cognition as Intuitive Statistics