Cognitive behavior under uncertainty and ambiguity