I don't carry. I've spent weeks hiking in Grizzly country in the Tetons, Yellowstone and Montana. A hand gun just gives false sense of confidence. Keep a clean camp, hang the food well away from the camp. Make noise as you hike down the trail and stay out of areas if a sow and a cub are working it.
Alaska is a different situation. The rules are the same, keep a clean camp, hang food well away, make plenty of noise when walking about and yes, I'd consider carrying protection there. I don't know what that would be. I'd have to think that one through.
It was some other asshole who was talking about carrying a 9mm. For bears and cats, in California nontheless. LOL. Not me. I'm not going to worry about extremely rare events.
Be careful when taking a shower, lots of people get hurt when taking a shower. People who raise the level of risk to others because they are afraid of extremely rare events are cowards.