Headaches and Depression: Are they linked?

A new study came out documenting a correlation between headaches and depression. The logical question now is do headaches cause depression or does depression cause headaches? As long as we ask that cause and effect question, we will miss the third causative agent of both–unhappy relationships.