Scientific America reports
here that depression is not a malfunction, but a mental adaptation that brings certain cognitive advantages. Also expressive writing promotes quicker resolution of depression, and they suggest that this is because depressed people gain insight into their problems.