I was at Powells reading this book "Bear Attacks" by Stephen Herrero
He analyzed bear attacks data in U.S. and Canada. This is from memory, might have a couple facts a little wrong:
I looked at black bear but he also talked about grizzlies
Fatalities very rare, something like 20 in 20 years. Most in Canada.
Bears habituated to humans not so much of a problem
Mother bears protecting cubs weren't much of a problem
Wild bears that have little contact with humans were more likely to be a problem. Especially when they were hungry early in season. They killed humans to eat them.
If you fight back you can probably survive. Yell. Punch them in face. Throw rocks. Poke with stick. I would think a trekking pole would be pretty useful though he didn't mention this.
Many cases of people climbing trees. Sometimes this works, but black bears climb trees too. They often grab the foot of the human and drag the human down to the ground.
I think the main point is that attacks are rare so you don't need to worry about it.

