Whether or not we have hope depends on two dimensions of our explanatory style; pervasiveness and permanence.
The optimistic style of explaining good events is the opposite of that used for bad events: It's internal rather than external.