A healthy lifestyle is associated with a lower risk of both depression and heart disease.