[D]epression is in fact an adaptation, a state of mind which brings real costs, but also brings real benefits. […]
So what could be so useful about depression? Depressed people often think intensely about their problems. These thoughts are called ruminations; they are persistent and depressed people have difficulty thinking about anything else. Numerous studies have also shown that this thinking style is often highly analytical.