All I know is my wife and I had 2 very different close up black bear counters – contrast the Yosemite encounter with the Northeast one:
Northeast: White Mountains, NH, mid-September, 5 min from AMC Greenleaf Hut on our way down from Mt Lafayette after dark, ran into mother black bear with cubs upwind of us. Not good. Roared at us, threat charged us and scared the daylights out of us. Ran straight back up Mt. Lafayette and found a 5 ft deep hole in the ground big enough for both of us in the middle of thick krummholz. Spent about 2 hours there as storm coming in.
Yosemite Nov 1 near trail head for the Mist Trail (Nevada and Vernal Falls) – on way back to trailhead bus stop ran into very worried looking British newlyweds traveling down West Coast from Canada holding a can of bear spray and asking if my wife and I were walking back to the trail head. We said yes and they asked if they could walk with us before telling us there was a mother black bear and 2 cubs blocking the trail. Well, turns out this bear was so habituated she was 25 ft up in a tree shaking acorns down for the cubs to eat only 10 ft from the trail. So habituated a crowd of Asian tourists gathered around the cubs and were getting way too close – still the mother didn't care. We gently warned the tourists away from them, and the last few who still didn't get the message beat a quick retreat when the mother came down the tree. We were amazed at how used to humans these bears were.
Yosemite bears are really something.