Now read this study's findings:
RESULTS:
In the final regression model, low spirituality was revealed as a leading predictor of lower-resilience groups. Additionally, low purpose in life and less frequent exercise were associated with the low- and medium-resilience groups, respectively. Severe trait anxiety characterized the low- and medium-resilience groups, although it was not included in the final model.
CONCLUSIONS:
Spirituality, purpose in life, and trait anxiety contribute to different levels of resilience in patients with depression and/or anxiety disorders.
I would also suggest that if you have no purpose in life, that would contribute to depression.