DO NOT even think about a gun if you are not absolutely sure in your heart of hearts that you can point it at another human and blow a series of holes into the mother F'r. Thinking that it will "Scare" them off is insanity! Most people cannot pull that trigger when push comes to shove. The weapon will only be used against you. If you do happen to have a gun, DO NOT even think of telling ANYONE you do. First you loose the shock value and second, it just may be what they want knowing you will not pull that trigger or even mostly said so. ("That should scare them off")
Once you pass that hurdle you best damn well be able to hit something 15ft away which takes practice, practice, practice. Believe me, I've shot competitively with and against the police and armed services people. Cops for the most part cannot hit the broad side of a barn if you go by how bad they shoot in matches they volunteer for! From many cops I know they dread having to "Qualify" on the range.
I grew up and for decades lived just outside NYC, and also lived in the boonies for a while. In either case the police are too far away. The phone is your best first defense after all the usual precautionary measures like peep holes and intercoms, Never "Buzz" someone in w/o checking first, or opening the door for a sob story from someone you do not personally know, not just "seen around", no matter the time of day or weather. Within a minute that hinkey person may be busting down the door. Of course open windows, unlocked doors etc. are unwise. I have to admit, living in the boonies I got less diligent about locked doors.
And the car.... Always lock it (includes windows), no matter where or for how long away you'll be. ALWAYS look inside before getting in. Especially the back behind under and buried. If you're like most women, the back can double for a garbage dump with all the stuff tossed back there. (A very good clue the car is owned/operated by a woman) If something does not look right, keep walking and call for help. The b/g just may have friends lurking nearby so don't linger.
Multiple weapon stashes around the home is also wise. Long distance weapons are best. Bear Spray is always good. Any nasty spray can in a pinch. Especially one with a stream and not a spray. I never leave the house w/o a large size pepper spray good for 30+ seconds and a good 10 or more feet handy.
BTW-I am no tiny frail looking thing. Dead is dead. I'm going through all this transition stuff to avoid that alternate reality. If you think I am paranoid, don't ask my wife this question. I am a far too trusting soul by her standards. Oh, and she grew up in NYC