I'm aware of that. However, the temperament of black bears is recognized as being very timid and non-confrontational, in contrast to the very dangerous temperament of grizzlies. Black bear attacks on humans are almost unheard of.
If you want to play the statistics game, dump the gun and carry more water, spare cell phone batteries, or a spare 2 way radio with a list of proper frequencies for S&R. You are more likely to tumble down a hillside and turn up gimp-legged and needing rescue than you are to be in a fight with a bear. Hell, you are more likely to be injured in an automotive accident on your way to your starting hike point than fight a bear. Many times more people are killed by domestic dogs than by bears.
Is the 9mm enough for the bear? Probably not, but you only have to outrun your pretty girl. With that in mind, bears have been killed with .22s and other unlikely calibers, but you don't want to count on such a caliber in a crisis where you are at the disadvantage.
Don't confuse the description of being "timid" as the same as being fearful. This will be especially true if you come to be between a mother and cubs or an adult and its kill. Also where people make mistakes is in believing that the norm behavior is the default or absolute behavior for wild animals. Animals that are starved, sick, injured, senile, or otherwise outside of the norm cannot be expected to behave within the parameters of the norm.
Remember that while aggression to humans may be rare, they have the strength, speed, teeth, and claws to take you down quite easily.
The question you might want to be asking isn't if 9mm is enough per se, but enough to stop an attack before the offending animal can damage you enough that you don't survive. If you are attacked, you have to figure in that you will be in a remote area and how much time it will take for help to find you, retrieve you, and get you the proper medical care you need.
How far can the pretty girl carry you?
No, it is not very likely that you will have a problem, so in that regard, 9mm is more than enough gun and caliber to handle no problem, but it may be far from enough to handle a bear problem. Since your query was about defense against animals such as bears, then I would say that 9mm is not suitable...because when it comes to historic statistics, they are not valid as predictors for mutually exclusive events in the future and they mean absolutely nothing when you are involved in an event. So there have been only 2 attacks in the last X years in Colorado. What did such statistics meant to the two that were attacked?
FYI - Historic statistics going back that far are often inaccurate due to a lack of consistent reporting practices. There are a goodly number of people who are "lost" and hence don't show up in the attack statistics even though they may have been attacked. Stats only represent the known sample and in remote areas, the known sample may not be the whole sample.