There's also a strong positive correlation between incidence of depression and intelligence.
Physical exercises are known to help depression. Sitting in front of a computer screen all day long without much social interaction seems to make it worse (at least for me).