For me, it was easy to know because my depression had begun in my teenage years, decades before I began drinking. I know for certain that my drinking was self-medication for anxiety/depression. But, I had to finally get the depression managed with medication before I was able to stop drinking. If alcohol was the cause of the depression, then stopping drinking should help with that.