A new study from Yale scientists shows how uncertainty helps us learn