I think there's a little of both. It's pretty clear from studies that estrogen has beneficial effects on the psyche (and progesterone) BUT psychosocial factors also play a role, a very important role (support group, how well you pass, if you love yourself, employment status, lifestyle habits, etc). It's not just about hormones.