I think it can be both or a combination of them. For me it was defiantly a chemical imbalance. One day my mind decided to bail with no real reason and I finally understood how depressed people just can't start a spark of motivation without the feeling of oncoming paralyzing dread.