Yes. I suffered from depression in early high school, grades 7-9. Like you, I have an analytical mind, which does contribute to depression. I don't know about your experience, but, well, chronic depression runs in my family, so I'm predisposed to it, but the main instance of depression in my life was situational.
I got into a selective school, but I didn't know anybody else there, so I couldn't really form friendships with other people. Along with that, the fact that I was in a school with so many other smart kids meant I no longer stood out because of my intellect, and I lost the one thing that gave me self-esteem. Plus, at that age, girls are really fucking bitchy. Even people who I considered my friends would deliberately speak in Canto around me so that I couldn't understand what they were talking about.
The reason why I'm telling you this is because going through that taught me something; if you're in a bad situation, and there are things in your life making you depressed, you are not the one with the problem. If you are in a place that really affects you negatively, the best thing you can do is to get out of there, and make a change. The best thing I ever did was to take control of my life, say, "I can't take this anymore," and move to a different place.
I don't know if your situation is similar to mine, but, I just wanted you to know that, if you ever need somebody to talk to, I'm always available if you just need somebody to listen. There's always people here for you. Even though it might feel like it sometimes, you're not alone. You're really not.