People's belief in their own capability to execute the actions required to produce a given outcome shapes how much effort they invest and how long they persist.