Some good advise here and I'm not going to point out which I agree with but just let you decide what is right for you. What I will add to the conversation is that you need to evaluate what your personal skills are. If having a weapon that you will only pull if you truly feel your life is in danger is something you can handle. Are you a good decision maker under pressure? Do you have a clear head in emergencies?
Being overly Fearful or emotional, unable to remain calm and make solid decisions based on the situation should be a thought in your decision process on buying a gun. If you can't keep your cool and control your fear and emotion to a level you can make good decisions, don't do it.
I'm going to illustrate my point for you.
One night I'm laying in bed asleep and wake to hear someone in my house. I'm the only one home, my wife who was an RN had called earlier and said she was working a double shift and wouldn't be home until 8am. I reach over in the nightstand (Just the two of us at that time, no children) and pull out my 38 revolver and lay there in bed with it under the covers, pointed at the bedroom door. I hear another sound in the living room and then my bedroom door opens and I see a shape of person, clearly not my wife. The person stands there for about 4 seconds and then says "Gus?".
I reach over and turn on the light on my nightstand to find my father in law, who lived next door on the next 5 acres, standing at the end of my bed. I asked him "What in the &^%$ are you doing?" and he said he was worried about his daughter/my wife because he noticed she wasn't home yet. I told him she had called and was working a double shift and then told him never to come in my house again during the night without singing out the minute he stepped inside or calling us first on the phone. He looked shocked I would say such a thing until I pulled back the covers and showed him I had the pistol.
My point is, If your someone that lets fear, anger, emotions get in the way of making good decisions, do not buy a gun. Get a can of wasp spray and a ball bat to lay by the bed. Carry pepper spray or a taser when in public. None lethal defense is better for some people because they may make a mistake they can never recover from.
My father in law thanked me about 2 weeks after our night time event for being a level headed guy. I've never been more thankful for anything more that having that trait, that night and it not failing me in that circumstance. Could have changed dozens of lifes and none of them for the good.