Hmmm I dont 'walk home' much anymore, its a 40 mile drive (each way) to work for me. I do jog around home, but all the roads are 55mph the only ones that slow down when they go by me are being whats called courteous, not malicious.
I lived at a few shady places in college though, had many car break-ins and such, but I still jogged around and sometimes went out for a walk in the middle of the night. If I was just going for a walk I'd have my ham radio with me (my call sign is KC2EBM) and back then I had a big rectangular cop-looking one (HTX-202), an external mic on a long coiled cord went from the radio on my belt up to my shoulder. I'd wear a dickies work shirt and regular jeans, no one ever messed with me. In a real situation though, I'd run. back then I could do a 5k in 17 minutes.
I recommend being able to run. Being healthy and fit is not only good for you anyhow, but could save your life in something like that lol. I think they will go after easier targets and not marathoners...
Oh and a high powered flashlight is always a good thing to EDC (every day carry). Not only is it useful for illumination, but many have tactical strobes. Many now can fit in the palm of your hand and output several hundred lumens and have seizure inducing variable frequency strobes. Would do much at a distance but if your cornered behind a trash can in a dead end alley or something, at point blank range it might disorient an assailant briefly - enough maybe for you to evade and flee.
I hope no one here ever has to use any of these tactics, stay safe my friends.