A computational framework for studying confidence across species. (chapter in)